]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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;
554f62e9 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>|...
7449af73 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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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*/
7449af73
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 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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 *
7449af73 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. */
554f62e9 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
7449af73
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;
7449af73
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 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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 }
7449af73
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 }
7449af73
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) {
7449af73
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) {
7449af73 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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 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}
d55e5bfc 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}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
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
554f62e9
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/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
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
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 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 {
554f62e9
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;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
554f62e9
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 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
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)
7449af73 1016
c32bde28 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
c32bde28 1032
554f62e9 1033/* Error manipulation */
c32bde28 1034
554f62e9
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}
d55e5bfc 1042
554f62e9
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}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
c32bde28 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
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 {
554f62e9
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);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
093d3ff1 1103}
d55e5bfc 1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
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*/
7449af73 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 */
7449af73
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
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
c32bde28 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;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1713{
093d3ff1
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
c32bde28 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c32bde28 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1738{
093d3ff1
RD
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1 1744 }
d55e5bfc
RD
1745}
1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
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
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
7e63a440 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
d55e5bfc 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
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}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d55e5bfc 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
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 {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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;
093d3ff1
RD
1947 }
1948}
d55e5bfc 1949
554f62e9
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 }
d55e5bfc 1961 }
554f62e9 1962 return 0;
c32bde28
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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 2042 }
d55e5bfc
RD
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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}
d55e5bfc 2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
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 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
554f62e9
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 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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}
d55e5bfc 2159
554f62e9
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
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
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 {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
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);
d55e5bfc 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 }
d55e5bfc 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
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}
5e483524 2321
554f62e9
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
59ccbf7f
RD
2494#define SWIGTYPE_p_wxColour swig_types[28]
2495#define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497#define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498#define SWIGTYPE_p_wxControl swig_types[32]
2499#define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500#define SWIGTYPE_p_wxCursor swig_types[34]
2501#define SWIGTYPE_p_wxDC swig_types[35]
2502#define SWIGTYPE_p_wxDCBrushChanger swig_types[36]
2503#define SWIGTYPE_p_wxDCClipper swig_types[37]
2504#define SWIGTYPE_p_wxDCOverlay swig_types[38]
2505#define SWIGTYPE_p_wxDCPenChanger swig_types[39]
2506#define SWIGTYPE_p_wxDCTextColourChanger swig_types[40]
2507#define SWIGTYPE_p_wxDash swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2510#define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2511#define SWIGTYPE_p_wxDuplexMode swig_types[45]
2512#define SWIGTYPE_p_wxEffects swig_types[46]
2513#define SWIGTYPE_p_wxEncodingConverter swig_types[47]
2514#define SWIGTYPE_p_wxEraseEvent swig_types[48]
2515#define SWIGTYPE_p_wxEvent swig_types[49]
4976f996
RD
2516#define SWIGTYPE_p_wxEventBlocker 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_wxPostScriptDC swig_types[127]
2594#define SWIGTYPE_p_wxPrintData swig_types[128]
2595#define SWIGTYPE_p_wxPrinterDC swig_types[129]
2596#define SWIGTYPE_p_wxPseudoDC swig_types[130]
2597#define SWIGTYPE_p_wxPyApp swig_types[131]
2598#define SWIGTYPE_p_wxPyCommandEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyFontEnumerator swig_types[134]
2601#define SWIGTYPE_p_wxPyImageHandler swig_types[135]
2602#define SWIGTYPE_p_wxPyLocale swig_types[136]
2603#define SWIGTYPE_p_wxPySizer swig_types[137]
2604#define SWIGTYPE_p_wxPyValidator swig_types[138]
2605#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[139]
2606#define SWIGTYPE_p_wxRect swig_types[140]
2607#define SWIGTYPE_p_wxRect2D swig_types[141]
2608#define SWIGTYPE_p_wxRegion swig_types[142]
2609#define SWIGTYPE_p_wxRegionIterator swig_types[143]
2610#define SWIGTYPE_p_wxRendererNative swig_types[144]
2611#define SWIGTYPE_p_wxRendererVersion swig_types[145]
2612#define SWIGTYPE_p_wxScreenDC swig_types[146]
2613#define SWIGTYPE_p_wxScrollEvent swig_types[147]
2614#define SWIGTYPE_p_wxScrollWinEvent swig_types[148]
2615#define SWIGTYPE_p_wxSetCursorEvent swig_types[149]
2616#define SWIGTYPE_p_wxShowEvent swig_types[150]
2617#define SWIGTYPE_p_wxSize swig_types[151]
2618#define SWIGTYPE_p_wxSizeEvent swig_types[152]
2619#define SWIGTYPE_p_wxSizer swig_types[153]
2620#define SWIGTYPE_p_wxSizerItem swig_types[154]
2621#define SWIGTYPE_p_wxSplitterRenderParams swig_types[155]
2622#define SWIGTYPE_p_wxStaticBoxSizer swig_types[156]
2623#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[157]
2624#define SWIGTYPE_p_wxStockGDI swig_types[158]
2625#define SWIGTYPE_p_wxString swig_types[159]
2626#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[160]
2627#define SWIGTYPE_p_wxTGAHandler swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
7449af73
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
093d3ff1 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
554f62e9
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
093d3ff1
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
093d3ff1 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
554f62e9 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
554f62e9
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
554f62e9
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
093d3ff1 2683 }
554f62e9
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
093d3ff1 2688 }
554f62e9
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
093d3ff1 2718}
d55e5bfc 2719
d55e5bfc 2720
554f62e9
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
554f62e9 2731 };
d55e5bfc
RD
2732}
2733
2734
554f62e9
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
f460c29d
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
554f62e9
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc 2761
c32bde28 2762
50efceee
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
093d3ff1 2774SWIGINTERN int
554f62e9 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2779 return SWIG_TypeError;
093d3ff1
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
554f62e9 2783 return SWIG_OK;
093d3ff1 2784}
c32bde28 2785
d55e5bfc 2786
093d3ff1 2787SWIGINTERN int
554f62e9
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
093d3ff1 2790 unsigned long v;
554f62e9
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
554f62e9 2796 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2797 }
554f62e9
RD
2798 }
2799 return res;
093d3ff1 2800}
d55e5bfc
RD
2801
2802
554f62e9
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2805{
554f62e9
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2808}
d55e5bfc
RD
2809
2810
554f62e9
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
093d3ff1
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
093d3ff1
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2870 return rv;
2871 }
554f62e9 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
2875
554f62e9
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2878{
554f62e9
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
554f62e9 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
554f62e9 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
093d3ff1
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
554f62e9
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
fc46b7f3
RD
2926#include <wx/rawbmp.h>
2927
2928
8f514ab4
RD
2929// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2930// appears to me that the other platforms are already doing it, so I'll just
2931// automatically do it for wxMSW here.
2932#ifdef __WXMSW__
2933#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2934#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2935#else
2936#define wxPy_premultiply(p, a) (p)
2937#define wxPy_unpremultiply(p, a) (p)
2938#endif
2939
2940
093d3ff1 2941#include <wx/image.h>
d55e5bfc 2942
093d3ff1
RD
2943 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2944 char** cArray = NULL;
2945 int count;
d55e5bfc 2946
093d3ff1
RD
2947 if (!PyList_Check(listOfStrings)) {
2948 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2949 return NULL;
2950 }
2951 count = PyList_Size(listOfStrings);
2952 cArray = new char*[count];
d55e5bfc 2953
093d3ff1
RD
2954 for(int x=0; x<count; x++) {
2955 // TODO: Need some validation and error checking here
2956 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2957 }
2958 return cArray;
d55e5bfc 2959 }
d55e5bfc
RD
2960
2961
554f62e9 2962SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2963 char** cArray = NULL;
2964 wxBitmap* bmp;
2965
2966 cArray = ConvertListOfStrings(listOfStrings);
2967 if (! cArray)
2968 return NULL;
2969 bmp = new wxBitmap(cArray);
2970 delete [] cArray;
2971 return bmp;
2972 }
554f62e9 2973SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2974 char* buf;
2975 Py_ssize_t length;
2976 PyString_AsStringAndSize(bits, &buf, &length);
2977 return new wxBitmap(buf, width, height, depth);
2978 }
554f62e9
RD
2979SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2980SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
554f62e9 2984SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
554f62e9 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 }
554f62e9 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 }
d55e5bfc 3208
093d3ff1 3209#include <wx/iconbndl.h>
d55e5bfc 3210
554f62e9 3211SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
554f62e9 3216SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3217 char** cArray = NULL;
3218 wxIcon* icon;
d55e5bfc 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 }
554f62e9
RD
3227SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3228SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3229
093d3ff1 3230 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3231
3232
d55e5bfc 3233
093d3ff1 3234 }
554f62e9 3235SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3236
093d3ff1 3237 self->SetIndex(num);
d55e5bfc
RD
3238
3239
d55e5bfc 3240
093d3ff1 3241 }
554f62e9 3242SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3243
093d3ff1 3244 return self->GetIndex();
d55e5bfc
RD
3245
3246
d55e5bfc 3247
093d3ff1 3248 }
554f62e9 3249SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3250#ifdef __WXGTK__
fef4c27a
RD
3251 wxImage img(cursorName, type);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3254 return new wxCursor(img);
093d3ff1 3255#else
fef4c27a 3256 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3257#endif
3258 }
554f62e9 3259SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3260
093d3ff1 3261
554f62e9 3262SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3263 (*self) ++;
3264 }
554f62e9 3265SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3266 return self->operator bool();
3267 }
3268
3269#include <wx/fontutil.h>
3270#include <wx/fontmap.h>
3271#include <wx/fontenum.h>
3272
554f62e9 3273SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3274 return self->ToString();
3275 }
3276
3277 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3278 { wxPyRaiseNotImplemented(); return NULL; }
3279
3280 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3281 { wxPyRaiseNotImplemented(); return false; }
3282
554f62e9
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 }
554f62e9 3309SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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 }
554f62e9
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
554f62e9 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 }
554f62e9 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 }
554f62e9 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
554f62e9 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 }
554f62e9 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
554f62e9 3539SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3540{
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3543 return SWIG_OK;
093d3ff1 3544 }
554f62e9 3545 return SWIG_TypeError;
093d3ff1
RD
3546}
3547
554f62e9 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 }
554f62e9 3553SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
554f62e9 3558SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
554f62e9 3564 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3565
554f62e9 3566SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
554f62e9 3569SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
554f62e9 3572SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
554f62e9 3575SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
554f62e9 3578SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
554f62e9 3581SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
554f62e9 3584SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
554f62e9 3587SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
554f62e9 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
3608#include <wx/metafile.h>
3609
3610
72ef6efb
RD
3611#include <wx/graphics.h>
3612
3613
3614#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3615// C++ stub classes for platforms or build configurations that don't have
3616// wxGraphicsContext yet.
72ef6efb 3617
8bd35413
RD
3618class wxGraphicsRenderer;
3619class wxGraphicsMatrix;
3620
70d7cb34
RD
3621
3622class wxGraphicsObject : public wxObject
72ef6efb
RD
3623{
3624public :
8bd35413 3625 wxGraphicsObject() {}
70d7cb34 3626 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3627 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3628 "wx.GraphicsObject is not available on this platform.");
3629 }
3630 wxGraphicsObject( const wxGraphicsObject& ) {}
3631 virtual ~wxGraphicsObject() {}
3632 bool IsNull() const { return false; }
3633 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3634} ;
3635
3636
3637
3638class wxGraphicsPen : public wxGraphicsObject
3639{
8bd35413 3640public:
70d7cb34
RD
3641 wxGraphicsPen() {}
3642 virtual ~wxGraphicsPen() {}
3643} ;
3644wxGraphicsPen wxNullGraphicsPen;
3645
3646
3647
3648class wxGraphicsBrush : public wxGraphicsObject
3649{
3650public :
3651 wxGraphicsBrush() {}
3652 virtual ~wxGraphicsBrush() {}
3653} ;
3654wxGraphicsBrush wxNullGraphicsBrush;
3655
3656
3657
3658class wxGraphicsFont : public wxGraphicsObject
3659{
3660public :
3661 wxGraphicsFont() {}
3662 virtual ~wxGraphicsFont() {}
3663} ;
3664wxGraphicsFont wxNullGraphicsFont;
3665
3666
3667
3668class wxGraphicsPath : public wxGraphicsObject
3669{
3670public :
8bd35413 3671 wxGraphicsPath() { }
70d7cb34
RD
3672 wxGraphicsPath(wxGraphicsRenderer* ) {
3673 PyErr_SetString(PyExc_NotImplementedError,
3674 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3675 }
3676 virtual ~wxGraphicsPath() {}
70d7cb34 3677
72ef6efb 3678 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3679 void MoveToPoint( const wxPoint2DDouble& ) {}
3680 void AddLineToPoint( wxDouble, wxDouble ) {}
3681 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3682 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3683 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3684 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3685 void CloseSubpath() {}
8bd35413
RD
3686 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3687 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3688 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3689 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3690
3691 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3692 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3693 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3694 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3695
70d7cb34
RD
3696 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3697 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3698 void * GetNativePath() const { return NULL; }
8bd35413
RD
3699 void UnGetNativePath(void *) const {}
3700 void Transform( const wxGraphicsMatrix& ) {}
3701 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3702 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3703
8bd35413
RD
3704 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3705 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3706};
5c8c7dd3 3707wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3708
3709
3710class wxGraphicsMatrix : public wxGraphicsObject
3711{
3712public :
8bd35413 3713 wxGraphicsMatrix() { }
70d7cb34
RD
3714 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3715 PyErr_SetString(PyExc_NotImplementedError,
3716 "wx.GraphicsMatrix is not available on this platform.");
3717 }
3718 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3719 virtual void Concat( const wxGraphicsMatrix & ) {}
3720 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3721 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3722 wxDouble , wxDouble ) {}
248802d0
RD
3723 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3724 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3725 virtual void Invert() {}
8bd35413
RD
3726 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3727 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3728 virtual void Translate( wxDouble , wxDouble ) {}
3729 virtual void Scale( wxDouble , wxDouble ) {}
3730 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3731 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3732 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3733 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3734};
5c8c7dd3 3735wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3736
70d7cb34
RD
3737
3738class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3739{
3740public:
70d7cb34
RD
3741
3742 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3743 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3744 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3745 }
70d7cb34 3746
72ef6efb 3747 virtual ~wxGraphicsContext() {}
70d7cb34 3748
8bd35413
RD
3749 static wxGraphicsContext* Create() {
3750 PyErr_SetString(PyExc_NotImplementedError,
3751 "wx.GraphicsContext is not available on this platform.");
3752 return NULL;
3753 }
70d7cb34 3754 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3755 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3756 "wx.GraphicsContext is not available on this platform.");
8bd35413 3757 return NULL;
72ef6efb 3758 }
b876c1e4 3759
70d7cb34 3760 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3761 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3762 "wx.GraphicsContext is not available on this platform.");
8bd35413 3763 return NULL;
70d7cb34 3764 }
b876c1e4 3765
70d7cb34
RD
3766 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3767 PyErr_SetString(PyExc_NotImplementedError,
3768 "wx.GraphicsContext is not available on this platform.");
8bd35413 3769 return NULL;
70d7cb34
RD
3770 }
3771
3772 static wxGraphicsContext* Create( wxWindow* ) {
3773 PyErr_SetString(PyExc_NotImplementedError,
3774 "wx.GraphicsContext is not available on this platform.");
8bd35413 3775 return NULL;
70d7cb34
RD
3776 }
3777
8bd35413 3778 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3779
8bd35413 3780 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3781
8bd35413 3782 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3783
3784 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3785 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3786
3787 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3788 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3789 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3790
8bd35413 3791 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3792
8bd35413
RD
3793 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3794 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3795
3796 virtual void PushState() {}
3797 virtual void PopState() {}
3798 virtual void Clip( const wxRegion & ) {}
3799 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3800 virtual void ResetClip() {}
3801 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3802 virtual int GetLogicalFunction() const { return 0; }
3803 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3804 virtual void Translate( wxDouble , wxDouble ) {}
3805 virtual void Scale( wxDouble , wxDouble ) {}
3806 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3807 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3808 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3809 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3810
3811 virtual void SetPen( const wxGraphicsPen& ) {}
3812 void SetPen( const wxPen& ) {}
3813
3814 virtual void SetBrush( const wxGraphicsBrush& ) {}
3815 void SetBrush( const wxBrush& ) {}
3816
3817 virtual void SetFont( const wxGraphicsFont& ) {}
3818 void SetFont( const wxFont&, const wxColour& ) {}
3819
8bd35413
RD
3820 virtual void StrokePath( const wxGraphicsPath & ) {}
3821 virtual void FillPath( const wxGraphicsPath &, int ) {}
3822 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3823
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3825 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3828 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3829 wxDouble *, wxDouble * ) const {}
3830 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3831
3832 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834
3835 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3836 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3838 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3839 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3840 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
4e8107d5 3841 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3842 virtual bool ShouldOffset() const { return false; }
3843};
3844
3845
3846class wxGraphicsRenderer : public wxObject
3847{
3848public :
3849 wxGraphicsRenderer() {
3850 PyErr_SetString(PyExc_NotImplementedError,
3851 "wx.GraphicsRenderer is not available on this platform.");
3852 }
3853
3854 virtual ~wxGraphicsRenderer() {}
3855
8bd35413 3856 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3857 PyErr_SetString(PyExc_NotImplementedError,
3858 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3859 return NULL;
3860 }
70d7cb34
RD
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3866 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3867
8bd35413 3868 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3869
8bd35413
RD
3870 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3871 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3872
8bd35413
RD
3873 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3874 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3875 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3876 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3877 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3878 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3879 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3880};
3881
3882
70d7cb34 3883
72ef6efb
RD
3884class wxGCDC: public wxWindowDC
3885{
3886public:
3887 wxGCDC(const wxWindowDC&) {
3888 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3889 PyErr_SetString(PyExc_NotImplementedError,
3890 "wxGCDC is not available on this platform.");
3891 wxPyEndBlockThreads(blocked);
3892 }
70d7cb34 3893
48a0c021
RD
3894 wxGCDC(const wxWindow*) {
3895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3896 PyErr_SetString(PyExc_NotImplementedError,
3897 "wxGCDC is not available on this platform.");
3898 wxPyEndBlockThreads(blocked);
3899 }
3900
72ef6efb
RD
3901 wxGCDC() {
3902 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3903 PyErr_SetString(PyExc_NotImplementedError,
3904 "wxGCDC is not available on this platform.");
3905 wxPyEndBlockThreads(blocked);
3906 }
70d7cb34 3907
72ef6efb
RD
3908 virtual ~wxGCDC() {}
3909
b876c1e4
RD
3910 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3911 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3912};
3913
3914#endif
3915
f89238b9
RD
3916SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3917 if ( !backgroundBrush.IsNull() )
3918 self->DrawText(str, x, y, backgroundBrush);
3919 else
3920 self->DrawText(str, x, y);
3921 }
3922SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3923 if ( !backgroundBrush.IsNull() )
3924 self->DrawText(str, x, y, angle, backgroundBrush);
3925 else
3926 self->DrawText(str, x, y, angle);
3927 }
be68621e
RD
3928SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3929 wxDouble width = 0.0,
3930 height = 0.0;
3931 self->GetTextExtent(text, &width, &height, NULL, NULL);
3932 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3933 PyObject* rv = PyTuple_New(2);
3934 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3935 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3936 return rv;
3937 }
b39fe951
RD
3938SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3939 wxArrayDouble widths;
3940 self->GetPartialTextExtents(text, widths);
3941 return widths;
3942 }
f8eb59b9 3943SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3944 size_t c1, c2, count;
3945 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3946 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3947
3948 if ( beginP != NULL && endP != NULL )
3949 {
3950 count = wxMin(c1, c2);
3951 self->StrokeLines(count, beginP, endP);
3952 }
3953 delete [] beginP;
3954 delete [] endP;
3955 }
72ef6efb 3956
0a27f394
RD
3957#include "wx/dcgraph.h"
3958
3959
66493fc7
RD
3960#include <wx/overlay.h>
3961
3962
093d3ff1 3963
554f62e9 3964SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3965 self->AddColour(name, wxColour(red, green, blue));
3966 }
3967
50efceee
RD
3968 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3969 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3970 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3971 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3972
3973
093d3ff1
RD
3974#include <wx/effects.h>
3975
be9b1dca
RD
3976
3977#include "wx/renderer.h"
3978
3979
7449af73 3980SWIGINTERNINLINE PyObject*
554f62e9 3981 SWIG_From_bool (bool value)
be9b1dca 3982{
554f62e9 3983 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3984}
3985
27e45892
RD
3986
3987#include "wx/wxPython/pseudodc.h"
3988
3989SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3990 wxRect rect;
3991 self->GetIdBounds(id, rect);
3992 return rect;
3993 }
093d3ff1
RD
3994#ifdef __cplusplus
3995extern "C" {
3996#endif
554f62e9
RD
3997SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3998 PyObject *resultobj = 0;
3999 wxGDIObject *result = 0 ;
4000
4001 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4002 {
4003 if (!wxPyCheckForApp()) SWIG_fail;
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (wxGDIObject *)new wxGDIObject();
4006 wxPyEndAllowThreads(__tstate);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 }
4009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4010 return resultobj;
4011fail:
4012 return NULL;
d55e5bfc
RD
4013}
4014
4015
554f62e9
RD
4016SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4017 PyObject *resultobj = 0;
4018 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4019 void *argp1 = 0 ;
4020 int res1 = 0 ;
4021 PyObject *swig_obj[1] ;
4022
4023 if (!args) SWIG_fail;
4024 swig_obj[0] = args;
4025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4026 if (!SWIG_IsOK(res1)) {
4027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4028 }
4029 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 delete arg1;
d55e5bfc 4033
554f62e9
RD
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_Py_Void();
4038 return resultobj;
4039fail:
4040 return NULL;
d55e5bfc
RD
4041}
4042
4043
554f62e9
RD
4044SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4047 bool result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4057 }
4058 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (bool)(arg1)->IsNull();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 {
4066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4067 }
4068 return resultobj;
4069fail:
4070 return NULL;
4071}
4072
4073
4074SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4075 PyObject *obj;
4076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4077 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4078 return SWIG_Py_Void();
4079}
4080
4081SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4082 return SWIG_Python_InitShadowInstance(args);
4083}
4084
4085SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4086 PyObject *resultobj = 0;
4087 byte arg1 = (byte) 0 ;
4088 byte arg2 = (byte) 0 ;
4089 byte arg3 = (byte) 0 ;
fc46b7f3 4090 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4091 wxColour *result = 0 ;
4092 unsigned char val1 ;
4093 int ecode1 = 0 ;
4094 unsigned char val2 ;
4095 int ecode2 = 0 ;
4096 unsigned char val3 ;
4097 int ecode3 = 0 ;
fc46b7f3
RD
4098 unsigned char val4 ;
4099 int ecode4 = 0 ;
554f62e9
RD
4100 PyObject * obj0 = 0 ;
4101 PyObject * obj1 = 0 ;
4102 PyObject * obj2 = 0 ;
fc46b7f3 4103 PyObject * obj3 = 0 ;
554f62e9 4104 char * kwnames[] = {
fc46b7f3 4105 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4106 };
4107
fc46b7f3 4108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4109 if (obj0) {
4110 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4111 if (!SWIG_IsOK(ecode1)) {
4112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4113 }
4114 arg1 = static_cast< byte >(val1);
4115 }
4116 if (obj1) {
4117 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4118 if (!SWIG_IsOK(ecode2)) {
4119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4120 }
4121 arg2 = static_cast< byte >(val2);
4122 }
4123 if (obj2) {
4124 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4125 if (!SWIG_IsOK(ecode3)) {
4126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4127 }
4128 arg3 = static_cast< byte >(val3);
4129 }
fc46b7f3
RD
4130 if (obj3) {
4131 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4132 if (!SWIG_IsOK(ecode4)) {
4133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4134 }
4135 arg4 = static_cast< byte >(val4);
4136 }
554f62e9
RD
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4139 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4144 return resultobj;
4145fail:
4146 return NULL;
d55e5bfc
RD
4147}
4148
4149
554f62e9
RD
4150SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj = 0;
4152 wxString *arg1 = 0 ;
4153 wxColour *result = 0 ;
4154 bool temp1 = false ;
4155 PyObject * obj0 = 0 ;
4156 char * kwnames[] = {
4157 (char *) "colorName", NULL
4158 };
4159
4160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4161 {
4162 arg1 = wxString_in_helper(obj0);
4163 if (arg1 == NULL) SWIG_fail;
4164 temp1 = true;
4165 }
4166 {
4167 if (!wxPyCheckForApp()) SWIG_fail;
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (wxColour *)new wxColour((wxString const &)*arg1);
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4174 {
4175 if (temp1)
4176 delete arg1;
4177 }
4178 return resultobj;
4179fail:
4180 {
4181 if (temp1)
4182 delete arg1;
4183 }
4184 return NULL;
b519803b
RD
4185}
4186
4187
554f62e9
RD
4188SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4189 PyObject *resultobj = 0;
4190 unsigned long arg1 ;
4191 wxColour *result = 0 ;
4192 unsigned long val1 ;
4193 int ecode1 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 char * kwnames[] = {
4196 (char *) "colRGB", NULL
4197 };
4198
4199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4200 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4201 if (!SWIG_IsOK(ecode1)) {
4202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4203 }
4204 arg1 = static_cast< unsigned long >(val1);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 result = (wxColour *)new wxColour(arg1);
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4212 return resultobj;
4213fail:
4214 return NULL;
d55e5bfc
RD
4215}
4216
4217
554f62e9
RD
4218SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4219 PyObject *resultobj = 0;
4220 wxColour *arg1 = (wxColour *) 0 ;
4221 void *argp1 = 0 ;
4222 int res1 = 0 ;
4223 PyObject *swig_obj[1] ;
4224
4225 if (!args) SWIG_fail;
4226 swig_obj[0] = args;
4227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4228 if (!SWIG_IsOK(res1)) {
4229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4230 }
4231 arg1 = reinterpret_cast< wxColour * >(argp1);
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 delete arg1;
d55e5bfc 4235
554f62e9
RD
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 resultobj = SWIG_Py_Void();
4240 return resultobj;
4241fail:
4242 return NULL;
d55e5bfc
RD
4243}
4244
4245
554f62e9
RD
4246SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4247 PyObject *resultobj = 0;
4248 wxColour *arg1 = (wxColour *) 0 ;
4249 byte result;
4250 void *argp1 = 0 ;
4251 int res1 = 0 ;
4252 PyObject *swig_obj[1] ;
4253
4254 if (!args) SWIG_fail;
4255 swig_obj[0] = args;
4256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4257 if (!SWIG_IsOK(res1)) {
4258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4259 }
4260 arg1 = reinterpret_cast< wxColour * >(argp1);
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 result = (byte)(arg1)->Red();
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4268 return resultobj;
4269fail:
4270 return NULL;
d55e5bfc
RD
4271}
4272
4273
554f62e9
RD
4274SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4275 PyObject *resultobj = 0;
4276 wxColour *arg1 = (wxColour *) 0 ;
4277 byte result;
4278 void *argp1 = 0 ;
4279 int res1 = 0 ;
4280 PyObject *swig_obj[1] ;
4281
4282 if (!args) SWIG_fail;
4283 swig_obj[0] = args;
4284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4285 if (!SWIG_IsOK(res1)) {
4286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4287 }
4288 arg1 = reinterpret_cast< wxColour * >(argp1);
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 result = (byte)(arg1)->Green();
4292 wxPyEndAllowThreads(__tstate);
4293 if (PyErr_Occurred()) SWIG_fail;
4294 }
4295 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4296 return resultobj;
4297fail:
4298 return NULL;
d55e5bfc
RD
4299}
4300
4301
554f62e9
RD
4302SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4303 PyObject *resultobj = 0;
4304 wxColour *arg1 = (wxColour *) 0 ;
4305 byte result;
4306 void *argp1 = 0 ;
4307 int res1 = 0 ;
4308 PyObject *swig_obj[1] ;
4309
4310 if (!args) SWIG_fail;
4311 swig_obj[0] = args;
4312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4313 if (!SWIG_IsOK(res1)) {
4314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4315 }
4316 arg1 = reinterpret_cast< wxColour * >(argp1);
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 result = (byte)(arg1)->Blue();
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4324 return resultobj;
4325fail:
4326 return NULL;
d55e5bfc
RD
4327}
4328
4329
fc46b7f3
RD
4330SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4331 PyObject *resultobj = 0;
4332 wxColour *arg1 = (wxColour *) 0 ;
4333 byte result;
4334 void *argp1 = 0 ;
4335 int res1 = 0 ;
4336 PyObject *swig_obj[1] ;
4337
4338 if (!args) SWIG_fail;
4339 swig_obj[0] = args;
4340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4341 if (!SWIG_IsOK(res1)) {
4342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4343 }
4344 arg1 = reinterpret_cast< wxColour * >(argp1);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 result = (byte)(arg1)->Alpha();
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4352 return resultobj;
4353fail:
4354 return NULL;
4355}
4356
4357
b39fe951 4358SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4359 PyObject *resultobj = 0;
4360 wxColour *arg1 = (wxColour *) 0 ;
4361 bool result;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 PyObject *swig_obj[1] ;
4365
4366 if (!args) SWIG_fail;
4367 swig_obj[0] = args;
4368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4369 if (!SWIG_IsOK(res1)) {
b39fe951 4370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4371 }
4372 arg1 = reinterpret_cast< wxColour * >(argp1);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4375 result = (bool)(arg1)->IsOk();
554f62e9
RD
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 {
4380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4381 }
4382 return resultobj;
4383fail:
4384 return NULL;
4385}
4386
4387
4388SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj = 0;
4390 wxColour *arg1 = (wxColour *) 0 ;
4391 byte arg2 ;
4392 byte arg3 ;
4393 byte arg4 ;
fc46b7f3 4394 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4395 void *argp1 = 0 ;
4396 int res1 = 0 ;
4397 unsigned char val2 ;
4398 int ecode2 = 0 ;
4399 unsigned char val3 ;
4400 int ecode3 = 0 ;
4401 unsigned char val4 ;
4402 int ecode4 = 0 ;
fc46b7f3
RD
4403 unsigned char val5 ;
4404 int ecode5 = 0 ;
554f62e9
RD
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 PyObject * obj2 = 0 ;
4408 PyObject * obj3 = 0 ;
fc46b7f3 4409 PyObject * obj4 = 0 ;
554f62e9 4410 char * kwnames[] = {
fc46b7f3 4411 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4412 };
4413
fc46b7f3 4414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4416 if (!SWIG_IsOK(res1)) {
4417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4418 }
4419 arg1 = reinterpret_cast< wxColour * >(argp1);
4420 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4421 if (!SWIG_IsOK(ecode2)) {
4422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4423 }
4424 arg2 = static_cast< byte >(val2);
4425 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4426 if (!SWIG_IsOK(ecode3)) {
4427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4428 }
4429 arg3 = static_cast< byte >(val3);
4430 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4431 if (!SWIG_IsOK(ecode4)) {
4432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4433 }
4434 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4435 if (obj4) {
4436 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4437 if (!SWIG_IsOK(ecode5)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4439 }
4440 arg5 = static_cast< byte >(val5);
4441 }
554f62e9
RD
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4444 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 resultobj = SWIG_Py_Void();
4449 return resultobj;
4450fail:
4451 return NULL;
4452}
4453
4454
4455SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4456 PyObject *resultobj = 0;
4457 wxColour *arg1 = (wxColour *) 0 ;
4458 unsigned long arg2 ;
4459 void *argp1 = 0 ;
4460 int res1 = 0 ;
4461 unsigned long val2 ;
4462 int ecode2 = 0 ;
4463 PyObject * obj0 = 0 ;
4464 PyObject * obj1 = 0 ;
4465 char * kwnames[] = {
4466 (char *) "self",(char *) "colRGB", NULL
4467 };
4468
4469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4471 if (!SWIG_IsOK(res1)) {
4472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4473 }
4474 arg1 = reinterpret_cast< wxColour * >(argp1);
4475 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4476 if (!SWIG_IsOK(ecode2)) {
4477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4478 }
4479 arg2 = static_cast< unsigned long >(val2);
4480 {
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 (arg1)->Set(arg2);
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 resultobj = SWIG_Py_Void();
4487 return resultobj;
4488fail:
4489 return NULL;
4490}
4491
4492
4493SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj = 0;
4495 wxColour *arg1 = (wxColour *) 0 ;
4496 wxString *arg2 = 0 ;
4497 void *argp1 = 0 ;
4498 int res1 = 0 ;
4499 bool temp2 = false ;
4500 PyObject * obj0 = 0 ;
4501 PyObject * obj1 = 0 ;
4502 char * kwnames[] = {
4503 (char *) "self",(char *) "colourName", NULL
4504 };
4505
4506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4508 if (!SWIG_IsOK(res1)) {
4509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4510 }
4511 arg1 = reinterpret_cast< wxColour * >(argp1);
4512 {
4513 arg2 = wxString_in_helper(obj1);
4514 if (arg2 == NULL) SWIG_fail;
4515 temp2 = true;
4516 }
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4519 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = SWIG_Py_Void();
4524 {
4525 if (temp2)
4526 delete arg2;
4527 }
4528 return resultobj;
4529fail:
4530 {
4531 if (temp2)
4532 delete arg2;
4533 }
4534 return NULL;
d55e5bfc
RD
4535}
4536
4537
f460c29d
RD
4538SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4539 PyObject *resultobj = 0;
4540 wxColour *arg1 = (wxColour *) 0 ;
4541 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4542 wxString result;
4543 void *argp1 = 0 ;
4544 int res1 = 0 ;
4545 long val2 ;
4546 int ecode2 = 0 ;
4547 PyObject * obj0 = 0 ;
4548 PyObject * obj1 = 0 ;
4549 char * kwnames[] = {
4550 (char *) "self",(char *) "flags", NULL
4551 };
4552
4553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4555 if (!SWIG_IsOK(res1)) {
4556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4557 }
4558 arg1 = reinterpret_cast< wxColour * >(argp1);
4559 if (obj1) {
4560 ecode2 = SWIG_AsVal_long(obj1, &val2);
4561 if (!SWIG_IsOK(ecode2)) {
4562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4563 }
4564 arg2 = static_cast< long >(val2);
4565 }
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 result = ((wxColour const *)arg1)->GetAsString(arg2);
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 {
4573#if wxUSE_UNICODE
4574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4575#else
4576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4577#endif
4578 }
4579 return resultobj;
4580fail:
4581 return NULL;
4582}
4583
4584
554f62e9
RD
4585SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4586 PyObject *resultobj = 0;
4587 wxColour *arg1 = (wxColour *) 0 ;
4588 long result;
4589 void *argp1 = 0 ;
4590 int res1 = 0 ;
4591 PyObject *swig_obj[1] ;
4592
4593 if (!args) SWIG_fail;
4594 swig_obj[0] = args;
4595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4596 if (!SWIG_IsOK(res1)) {
4597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4598 }
4599 arg1 = reinterpret_cast< wxColour * >(argp1);
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 result = (long)((wxColour const *)arg1)->GetPixel();
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 resultobj = SWIG_From_long(static_cast< long >(result));
4607 return resultobj;
4608fail:
4609 return NULL;
4610}
4611
4612
4613SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4614 PyObject *resultobj = 0;
4615 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4616 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4617 bool result;
4618 void *argp1 = 0 ;
4619 int res1 = 0 ;
554f62e9
RD
4620 PyObject * obj0 = 0 ;
4621 PyObject * obj1 = 0 ;
4622 char * kwnames[] = {
e9d6f3a4 4623 (char *) "self",(char *) "other", NULL
554f62e9
RD
4624 };
4625
4626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4628 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4630 }
4631 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4632 arg2 = obj1;
554f62e9 4633 {
e9d6f3a4 4634 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 {
4638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4639 }
4640 return resultobj;
4641fail:
4642 return NULL;
4643}
4644
4645
4646SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj = 0;
4648 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4649 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4650 bool result;
4651 void *argp1 = 0 ;
4652 int res1 = 0 ;
554f62e9
RD
4653 PyObject * obj0 = 0 ;
4654 PyObject * obj1 = 0 ;
4655 char * kwnames[] = {
e9d6f3a4 4656 (char *) "self",(char *) "other", NULL
554f62e9
RD
4657 };
4658
4659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4661 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4663 }
4664 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4665 arg2 = obj1;
554f62e9 4666 {
e9d6f3a4 4667 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4672 }
4673 return resultobj;
4674fail:
4675 return NULL;
d55e5bfc
RD
4676}
4677
4678
fc46b7f3 4679SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4680 PyObject *resultobj = 0;
4681 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4682 bool arg2 = (bool) false ;
554f62e9
RD
4683 PyObject *result = 0 ;
4684 void *argp1 = 0 ;
4685 int res1 = 0 ;
fc46b7f3
RD
4686 bool val2 ;
4687 int ecode2 = 0 ;
4688 PyObject * obj0 = 0 ;
4689 PyObject * obj1 = 0 ;
4690 char * kwnames[] = {
4691 (char *) "self",(char *) "includeAlpha", NULL
4692 };
554f62e9 4693
fc46b7f3
RD
4694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4696 if (!SWIG_IsOK(res1)) {
4697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4698 }
4699 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4700 if (obj1) {
4701 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4702 if (!SWIG_IsOK(ecode2)) {
4703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4704 }
4705 arg2 = static_cast< bool >(val2);
4706 }
554f62e9 4707 {
fc46b7f3 4708 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 resultobj = result;
4712 return resultobj;
4713fail:
4714 return NULL;
d55e5bfc
RD
4715}
4716
4717
554f62e9
RD
4718SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4719 PyObject *resultobj = 0;
4720 wxColour *arg1 = (wxColour *) 0 ;
4721 unsigned long result;
4722 void *argp1 = 0 ;
4723 int res1 = 0 ;
4724 PyObject *swig_obj[1] ;
4725
4726 if (!args) SWIG_fail;
4727 swig_obj[0] = args;
4728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4729 if (!SWIG_IsOK(res1)) {
4730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4731 }
4732 arg1 = reinterpret_cast< wxColour * >(argp1);
4733 {
554f62e9 4734 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4738 return resultobj;
4739fail:
4740 return NULL;
4741}
4742
4743
4744SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4745 PyObject *obj;
4746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4747 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4748 return SWIG_Py_Void();
4749}
4750
4751SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4752 return SWIG_Python_InitShadowInstance(args);
4753}
4754
4755SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj = 0;
4757 int arg1 ;
4758 unsigned char *arg2 = (unsigned char *) 0 ;
4759 unsigned char *arg3 = (unsigned char *) 0 ;
4760 unsigned char *arg4 = (unsigned char *) 0 ;
4761 wxPalette *result = 0 ;
4762 int val1 ;
4763 int ecode1 = 0 ;
4764 void *argp2 = 0 ;
4765 int res2 = 0 ;
4766 void *argp3 = 0 ;
4767 int res3 = 0 ;
4768 void *argp4 = 0 ;
4769 int res4 = 0 ;
4770 PyObject * obj0 = 0 ;
4771 PyObject * obj1 = 0 ;
4772 PyObject * obj2 = 0 ;
4773 PyObject * obj3 = 0 ;
4774 char * kwnames[] = {
4775 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4776 };
4777
4778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4779 ecode1 = SWIG_AsVal_int(obj0, &val1);
4780 if (!SWIG_IsOK(ecode1)) {
4781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4782 }
4783 arg1 = static_cast< int >(val1);
4784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4785 if (!SWIG_IsOK(res2)) {
4786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4787 }
4788 arg2 = reinterpret_cast< unsigned char * >(argp2);
4789 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4790 if (!SWIG_IsOK(res3)) {
4791 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4792 }
4793 arg3 = reinterpret_cast< unsigned char * >(argp3);
4794 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4795 if (!SWIG_IsOK(res4)) {
4796 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4797 }
4798 arg4 = reinterpret_cast< unsigned char * >(argp4);
4799 {
4800 if (!wxPyCheckForApp()) SWIG_fail;
4801 PyThreadState* __tstate = wxPyBeginAllowThreads();
4802 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4803 wxPyEndAllowThreads(__tstate);
4804 if (PyErr_Occurred()) SWIG_fail;
4805 }
4806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4807 return resultobj;
4808fail:
4809 return NULL;
093d3ff1
RD
4810}
4811
4812
554f62e9
RD
4813SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4814 PyObject *resultobj = 0;
4815 wxPalette *arg1 = (wxPalette *) 0 ;
4816 void *argp1 = 0 ;
4817 int res1 = 0 ;
4818 PyObject *swig_obj[1] ;
4819
4820 if (!args) SWIG_fail;
4821 swig_obj[0] = args;
4822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4823 if (!SWIG_IsOK(res1)) {
4824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4825 }
4826 arg1 = reinterpret_cast< wxPalette * >(argp1);
4827 {
4828 PyThreadState* __tstate = wxPyBeginAllowThreads();
4829 delete arg1;
093d3ff1 4830
554f62e9
RD
4831 wxPyEndAllowThreads(__tstate);
4832 if (PyErr_Occurred()) SWIG_fail;
4833 }
4834 resultobj = SWIG_Py_Void();
4835 return resultobj;
4836fail:
4837 return NULL;
4838}
4839
4840
4841SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4842 PyObject *resultobj = 0;
4843 wxPalette *arg1 = (wxPalette *) 0 ;
4844 byte arg2 ;
4845 byte arg3 ;
4846 byte arg4 ;
4847 int result;
4848 void *argp1 = 0 ;
4849 int res1 = 0 ;
4850 unsigned char val2 ;
4851 int ecode2 = 0 ;
4852 unsigned char val3 ;
4853 int ecode3 = 0 ;
4854 unsigned char val4 ;
4855 int ecode4 = 0 ;
4856 PyObject * obj0 = 0 ;
4857 PyObject * obj1 = 0 ;
4858 PyObject * obj2 = 0 ;
4859 PyObject * obj3 = 0 ;
4860 char * kwnames[] = {
4861 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4862 };
4863
4864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4866 if (!SWIG_IsOK(res1)) {
4867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4868 }
4869 arg1 = reinterpret_cast< wxPalette * >(argp1);
4870 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4871 if (!SWIG_IsOK(ecode2)) {
4872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4873 }
4874 arg2 = static_cast< byte >(val2);
4875 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4876 if (!SWIG_IsOK(ecode3)) {
4877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4878 }
4879 arg3 = static_cast< byte >(val3);
4880 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4881 if (!SWIG_IsOK(ecode4)) {
4882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4883 }
4884 arg4 = static_cast< byte >(val4);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_From_int(static_cast< int >(result));
4892 return resultobj;
4893fail:
4894 return NULL;
4895}
4896
4897
4898SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4899 PyObject *resultobj = 0;
4900 wxPalette *arg1 = (wxPalette *) 0 ;
4901 int arg2 ;
4902 byte *arg3 = (byte *) 0 ;
4903 byte *arg4 = (byte *) 0 ;
4904 byte *arg5 = (byte *) 0 ;
4905 bool result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 int val2 ;
4909 int ecode2 = 0 ;
4910 byte temp3 ;
4911 int res3 = SWIG_TMPOBJ ;
4912 byte temp4 ;
4913 int res4 = SWIG_TMPOBJ ;
4914 byte temp5 ;
4915 int res5 = SWIG_TMPOBJ ;
4916 PyObject * obj0 = 0 ;
4917 PyObject * obj1 = 0 ;
4918 char * kwnames[] = {
4919 (char *) "self",(char *) "pixel", NULL
4920 };
4921
4922 arg3 = &temp3;
4923 arg4 = &temp4;
4924 arg5 = &temp5;
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4927 if (!SWIG_IsOK(res1)) {
4928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4929 }
4930 arg1 = reinterpret_cast< wxPalette * >(argp1);
4931 ecode2 = SWIG_AsVal_int(obj1, &val2);
4932 if (!SWIG_IsOK(ecode2)) {
4933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4934 }
4935 arg2 = static_cast< int >(val2);
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 {
4943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4944 }
4945 if (SWIG_IsTmpObj(res3)) {
4946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4947 } else {
4948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4950 }
4951 if (SWIG_IsTmpObj(res4)) {
4952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4953 } else {
4954 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4956 }
4957 if (SWIG_IsTmpObj(res5)) {
4958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4959 } else {
4960 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4962 }
4963 return resultobj;
4964fail:
4965 return NULL;
d55e5bfc
RD
4966}
4967
4968
554f62e9
RD
4969SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxPalette *arg1 = (wxPalette *) 0 ;
4972 int result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4982 }
4983 arg1 = reinterpret_cast< wxPalette * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 resultobj = SWIG_From_int(static_cast< int >(result));
4991 return resultobj;
4992fail:
4993 return NULL;
d55e5bfc
RD
4994}
4995
4996
b39fe951 4997SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4998 PyObject *resultobj = 0;
4999 wxPalette *arg1 = (wxPalette *) 0 ;
5000 bool result;
5001 void *argp1 = 0 ;
5002 int res1 = 0 ;
5003 PyObject *swig_obj[1] ;
5004
5005 if (!args) SWIG_fail;
5006 swig_obj[0] = args;
5007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5008 if (!SWIG_IsOK(res1)) {
b39fe951 5009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
5010 }
5011 arg1 = reinterpret_cast< wxPalette * >(argp1);
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5014 result = (bool)(arg1)->IsOk();
554f62e9
RD
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 {
5019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5020 }
5021 return resultobj;
5022fail:
5023 return NULL;
5024}
5025
5026
5027SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5028 PyObject *obj;
5029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5030 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5031 return SWIG_Py_Void();
5032}
5033
5034SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5035 return SWIG_Python_InitShadowInstance(args);
5036}
5037
5038SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj = 0;
5040 wxColour *arg1 = 0 ;
5041 int arg2 = (int) 1 ;
5042 int arg3 = (int) wxSOLID ;
5043 wxPen *result = 0 ;
5044 wxColour temp1 ;
5045 int val2 ;
5046 int ecode2 = 0 ;
5047 int val3 ;
5048 int ecode3 = 0 ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 PyObject * obj2 = 0 ;
5052 char * kwnames[] = {
5053 (char *) "colour",(char *) "width",(char *) "style", NULL
5054 };
5055
5056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5057 {
5058 arg1 = &temp1;
5059 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5060 }
5061 if (obj1) {
5062 ecode2 = SWIG_AsVal_int(obj1, &val2);
5063 if (!SWIG_IsOK(ecode2)) {
5064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5065 }
5066 arg2 = static_cast< int >(val2);
5067 }
5068 if (obj2) {
5069 ecode3 = SWIG_AsVal_int(obj2, &val3);
5070 if (!SWIG_IsOK(ecode3)) {
5071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5072 }
5073 arg3 = static_cast< int >(val3);
5074 }
5075 {
5076 if (!wxPyCheckForApp()) SWIG_fail;
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5083 return resultobj;
5084fail:
5085 return NULL;
d55e5bfc
RD
5086}
5087
5088
554f62e9
RD
5089SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5090 PyObject *resultobj = 0;
5091 wxPen *arg1 = (wxPen *) 0 ;
5092 void *argp1 = 0 ;
5093 int res1 = 0 ;
5094 PyObject *swig_obj[1] ;
5095
5096 if (!args) SWIG_fail;
5097 swig_obj[0] = args;
5098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5099 if (!SWIG_IsOK(res1)) {
5100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5101 }
5102 arg1 = reinterpret_cast< wxPen * >(argp1);
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 delete arg1;
d55e5bfc 5106
554f62e9
RD
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 resultobj = SWIG_Py_Void();
5111 return resultobj;
5112fail:
5113 return NULL;
d55e5bfc
RD
5114}
5115
5116
554f62e9
RD
5117SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5118 PyObject *resultobj = 0;
5119 wxPen *arg1 = (wxPen *) 0 ;
5120 int result;
5121 void *argp1 = 0 ;
5122 int res1 = 0 ;
5123 PyObject *swig_obj[1] ;
5124
5125 if (!args) SWIG_fail;
5126 swig_obj[0] = args;
5127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5128 if (!SWIG_IsOK(res1)) {
5129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5130 }
5131 arg1 = reinterpret_cast< wxPen * >(argp1);
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 result = (int)(arg1)->GetCap();
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 resultobj = SWIG_From_int(static_cast< int >(result));
5139 return resultobj;
5140fail:
5141 return NULL;
d55e5bfc
RD
5142}
5143
5144
554f62e9
RD
5145SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5146 PyObject *resultobj = 0;
5147 wxPen *arg1 = (wxPen *) 0 ;
5148 wxColour result;
5149 void *argp1 = 0 ;
5150 int res1 = 0 ;
5151 PyObject *swig_obj[1] ;
5152
5153 if (!args) SWIG_fail;
5154 swig_obj[0] = args;
5155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5156 if (!SWIG_IsOK(res1)) {
5157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5158 }
5159 arg1 = reinterpret_cast< wxPen * >(argp1);
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = (arg1)->GetColour();
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5167 return resultobj;
5168fail:
5169 return NULL;
d55e5bfc
RD
5170}
5171
5172
554f62e9
RD
5173SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5174 PyObject *resultobj = 0;
5175 wxPen *arg1 = (wxPen *) 0 ;
5176 int result;
5177 void *argp1 = 0 ;
5178 int res1 = 0 ;
5179 PyObject *swig_obj[1] ;
5180
5181 if (!args) SWIG_fail;
5182 swig_obj[0] = args;
5183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5186 }
5187 arg1 = reinterpret_cast< wxPen * >(argp1);
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = (int)(arg1)->GetJoin();
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = SWIG_From_int(static_cast< int >(result));
5195 return resultobj;
5196fail:
5197 return NULL;
d55e5bfc
RD
5198}
5199
5200
554f62e9
RD
5201SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5202 PyObject *resultobj = 0;
5203 wxPen *arg1 = (wxPen *) 0 ;
5204 int result;
5205 void *argp1 = 0 ;
5206 int res1 = 0 ;
5207 PyObject *swig_obj[1] ;
5208
5209 if (!args) SWIG_fail;
5210 swig_obj[0] = args;
5211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5212 if (!SWIG_IsOK(res1)) {
5213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5214 }
5215 arg1 = reinterpret_cast< wxPen * >(argp1);
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 result = (int)(arg1)->GetStyle();
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
5222 resultobj = SWIG_From_int(static_cast< int >(result));
5223 return resultobj;
5224fail:
5225 return NULL;
d55e5bfc
RD
5226}
5227
5228
554f62e9
RD
5229SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230 PyObject *resultobj = 0;
5231 wxPen *arg1 = (wxPen *) 0 ;
5232 int result;
5233 void *argp1 = 0 ;
5234 int res1 = 0 ;
5235 PyObject *swig_obj[1] ;
5236
5237 if (!args) SWIG_fail;
5238 swig_obj[0] = args;
5239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5240 if (!SWIG_IsOK(res1)) {
5241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5242 }
5243 arg1 = reinterpret_cast< wxPen * >(argp1);
5244 {
5245 PyThreadState* __tstate = wxPyBeginAllowThreads();
5246 result = (int)(arg1)->GetWidth();
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 resultobj = SWIG_From_int(static_cast< int >(result));
5251 return resultobj;
5252fail:
5253 return NULL;
d55e5bfc
RD
5254}
5255
5256
b39fe951 5257SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5258 PyObject *resultobj = 0;
5259 wxPen *arg1 = (wxPen *) 0 ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 PyObject *swig_obj[1] ;
5264
5265 if (!args) SWIG_fail;
5266 swig_obj[0] = args;
5267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5268 if (!SWIG_IsOK(res1)) {
b39fe951 5269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5270 }
5271 arg1 = reinterpret_cast< wxPen * >(argp1);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5274 result = (bool)(arg1)->IsOk();
554f62e9
RD
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 {
5279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5280 }
5281 return resultobj;
5282fail:
5283 return NULL;
5284}
5285
5286
5287SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj = 0;
5289 wxPen *arg1 = (wxPen *) 0 ;
5290 int arg2 ;
5291 void *argp1 = 0 ;
5292 int res1 = 0 ;
5293 int val2 ;
5294 int ecode2 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char * kwnames[] = {
5298 (char *) "self",(char *) "cap_style", NULL
5299 };
5300
5301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5303 if (!SWIG_IsOK(res1)) {
5304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5305 }
5306 arg1 = reinterpret_cast< wxPen * >(argp1);
5307 ecode2 = SWIG_AsVal_int(obj1, &val2);
5308 if (!SWIG_IsOK(ecode2)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5310 }
5311 arg2 = static_cast< int >(val2);
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 (arg1)->SetCap(arg2);
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 resultobj = SWIG_Py_Void();
5319 return resultobj;
5320fail:
5321 return NULL;
5322}
5323
5324
5325SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5326 PyObject *resultobj = 0;
5327 wxPen *arg1 = (wxPen *) 0 ;
5328 wxColour *arg2 = 0 ;
5329 void *argp1 = 0 ;
5330 int res1 = 0 ;
5331 wxColour temp2 ;
5332 PyObject * obj0 = 0 ;
5333 PyObject * obj1 = 0 ;
5334 char * kwnames[] = {
5335 (char *) "self",(char *) "colour", NULL
5336 };
5337
5338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5340 if (!SWIG_IsOK(res1)) {
5341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5342 }
5343 arg1 = reinterpret_cast< wxPen * >(argp1);
5344 {
5345 arg2 = &temp2;
5346 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5347 }
5348 {
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 (arg1)->SetColour(*arg2);
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = SWIG_Py_Void();
5355 return resultobj;
5356fail:
5357 return NULL;
5358}
5359
5360
5361SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj = 0;
5363 wxPen *arg1 = (wxPen *) 0 ;
5364 int arg2 ;
5365 void *argp1 = 0 ;
5366 int res1 = 0 ;
5367 int val2 ;
5368 int ecode2 = 0 ;
5369 PyObject * obj0 = 0 ;
5370 PyObject * obj1 = 0 ;
5371 char * kwnames[] = {
5372 (char *) "self",(char *) "join_style", NULL
5373 };
5374
5375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5377 if (!SWIG_IsOK(res1)) {
5378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5379 }
5380 arg1 = reinterpret_cast< wxPen * >(argp1);
5381 ecode2 = SWIG_AsVal_int(obj1, &val2);
5382 if (!SWIG_IsOK(ecode2)) {
5383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5384 }
5385 arg2 = static_cast< int >(val2);
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 (arg1)->SetJoin(arg2);
5389 wxPyEndAllowThreads(__tstate);
5390 if (PyErr_Occurred()) SWIG_fail;
5391 }
5392 resultobj = SWIG_Py_Void();
5393 return resultobj;
5394fail:
5395 return NULL;
5396}
5397
5398
5399SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5400 PyObject *resultobj = 0;
5401 wxPen *arg1 = (wxPen *) 0 ;
5402 int arg2 ;
5403 void *argp1 = 0 ;
5404 int res1 = 0 ;
5405 int val2 ;
5406 int ecode2 = 0 ;
5407 PyObject * obj0 = 0 ;
5408 PyObject * obj1 = 0 ;
5409 char * kwnames[] = {
5410 (char *) "self",(char *) "style", NULL
5411 };
5412
5413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5415 if (!SWIG_IsOK(res1)) {
5416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5417 }
5418 arg1 = reinterpret_cast< wxPen * >(argp1);
5419 ecode2 = SWIG_AsVal_int(obj1, &val2);
5420 if (!SWIG_IsOK(ecode2)) {
5421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5422 }
5423 arg2 = static_cast< int >(val2);
5424 {
5425 PyThreadState* __tstate = wxPyBeginAllowThreads();
5426 (arg1)->SetStyle(arg2);
5427 wxPyEndAllowThreads(__tstate);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 }
5430 resultobj = SWIG_Py_Void();
5431 return resultobj;
5432fail:
5433 return NULL;
5434}
5435
5436
5437SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5438 PyObject *resultobj = 0;
5439 wxPen *arg1 = (wxPen *) 0 ;
5440 int arg2 ;
5441 void *argp1 = 0 ;
5442 int res1 = 0 ;
5443 int val2 ;
5444 int ecode2 = 0 ;
5445 PyObject * obj0 = 0 ;
5446 PyObject * obj1 = 0 ;
5447 char * kwnames[] = {
5448 (char *) "self",(char *) "width", NULL
5449 };
5450
5451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5453 if (!SWIG_IsOK(res1)) {
5454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5455 }
5456 arg1 = reinterpret_cast< wxPen * >(argp1);
5457 ecode2 = SWIG_AsVal_int(obj1, &val2);
5458 if (!SWIG_IsOK(ecode2)) {
5459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5460 }
5461 arg2 = static_cast< int >(val2);
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 (arg1)->SetWidth(arg2);
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 resultobj = SWIG_Py_Void();
5469 return resultobj;
5470fail:
5471 return NULL;
5472}
5473
5474
5475SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5476 PyObject *resultobj = 0;
5477 wxPen *arg1 = (wxPen *) 0 ;
5478 int arg2 ;
5479 wxDash *arg3 = (wxDash *) 0 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 char * kwnames[] = {
5485 (char *) "self",(char *) "dashes", NULL
5486 };
5487
5488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5490 if (!SWIG_IsOK(res1)) {
5491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5492 }
5493 arg1 = reinterpret_cast< wxPen * >(argp1);
5494 {
5495 arg2 = PyList_Size(obj1);
5496 arg3 = (wxDash*)byte_LIST_helper(obj1);
5497 if (arg3 == NULL) SWIG_fail;
5498 }
5499 {
5500 PyThreadState* __tstate = wxPyBeginAllowThreads();
5501 (arg1)->SetDashes(arg2,arg3);
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 resultobj = SWIG_Py_Void();
5506 {
5507 if (arg3) delete [] arg3;
5508 }
5509 return resultobj;
5510fail:
5511 {
5512 if (arg3) delete [] arg3;
5513 }
5514 return NULL;
d55e5bfc
RD
5515}
5516
5517
554f62e9
RD
5518SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5519 PyObject *resultobj = 0;
5520 wxPen *arg1 = (wxPen *) 0 ;
5521 PyObject *result = 0 ;
5522 void *argp1 = 0 ;
5523 int res1 = 0 ;
5524 PyObject *swig_obj[1] ;
5525
5526 if (!args) SWIG_fail;
5527 swig_obj[0] = args;
5528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5529 if (!SWIG_IsOK(res1)) {
5530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5531 }
5532 arg1 = reinterpret_cast< wxPen * >(argp1);
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (PyObject *)wxPen_GetDashes(arg1);
5536 wxPyEndAllowThreads(__tstate);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 resultobj = result;
5540 return resultobj;
5541fail:
5542 return NULL;
5543}
5544
5545
5546SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj = 0;
5548 wxPen *arg1 = (wxPen *) 0 ;
5549 PyObject *arg2 = (PyObject *) 0 ;
5550 PyObject *arg3 = (PyObject *) 0 ;
5551 void *argp1 = 0 ;
5552 int res1 = 0 ;
5553 PyObject * obj0 = 0 ;
5554 PyObject * obj1 = 0 ;
5555 PyObject * obj2 = 0 ;
5556 char * kwnames[] = {
5557 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5558 };
5559
5560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5562 if (!SWIG_IsOK(res1)) {
5563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5564 }
5565 arg1 = reinterpret_cast< wxPen * >(argp1);
5566 arg2 = obj1;
5567 arg3 = obj2;
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 wxPen__SetDashes(arg1,arg2,arg3);
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 }
5574 resultobj = SWIG_Py_Void();
5575 return resultobj;
5576fail:
5577 return NULL;
d55e5bfc
RD
5578}
5579
5580
554f62e9
RD
5581SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5582 PyObject *resultobj = 0;
5583 wxPen *arg1 = (wxPen *) 0 ;
5584 int result;
5585 void *argp1 = 0 ;
5586 int res1 = 0 ;
5587 PyObject *swig_obj[1] ;
5588
5589 if (!args) SWIG_fail;
5590 swig_obj[0] = args;
5591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5592 if (!SWIG_IsOK(res1)) {
5593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5594 }
5595 arg1 = reinterpret_cast< wxPen * >(argp1);
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 result = (int)((wxPen const *)arg1)->GetDashCount();
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 resultobj = SWIG_From_int(static_cast< int >(result));
5603 return resultobj;
5604fail:
5605 return NULL;
d55e5bfc
RD
5606}
5607
5608
554f62e9
RD
5609SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *resultobj = 0;
5611 wxPen *arg1 = (wxPen *) 0 ;
5612 wxBitmap *result = 0 ;
5613 void *argp1 = 0 ;
5614 int res1 = 0 ;
5615 PyObject *swig_obj[1] ;
5616
5617 if (!args) SWIG_fail;
5618 swig_obj[0] = args;
5619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5620 if (!SWIG_IsOK(res1)) {
5621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5622 }
5623 arg1 = reinterpret_cast< wxPen * >(argp1);
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (wxBitmap *)(arg1)->GetStipple();
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5631 return resultobj;
5632fail:
5633 return NULL;
5634}
5635
5636
5637SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj = 0;
5639 wxPen *arg1 = (wxPen *) 0 ;
5640 wxBitmap *arg2 = 0 ;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 void *argp2 = 0 ;
5644 int res2 = 0 ;
5645 PyObject * obj0 = 0 ;
5646 PyObject * obj1 = 0 ;
5647 char * kwnames[] = {
5648 (char *) "self",(char *) "stipple", NULL
5649 };
5650
5651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5653 if (!SWIG_IsOK(res1)) {
5654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5655 }
5656 arg1 = reinterpret_cast< wxPen * >(argp1);
5657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5658 if (!SWIG_IsOK(res2)) {
5659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5660 }
5661 if (!argp2) {
5662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5663 }
5664 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 (arg1)->SetStipple(*arg2);
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_Py_Void();
5672 return resultobj;
5673fail:
5674 return NULL;
5675}
5676
5677
5678SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj = 0;
5680 wxPen *arg1 = (wxPen *) 0 ;
5681 wxPen *arg2 = (wxPen *) 0 ;
5682 bool result;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 void *argp2 = 0 ;
5686 int res2 = 0 ;
5687 PyObject * obj0 = 0 ;
5688 PyObject * obj1 = 0 ;
5689 char * kwnames[] = {
5690 (char *) "self",(char *) "other", NULL
5691 };
5692
5693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5695 if (!SWIG_IsOK(res1)) {
5696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5697 }
5698 arg1 = reinterpret_cast< wxPen * >(argp1);
5699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5700 if (!SWIG_IsOK(res2)) {
5701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5702 }
5703 arg2 = reinterpret_cast< wxPen * >(argp2);
5704 {
5705 PyThreadState* __tstate = wxPyBeginAllowThreads();
5706 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 {
5711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5712 }
5713 return resultobj;
5714fail:
5715 return NULL;
5716}
5717
5718
5719SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj = 0;
5721 wxPen *arg1 = (wxPen *) 0 ;
5722 wxPen *arg2 = (wxPen *) 0 ;
5723 bool result;
5724 void *argp1 = 0 ;
5725 int res1 = 0 ;
5726 void *argp2 = 0 ;
5727 int res2 = 0 ;
5728 PyObject * obj0 = 0 ;
5729 PyObject * obj1 = 0 ;
5730 char * kwnames[] = {
5731 (char *) "self",(char *) "other", NULL
5732 };
5733
5734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5738 }
5739 arg1 = reinterpret_cast< wxPen * >(argp1);
5740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5741 if (!SWIG_IsOK(res2)) {
5742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5743 }
5744 arg2 = reinterpret_cast< wxPen * >(argp2);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 {
5752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5753 }
5754 return resultobj;
5755fail:
5756 return NULL;
d55e5bfc
RD
5757}
5758
5759
554f62e9
RD
5760SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5761 PyObject *obj;
5762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5763 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5764 return SWIG_Py_Void();
d55e5bfc
RD
5765}
5766
554f62e9
RD
5767SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5768 return SWIG_Python_InitShadowInstance(args);
5769}
d55e5bfc 5770
554f62e9
RD
5771SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5772 PyObject *resultobj = 0;
5773 wxColour *arg1 = 0 ;
5774 int arg2 = (int) wxSOLID ;
5775 wxBrush *result = 0 ;
5776 wxColour temp1 ;
5777 int val2 ;
5778 int ecode2 = 0 ;
5779 PyObject * obj0 = 0 ;
5780 PyObject * obj1 = 0 ;
5781 char * kwnames[] = {
5782 (char *) "colour",(char *) "style", NULL
5783 };
5784
5785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5786 {
5787 arg1 = &temp1;
5788 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5789 }
5790 if (obj1) {
5791 ecode2 = SWIG_AsVal_int(obj1, &val2);
5792 if (!SWIG_IsOK(ecode2)) {
5793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5794 }
5795 arg2 = static_cast< int >(val2);
5796 }
5797 {
5798 if (!wxPyCheckForApp()) SWIG_fail;
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5805 return resultobj;
5806fail:
5807 return NULL;
5808}
5809
5810
5811SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj = 0;
5813 wxBitmap *arg1 = 0 ;
5814 wxBrush *result = 0 ;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 PyObject * obj0 = 0 ;
5818 char * kwnames[] = {
5819 (char *) "stippleBitmap", NULL
5820 };
5821
5822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5823 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5824 if (!SWIG_IsOK(res1)) {
5825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5826 }
5827 if (!argp1) {
5828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5829 }
5830 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5831 {
5832 if (!wxPyCheckForApp()) SWIG_fail;
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5839 return resultobj;
5840fail:
5841 return NULL;
d55e5bfc
RD
5842}
5843
5844
554f62e9
RD
5845SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5846 PyObject *resultobj = 0;
5847 wxBrush *arg1 = (wxBrush *) 0 ;
5848 void *argp1 = 0 ;
5849 int res1 = 0 ;
5850 PyObject *swig_obj[1] ;
5851
5852 if (!args) SWIG_fail;
5853 swig_obj[0] = args;
5854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5855 if (!SWIG_IsOK(res1)) {
5856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5857 }
5858 arg1 = reinterpret_cast< wxBrush * >(argp1);
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 delete arg1;
d55e5bfc 5862
554f62e9
RD
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 resultobj = SWIG_Py_Void();
5867 return resultobj;
5868fail:
5869 return NULL;
5870}
5871
5872
5873SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj = 0;
5875 wxBrush *arg1 = (wxBrush *) 0 ;
5876 wxColour *arg2 = 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 wxColour temp2 ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char * kwnames[] = {
5883 (char *) "self",(char *) "col", NULL
5884 };
5885
5886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5888 if (!SWIG_IsOK(res1)) {
5889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5890 }
5891 arg1 = reinterpret_cast< wxBrush * >(argp1);
5892 {
5893 arg2 = &temp2;
5894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5895 }
5896 {
5897 PyThreadState* __tstate = wxPyBeginAllowThreads();
5898 (arg1)->SetColour((wxColour const &)*arg2);
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 resultobj = SWIG_Py_Void();
5903 return resultobj;
5904fail:
5905 return NULL;
5906}
5907
5908
5909SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj = 0;
5911 wxBrush *arg1 = (wxBrush *) 0 ;
5912 int arg2 ;
5913 void *argp1 = 0 ;
5914 int res1 = 0 ;
5915 int val2 ;
5916 int ecode2 = 0 ;
5917 PyObject * obj0 = 0 ;
5918 PyObject * obj1 = 0 ;
5919 char * kwnames[] = {
5920 (char *) "self",(char *) "style", NULL
5921 };
5922
5923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5925 if (!SWIG_IsOK(res1)) {
5926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5927 }
5928 arg1 = reinterpret_cast< wxBrush * >(argp1);
5929 ecode2 = SWIG_AsVal_int(obj1, &val2);
5930 if (!SWIG_IsOK(ecode2)) {
5931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5932 }
5933 arg2 = static_cast< int >(val2);
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 (arg1)->SetStyle(arg2);
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 resultobj = SWIG_Py_Void();
5941 return resultobj;
5942fail:
5943 return NULL;
5944}
5945
5946
5947SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj = 0;
5949 wxBrush *arg1 = (wxBrush *) 0 ;
5950 wxBitmap *arg2 = 0 ;
5951 void *argp1 = 0 ;
5952 int res1 = 0 ;
5953 void *argp2 = 0 ;
5954 int res2 = 0 ;
5955 PyObject * obj0 = 0 ;
5956 PyObject * obj1 = 0 ;
5957 char * kwnames[] = {
5958 (char *) "self",(char *) "stipple", NULL
5959 };
5960
5961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5963 if (!SWIG_IsOK(res1)) {
5964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5965 }
5966 arg1 = reinterpret_cast< wxBrush * >(argp1);
5967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5968 if (!SWIG_IsOK(res2)) {
5969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5970 }
5971 if (!argp2) {
5972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5973 }
5974 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 (arg1)->SetStipple((wxBitmap const &)*arg2);
5978 wxPyEndAllowThreads(__tstate);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
5981 resultobj = SWIG_Py_Void();
5982 return resultobj;
5983fail:
5984 return NULL;
d55e5bfc
RD
5985}
5986
5987
554f62e9
RD
5988SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 PyObject *resultobj = 0;
5990 wxBrush *arg1 = (wxBrush *) 0 ;
5991 wxColour result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
6001 }
6002 arg1 = reinterpret_cast< wxBrush * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = ((wxBrush const *)arg1)->GetColour();
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6010 return resultobj;
6011fail:
6012 return NULL;
d55e5bfc
RD
6013}
6014
6015
554f62e9
RD
6016SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6017 PyObject *resultobj = 0;
6018 wxBrush *arg1 = (wxBrush *) 0 ;
6019 int result;
6020 void *argp1 = 0 ;
6021 int res1 = 0 ;
6022 PyObject *swig_obj[1] ;
6023
6024 if (!args) SWIG_fail;
6025 swig_obj[0] = args;
6026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6027 if (!SWIG_IsOK(res1)) {
6028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6029 }
6030 arg1 = reinterpret_cast< wxBrush * >(argp1);
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (int)((wxBrush const *)arg1)->GetStyle();
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_From_int(static_cast< int >(result));
6038 return resultobj;
6039fail:
6040 return NULL;
d55e5bfc
RD
6041}
6042
6043
554f62e9
RD
6044SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6045 PyObject *resultobj = 0;
6046 wxBrush *arg1 = (wxBrush *) 0 ;
6047 wxBitmap *result = 0 ;
6048 void *argp1 = 0 ;
6049 int res1 = 0 ;
6050 PyObject *swig_obj[1] ;
6051
6052 if (!args) SWIG_fail;
6053 swig_obj[0] = args;
6054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6055 if (!SWIG_IsOK(res1)) {
6056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6057 }
6058 arg1 = reinterpret_cast< wxBrush * >(argp1);
6059 {
6060 PyThreadState* __tstate = wxPyBeginAllowThreads();
6061 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6066 return resultobj;
6067fail:
6068 return NULL;
d55e5bfc
RD
6069}
6070
6071
554f62e9
RD
6072SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6073 PyObject *resultobj = 0;
6074 wxBrush *arg1 = (wxBrush *) 0 ;
6075 bool result;
6076 void *argp1 = 0 ;
6077 int res1 = 0 ;
6078 PyObject *swig_obj[1] ;
6079
6080 if (!args) SWIG_fail;
6081 swig_obj[0] = args;
6082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6083 if (!SWIG_IsOK(res1)) {
6084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6085 }
6086 arg1 = reinterpret_cast< wxBrush * >(argp1);
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 result = (bool)((wxBrush const *)arg1)->IsHatch();
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 {
6094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6095 }
6096 return resultobj;
6097fail:
6098 return NULL;
f78cc896
RD
6099}
6100
6101
b39fe951 6102SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6103 PyObject *resultobj = 0;
6104 wxBrush *arg1 = (wxBrush *) 0 ;
6105 bool result;
6106 void *argp1 = 0 ;
6107 int res1 = 0 ;
6108 PyObject *swig_obj[1] ;
6109
6110 if (!args) SWIG_fail;
6111 swig_obj[0] = args;
6112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6113 if (!SWIG_IsOK(res1)) {
b39fe951 6114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6115 }
6116 arg1 = reinterpret_cast< wxBrush * >(argp1);
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6119 result = (bool)(arg1)->IsOk();
554f62e9
RD
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 {
6124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6125 }
6126 return resultobj;
6127fail:
6128 return NULL;
d55e5bfc
RD
6129}
6130
6131
554f62e9
RD
6132SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6133 PyObject *obj;
6134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6135 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6136 return SWIG_Py_Void();
d55e5bfc
RD
6137}
6138
554f62e9
RD
6139SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 return SWIG_Python_InitShadowInstance(args);
6141}
d55e5bfc 6142
554f62e9
RD
6143SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj = 0;
6145 wxString *arg1 = 0 ;
6146 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6147 wxBitmap *result = 0 ;
6148 bool temp1 = false ;
6149 int val2 ;
6150 int ecode2 = 0 ;
6151 PyObject * obj0 = 0 ;
6152 PyObject * obj1 = 0 ;
6153 char * kwnames[] = {
6154 (char *) "name",(char *) "type", NULL
6155 };
6156
6157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6158 {
6159 arg1 = wxString_in_helper(obj0);
6160 if (arg1 == NULL) SWIG_fail;
6161 temp1 = true;
6162 }
6163 if (obj1) {
6164 ecode2 = SWIG_AsVal_int(obj1, &val2);
6165 if (!SWIG_IsOK(ecode2)) {
6166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6167 }
6168 arg2 = static_cast< wxBitmapType >(val2);
6169 }
6170 {
6171 if (!wxPyCheckForApp()) SWIG_fail;
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6178 {
6179 if (temp1)
6180 delete arg1;
6181 }
6182 return resultobj;
6183fail:
6184 {
6185 if (temp1)
6186 delete arg1;
6187 }
6188 return NULL;
d55e5bfc
RD
6189}
6190
6191
554f62e9
RD
6192SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6193 PyObject *resultobj = 0;
6194 wxBitmap *arg1 = (wxBitmap *) 0 ;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 PyObject *swig_obj[1] ;
6198
6199 if (!args) SWIG_fail;
6200 swig_obj[0] = args;
6201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 }
6205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6206 {
554f62e9 6207 delete arg1;
c24da6d6 6208
554f62e9
RD
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 resultobj = SWIG_Py_Void();
6212 return resultobj;
6213fail:
6214 return NULL;
6215}
6216
6217
6218SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj = 0;
6220 int arg1 ;
6221 int arg2 ;
6222 int arg3 = (int) -1 ;
6223 wxBitmap *result = 0 ;
6224 int val1 ;
6225 int ecode1 = 0 ;
6226 int val2 ;
6227 int ecode2 = 0 ;
6228 int val3 ;
6229 int ecode3 = 0 ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 PyObject * obj2 = 0 ;
6233 char * kwnames[] = {
6234 (char *) "width",(char *) "height",(char *) "depth", NULL
6235 };
6236
6237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6238 ecode1 = SWIG_AsVal_int(obj0, &val1);
6239 if (!SWIG_IsOK(ecode1)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6241 }
6242 arg1 = static_cast< int >(val1);
6243 ecode2 = SWIG_AsVal_int(obj1, &val2);
6244 if (!SWIG_IsOK(ecode2)) {
6245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6246 }
6247 arg2 = static_cast< int >(val2);
6248 if (obj2) {
6249 ecode3 = SWIG_AsVal_int(obj2, &val3);
6250 if (!SWIG_IsOK(ecode3)) {
6251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6252 }
6253 arg3 = static_cast< int >(val3);
6254 }
6255 {
6256 if (!wxPyCheckForApp()) SWIG_fail;
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6263 return resultobj;
6264fail:
6265 return NULL;
6266}
6267
6268
6269SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxIcon *arg1 = 0 ;
6272 wxBitmap *result = 0 ;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 PyObject * obj0 = 0 ;
6276 char * kwnames[] = {
6277 (char *) "icon", NULL
6278 };
6279
6280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6281 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6282 if (!SWIG_IsOK(res1)) {
6283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6284 }
6285 if (!argp1) {
6286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6287 }
6288 arg1 = reinterpret_cast< wxIcon * >(argp1);
6289 {
6290 if (!wxPyCheckForApp()) SWIG_fail;
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6297 return resultobj;
6298fail:
6299 return NULL;
6300}
6301
6302
6303SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj = 0;
6305 wxImage *arg1 = 0 ;
6306 int arg2 = (int) -1 ;
6307 wxBitmap *result = 0 ;
6308 void *argp1 = 0 ;
6309 int res1 = 0 ;
6310 int val2 ;
6311 int ecode2 = 0 ;
6312 PyObject * obj0 = 0 ;
6313 PyObject * obj1 = 0 ;
6314 char * kwnames[] = {
6315 (char *) "image",(char *) "depth", NULL
6316 };
6317
6318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6319 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6320 if (!SWIG_IsOK(res1)) {
6321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6322 }
6323 if (!argp1) {
6324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6325 }
6326 arg1 = reinterpret_cast< wxImage * >(argp1);
6327 if (obj1) {
6328 ecode2 = SWIG_AsVal_int(obj1, &val2);
6329 if (!SWIG_IsOK(ecode2)) {
6330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6331 }
6332 arg2 = static_cast< int >(val2);
6333 }
6334 {
6335 if (!wxPyCheckForApp()) SWIG_fail;
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6342 return resultobj;
6343fail:
6344 return NULL;
c24da6d6
RD
6345}
6346
6347
554f62e9
RD
6348SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6349 PyObject *resultobj = 0;
6350 PyObject *arg1 = (PyObject *) 0 ;
6351 wxBitmap *result = 0 ;
6352 PyObject * obj0 = 0 ;
6353 char * kwnames[] = {
6354 (char *) "listOfStrings", NULL
6355 };
6356
6357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6358 arg1 = obj0;
6359 {
6360 if (!wxPyCheckForApp()) SWIG_fail;
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 result = (wxBitmap *)new_wxBitmap(arg1);
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6367 return resultobj;
6368fail:
6369 return NULL;
6370}
6371
6372
6373SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj = 0;
6375 PyObject *arg1 = (PyObject *) 0 ;
6376 int arg2 ;
6377 int arg3 ;
6378 int arg4 = (int) 1 ;
6379 wxBitmap *result = 0 ;
6380 int val2 ;
6381 int ecode2 = 0 ;
6382 int val3 ;
6383 int ecode3 = 0 ;
6384 int val4 ;
6385 int ecode4 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 PyObject * obj2 = 0 ;
6389 PyObject * obj3 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6395 arg1 = obj0;
6396 ecode2 = SWIG_AsVal_int(obj1, &val2);
6397 if (!SWIG_IsOK(ecode2)) {
6398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6399 }
6400 arg2 = static_cast< int >(val2);
6401 ecode3 = SWIG_AsVal_int(obj2, &val3);
6402 if (!SWIG_IsOK(ecode3)) {
6403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6404 }
6405 arg3 = static_cast< int >(val3);
6406 if (obj3) {
6407 ecode4 = SWIG_AsVal_int(obj3, &val4);
6408 if (!SWIG_IsOK(ecode4)) {
6409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6410 }
6411 arg4 = static_cast< int >(val4);
6412 }
6413 {
6414 if (!wxPyCheckForApp()) SWIG_fail;
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6421 return resultobj;
6422fail:
6423 return NULL;
d55e5bfc
RD
6424}
6425
6426
554f62e9
RD
6427SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6428 PyObject *resultobj = 0;
6429 wxBitmap *arg1 = (wxBitmap *) 0 ;
6430 long result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 PyObject *swig_obj[1] ;
6434
6435 if (!args) SWIG_fail;
6436 swig_obj[0] = args;
6437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6440 }
6441 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6442 {
554f62e9 6443 result = (long)(arg1)->GetHandle();
554f62e9
RD
6444 if (PyErr_Occurred()) SWIG_fail;
6445 }
6446 resultobj = SWIG_From_long(static_cast< long >(result));
6447 return resultobj;
6448fail:
6449 return NULL;
6450}
6451
6452
6453SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6454 PyObject *resultobj = 0;
6455 wxBitmap *arg1 = (wxBitmap *) 0 ;
6456 long arg2 ;
6457 void *argp1 = 0 ;
6458 int res1 = 0 ;
6459 long val2 ;
6460 int ecode2 = 0 ;
6461 PyObject * obj0 = 0 ;
6462 PyObject * obj1 = 0 ;
6463 char * kwnames[] = {
6464 (char *) "self",(char *) "handle", NULL
6465 };
6466
6467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6469 if (!SWIG_IsOK(res1)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6471 }
6472 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6473 ecode2 = SWIG_AsVal_long(obj1, &val2);
6474 if (!SWIG_IsOK(ecode2)) {
6475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6476 }
6477 arg2 = static_cast< long >(val2);
6478 {
554f62e9 6479 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 resultobj = SWIG_Py_Void();
6483 return resultobj;
6484fail:
6485 return NULL;
d55e5bfc
RD
6486}
6487
6488
b39fe951 6489SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6490 PyObject *resultobj = 0;
6491 wxBitmap *arg1 = (wxBitmap *) 0 ;
6492 bool result;
6493 void *argp1 = 0 ;
6494 int res1 = 0 ;
6495 PyObject *swig_obj[1] ;
6496
6497 if (!args) SWIG_fail;
6498 swig_obj[0] = args;
6499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6500 if (!SWIG_IsOK(res1)) {
b39fe951 6501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6502 }
6503 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6504 {
b39fe951 6505 result = (bool)(arg1)->IsOk();
554f62e9
RD
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 {
6509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6510 }
6511 return resultobj;
6512fail:
6513 return NULL;
d55e5bfc
RD
6514}
6515
6516
554f62e9
RD
6517SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6518 PyObject *resultobj = 0;
6519 wxBitmap *arg1 = (wxBitmap *) 0 ;
6520 int result;
6521 void *argp1 = 0 ;
6522 int res1 = 0 ;
6523 PyObject *swig_obj[1] ;
6524
6525 if (!args) SWIG_fail;
6526 swig_obj[0] = args;
6527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6528 if (!SWIG_IsOK(res1)) {
6529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6530 }
6531 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6532 {
554f62e9 6533 result = (int)(arg1)->GetWidth();
554f62e9
RD
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 resultobj = SWIG_From_int(static_cast< int >(result));
6537 return resultobj;
6538fail:
6539 return NULL;
d55e5bfc
RD
6540}
6541
6542
554f62e9
RD
6543SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6544 PyObject *resultobj = 0;
6545 wxBitmap *arg1 = (wxBitmap *) 0 ;
6546 int result;
6547 void *argp1 = 0 ;
6548 int res1 = 0 ;
6549 PyObject *swig_obj[1] ;
6550
6551 if (!args) SWIG_fail;
6552 swig_obj[0] = args;
6553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6554 if (!SWIG_IsOK(res1)) {
6555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6556 }
6557 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6558 {
554f62e9 6559 result = (int)(arg1)->GetHeight();
554f62e9
RD
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 resultobj = SWIG_From_int(static_cast< int >(result));
6563 return resultobj;
6564fail:
6565 return NULL;
c24da6d6
RD
6566}
6567
6568
554f62e9
RD
6569SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6570 PyObject *resultobj = 0;
6571 wxBitmap *arg1 = (wxBitmap *) 0 ;
6572 int result;
6573 void *argp1 = 0 ;
6574 int res1 = 0 ;
6575 PyObject *swig_obj[1] ;
6576
6577 if (!args) SWIG_fail;
6578 swig_obj[0] = args;
6579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6580 if (!SWIG_IsOK(res1)) {
6581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6582 }
6583 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6584 {
554f62e9 6585 result = (int)(arg1)->GetDepth();
554f62e9
RD
6586 if (PyErr_Occurred()) SWIG_fail;
6587 }
6588 resultobj = SWIG_From_int(static_cast< int >(result));
6589 return resultobj;
6590fail:
6591 return NULL;
d55e5bfc
RD
6592}
6593
6594
554f62e9
RD
6595SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6596 PyObject *resultobj = 0;
6597 wxBitmap *arg1 = (wxBitmap *) 0 ;
6598 wxSize result;
6599 void *argp1 = 0 ;
6600 int res1 = 0 ;
6601 PyObject *swig_obj[1] ;
6602
6603 if (!args) SWIG_fail;
6604 swig_obj[0] = args;
6605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6606 if (!SWIG_IsOK(res1)) {
6607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6608 }
6609 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6610 {
554f62e9 6611 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6615 return resultobj;
6616fail:
6617 return NULL;
d55e5bfc
RD
6618}
6619
6620
554f62e9
RD
6621SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6622 PyObject *resultobj = 0;
6623 wxBitmap *arg1 = (wxBitmap *) 0 ;
6624 SwigValueWrapper<wxImage > result;
6625 void *argp1 = 0 ;
6626 int res1 = 0 ;
6627 PyObject *swig_obj[1] ;
6628
6629 if (!args) SWIG_fail;
6630 swig_obj[0] = args;
6631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6632 if (!SWIG_IsOK(res1)) {
6633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6634 }
6635 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6636 {
554f62e9 6637 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6641 return resultobj;
6642fail:
6643 return NULL;
d55e5bfc
RD
6644}
6645
6646
554f62e9
RD
6647SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6648 PyObject *resultobj = 0;
6649 wxBitmap *arg1 = (wxBitmap *) 0 ;
6650 wxMask *result = 0 ;
6651 void *argp1 = 0 ;
6652 int res1 = 0 ;
6653 PyObject *swig_obj[1] ;
6654
6655 if (!args) SWIG_fail;
6656 swig_obj[0] = args;
6657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6658 if (!SWIG_IsOK(res1)) {
6659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6660 }
6661 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6662 {
554f62e9 6663 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6667 return resultobj;
6668fail:
6669 return NULL;
6670}
6671
6672
6673SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6674 PyObject *resultobj = 0;
6675 wxBitmap *arg1 = (wxBitmap *) 0 ;
6676 wxMask *arg2 = (wxMask *) 0 ;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 int res2 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "mask", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6693 if (!SWIG_IsOK(res2)) {
6694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6695 }
6696 {
554f62e9 6697 (arg1)->SetMask(arg2);
554f62e9
RD
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_Py_Void();
6701 return resultobj;
6702fail:
6703 return NULL;
6704}
6705
6706
6707SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxBitmap *arg1 = (wxBitmap *) 0 ;
6710 wxColour *arg2 = 0 ;
6711 void *argp1 = 0 ;
6712 int res1 = 0 ;
6713 wxColour temp2 ;
6714 PyObject * obj0 = 0 ;
6715 PyObject * obj1 = 0 ;
6716 char * kwnames[] = {
6717 (char *) "self",(char *) "colour", NULL
6718 };
6719
6720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6722 if (!SWIG_IsOK(res1)) {
6723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6724 }
6725 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6726 {
6727 arg2 = &temp2;
6728 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6729 }
6730 {
554f62e9 6731 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 resultobj = SWIG_Py_Void();
6735 return resultobj;
6736fail:
6737 return NULL;
6738}
6739
6740
6741SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj = 0;
6743 wxBitmap *arg1 = (wxBitmap *) 0 ;
6744 wxRect *arg2 = 0 ;
6745 SwigValueWrapper<wxBitmap > result;
6746 void *argp1 = 0 ;
6747 int res1 = 0 ;
6748 wxRect temp2 ;
6749 PyObject * obj0 = 0 ;
6750 PyObject * obj1 = 0 ;
6751 char * kwnames[] = {
6752 (char *) "self",(char *) "rect", NULL
6753 };
6754
6755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6757 if (!SWIG_IsOK(res1)) {
6758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6759 }
6760 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6761 {
6762 arg2 = &temp2;
6763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6764 }
6765 {
554f62e9 6766 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6770 return resultobj;
6771fail:
6772 return NULL;
6773}
6774
6775
6776SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj = 0;
6778 wxBitmap *arg1 = (wxBitmap *) 0 ;
6779 wxString *arg2 = 0 ;
6780 wxBitmapType arg3 ;
6781 wxPalette *arg4 = (wxPalette *) NULL ;
6782 bool result;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 bool temp2 = false ;
6786 int val3 ;
6787 int ecode3 = 0 ;
6788 void *argp4 = 0 ;
6789 int res4 = 0 ;
6790 PyObject * obj0 = 0 ;
6791 PyObject * obj1 = 0 ;
6792 PyObject * obj2 = 0 ;
6793 PyObject * obj3 = 0 ;
6794 char * kwnames[] = {
6795 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6796 };
6797
6798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6800 if (!SWIG_IsOK(res1)) {
6801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6802 }
6803 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6804 {
6805 arg2 = wxString_in_helper(obj1);
6806 if (arg2 == NULL) SWIG_fail;
6807 temp2 = true;
6808 }
6809 ecode3 = SWIG_AsVal_int(obj2, &val3);
6810 if (!SWIG_IsOK(ecode3)) {
6811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6812 }
6813 arg3 = static_cast< wxBitmapType >(val3);
6814 if (obj3) {
6815 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6816 if (!SWIG_IsOK(res4)) {
6817 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6818 }
554f62e9
RD
6819 arg4 = reinterpret_cast< wxPalette * >(argp4);
6820 }
6821 {
554f62e9 6822 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
6825 {
6826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6827 }
6828 {
6829 if (temp2)
6830 delete arg2;
6831 }
6832 return resultobj;
6833fail:
6834 {
6835 if (temp2)
6836 delete arg2;
6837 }
6838 return NULL;
6839}
6840
6841
6842SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6843 PyObject *resultobj = 0;
6844 wxBitmap *arg1 = (wxBitmap *) 0 ;
6845 wxString *arg2 = 0 ;
6846 wxBitmapType arg3 ;
6847 bool result;
6848 void *argp1 = 0 ;
6849 int res1 = 0 ;
6850 bool temp2 = false ;
6851 int val3 ;
6852 int ecode3 = 0 ;
6853 PyObject * obj0 = 0 ;
6854 PyObject * obj1 = 0 ;
6855 PyObject * obj2 = 0 ;
6856 char * kwnames[] = {
6857 (char *) "self",(char *) "name",(char *) "type", NULL
6858 };
6859
6860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6862 if (!SWIG_IsOK(res1)) {
6863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6864 }
6865 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6866 {
6867 arg2 = wxString_in_helper(obj1);
6868 if (arg2 == NULL) SWIG_fail;
6869 temp2 = true;
6870 }
6871 ecode3 = SWIG_AsVal_int(obj2, &val3);
6872 if (!SWIG_IsOK(ecode3)) {
6873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6874 }
6875 arg3 = static_cast< wxBitmapType >(val3);
6876 {
554f62e9 6877 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 {
6881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6882 }
6883 {
6884 if (temp2)
6885 delete arg2;
6886 }
6887 return resultobj;
6888fail:
6889 {
6890 if (temp2)
6891 delete arg2;
6892 }
6893 return NULL;
d04418a7
RD
6894}
6895
6896
554f62e9
RD
6897SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6898 PyObject *resultobj = 0;
6899 wxBitmap *arg1 = (wxBitmap *) 0 ;
6900 wxPalette *result = 0 ;
6901 void *argp1 = 0 ;
6902 int res1 = 0 ;
6903 PyObject *swig_obj[1] ;
6904
6905 if (!args) SWIG_fail;
6906 swig_obj[0] = args;
6907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6908 if (!SWIG_IsOK(res1)) {
6909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6910 }
6911 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6912 {
554f62e9 6913 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6917 return resultobj;
6918fail:
6919 return NULL;
6920}
6921
6922
6923SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6924 PyObject *resultobj = 0;
6925 wxBitmap *arg1 = (wxBitmap *) 0 ;
6926 wxPalette *arg2 = 0 ;
6927 void *argp1 = 0 ;
6928 int res1 = 0 ;
6929 void *argp2 = 0 ;
6930 int res2 = 0 ;
6931 PyObject * obj0 = 0 ;
6932 PyObject * obj1 = 0 ;
6933 char * kwnames[] = {
6934 (char *) "self",(char *) "palette", NULL
6935 };
6936
6937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6939 if (!SWIG_IsOK(res1)) {
6940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6941 }
6942 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6944 if (!SWIG_IsOK(res2)) {
6945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6946 }
6947 if (!argp2) {
6948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6949 }
6950 arg2 = reinterpret_cast< wxPalette * >(argp2);
6951 {
554f62e9 6952 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957fail:
6958 return NULL;
6959}
6960
6961
6962SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxBitmap *arg1 = (wxBitmap *) 0 ;
6965 wxIcon *arg2 = 0 ;
6966 bool result;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 void *argp2 = 0 ;
6970 int res2 = 0 ;
6971 PyObject * obj0 = 0 ;
6972 PyObject * obj1 = 0 ;
6973 char * kwnames[] = {
6974 (char *) "self",(char *) "icon", NULL
6975 };
6976
6977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6979 if (!SWIG_IsOK(res1)) {
6980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6981 }
6982 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6984 if (!SWIG_IsOK(res2)) {
6985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6986 }
6987 if (!argp2) {
6988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6989 }
6990 arg2 = reinterpret_cast< wxIcon * >(argp2);
6991 {
554f62e9 6992 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 {
6996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6997 }
6998 return resultobj;
6999fail:
7000 return NULL;
7001}
7002
7003
7004SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7005 PyObject *resultobj = 0;
7006 wxBitmap *arg1 = (wxBitmap *) 0 ;
7007 int arg2 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 int val2 ;
7011 int ecode2 = 0 ;
7012 PyObject * obj0 = 0 ;
7013 PyObject * obj1 = 0 ;
7014 char * kwnames[] = {
7015 (char *) "self",(char *) "height", NULL
7016 };
7017
7018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7020 if (!SWIG_IsOK(res1)) {
7021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7022 }
7023 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7024 ecode2 = SWIG_AsVal_int(obj1, &val2);
7025 if (!SWIG_IsOK(ecode2)) {
7026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7027 }
7028 arg2 = static_cast< int >(val2);
7029 {
554f62e9 7030 (arg1)->SetHeight(arg2);
554f62e9
RD
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 resultobj = SWIG_Py_Void();
7034 return resultobj;
7035fail:
7036 return NULL;
7037}
7038
7039
7040SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj = 0;
7042 wxBitmap *arg1 = (wxBitmap *) 0 ;
7043 int arg2 ;
7044 void *argp1 = 0 ;
7045 int res1 = 0 ;
7046 int val2 ;
7047 int ecode2 = 0 ;
7048 PyObject * obj0 = 0 ;
7049 PyObject * obj1 = 0 ;
7050 char * kwnames[] = {
7051 (char *) "self",(char *) "width", NULL
7052 };
7053
7054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7056 if (!SWIG_IsOK(res1)) {
7057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7058 }
7059 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7060 ecode2 = SWIG_AsVal_int(obj1, &val2);
7061 if (!SWIG_IsOK(ecode2)) {
7062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7063 }
7064 arg2 = static_cast< int >(val2);
7065 {
554f62e9 7066 (arg1)->SetWidth(arg2);
554f62e9
RD
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071fail:
7072 return NULL;
7073}
7074
7075
7076SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj = 0;
7078 wxBitmap *arg1 = (wxBitmap *) 0 ;
7079 int arg2 ;
7080 void *argp1 = 0 ;
7081 int res1 = 0 ;
7082 int val2 ;
7083 int ecode2 = 0 ;
7084 PyObject * obj0 = 0 ;
7085 PyObject * obj1 = 0 ;
7086 char * kwnames[] = {
7087 (char *) "self",(char *) "depth", NULL
7088 };
7089
7090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7092 if (!SWIG_IsOK(res1)) {
7093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7094 }
7095 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7096 ecode2 = SWIG_AsVal_int(obj1, &val2);
7097 if (!SWIG_IsOK(ecode2)) {
7098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7099 }
7100 arg2 = static_cast< int >(val2);
7101 {
554f62e9 7102 (arg1)->SetDepth(arg2);
554f62e9
RD
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_Py_Void();
7106 return resultobj;
7107fail:
7108 return NULL;
7109}
7110
7111
7112SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj = 0;
7114 wxBitmap *arg1 = (wxBitmap *) 0 ;
7115 wxSize *arg2 = 0 ;
7116 void *argp1 = 0 ;
7117 int res1 = 0 ;
7118 wxSize temp2 ;
7119 PyObject * obj0 = 0 ;
7120 PyObject * obj1 = 0 ;
7121 char * kwnames[] = {
7122 (char *) "self",(char *) "size", NULL
7123 };
7124
7125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7127 if (!SWIG_IsOK(res1)) {
7128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7129 }
7130 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7131 {
7132 arg2 = &temp2;
7133 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7134 }
7135 {
554f62e9 7136 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = SWIG_Py_Void();
7140 return resultobj;
7141fail:
7142 return NULL;
7143}
7144
7145
7146SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj = 0;
7148 wxBitmap *arg1 = (wxBitmap *) 0 ;
7149 wxCursor *arg2 = 0 ;
7150 bool result;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 void *argp2 = 0 ;
7154 int res2 = 0 ;
7155 PyObject * obj0 = 0 ;
7156 PyObject * obj1 = 0 ;
7157 char * kwnames[] = {
7158 (char *) "self",(char *) "cursor", NULL
7159 };
7160
7161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7163 if (!SWIG_IsOK(res1)) {
7164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7165 }
7166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7168 if (!SWIG_IsOK(res2)) {
7169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7170 }
7171 if (!argp2) {
7172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7173 }
7174 arg2 = reinterpret_cast< wxCursor * >(argp2);
7175 {
554f62e9 7176 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 {
7180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7181 }
7182 return resultobj;
7183fail:
7184 return NULL;
7185}
7186
7187
8f514ab4
RD
7188SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7189 PyObject *resultobj = 0;
7190 wxBitmap *arg1 = (wxBitmap *) 0 ;
7191 buffer arg2 ;
7192 int arg3 ;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 Py_ssize_t temp2 ;
7196 PyObject * obj0 = 0 ;
7197 PyObject * obj1 = 0 ;
7198 char * kwnames[] = {
7199 (char *) "self",(char *) "data", NULL
7200 };
7201
7202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7204 if (!SWIG_IsOK(res1)) {
7205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7206 }
7207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7208 {
7209 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7210 arg3 = (int)temp2;
7211 }
7212 {
7213 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218fail:
7219 return NULL;
7220}
7221
7222
7223SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj = 0;
7225 wxBitmap *arg1 = (wxBitmap *) 0 ;
7226 buffer arg2 ;
7227 int arg3 ;
7228 void *argp1 = 0 ;
7229 int res1 = 0 ;
7230 Py_ssize_t temp2 ;
7231 PyObject * obj0 = 0 ;
7232 PyObject * obj1 = 0 ;
7233 char * kwnames[] = {
7234 (char *) "self",(char *) "data", NULL
7235 };
7236
7237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7239 if (!SWIG_IsOK(res1)) {
7240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7241 }
7242 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7243 {
7244 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7245 arg3 = (int)temp2;
7246 }
7247 {
7248 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = SWIG_Py_Void();
7252 return resultobj;
7253fail:
7254 return NULL;
7255}
7256
7257
554f62e9
RD
7258SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj = 0;
7260 wxBitmap *arg1 = (wxBitmap *) 0 ;
7261 wxBitmap *arg2 = (wxBitmap *) 0 ;
7262 bool result;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 void *argp2 = 0 ;
7266 int res2 = 0 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 char * kwnames[] = {
7270 (char *) "self",(char *) "other", NULL
7271 };
7272
7273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7277 }
7278 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7280 if (!SWIG_IsOK(res2)) {
7281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7282 }
7283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7284 {
554f62e9 7285 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 {
fc46b7f3
RD
7289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7290 }
7291 return resultobj;
7292fail:
7293 return NULL;
7294}
7295
7296
7297SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj = 0;
7299 wxBitmap *arg1 = (wxBitmap *) 0 ;
7300 wxBitmap *arg2 = (wxBitmap *) 0 ;
7301 bool result;
7302 void *argp1 = 0 ;
7303 int res1 = 0 ;
7304 void *argp2 = 0 ;
7305 int res2 = 0 ;
7306 PyObject * obj0 = 0 ;
7307 PyObject * obj1 = 0 ;
7308 char * kwnames[] = {
7309 (char *) "self",(char *) "other", NULL
7310 };
7311
7312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7316 }
7317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7319 if (!SWIG_IsOK(res2)) {
7320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7321 }
7322 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7323 {
7324 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 {
7328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7329 }
7330 return resultobj;
7331fail:
7332 return NULL;
7333}
7334
7335
7336SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7337 PyObject *obj;
7338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7339 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7340 return SWIG_Py_Void();
7341}
7342
7343SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7344 return SWIG_Python_InitShadowInstance(args);
7345}
7346
7347SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7348 PyObject *resultobj = 0;
7349 int arg1 ;
7350 int arg2 ;
7351 buffer arg3 ;
7352 int arg4 ;
7353 buffer arg5 ;
7354 int arg6 ;
7355 wxBitmap *result = 0 ;
7356 int val1 ;
7357 int ecode1 = 0 ;
7358 int val2 ;
7359 int ecode2 = 0 ;
e46e7e0d
RD
7360 Py_ssize_t temp3 ;
7361 Py_ssize_t temp5 ;
fc46b7f3
RD
7362 PyObject * obj0 = 0 ;
7363 PyObject * obj1 = 0 ;
7364 PyObject * obj2 = 0 ;
7365 PyObject * obj3 = 0 ;
7366 char * kwnames[] = {
7367 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7368 };
7369
7370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7371 ecode1 = SWIG_AsVal_int(obj0, &val1);
7372 if (!SWIG_IsOK(ecode1)) {
7373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7374 }
7375 arg1 = static_cast< int >(val1);
7376 ecode2 = SWIG_AsVal_int(obj1, &val2);
7377 if (!SWIG_IsOK(ecode2)) {
7378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7379 }
7380 arg2 = static_cast< int >(val2);
7381 {
e46e7e0d
RD
7382 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7383 arg4 = (int)temp3;
fc46b7f3
RD
7384 }
7385 {
7386 if (obj3 != Py_None) {
e46e7e0d
RD
7387 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7388 arg6 = (int)temp5;
fc46b7f3
RD
7389 }
7390 }
7391 {
7392 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7393 if (PyErr_Occurred()) SWIG_fail;
7394 }
7395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7396 return resultobj;
7397fail:
7398 return NULL;
7399}
7400
7401
7402SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj = 0;
7404 int arg1 ;
7405 int arg2 ;
7406 buffer arg3 ;
7407 int arg4 ;
7408 wxBitmap *result = 0 ;
7409 int val1 ;
7410 int ecode1 = 0 ;
7411 int val2 ;
7412 int ecode2 = 0 ;
e46e7e0d 7413 Py_ssize_t temp3 ;
fc46b7f3
RD
7414 PyObject * obj0 = 0 ;
7415 PyObject * obj1 = 0 ;
7416 PyObject * obj2 = 0 ;
7417 char * kwnames[] = {
7418 (char *) "width",(char *) "height",(char *) "data", NULL
7419 };
7420
7421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7422 ecode1 = SWIG_AsVal_int(obj0, &val1);
7423 if (!SWIG_IsOK(ecode1)) {
7424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7425 }
7426 arg1 = static_cast< int >(val1);
7427 ecode2 = SWIG_AsVal_int(obj1, &val2);
7428 if (!SWIG_IsOK(ecode2)) {
7429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7430 }
7431 arg2 = static_cast< int >(val2);
7432 {
e46e7e0d
RD
7433 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7434 arg4 = (int)temp3;
fc46b7f3
RD
7435 }
7436 {
7437 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7441 return resultobj;
7442fail:
7443 return NULL;
7444}
7445
7446
7447SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj = 0;
7449 int arg1 ;
7450 int arg2 ;
7451 buffer arg3 ;
7452 int arg4 ;
7453 wxBitmap *result = 0 ;
7454 int val1 ;
7455 int ecode1 = 0 ;
7456 int val2 ;
7457 int ecode2 = 0 ;
e46e7e0d 7458 Py_ssize_t temp3 ;
fc46b7f3
RD
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 PyObject * obj2 = 0 ;
7462 char * kwnames[] = {
7463 (char *) "width",(char *) "height",(char *) "data", NULL
7464 };
7465
7466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7467 ecode1 = SWIG_AsVal_int(obj0, &val1);
7468 if (!SWIG_IsOK(ecode1)) {
7469 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7470 }
7471 arg1 = static_cast< int >(val1);
7472 ecode2 = SWIG_AsVal_int(obj1, &val2);
7473 if (!SWIG_IsOK(ecode2)) {
7474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7475 }
7476 arg2 = static_cast< int >(val2);
7477 {
e46e7e0d
RD
7478 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7479 arg4 = (int)temp3;
fc46b7f3
RD
7480 }
7481 {
7482 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7486 return resultobj;
7487fail:
7488 return NULL;
7489}
7490
7491
7492SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7493 PyObject *resultobj = 0;
7494 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7495 wxPoint result;
7496 void *argp1 = 0 ;
7497 int res1 = 0 ;
7498 PyObject *swig_obj[1] ;
7499
7500 if (!args) SWIG_fail;
7501 swig_obj[0] = args;
7502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7503 if (!SWIG_IsOK(res1)) {
7504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7505 }
7506 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7507 {
7508 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7509 if (PyErr_Occurred()) SWIG_fail;
7510 }
7511 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7512 return resultobj;
7513fail:
7514 return NULL;
7515}
7516
7517
7518SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7519 PyObject *resultobj = 0;
7520 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7521 int result;
7522 void *argp1 = 0 ;
7523 int res1 = 0 ;
7524 PyObject *swig_obj[1] ;
7525
7526 if (!args) SWIG_fail;
7527 swig_obj[0] = args;
7528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7529 if (!SWIG_IsOK(res1)) {
7530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7531 }
7532 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7533 {
7534 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = SWIG_From_int(static_cast< int >(result));
7538 return resultobj;
7539fail:
7540 return NULL;
7541}
7542
7543
7544SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7545 PyObject *resultobj = 0;
7546 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7547 int result;
7548 void *argp1 = 0 ;
7549 int res1 = 0 ;
7550 PyObject *swig_obj[1] ;
7551
7552 if (!args) SWIG_fail;
7553 swig_obj[0] = args;
7554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7555 if (!SWIG_IsOK(res1)) {
7556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7557 }
7558 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7559 {
7560 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = SWIG_From_int(static_cast< int >(result));
7564 return resultobj;
7565fail:
7566 return NULL;
7567}
7568
7569
7570SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7571 PyObject *resultobj = 0;
7572 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7573 wxSize result;
7574 void *argp1 = 0 ;
7575 int res1 = 0 ;
7576 PyObject *swig_obj[1] ;
7577
7578 if (!args) SWIG_fail;
7579 swig_obj[0] = args;
7580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7581 if (!SWIG_IsOK(res1)) {
7582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7583 }
7584 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7585 {
7586 result = ((wxPixelDataBase const *)arg1)->GetSize();
7587 if (PyErr_Occurred()) SWIG_fail;
7588 }
7589 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7590 return resultobj;
7591fail:
7592 return NULL;
7593}
7594
7595
7596SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7597 PyObject *resultobj = 0;
7598 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7599 int result;
7600 void *argp1 = 0 ;
7601 int res1 = 0 ;
7602 PyObject *swig_obj[1] ;
7603
7604 if (!args) SWIG_fail;
7605 swig_obj[0] = args;
7606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7607 if (!SWIG_IsOK(res1)) {
7608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7609 }
7610 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7611 {
7612 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_From_int(static_cast< int >(result));
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *obj;
7624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7625 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7626 return SWIG_Py_Void();
7627}
7628
7629SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7630 PyObject *resultobj = 0;
7631 wxBitmap *arg1 = 0 ;
7632 wxNativePixelData *result = 0 ;
7633 void *argp1 = 0 ;
7634 int res1 = 0 ;
7635
7636 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7638 if (!SWIG_IsOK(res1)) {
7639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7640 }
7641 if (!argp1) {
7642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7643 }
7644 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7645 {
7646 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7650 return resultobj;
7651fail:
7652 return NULL;
7653}
7654
7655
7656SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7657 PyObject *resultobj = 0;
7658 wxBitmap *arg1 = 0 ;
7659 wxRect *arg2 = 0 ;
7660 wxNativePixelData *result = 0 ;
7661 void *argp1 = 0 ;
7662 int res1 = 0 ;
7663 wxRect temp2 ;
7664
7665 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7667 if (!SWIG_IsOK(res1)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7669 }
7670 if (!argp1) {
7671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7672 }
7673 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7674 {
7675 arg2 = &temp2;
7676 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7677 }
7678 {
7679 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7683 return resultobj;
7684fail:
7685 return NULL;
7686}
7687
7688
7689SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7690 PyObject *resultobj = 0;
7691 wxBitmap *arg1 = 0 ;
7692 wxPoint *arg2 = 0 ;
7693 wxSize *arg3 = 0 ;
7694 wxNativePixelData *result = 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 wxPoint temp2 ;
7698 wxSize temp3 ;
7699
7700 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7702 if (!SWIG_IsOK(res1)) {
7703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7704 }
7705 if (!argp1) {
7706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7707 }
7708 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7709 {
7710 arg2 = &temp2;
7711 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7712 }
7713 {
7714 arg3 = &temp3;
7715 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7716 }
7717 {
7718 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7722 return resultobj;
7723fail:
7724 return NULL;
7725}
7726
7727
7728SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7729 int argc;
7730 PyObject *argv[4];
7731
7732 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7733 --argc;
7734 if (argc == 1) {
7735 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7736 }
7737 if (argc == 2) {
7738 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7739 }
7740 if (argc == 3) {
7741 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7742 }
7743
7744fail:
7745 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7746 return NULL;
7747}
7748
7749
7750SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7751 PyObject *resultobj = 0;
7752 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7753 void *argp1 = 0 ;
7754 int res1 = 0 ;
7755 PyObject *swig_obj[1] ;
7756
7757 if (!args) SWIG_fail;
7758 swig_obj[0] = args;
7759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7760 if (!SWIG_IsOK(res1)) {
7761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7762 }
7763 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7764 {
7765 delete arg1;
7766
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_Py_Void();
7770 return resultobj;
7771fail:
7772 return NULL;
7773}
7774
7775
7776SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7777 PyObject *resultobj = 0;
7778 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7779 wxNativePixelData_Accessor result;
7780 void *argp1 = 0 ;
7781 int res1 = 0 ;
7782 PyObject *swig_obj[1] ;
7783
7784 if (!args) SWIG_fail;
7785 swig_obj[0] = args;
7786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7787 if (!SWIG_IsOK(res1)) {
7788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7789 }
7790 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7791 {
7792 result = ((wxNativePixelData const *)arg1)->GetPixels();
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7796 return resultobj;
7797fail:
7798 return NULL;
7799}
7800
7801
7802SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7803 PyObject *resultobj = 0;
7804 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 PyObject *swig_obj[1] ;
7808
7809 if (!args) SWIG_fail;
7810 swig_obj[0] = args;
7811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7812 if (!SWIG_IsOK(res1)) {
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7814 }
7815 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7816 {
7817 (arg1)->UseAlpha();
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 resultobj = SWIG_Py_Void();
7821 return resultobj;
7822fail:
7823 return NULL;
7824}
7825
7826
7827SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7828 PyObject *resultobj = 0;
7829 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7830 bool result;
7831 void *argp1 = 0 ;
7832 int res1 = 0 ;
7833 PyObject *swig_obj[1] ;
7834
7835 if (!args) SWIG_fail;
7836 swig_obj[0] = args;
7837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7838 if (!SWIG_IsOK(res1)) {
7839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7840 }
7841 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7842 {
7843 result = (bool)wxNativePixelData___nonzero__(arg1);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 {
7847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7848 }
7849 return resultobj;
7850fail:
7851 return NULL;
7852}
7853
7854
7855SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *obj;
7857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7858 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7859 return SWIG_Py_Void();
7860}
7861
7862SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7863 return SWIG_Python_InitShadowInstance(args);
7864}
7865
7866SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7867 PyObject *resultobj = 0;
7868 wxNativePixelData *arg1 = 0 ;
7869 wxNativePixelData_Accessor *result = 0 ;
7870 void *argp1 = 0 ;
7871 int res1 = 0 ;
7872
7873 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7875 if (!SWIG_IsOK(res1)) {
7876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7877 }
7878 if (!argp1) {
7879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7880 }
7881 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7882 {
7883 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7887 return resultobj;
7888fail:
7889 return NULL;
7890}
7891
7892
7893SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7894 PyObject *resultobj = 0;
7895 wxBitmap *arg1 = 0 ;
7896 wxNativePixelData *arg2 = 0 ;
7897 wxNativePixelData_Accessor *result = 0 ;
7898 void *argp1 = 0 ;
7899 int res1 = 0 ;
7900 void *argp2 = 0 ;
7901 int res2 = 0 ;
7902
7903 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7905 if (!SWIG_IsOK(res1)) {
7906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7907 }
7908 if (!argp1) {
7909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7910 }
7911 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7912 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7913 if (!SWIG_IsOK(res2)) {
7914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7915 }
7916 if (!argp2) {
7917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7918 }
7919 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7920 {
7921 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7925 return resultobj;
7926fail:
7927 return NULL;
7928}
7929
7930
7931SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7932 PyObject *resultobj = 0;
7933 wxNativePixelData_Accessor *result = 0 ;
7934
7935 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7936 {
7937 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7941 return resultobj;
7942fail:
7943 return NULL;
7944}
7945
7946
7947SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7948 int argc;
7949 PyObject *argv[3];
7950
7951 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7952 --argc;
7953 if (argc == 0) {
7954 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7955 }
7956 if (argc == 1) {
7957 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7958 }
7959 if (argc == 2) {
7960 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7961 }
7962
7963fail:
7964 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7965 return NULL;
7966}
7967
7968
7969SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970 PyObject *resultobj = 0;
7971 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7972 void *argp1 = 0 ;
7973 int res1 = 0 ;
7974 PyObject *swig_obj[1] ;
7975
7976 if (!args) SWIG_fail;
7977 swig_obj[0] = args;
7978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7979 if (!SWIG_IsOK(res1)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7981 }
7982 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7983 {
7984 delete arg1;
7985
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_Py_Void();
7989 return resultobj;
7990fail:
7991 return NULL;
7992}
7993
7994
7995SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj = 0;
7997 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7998 wxNativePixelData *arg2 = 0 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 void *argp2 = 0 ;
8002 int res2 = 0 ;
8003 PyObject * obj0 = 0 ;
8004 PyObject * obj1 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "self",(char *) "data", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8013 }
8014 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8016 if (!SWIG_IsOK(res2)) {
8017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8018 }
8019 if (!argp2) {
8020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8021 }
8022 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8023 {
8024 (arg1)->Reset((wxNativePixelData const &)*arg2);
8025 if (PyErr_Occurred()) SWIG_fail;
8026 }
8027 resultobj = SWIG_Py_Void();
8028 return resultobj;
8029fail:
8030 return NULL;
8031}
8032
8033
8034SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8035 PyObject *resultobj = 0;
8036 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8037 bool result;
8038 void *argp1 = 0 ;
8039 int res1 = 0 ;
8040 PyObject *swig_obj[1] ;
8041
8042 if (!args) SWIG_fail;
8043 swig_obj[0] = args;
8044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8045 if (!SWIG_IsOK(res1)) {
8046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8047 }
8048 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8049 {
8050 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
8053 {
8054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8055 }
8056 return resultobj;
8057fail:
8058 return NULL;
8059}
8060
8061
8062SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8063 PyObject *resultobj = 0;
8064 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8065 void *argp1 = 0 ;
8066 int res1 = 0 ;
8067 PyObject *swig_obj[1] ;
8068
8069 if (!args) SWIG_fail;
8070 swig_obj[0] = args;
8071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8074 }
8075 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8076 {
8077 wxNativePixelData_Accessor_nextPixel(arg1);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_Py_Void();
8081 return resultobj;
8082fail:
8083 return NULL;
8084}
8085
8086
8087SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj = 0;
8089 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8090 wxNativePixelData *arg2 = 0 ;
8091 int arg3 ;
8092 int arg4 ;
8093 void *argp1 = 0 ;
8094 int res1 = 0 ;
8095 void *argp2 = 0 ;
8096 int res2 = 0 ;
8097 int val3 ;
8098 int ecode3 = 0 ;
8099 int val4 ;
8100 int ecode4 = 0 ;
8101 PyObject * obj0 = 0 ;
8102 PyObject * obj1 = 0 ;
8103 PyObject * obj2 = 0 ;
8104 PyObject * obj3 = 0 ;
8105 char * kwnames[] = {
8106 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8107 };
8108
8109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8111 if (!SWIG_IsOK(res1)) {
8112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8113 }
8114 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8116 if (!SWIG_IsOK(res2)) {
8117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8118 }
8119 if (!argp2) {
8120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8121 }
8122 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8123 ecode3 = SWIG_AsVal_int(obj2, &val3);
8124 if (!SWIG_IsOK(ecode3)) {
8125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8126 }
8127 arg3 = static_cast< int >(val3);
8128 ecode4 = SWIG_AsVal_int(obj3, &val4);
8129 if (!SWIG_IsOK(ecode4)) {
8130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8131 }
8132 arg4 = static_cast< int >(val4);
8133 {
8134 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = SWIG_Py_Void();
8138 return resultobj;
8139fail:
8140 return NULL;
8141}
8142
8143
8144SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj = 0;
8146 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8147 wxNativePixelData *arg2 = 0 ;
8148 int arg3 ;
8149 void *argp1 = 0 ;
8150 int res1 = 0 ;
8151 void *argp2 = 0 ;
8152 int res2 = 0 ;
8153 int val3 ;
8154 int ecode3 = 0 ;
8155 PyObject * obj0 = 0 ;
8156 PyObject * obj1 = 0 ;
8157 PyObject * obj2 = 0 ;
8158 char * kwnames[] = {
8159 (char *) "self",(char *) "data",(char *) "x", NULL
8160 };
8161
8162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8164 if (!SWIG_IsOK(res1)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8166 }
8167 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8169 if (!SWIG_IsOK(res2)) {
8170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8171 }
8172 if (!argp2) {
8173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8174 }
8175 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8176 ecode3 = SWIG_AsVal_int(obj2, &val3);
8177 if (!SWIG_IsOK(ecode3)) {
8178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8179 }
8180 arg3 = static_cast< int >(val3);
8181 {
8182 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_Py_Void();
8186 return resultobj;
8187fail:
8188 return NULL;
8189}
8190
8191
8192SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8195 wxNativePixelData *arg2 = 0 ;
8196 int arg3 ;
8197 void *argp1 = 0 ;
8198 int res1 = 0 ;
8199 void *argp2 = 0 ;
8200 int res2 = 0 ;
8201 int val3 ;
8202 int ecode3 = 0 ;
8203 PyObject * obj0 = 0 ;
8204 PyObject * obj1 = 0 ;
8205 PyObject * obj2 = 0 ;
8206 char * kwnames[] = {
8207 (char *) "self",(char *) "data",(char *) "y", NULL
8208 };
8209
8210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8212 if (!SWIG_IsOK(res1)) {
8213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8214 }
8215 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8217 if (!SWIG_IsOK(res2)) {
8218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8219 }
8220 if (!argp2) {
8221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8222 }
8223 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8224 ecode3 = SWIG_AsVal_int(obj2, &val3);
8225 if (!SWIG_IsOK(ecode3)) {
8226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8227 }
8228 arg3 = static_cast< int >(val3);
8229 {
8230 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 resultobj = SWIG_Py_Void();
8234 return resultobj;
8235fail:
8236 return NULL;
8237}
8238
8239
8240SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj = 0;
8242 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8243 wxNativePixelData *arg2 = 0 ;
8244 int arg3 ;
8245 int arg4 ;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248 void *argp2 = 0 ;
8249 int res2 = 0 ;
8250 int val3 ;
8251 int ecode3 = 0 ;
8252 int val4 ;
8253 int ecode4 = 0 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 PyObject * obj2 = 0 ;
8257 PyObject * obj3 = 0 ;
8258 char * kwnames[] = {
8259 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8260 };
8261
8262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8264 if (!SWIG_IsOK(res1)) {
8265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8266 }
8267 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8268 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8269 if (!SWIG_IsOK(res2)) {
8270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8271 }
8272 if (!argp2) {
8273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8274 }
8275 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8276 ecode3 = SWIG_AsVal_int(obj2, &val3);
8277 if (!SWIG_IsOK(ecode3)) {
8278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8279 }
8280 arg3 = static_cast< int >(val3);
8281 ecode4 = SWIG_AsVal_int(obj3, &val4);
8282 if (!SWIG_IsOK(ecode4)) {
8283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8284 }
8285 arg4 = static_cast< int >(val4);
8286 {
8287 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 resultobj = SWIG_Py_Void();
8291 return resultobj;
8292fail:
8293 return NULL;
8294}
8295
8296
8297SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8298 PyObject *resultobj = 0;
8299 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8300 byte arg2 ;
8301 byte arg3 ;
8302 byte arg4 ;
8303 void *argp1 = 0 ;
8304 int res1 = 0 ;
8305 unsigned char val2 ;
8306 int ecode2 = 0 ;
8307 unsigned char val3 ;
8308 int ecode3 = 0 ;
8309 unsigned char val4 ;
8310 int ecode4 = 0 ;
8311 PyObject * obj0 = 0 ;
8312 PyObject * obj1 = 0 ;
8313 PyObject * obj2 = 0 ;
8314 PyObject * obj3 = 0 ;
8315 char * kwnames[] = {
8316 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8317 };
8318
8319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8321 if (!SWIG_IsOK(res1)) {
8322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8323 }
8324 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8325 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8326 if (!SWIG_IsOK(ecode2)) {
8327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8328 }
8329 arg2 = static_cast< byte >(val2);
8330 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8331 if (!SWIG_IsOK(ecode3)) {
8332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8333 }
8334 arg3 = static_cast< byte >(val3);
8335 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8336 if (!SWIG_IsOK(ecode4)) {
8337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8338 }
8339 arg4 = static_cast< byte >(val4);
8340 {
8341 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_Py_Void();
8345 return resultobj;
8346fail:
8347 return NULL;
8348}
8349
8350
8351SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8352 PyObject *resultobj = 0;
8353 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8354 PyObject *result = 0 ;
8355 void *argp1 = 0 ;
8356 int res1 = 0 ;
8357 PyObject *swig_obj[1] ;
8358
8359 if (!args) SWIG_fail;
8360 swig_obj[0] = args;
8361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8362 if (!SWIG_IsOK(res1)) {
8363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8364 }
8365 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8366 {
8367 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 resultobj = result;
8371 return resultobj;
8372fail:
8373 return NULL;
8374}
8375
8376
8377SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8378 PyObject *obj;
8379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8380 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8381 return SWIG_Py_Void();
8382}
8383
8384SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 return SWIG_Python_InitShadowInstance(args);
8386}
8387
8388SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8389 PyObject *resultobj = 0;
8390 wxBitmap *arg1 = 0 ;
8391 wxAlphaPixelData *result = 0 ;
8392 void *argp1 = 0 ;
8393 int res1 = 0 ;
8394
8395 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8397 if (!SWIG_IsOK(res1)) {
8398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8399 }
8400 if (!argp1) {
8401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8402 }
8403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8404 {
8405 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8409 return resultobj;
8410fail:
8411 return NULL;
8412}
8413
8414
8415SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8416 PyObject *resultobj = 0;
8417 wxBitmap *arg1 = 0 ;
8418 wxRect *arg2 = 0 ;
8419 wxAlphaPixelData *result = 0 ;
8420 void *argp1 = 0 ;
8421 int res1 = 0 ;
8422 wxRect temp2 ;
8423
8424 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8426 if (!SWIG_IsOK(res1)) {
8427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8428 }
8429 if (!argp1) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8431 }
8432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8433 {
8434 arg2 = &temp2;
8435 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8436 }
8437 {
8438 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8442 return resultobj;
8443fail:
8444 return NULL;
8445}
8446
8447
8448SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8449 PyObject *resultobj = 0;
8450 wxBitmap *arg1 = 0 ;
8451 wxPoint *arg2 = 0 ;
8452 wxSize *arg3 = 0 ;
8453 wxAlphaPixelData *result = 0 ;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456 wxPoint temp2 ;
8457 wxSize temp3 ;
8458
8459 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8461 if (!SWIG_IsOK(res1)) {
8462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8463 }
8464 if (!argp1) {
8465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8466 }
8467 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8468 {
8469 arg2 = &temp2;
8470 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8471 }
8472 {
8473 arg3 = &temp3;
8474 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8475 }
8476 {
8477 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8481 return resultobj;
8482fail:
8483 return NULL;
8484}
8485
8486
8487SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8488 int argc;
8489 PyObject *argv[4];
8490
8491 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8492 --argc;
8493 if (argc == 1) {
8494 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8495 }
8496 if (argc == 2) {
8497 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8498 }
8499 if (argc == 3) {
8500 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8501 }
8502
8503fail:
8504 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8505 return NULL;
8506}
8507
8508
8509SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8510 PyObject *resultobj = 0;
8511 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 PyObject *swig_obj[1] ;
8515
8516 if (!args) SWIG_fail;
8517 swig_obj[0] = args;
8518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8519 if (!SWIG_IsOK(res1)) {
8520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8521 }
8522 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8523 {
8524 delete arg1;
8525
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 resultobj = SWIG_Py_Void();
8529 return resultobj;
8530fail:
8531 return NULL;
8532}
8533
8534
8535SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8536 PyObject *resultobj = 0;
8537 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8538 wxAlphaPixelData_Accessor result;
8539 void *argp1 = 0 ;
8540 int res1 = 0 ;
8541 PyObject *swig_obj[1] ;
8542
8543 if (!args) SWIG_fail;
8544 swig_obj[0] = args;
8545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8550 {
8551 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8552 if (PyErr_Occurred()) SWIG_fail;
8553 }
8554 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8555 return resultobj;
8556fail:
8557 return NULL;
8558}
8559
8560
8561SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8562 PyObject *resultobj = 0;
8563 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8564 void *argp1 = 0 ;
8565 int res1 = 0 ;
8566 PyObject *swig_obj[1] ;
8567
8568 if (!args) SWIG_fail;
8569 swig_obj[0] = args;
8570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8573 }
8574 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8575 {
8576 (arg1)->UseAlpha();
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 resultobj = SWIG_Py_Void();
8580 return resultobj;
8581fail:
8582 return NULL;
8583}
8584
8585
8586SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8587 PyObject *resultobj = 0;
8588 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8589 bool result;
8590 void *argp1 = 0 ;
8591 int res1 = 0 ;
8592 PyObject *swig_obj[1] ;
8593
8594 if (!args) SWIG_fail;
8595 swig_obj[0] = args;
8596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8597 if (!SWIG_IsOK(res1)) {
8598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8599 }
8600 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8601 {
8602 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8603 if (PyErr_Occurred()) SWIG_fail;
8604 }
8605 {
8606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8607 }
8608 return resultobj;
8609fail:
8610 return NULL;
8611}
8612
8613
8614SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8615 PyObject *obj;
8616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8617 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8618 return SWIG_Py_Void();
8619}
8620
8621SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8622 return SWIG_Python_InitShadowInstance(args);
8623}
8624
8625SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8626 PyObject *resultobj = 0;
8627 wxAlphaPixelData *arg1 = 0 ;
8628 wxAlphaPixelData_Accessor *result = 0 ;
8629 void *argp1 = 0 ;
8630 int res1 = 0 ;
8631
8632 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8636 }
8637 if (!argp1) {
8638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8639 }
8640 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8641 {
8642 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8646 return resultobj;
8647fail:
8648 return NULL;
8649}
8650
8651
8652SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8653 PyObject *resultobj = 0;
8654 wxBitmap *arg1 = 0 ;
8655 wxAlphaPixelData *arg2 = 0 ;
8656 wxAlphaPixelData_Accessor *result = 0 ;
8657 void *argp1 = 0 ;
8658 int res1 = 0 ;
8659 void *argp2 = 0 ;
8660 int res2 = 0 ;
8661
8662 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8664 if (!SWIG_IsOK(res1)) {
8665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8666 }
8667 if (!argp1) {
8668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8669 }
8670 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8671 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8672 if (!SWIG_IsOK(res2)) {
8673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8674 }
8675 if (!argp2) {
8676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8677 }
8678 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8679 {
8680 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8684 return resultobj;
8685fail:
8686 return NULL;
8687}
8688
8689
8690SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8691 PyObject *resultobj = 0;
8692 wxAlphaPixelData_Accessor *result = 0 ;
8693
8694 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8695 {
8696 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8700 return resultobj;
8701fail:
8702 return NULL;
8703}
8704
8705
8706SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8707 int argc;
8708 PyObject *argv[3];
8709
8710 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8711 --argc;
8712 if (argc == 0) {
8713 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8714 }
8715 if (argc == 1) {
8716 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8717 }
8718 if (argc == 2) {
8719 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8720 }
8721
8722fail:
8723 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8724 return NULL;
8725}
8726
8727
8728SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8729 PyObject *resultobj = 0;
8730 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8731 void *argp1 = 0 ;
8732 int res1 = 0 ;
8733 PyObject *swig_obj[1] ;
8734
8735 if (!args) SWIG_fail;
8736 swig_obj[0] = args;
8737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8738 if (!SWIG_IsOK(res1)) {
8739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8740 }
8741 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8742 {
8743 delete arg1;
8744
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_Py_Void();
8748 return resultobj;
8749fail:
8750 return NULL;
8751}
8752
8753
8754SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj = 0;
8756 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8757 wxAlphaPixelData *arg2 = 0 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 void *argp2 = 0 ;
8761 int res2 = 0 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 char * kwnames[] = {
8765 (char *) "self",(char *) "data", NULL
8766 };
8767
8768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8772 }
8773 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8775 if (!SWIG_IsOK(res2)) {
8776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8777 }
8778 if (!argp2) {
8779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8780 }
8781 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8782 {
8783 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 resultobj = SWIG_Py_Void();
8787 return resultobj;
8788fail:
8789 return NULL;
8790}
8791
8792
8793SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8794 PyObject *resultobj = 0;
8795 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8796 bool result;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 PyObject *swig_obj[1] ;
8800
8801 if (!args) SWIG_fail;
8802 swig_obj[0] = args;
8803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8804 if (!SWIG_IsOK(res1)) {
8805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8806 }
8807 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8808 {
8809 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8810 if (PyErr_Occurred()) SWIG_fail;
8811 }
8812 {
8813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8814 }
8815 return resultobj;
8816fail:
8817 return NULL;
8818}
8819
8820
8821SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8822 PyObject *resultobj = 0;
8823 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8824 void *argp1 = 0 ;
8825 int res1 = 0 ;
8826 PyObject *swig_obj[1] ;
8827
8828 if (!args) SWIG_fail;
8829 swig_obj[0] = args;
8830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8833 }
8834 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8835 {
8836 wxAlphaPixelData_Accessor_nextPixel(arg1);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 resultobj = SWIG_Py_Void();
8840 return resultobj;
8841fail:
8842 return NULL;
8843}
8844
8845
8846SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj = 0;
8848 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8849 wxAlphaPixelData *arg2 = 0 ;
8850 int arg3 ;
8851 int arg4 ;
8852 void *argp1 = 0 ;
8853 int res1 = 0 ;
8854 void *argp2 = 0 ;
8855 int res2 = 0 ;
8856 int val3 ;
8857 int ecode3 = 0 ;
8858 int val4 ;
8859 int ecode4 = 0 ;
8860 PyObject * obj0 = 0 ;
8861 PyObject * obj1 = 0 ;
8862 PyObject * obj2 = 0 ;
8863 PyObject * obj3 = 0 ;
8864 char * kwnames[] = {
8865 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8866 };
8867
8868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8870 if (!SWIG_IsOK(res1)) {
8871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8872 }
8873 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8875 if (!SWIG_IsOK(res2)) {
8876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8877 }
8878 if (!argp2) {
8879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8880 }
8881 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8882 ecode3 = SWIG_AsVal_int(obj2, &val3);
8883 if (!SWIG_IsOK(ecode3)) {
8884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8885 }
8886 arg3 = static_cast< int >(val3);
8887 ecode4 = SWIG_AsVal_int(obj3, &val4);
8888 if (!SWIG_IsOK(ecode4)) {
8889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8890 }
8891 arg4 = static_cast< int >(val4);
8892 {
8893 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_Py_Void();
8897 return resultobj;
8898fail:
8899 return NULL;
8900}
8901
8902
8903SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8904 PyObject *resultobj = 0;
8905 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8906 wxAlphaPixelData *arg2 = 0 ;
8907 int arg3 ;
8908 void *argp1 = 0 ;
8909 int res1 = 0 ;
8910 void *argp2 = 0 ;
8911 int res2 = 0 ;
8912 int val3 ;
8913 int ecode3 = 0 ;
8914 PyObject * obj0 = 0 ;
8915 PyObject * obj1 = 0 ;
8916 PyObject * obj2 = 0 ;
8917 char * kwnames[] = {
8918 (char *) "self",(char *) "data",(char *) "x", NULL
8919 };
8920
8921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8923 if (!SWIG_IsOK(res1)) {
8924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8925 }
8926 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8928 if (!SWIG_IsOK(res2)) {
8929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8930 }
8931 if (!argp2) {
8932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8933 }
8934 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8935 ecode3 = SWIG_AsVal_int(obj2, &val3);
8936 if (!SWIG_IsOK(ecode3)) {
8937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8938 }
8939 arg3 = static_cast< int >(val3);
8940 {
8941 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
8944 resultobj = SWIG_Py_Void();
8945 return resultobj;
8946fail:
8947 return NULL;
8948}
8949
8950
8951SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8952 PyObject *resultobj = 0;
8953 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8954 wxAlphaPixelData *arg2 = 0 ;
8955 int arg3 ;
8956 void *argp1 = 0 ;
8957 int res1 = 0 ;
8958 void *argp2 = 0 ;
8959 int res2 = 0 ;
8960 int val3 ;
8961 int ecode3 = 0 ;
8962 PyObject * obj0 = 0 ;
8963 PyObject * obj1 = 0 ;
8964 PyObject * obj2 = 0 ;
8965 char * kwnames[] = {
8966 (char *) "self",(char *) "data",(char *) "y", NULL
8967 };
8968
8969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8971 if (!SWIG_IsOK(res1)) {
8972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8973 }
8974 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8976 if (!SWIG_IsOK(res2)) {
8977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8978 }
8979 if (!argp2) {
8980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8981 }
8982 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8983 ecode3 = SWIG_AsVal_int(obj2, &val3);
8984 if (!SWIG_IsOK(ecode3)) {
8985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8986 }
8987 arg3 = static_cast< int >(val3);
8988 {
8989 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 resultobj = SWIG_Py_Void();
8993 return resultobj;
8994fail:
8995 return NULL;
8996}
8997
8998
8999SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj = 0;
9001 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9002 wxAlphaPixelData *arg2 = 0 ;
9003 int arg3 ;
9004 int arg4 ;
9005 void *argp1 = 0 ;
9006 int res1 = 0 ;
9007 void *argp2 = 0 ;
9008 int res2 = 0 ;
9009 int val3 ;
9010 int ecode3 = 0 ;
9011 int val4 ;
9012 int ecode4 = 0 ;
9013 PyObject * obj0 = 0 ;
9014 PyObject * obj1 = 0 ;
9015 PyObject * obj2 = 0 ;
9016 PyObject * obj3 = 0 ;
9017 char * kwnames[] = {
9018 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9019 };
9020
9021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9023 if (!SWIG_IsOK(res1)) {
9024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9025 }
9026 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9028 if (!SWIG_IsOK(res2)) {
9029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9030 }
9031 if (!argp2) {
9032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9033 }
9034 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9035 ecode3 = SWIG_AsVal_int(obj2, &val3);
9036 if (!SWIG_IsOK(ecode3)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9038 }
9039 arg3 = static_cast< int >(val3);
9040 ecode4 = SWIG_AsVal_int(obj3, &val4);
9041 if (!SWIG_IsOK(ecode4)) {
9042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9043 }
9044 arg4 = static_cast< int >(val4);
9045 {
9046 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9047 if (PyErr_Occurred()) SWIG_fail;
9048 }
9049 resultobj = SWIG_Py_Void();
9050 return resultobj;
9051fail:
9052 return NULL;
9053}
9054
9055
9056SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9057 PyObject *resultobj = 0;
9058 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9059 byte arg2 ;
9060 byte arg3 ;
9061 byte arg4 ;
9062 byte arg5 ;
9063 void *argp1 = 0 ;
9064 int res1 = 0 ;
9065 unsigned char val2 ;
9066 int ecode2 = 0 ;
9067 unsigned char val3 ;
9068 int ecode3 = 0 ;
9069 unsigned char val4 ;
9070 int ecode4 = 0 ;
9071 unsigned char val5 ;
9072 int ecode5 = 0 ;
9073 PyObject * obj0 = 0 ;
9074 PyObject * obj1 = 0 ;
9075 PyObject * obj2 = 0 ;
9076 PyObject * obj3 = 0 ;
9077 PyObject * obj4 = 0 ;
9078 char * kwnames[] = {
9079 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9080 };
9081
9082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9084 if (!SWIG_IsOK(res1)) {
9085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9086 }
9087 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9088 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9089 if (!SWIG_IsOK(ecode2)) {
9090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9091 }
9092 arg2 = static_cast< byte >(val2);
9093 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9094 if (!SWIG_IsOK(ecode3)) {
9095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9096 }
9097 arg3 = static_cast< byte >(val3);
9098 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9099 if (!SWIG_IsOK(ecode4)) {
9100 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9101 }
9102 arg4 = static_cast< byte >(val4);
9103 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9104 if (!SWIG_IsOK(ecode5)) {
9105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9106 }
9107 arg5 = static_cast< byte >(val5);
9108 {
9109 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9110 if (PyErr_Occurred()) SWIG_fail;
554f62e9 9111 }
fc46b7f3 9112 resultobj = SWIG_Py_Void();
554f62e9
RD
9113 return resultobj;
9114fail:
9115 return NULL;
9116}
9117
9118
fc46b7f3 9119SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9120 PyObject *resultobj = 0;
fc46b7f3
RD
9121 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9122 PyObject *result = 0 ;
554f62e9
RD
9123 void *argp1 = 0 ;
9124 int res1 = 0 ;
fc46b7f3 9125 PyObject *swig_obj[1] ;
554f62e9 9126
fc46b7f3
RD
9127 if (!args) SWIG_fail;
9128 swig_obj[0] = args;
9129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 9130 if (!SWIG_IsOK(res1)) {
fc46b7f3 9131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 9132 }
fc46b7f3 9133 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 9134 {
fc46b7f3 9135 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
fc46b7f3 9138 resultobj = result;
554f62e9
RD
9139 return resultobj;
9140fail:
9141 return NULL;
d55e5bfc
RD
9142}
9143
9144
fc46b7f3 9145SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9146 PyObject *obj;
9147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 9148 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 9149 return SWIG_Py_Void();
d55e5bfc
RD
9150}
9151
fc46b7f3 9152SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9153 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
9154}
9155
554f62e9
RD
9156SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9157 PyObject *resultobj = 0;
9158 wxBitmap *arg1 = 0 ;
9159 wxColour const &arg2_defvalue = wxNullColour ;
9160 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9161 wxMask *result = 0 ;
9162 void *argp1 = 0 ;
9163 int res1 = 0 ;
9164 wxColour temp2 ;
9165 PyObject * obj0 = 0 ;
9166 PyObject * obj1 = 0 ;
9167 char * kwnames[] = {
9168 (char *) "bitmap",(char *) "colour", NULL
9169 };
9170
9171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9172 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9173 if (!SWIG_IsOK(res1)) {
9174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9175 }
9176 if (!argp1) {
9177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9178 }
9179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9180 if (obj1) {
d55e5bfc 9181 {
554f62e9
RD
9182 arg2 = &temp2;
9183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9184 }
554f62e9
RD
9185 }
9186 {
9187 if (!wxPyCheckForApp()) SWIG_fail;
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9194 return resultobj;
9195fail:
9196 return NULL;
d55e5bfc
RD
9197}
9198
9199
554f62e9
RD
9200SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9201 PyObject *resultobj = 0;
9202 wxMask *arg1 = (wxMask *) 0 ;
9203 void *argp1 = 0 ;
9204 int res1 = 0 ;
9205 PyObject *swig_obj[1] ;
9206
9207 if (!args) SWIG_fail;
9208 swig_obj[0] = args;
9209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9210 if (!SWIG_IsOK(res1)) {
9211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9212 }
9213 arg1 = reinterpret_cast< wxMask * >(argp1);
9214 {
554f62e9 9215 delete arg1;
d55e5bfc 9216
554f62e9
RD
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_Py_Void();
9220 return resultobj;
9221fail:
9222 return NULL;
9223}
9224
9225
9226SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9227 PyObject *obj;
9228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9229 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9230 return SWIG_Py_Void();
9231}
9232
9233SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9234 return SWIG_Python_InitShadowInstance(args);
9235}
9236
9237SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = 0;
9239 wxString *arg1 = 0 ;
9240 wxBitmapType arg2 ;
9241 int arg3 = (int) -1 ;
9242 int arg4 = (int) -1 ;
9243 wxIcon *result = 0 ;
9244 bool temp1 = false ;
9245 int val2 ;
9246 int ecode2 = 0 ;
9247 int val3 ;
9248 int ecode3 = 0 ;
9249 int val4 ;
9250 int ecode4 = 0 ;
9251 PyObject * obj0 = 0 ;
9252 PyObject * obj1 = 0 ;
9253 PyObject * obj2 = 0 ;
9254 PyObject * obj3 = 0 ;
9255 char * kwnames[] = {
9256 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9257 };
9258
9259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9260 {
9261 arg1 = wxString_in_helper(obj0);
9262 if (arg1 == NULL) SWIG_fail;
9263 temp1 = true;
9264 }
9265 ecode2 = SWIG_AsVal_int(obj1, &val2);
9266 if (!SWIG_IsOK(ecode2)) {
9267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9268 }
9269 arg2 = static_cast< wxBitmapType >(val2);
9270 if (obj2) {
9271 ecode3 = SWIG_AsVal_int(obj2, &val3);
9272 if (!SWIG_IsOK(ecode3)) {
9273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9274 }
9275 arg3 = static_cast< int >(val3);
9276 }
9277 if (obj3) {
9278 ecode4 = SWIG_AsVal_int(obj3, &val4);
9279 if (!SWIG_IsOK(ecode4)) {
9280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9281 }
9282 arg4 = static_cast< int >(val4);
9283 }
9284 {
9285 if (!wxPyCheckForApp()) SWIG_fail;
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
9287 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9292 {
9293 if (temp1)
9294 delete arg1;
9295 }
9296 return resultobj;
9297fail:
9298 {
9299 if (temp1)
9300 delete arg1;
9301 }
9302 return NULL;
d55e5bfc
RD
9303}
9304
9305
554f62e9
RD
9306SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9307 PyObject *resultobj = 0;
9308 wxIcon *arg1 = (wxIcon *) 0 ;
9309 void *argp1 = 0 ;
9310 int res1 = 0 ;
9311 PyObject *swig_obj[1] ;
9312
9313 if (!args) SWIG_fail;
9314 swig_obj[0] = args;
9315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9316 if (!SWIG_IsOK(res1)) {
9317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9318 }
9319 arg1 = reinterpret_cast< wxIcon * >(argp1);
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 delete arg1;
d55e5bfc 9323
554f62e9
RD
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 resultobj = SWIG_Py_Void();
9328 return resultobj;
9329fail:
9330 return NULL;
d55e5bfc
RD
9331}
9332
9333
554f62e9
RD
9334SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9335 PyObject *resultobj = 0;
9336 wxIcon *result = 0 ;
9337
9338 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9339 {
9340 if (!wxPyCheckForApp()) SWIG_fail;
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (wxIcon *)new wxIcon();
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9347 return resultobj;
9348fail:
9349 return NULL;
9350}
9351
9352
9353SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj = 0;
9355 wxIconLocation *arg1 = 0 ;
9356 wxIcon *result = 0 ;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 PyObject * obj0 = 0 ;
9360 char * kwnames[] = {
9361 (char *) "loc", NULL
9362 };
9363
9364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9365 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9366 if (!SWIG_IsOK(res1)) {
9367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9368 }
9369 if (!argp1) {
9370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9371 }
9372 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9373 {
9374 if (!wxPyCheckForApp()) SWIG_fail;
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9381 return resultobj;
9382fail:
9383 return NULL;
9384}
9385
9386
9387SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj = 0;
9389 wxBitmap *arg1 = 0 ;
9390 wxIcon *result = 0 ;
9391 void *argp1 = 0 ;
9392 int res1 = 0 ;
9393 PyObject * obj0 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "bmp", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9402 }
9403 if (!argp1) {
9404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9405 }
9406 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9407 {
9408 if (!wxPyCheckForApp()) SWIG_fail;
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9415 return resultobj;
9416fail:
9417 return NULL;
d55e5bfc
RD
9418}
9419
9420
554f62e9
RD
9421SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj = 0;
9423 PyObject *arg1 = (PyObject *) 0 ;
9424 wxIcon *result = 0 ;
9425 PyObject * obj0 = 0 ;
9426 char * kwnames[] = {
9427 (char *) "listOfStrings", NULL
9428 };
9429
9430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9431 arg1 = obj0;
9432 {
9433 if (!wxPyCheckForApp()) SWIG_fail;
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (wxIcon *)new_wxIcon(arg1);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9440 return resultobj;
9441fail:
9442 return NULL;
9443}
9444
9445
9446SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxIcon *arg1 = (wxIcon *) 0 ;
9449 wxString *arg2 = 0 ;
9450 wxBitmapType arg3 ;
9451 bool result;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 bool temp2 = false ;
9455 int val3 ;
9456 int ecode3 = 0 ;
9457 PyObject * obj0 = 0 ;
9458 PyObject * obj1 = 0 ;
9459 PyObject * obj2 = 0 ;
9460 char * kwnames[] = {
9461 (char *) "self",(char *) "name",(char *) "type", NULL
9462 };
9463
9464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9466 if (!SWIG_IsOK(res1)) {
9467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9468 }
9469 arg1 = reinterpret_cast< wxIcon * >(argp1);
9470 {
9471 arg2 = wxString_in_helper(obj1);
9472 if (arg2 == NULL) SWIG_fail;
9473 temp2 = true;
9474 }
9475 ecode3 = SWIG_AsVal_int(obj2, &val3);
9476 if (!SWIG_IsOK(ecode3)) {
9477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9478 }
9479 arg3 = static_cast< wxBitmapType >(val3);
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9488 }
9489 {
9490 if (temp2)
9491 delete arg2;
9492 }
9493 return resultobj;
9494fail:
9495 {
9496 if (temp2)
9497 delete arg2;
9498 }
9499 return NULL;
d55e5bfc
RD
9500}
9501
9502
554f62e9
RD
9503SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9504 PyObject *resultobj = 0;
9505 wxIcon *arg1 = (wxIcon *) 0 ;
9506 long result;
9507 void *argp1 = 0 ;
9508 int res1 = 0 ;
9509 PyObject *swig_obj[1] ;
9510
9511 if (!args) SWIG_fail;
9512 swig_obj[0] = args;
9513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9514 if (!SWIG_IsOK(res1)) {
9515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9516 }
9517 arg1 = reinterpret_cast< wxIcon * >(argp1);
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 result = (long)(arg1)->GetHandle();
9521 wxPyEndAllowThreads(__tstate);
9522 if (PyErr_Occurred()) SWIG_fail;
9523 }
9524 resultobj = SWIG_From_long(static_cast< long >(result));
9525 return resultobj;
9526fail:
9527 return NULL;
9528}
9529
9530
9531SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9532 PyObject *resultobj = 0;
9533 wxIcon *arg1 = (wxIcon *) 0 ;
9534 long arg2 ;
9535 void *argp1 = 0 ;
9536 int res1 = 0 ;
9537 long val2 ;
9538 int ecode2 = 0 ;
9539 PyObject * obj0 = 0 ;
9540 PyObject * obj1 = 0 ;
9541 char * kwnames[] = {
9542 (char *) "self",(char *) "handle", NULL
9543 };
9544
9545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9549 }
9550 arg1 = reinterpret_cast< wxIcon * >(argp1);
9551 ecode2 = SWIG_AsVal_long(obj1, &val2);
9552 if (!SWIG_IsOK(ecode2)) {
9553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9554 }
9555 arg2 = static_cast< long >(val2);
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
9558 wxIcon_SetHandle(arg1,arg2);
9559 wxPyEndAllowThreads(__tstate);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 resultobj = SWIG_Py_Void();
9563 return resultobj;
9564fail:
9565 return NULL;
d55e5bfc
RD
9566}
9567
9568
b39fe951 9569SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9570 PyObject *resultobj = 0;
9571 wxIcon *arg1 = (wxIcon *) 0 ;
9572 bool result;
9573 void *argp1 = 0 ;
9574 int res1 = 0 ;
9575 PyObject *swig_obj[1] ;
9576
9577 if (!args) SWIG_fail;
9578 swig_obj[0] = args;
9579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
b39fe951 9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9582 }
9583 arg1 = reinterpret_cast< wxIcon * >(argp1);
9584 {
9585 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9586 result = (bool)(arg1)->IsOk();
554f62e9
RD
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 {
9591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9592 }
9593 return resultobj;
9594fail:
9595 return NULL;
d55e5bfc
RD
9596}
9597
9598
554f62e9
RD
9599SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *resultobj = 0;
9601 wxIcon *arg1 = (wxIcon *) 0 ;
9602 int result;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9612 }
9613 arg1 = reinterpret_cast< wxIcon * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (int)(arg1)->GetWidth();
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_From_int(static_cast< int >(result));
9621 return resultobj;
9622fail:
9623 return NULL;
c1cb24a4
RD
9624}
9625
9626
554f62e9
RD
9627SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9628 PyObject *resultobj = 0;
9629 wxIcon *arg1 = (wxIcon *) 0 ;
9630 int result;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 PyObject *swig_obj[1] ;
9634
9635 if (!args) SWIG_fail;
9636 swig_obj[0] = args;
9637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9640 }
9641 arg1 = reinterpret_cast< wxIcon * >(argp1);
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 result = (int)(arg1)->GetHeight();
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_From_int(static_cast< int >(result));
9649 return resultobj;
9650fail:
9651 return NULL;
c1cb24a4
RD
9652}
9653
9654
554f62e9
RD
9655SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9656 PyObject *resultobj = 0;
9657 wxIcon *arg1 = (wxIcon *) 0 ;
9658 int result;
9659 void *argp1 = 0 ;
9660 int res1 = 0 ;
9661 PyObject *swig_obj[1] ;
9662
9663 if (!args) SWIG_fail;
9664 swig_obj[0] = args;
9665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9666 if (!SWIG_IsOK(res1)) {
9667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9668 }
9669 arg1 = reinterpret_cast< wxIcon * >(argp1);
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 result = (int)(arg1)->GetDepth();
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 resultobj = SWIG_From_int(static_cast< int >(result));
9677 return resultobj;
9678fail:
9679 return NULL;
9680}
9681
9682
9683SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj = 0;
9685 wxIcon *arg1 = (wxIcon *) 0 ;
9686 int arg2 ;
9687 void *argp1 = 0 ;
9688 int res1 = 0 ;
9689 int val2 ;
9690 int ecode2 = 0 ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char * kwnames[] = {
9694 (char *) "self",(char *) "w", NULL
9695 };
9696
9697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIcon * >(argp1);
9703 ecode2 = SWIG_AsVal_int(obj1, &val2);
9704 if (!SWIG_IsOK(ecode2)) {
9705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9706 }
9707 arg2 = static_cast< int >(val2);
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SetWidth(arg2);
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 return resultobj;
9716fail:
9717 return NULL;
9718}
9719
9720
9721SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9722 PyObject *resultobj = 0;
9723 wxIcon *arg1 = (wxIcon *) 0 ;
9724 int arg2 ;
9725 void *argp1 = 0 ;
9726 int res1 = 0 ;
9727 int val2 ;
9728 int ecode2 = 0 ;
9729 PyObject * obj0 = 0 ;
9730 PyObject * obj1 = 0 ;
9731 char * kwnames[] = {
9732 (char *) "self",(char *) "h", NULL
9733 };
9734
9735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9737 if (!SWIG_IsOK(res1)) {
9738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9739 }
9740 arg1 = reinterpret_cast< wxIcon * >(argp1);
9741 ecode2 = SWIG_AsVal_int(obj1, &val2);
9742 if (!SWIG_IsOK(ecode2)) {
9743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9744 }
9745 arg2 = static_cast< int >(val2);
9746 {
9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
9748 (arg1)->SetHeight(arg2);
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 resultobj = SWIG_Py_Void();
9753 return resultobj;
9754fail:
9755 return NULL;
9756}
9757
9758
9759SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj = 0;
9761 wxIcon *arg1 = (wxIcon *) 0 ;
9762 int arg2 ;
9763 void *argp1 = 0 ;
9764 int res1 = 0 ;
9765 int val2 ;
9766 int ecode2 = 0 ;
9767 PyObject * obj0 = 0 ;
9768 PyObject * obj1 = 0 ;
9769 char * kwnames[] = {
9770 (char *) "self",(char *) "d", NULL
9771 };
9772
9773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9775 if (!SWIG_IsOK(res1)) {
9776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9777 }
9778 arg1 = reinterpret_cast< wxIcon * >(argp1);
9779 ecode2 = SWIG_AsVal_int(obj1, &val2);
9780 if (!SWIG_IsOK(ecode2)) {
9781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9782 }
9783 arg2 = static_cast< int >(val2);
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 (arg1)->SetDepth(arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_Py_Void();
9791 return resultobj;
9792fail:
9793 return NULL;
9794}
9795
9796
9797SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxIcon *arg1 = (wxIcon *) 0 ;
9800 wxSize *arg2 = 0 ;
9801 void *argp1 = 0 ;
9802 int res1 = 0 ;
9803 wxSize temp2 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 char * kwnames[] = {
9807 (char *) "self",(char *) "size", NULL
9808 };
9809
9810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9814 }
9815 arg1 = reinterpret_cast< wxIcon * >(argp1);
9816 {
9817 arg2 = &temp2;
9818 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9819 }
9820 {
9821 PyThreadState* __tstate = wxPyBeginAllowThreads();
9822 (arg1)->SetSize((wxSize const &)*arg2);
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 resultobj = SWIG_Py_Void();
9827 return resultobj;
9828fail:
9829 return NULL;
9830}
9831
9832
9833SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9834 PyObject *resultobj = 0;
9835 wxIcon *arg1 = (wxIcon *) 0 ;
9836 wxBitmap *arg2 = 0 ;
9837 void *argp1 = 0 ;
9838 int res1 = 0 ;
9839 void *argp2 = 0 ;
9840 int res2 = 0 ;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 char * kwnames[] = {
9844 (char *) "self",(char *) "bmp", NULL
9845 };
9846
9847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9849 if (!SWIG_IsOK(res1)) {
9850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9851 }
9852 arg1 = reinterpret_cast< wxIcon * >(argp1);
9853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9854 if (!SWIG_IsOK(res2)) {
9855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9856 }
9857 if (!argp2) {
9858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9859 }
9860 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 resultobj = SWIG_Py_Void();
9868 return resultobj;
9869fail:
9870 return NULL;
d55e5bfc
RD
9871}
9872
9873
554f62e9
RD
9874SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9875 PyObject *obj;
9876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9877 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9878 return SWIG_Py_Void();
d55e5bfc
RD
9879}
9880
554f62e9
RD
9881SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9882 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9883}
9884
554f62e9
RD
9885SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj = 0;
9887 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9888 int arg2 = (int) 0 ;
9889 wxIconLocation *result = 0 ;
9890 bool temp1 = false ;
9891 int val2 ;
9892 int ecode2 = 0 ;
9893 PyObject * obj0 = 0 ;
9894 PyObject * obj1 = 0 ;
9895 char * kwnames[] = {
9896 (char *) "filename",(char *) "num", NULL
9897 };
9898
9899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9900 if (obj0) {
d55e5bfc 9901 {
554f62e9
RD
9902 arg1 = wxString_in_helper(obj0);
9903 if (arg1 == NULL) SWIG_fail;
9904 temp1 = true;
d55e5bfc 9905 }
554f62e9
RD
9906 }
9907 if (obj1) {
9908 ecode2 = SWIG_AsVal_int(obj1, &val2);
9909 if (!SWIG_IsOK(ecode2)) {
9910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9911 }
9912 arg2 = static_cast< int >(val2);
9913 }
9914 {
9915 PyThreadState* __tstate = wxPyBeginAllowThreads();
9916 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9917 wxPyEndAllowThreads(__tstate);
9918 if (PyErr_Occurred()) SWIG_fail;
9919 }
9920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9921 {
9922 if (temp1)
9923 delete arg1;
9924 }
9925 return resultobj;
9926fail:
9927 {
9928 if (temp1)
9929 delete arg1;
9930 }
9931 return NULL;
d55e5bfc
RD
9932}
9933
9934
554f62e9
RD
9935SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9936 PyObject *resultobj = 0;
9937 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9938 void *argp1 = 0 ;
9939 int res1 = 0 ;
9940 PyObject *swig_obj[1] ;
9941
9942 if (!args) SWIG_fail;
9943 swig_obj[0] = args;
9944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9945 if (!SWIG_IsOK(res1)) {
9946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9947 }
9948 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 delete arg1;
d55e5bfc 9952
554f62e9
RD
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 resultobj = SWIG_Py_Void();
9957 return resultobj;
9958fail:
9959 return NULL;
d55e5bfc
RD
9960}
9961
9962
554f62e9
RD
9963SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *resultobj = 0;
9965 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9966 bool result;
9967 void *argp1 = 0 ;
9968 int res1 = 0 ;
9969 PyObject *swig_obj[1] ;
9970
9971 if (!args) SWIG_fail;
9972 swig_obj[0] = args;
9973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9974 if (!SWIG_IsOK(res1)) {
9975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9976 }
9977 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 {
9985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9986 }
9987 return resultobj;
9988fail:
9989 return NULL;
9990}
9991
9992
9993SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj = 0;
9995 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9996 wxString *arg2 = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 bool temp2 = false ;
10000 PyObject * obj0 = 0 ;
10001 PyObject * obj1 = 0 ;
10002 char * kwnames[] = {
10003 (char *) "self",(char *) "filename", NULL
10004 };
10005
10006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10008 if (!SWIG_IsOK(res1)) {
10009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10010 }
10011 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10012 {
10013 arg2 = wxString_in_helper(obj1);
10014 if (arg2 == NULL) SWIG_fail;
10015 temp2 = true;
10016 }
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 (arg1)->SetFileName((wxString const &)*arg2);
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 resultobj = SWIG_Py_Void();
10024 {
10025 if (temp2)
10026 delete arg2;
10027 }
10028 return resultobj;
10029fail:
10030 {
10031 if (temp2)
10032 delete arg2;
10033 }
10034 return NULL;
d55e5bfc
RD
10035}
10036
10037
554f62e9
RD
10038SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10039 PyObject *resultobj = 0;
10040 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10041 wxString *result = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 PyObject *swig_obj[1] ;
10045
10046 if (!args) SWIG_fail;
10047 swig_obj[0] = args;
10048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10049 if (!SWIG_IsOK(res1)) {
10050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10051 }
10052 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10055 {
554f62e9
RD
10056 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10057 result = (wxString *) &_result_ref;
093d3ff1 10058 }
554f62e9
RD
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 {
10063#if wxUSE_UNICODE
10064 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10065#else
10066 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10067#endif
10068 }
10069 return resultobj;
10070fail:
10071 return NULL;
10072}
10073
10074
10075SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj = 0;
10077 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10078 int arg2 ;
10079 void *argp1 = 0 ;
10080 int res1 = 0 ;
10081 int val2 ;
10082 int ecode2 = 0 ;
10083 PyObject * obj0 = 0 ;
10084 PyObject * obj1 = 0 ;
10085 char * kwnames[] = {
10086 (char *) "self",(char *) "num", NULL
10087 };
10088
10089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10091 if (!SWIG_IsOK(res1)) {
10092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10093 }
10094 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10095 ecode2 = SWIG_AsVal_int(obj1, &val2);
10096 if (!SWIG_IsOK(ecode2)) {
10097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10098 }
10099 arg2 = static_cast< int >(val2);
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 wxIconLocation_SetIndex(arg1,arg2);
10103 wxPyEndAllowThreads(__tstate);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 }
10106 resultobj = SWIG_Py_Void();
10107 return resultobj;
10108fail:
10109 return NULL;
d55e5bfc
RD
10110}
10111
10112
554f62e9
RD
10113SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 PyObject *resultobj = 0;
10115 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10116 int result;
10117 void *argp1 = 0 ;
10118 int res1 = 0 ;
10119 PyObject *swig_obj[1] ;
10120
10121 if (!args) SWIG_fail;
10122 swig_obj[0] = args;
10123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10124 if (!SWIG_IsOK(res1)) {
10125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10126 }
10127 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (int)wxIconLocation_GetIndex(arg1);
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_From_int(static_cast< int >(result));
10135 return resultobj;
10136fail:
10137 return NULL;
d55e5bfc
RD
10138}
10139
10140
554f62e9
RD
10141SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10142 PyObject *obj;
10143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10144 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10145 return SWIG_Py_Void();
d55e5bfc
RD
10146}
10147
554f62e9
RD
10148SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10149 return SWIG_Python_InitShadowInstance(args);
10150}
d55e5bfc 10151
554f62e9
RD
10152SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10153 PyObject *resultobj = 0;
10154 wxIconBundle *result = 0 ;
10155
10156 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 result = (wxIconBundle *)new wxIconBundle();
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10164 return resultobj;
10165fail:
10166 return NULL;
10167}
10168
10169
10170SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj = 0;
10172 wxString *arg1 = 0 ;
10173 long arg2 ;
10174 wxIconBundle *result = 0 ;
10175 bool temp1 = false ;
10176 long val2 ;
10177 int ecode2 = 0 ;
10178 PyObject * obj0 = 0 ;
10179 PyObject * obj1 = 0 ;
10180 char * kwnames[] = {
10181 (char *) "file",(char *) "type", NULL
10182 };
10183
10184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10185 {
10186 arg1 = wxString_in_helper(obj0);
10187 if (arg1 == NULL) SWIG_fail;
10188 temp1 = true;
10189 }
10190 ecode2 = SWIG_AsVal_long(obj1, &val2);
10191 if (!SWIG_IsOK(ecode2)) {
10192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10193 }
10194 arg2 = static_cast< long >(val2);
10195 {
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10202 {
10203 if (temp1)
10204 delete arg1;
10205 }
10206 return resultobj;
10207fail:
10208 {
10209 if (temp1)
10210 delete arg1;
10211 }
10212 return NULL;
d55e5bfc
RD
10213}
10214
10215
554f62e9
RD
10216SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10217 PyObject *resultobj = 0;
10218 wxIcon *arg1 = 0 ;
10219 wxIconBundle *result = 0 ;
10220 void *argp1 = 0 ;
10221 int res1 = 0 ;
10222 PyObject * obj0 = 0 ;
10223 char * kwnames[] = {
10224 (char *) "icon", NULL
10225 };
10226
10227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10231 }
10232 if (!argp1) {
10233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10234 }
10235 arg1 = reinterpret_cast< wxIcon * >(argp1);
10236 {
10237 PyThreadState* __tstate = wxPyBeginAllowThreads();
10238 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10239 wxPyEndAllowThreads(__tstate);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 }
10242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10243 return resultobj;
10244fail:
10245 return NULL;
d55e5bfc
RD
10246}
10247
10248
554f62e9
RD
10249SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10250 PyObject *resultobj = 0;
10251 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10252 void *argp1 = 0 ;
10253 int res1 = 0 ;
10254 PyObject *swig_obj[1] ;
10255
10256 if (!args) SWIG_fail;
10257 swig_obj[0] = args;
10258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10259 if (!SWIG_IsOK(res1)) {
10260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10261 }
10262 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 delete arg1;
d55e5bfc 10266
554f62e9
RD
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 resultobj = SWIG_Py_Void();
10271 return resultobj;
10272fail:
10273 return NULL;
10274}
10275
10276
10277SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10278 PyObject *resultobj = 0;
10279 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10280 wxIcon *arg2 = 0 ;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 void *argp2 = 0 ;
10284 int res2 = 0 ;
10285 PyObject * obj0 = 0 ;
10286 PyObject * obj1 = 0 ;
10287 char * kwnames[] = {
10288 (char *) "self",(char *) "icon", NULL
10289 };
10290
10291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10293 if (!SWIG_IsOK(res1)) {
10294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10295 }
10296 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10298 if (!SWIG_IsOK(res2)) {
10299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10300 }
10301 if (!argp2) {
10302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10303 }
10304 arg2 = reinterpret_cast< wxIcon * >(argp2);
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 (arg1)->AddIcon((wxIcon const &)*arg2);
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 resultobj = SWIG_Py_Void();
10312 return resultobj;
10313fail:
10314 return NULL;
10315}
10316
10317
10318SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10319 PyObject *resultobj = 0;
10320 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10321 wxString *arg2 = 0 ;
10322 long arg3 ;
10323 void *argp1 = 0 ;
10324 int res1 = 0 ;
10325 bool temp2 = false ;
10326 long val3 ;
10327 int ecode3 = 0 ;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 char * kwnames[] = {
10332 (char *) "self",(char *) "file",(char *) "type", NULL
10333 };
10334
10335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10337 if (!SWIG_IsOK(res1)) {
10338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10339 }
10340 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10341 {
10342 arg2 = wxString_in_helper(obj1);
10343 if (arg2 == NULL) SWIG_fail;
10344 temp2 = true;
10345 }
10346 ecode3 = SWIG_AsVal_long(obj2, &val3);
10347 if (!SWIG_IsOK(ecode3)) {
10348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10349 }
10350 arg3 = static_cast< long >(val3);
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 resultobj = SWIG_Py_Void();
10358 {
10359 if (temp2)
10360 delete arg2;
10361 }
10362 return resultobj;
10363fail:
10364 {
10365 if (temp2)
10366 delete arg2;
10367 }
10368 return NULL;
10369}
10370
10371
10372SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj = 0;
10374 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10375 wxSize *arg2 = 0 ;
10376 wxIcon *result = 0 ;
10377 void *argp1 = 0 ;
10378 int res1 = 0 ;
10379 wxSize temp2 ;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 char * kwnames[] = {
10383 (char *) "self",(char *) "size", NULL
10384 };
10385
10386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10388 if (!SWIG_IsOK(res1)) {
10389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10390 }
10391 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10392 {
10393 arg2 = &temp2;
10394 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10395 }
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10398 {
554f62e9
RD
10399 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10400 result = (wxIcon *) &_result_ref;
d55e5bfc 10401 }
554f62e9
RD
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 {
10406 wxIcon* resultptr = new wxIcon(*result);
10407 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10408 }
10409 return resultobj;
10410fail:
10411 return NULL;
10412}
10413
10414
10415SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10416 PyObject *obj;
10417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10418 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10419 return SWIG_Py_Void();
10420}
10421
10422SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10423 return SWIG_Python_InitShadowInstance(args);
10424}
10425
10426SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10427 PyObject *resultobj = 0;
10428 wxString *arg1 = 0 ;
10429 long arg2 ;
10430 int arg3 = (int) 0 ;
10431 int arg4 = (int) 0 ;
10432 wxCursor *result = 0 ;
10433 bool temp1 = false ;
10434 long val2 ;
10435 int ecode2 = 0 ;
10436 int val3 ;
10437 int ecode3 = 0 ;
10438 int val4 ;
10439 int ecode4 = 0 ;
10440 PyObject * obj0 = 0 ;
10441 PyObject * obj1 = 0 ;
10442 PyObject * obj2 = 0 ;
10443 PyObject * obj3 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10449 {
10450 arg1 = wxString_in_helper(obj0);
10451 if (arg1 == NULL) SWIG_fail;
10452 temp1 = true;
10453 }
10454 ecode2 = SWIG_AsVal_long(obj1, &val2);
10455 if (!SWIG_IsOK(ecode2)) {
10456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10457 }
10458 arg2 = static_cast< long >(val2);
10459 if (obj2) {
10460 ecode3 = SWIG_AsVal_int(obj2, &val3);
10461 if (!SWIG_IsOK(ecode3)) {
10462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10463 }
10464 arg3 = static_cast< int >(val3);
10465 }
10466 if (obj3) {
10467 ecode4 = SWIG_AsVal_int(obj3, &val4);
10468 if (!SWIG_IsOK(ecode4)) {
10469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10470 }
10471 arg4 = static_cast< int >(val4);
10472 }
10473 {
10474 if (!wxPyCheckForApp()) SWIG_fail;
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10481 {
10482 if (temp1)
10483 delete arg1;
10484 }
10485 return resultobj;
10486fail:
10487 {
10488 if (temp1)
10489 delete arg1;
10490 }
10491 return NULL;
d55e5bfc
RD
10492}
10493
10494
554f62e9
RD
10495SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10496 PyObject *resultobj = 0;
10497 wxCursor *arg1 = (wxCursor *) 0 ;
10498 void *argp1 = 0 ;
10499 int res1 = 0 ;
10500 PyObject *swig_obj[1] ;
10501
10502 if (!args) SWIG_fail;
10503 swig_obj[0] = args;
10504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10507 }
10508 arg1 = reinterpret_cast< wxCursor * >(argp1);
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 delete arg1;
d55e5bfc 10512
554f62e9
RD
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_Py_Void();
10517 return resultobj;
10518fail:
10519 return NULL;
10520}
10521
10522
10523SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10524 PyObject *resultobj = 0;
10525 int arg1 ;
10526 wxCursor *result = 0 ;
10527 int val1 ;
10528 int ecode1 = 0 ;
10529 PyObject * obj0 = 0 ;
10530 char * kwnames[] = {
10531 (char *) "id", NULL
10532 };
10533
10534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10535 ecode1 = SWIG_AsVal_int(obj0, &val1);
10536 if (!SWIG_IsOK(ecode1)) {
10537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10538 }
10539 arg1 = static_cast< int >(val1);
10540 {
10541 if (!wxPyCheckForApp()) SWIG_fail;
10542 PyThreadState* __tstate = wxPyBeginAllowThreads();
10543 result = (wxCursor *)new wxCursor(arg1);
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10548 return resultobj;
10549fail:
10550 return NULL;
10551}
10552
10553
10554SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj = 0;
10556 wxImage *arg1 = 0 ;
10557 wxCursor *result = 0 ;
10558 void *argp1 = 0 ;
10559 int res1 = 0 ;
10560 PyObject * obj0 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "image", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10569 }
10570 if (!argp1) {
10571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10572 }
10573 arg1 = reinterpret_cast< wxImage * >(argp1);
10574 {
10575 if (!wxPyCheckForApp()) SWIG_fail;
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10582 return resultobj;
10583fail:
10584 return NULL;
d55e5bfc
RD
10585}
10586
10587
554f62e9
RD
10588SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10589 PyObject *resultobj = 0;
10590 wxCursor *arg1 = (wxCursor *) 0 ;
10591 long result;
10592 void *argp1 = 0 ;
10593 int res1 = 0 ;
10594 PyObject *swig_obj[1] ;
10595
10596 if (!args) SWIG_fail;
10597 swig_obj[0] = args;
10598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10601 }
10602 arg1 = reinterpret_cast< wxCursor * >(argp1);
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (long)(arg1)->GetHandle();
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 resultobj = SWIG_From_long(static_cast< long >(result));
10610 return resultobj;
10611fail:
10612 return NULL;
10613}
10614
10615
10616SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj = 0;
10618 wxCursor *arg1 = (wxCursor *) 0 ;
10619 long arg2 ;
10620 void *argp1 = 0 ;
10621 int res1 = 0 ;
10622 long val2 ;
10623 int ecode2 = 0 ;
10624 PyObject * obj0 = 0 ;
10625 PyObject * obj1 = 0 ;
10626 char * kwnames[] = {
10627 (char *) "self",(char *) "handle", NULL
10628 };
10629
10630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10632 if (!SWIG_IsOK(res1)) {
10633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10634 }
10635 arg1 = reinterpret_cast< wxCursor * >(argp1);
10636 ecode2 = SWIG_AsVal_long(obj1, &val2);
10637 if (!SWIG_IsOK(ecode2)) {
10638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10639 }
10640 arg2 = static_cast< long >(val2);
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 wxCursor_SetHandle(arg1,arg2);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_Py_Void();
10648 return resultobj;
10649fail:
10650 return NULL;
d55e5bfc
RD
10651}
10652
10653
b39fe951 10654SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10655 PyObject *resultobj = 0;
10656 wxCursor *arg1 = (wxCursor *) 0 ;
10657 bool result;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 PyObject *swig_obj[1] ;
10661
10662 if (!args) SWIG_fail;
10663 swig_obj[0] = args;
10664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
b39fe951 10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10667 }
10668 arg1 = reinterpret_cast< wxCursor * >(argp1);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10671 result = (bool)(arg1)->IsOk();
554f62e9
RD
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 {
10676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10677 }
10678 return resultobj;
10679fail:
10680 return NULL;
d55e5bfc
RD
10681}
10682
10683
554f62e9
RD
10684SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10685 PyObject *resultobj = 0;
10686 wxCursor *arg1 = (wxCursor *) 0 ;
10687 int result;
10688 void *argp1 = 0 ;
10689 int res1 = 0 ;
10690 PyObject *swig_obj[1] ;
10691
10692 if (!args) SWIG_fail;
10693 swig_obj[0] = args;
10694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10695 if (!SWIG_IsOK(res1)) {
10696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10697 }
10698 arg1 = reinterpret_cast< wxCursor * >(argp1);
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 result = (int)(arg1)->GetWidth();
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 resultobj = SWIG_From_int(static_cast< int >(result));
10706 return resultobj;
10707fail:
10708 return NULL;
d55e5bfc
RD
10709}
10710
10711
554f62e9
RD
10712SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10713 PyObject *resultobj = 0;
10714 wxCursor *arg1 = (wxCursor *) 0 ;
10715 int result;
10716 void *argp1 = 0 ;
10717 int res1 = 0 ;
10718 PyObject *swig_obj[1] ;
10719
10720 if (!args) SWIG_fail;
10721 swig_obj[0] = args;
10722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10723 if (!SWIG_IsOK(res1)) {
10724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10725 }
10726 arg1 = reinterpret_cast< wxCursor * >(argp1);
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (int)(arg1)->GetHeight();
10730 wxPyEndAllowThreads(__tstate);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 resultobj = SWIG_From_int(static_cast< int >(result));
10734 return resultobj;
10735fail:
10736 return NULL;
d55e5bfc
RD
10737}
10738
10739
554f62e9
RD
10740SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10741 PyObject *resultobj = 0;
10742 wxCursor *arg1 = (wxCursor *) 0 ;
10743 int result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 PyObject *swig_obj[1] ;
10747
10748 if (!args) SWIG_fail;
10749 swig_obj[0] = args;
10750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10753 }
10754 arg1 = reinterpret_cast< wxCursor * >(argp1);
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (int)(arg1)->GetDepth();
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 resultobj = SWIG_From_int(static_cast< int >(result));
10762 return resultobj;
10763fail:
10764 return NULL;
10765}
10766
10767
10768SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10769 PyObject *resultobj = 0;
10770 wxCursor *arg1 = (wxCursor *) 0 ;
10771 int arg2 ;
10772 void *argp1 = 0 ;
10773 int res1 = 0 ;
10774 int val2 ;
10775 int ecode2 = 0 ;
10776 PyObject * obj0 = 0 ;
10777 PyObject * obj1 = 0 ;
10778 char * kwnames[] = {
10779 (char *) "self",(char *) "w", NULL
10780 };
10781
10782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10784 if (!SWIG_IsOK(res1)) {
10785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10786 }
10787 arg1 = reinterpret_cast< wxCursor * >(argp1);
10788 ecode2 = SWIG_AsVal_int(obj1, &val2);
10789 if (!SWIG_IsOK(ecode2)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10791 }
10792 arg2 = static_cast< int >(val2);
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 (arg1)->SetWidth(arg2);
10796 wxPyEndAllowThreads(__tstate);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 resultobj = SWIG_Py_Void();
10800 return resultobj;
10801fail:
10802 return NULL;
10803}
10804
10805
10806SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj = 0;
10808 wxCursor *arg1 = (wxCursor *) 0 ;
10809 int arg2 ;
10810 void *argp1 = 0 ;
10811 int res1 = 0 ;
10812 int val2 ;
10813 int ecode2 = 0 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "h", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10824 }
10825 arg1 = reinterpret_cast< wxCursor * >(argp1);
10826 ecode2 = SWIG_AsVal_int(obj1, &val2);
10827 if (!SWIG_IsOK(ecode2)) {
10828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10829 }
10830 arg2 = static_cast< int >(val2);
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 (arg1)->SetHeight(arg2);
10834 wxPyEndAllowThreads(__tstate);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 resultobj = SWIG_Py_Void();
10838 return resultobj;
10839fail:
10840 return NULL;
10841}
10842
10843
10844SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj = 0;
10846 wxCursor *arg1 = (wxCursor *) 0 ;
10847 int arg2 ;
10848 void *argp1 = 0 ;
10849 int res1 = 0 ;
10850 int val2 ;
10851 int ecode2 = 0 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 char * kwnames[] = {
10855 (char *) "self",(char *) "d", NULL
10856 };
10857
10858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10860 if (!SWIG_IsOK(res1)) {
10861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10862 }
10863 arg1 = reinterpret_cast< wxCursor * >(argp1);
10864 ecode2 = SWIG_AsVal_int(obj1, &val2);
10865 if (!SWIG_IsOK(ecode2)) {
10866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10867 }
10868 arg2 = static_cast< int >(val2);
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 (arg1)->SetDepth(arg2);
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 resultobj = SWIG_Py_Void();
10876 return resultobj;
10877fail:
10878 return NULL;
10879}
10880
10881
10882SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj = 0;
10884 wxCursor *arg1 = (wxCursor *) 0 ;
10885 wxSize *arg2 = 0 ;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 wxSize temp2 ;
10889 PyObject * obj0 = 0 ;
10890 PyObject * obj1 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "size", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10899 }
10900 arg1 = reinterpret_cast< wxCursor * >(argp1);
10901 {
10902 arg2 = &temp2;
10903 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 (arg1)->SetSize((wxSize const &)*arg2);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 resultobj = SWIG_Py_Void();
10912 return resultobj;
10913fail:
10914 return NULL;
10915}
10916
10917
10918SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10919 PyObject *obj;
10920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10921 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10922 return SWIG_Py_Void();
10923}
10924
10925SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10926 return SWIG_Python_InitShadowInstance(args);
10927}
10928
10929SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj = 0;
10931 int arg1 = (int) 0 ;
10932 int arg2 = (int) 0 ;
10933 int arg3 = (int) 0 ;
10934 int arg4 = (int) 0 ;
10935 wxRegion *result = 0 ;
10936 int val1 ;
10937 int ecode1 = 0 ;
10938 int val2 ;
10939 int ecode2 = 0 ;
10940 int val3 ;
10941 int ecode3 = 0 ;
10942 int val4 ;
10943 int ecode4 = 0 ;
10944 PyObject * obj0 = 0 ;
10945 PyObject * obj1 = 0 ;
10946 PyObject * obj2 = 0 ;
10947 PyObject * obj3 = 0 ;
10948 char * kwnames[] = {
10949 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10950 };
10951
10952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10953 if (obj0) {
10954 ecode1 = SWIG_AsVal_int(obj0, &val1);
10955 if (!SWIG_IsOK(ecode1)) {
10956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10957 }
10958 arg1 = static_cast< int >(val1);
10959 }
10960 if (obj1) {
10961 ecode2 = SWIG_AsVal_int(obj1, &val2);
10962 if (!SWIG_IsOK(ecode2)) {
10963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10964 }
10965 arg2 = static_cast< int >(val2);
10966 }
10967 if (obj2) {
10968 ecode3 = SWIG_AsVal_int(obj2, &val3);
10969 if (!SWIG_IsOK(ecode3)) {
10970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10971 }
10972 arg3 = static_cast< int >(val3);
10973 }
10974 if (obj3) {
10975 ecode4 = SWIG_AsVal_int(obj3, &val4);
10976 if (!SWIG_IsOK(ecode4)) {
10977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10978 }
10979 arg4 = static_cast< int >(val4);
10980 }
10981 {
10982 if (!wxPyCheckForApp()) SWIG_fail;
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10989 return resultobj;
10990fail:
10991 return NULL;
10992}
10993
10994
10995SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj = 0;
10997 wxBitmap *arg1 = 0 ;
10998 wxRegion *result = 0 ;
10999 void *argp1 = 0 ;
11000 int res1 = 0 ;
11001 PyObject * obj0 = 0 ;
11002 char * kwnames[] = {
11003 (char *) "bmp", NULL
11004 };
11005
11006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11007 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11008 if (!SWIG_IsOK(res1)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11010 }
11011 if (!argp1) {
11012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11013 }
11014 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11015 {
11016 if (!wxPyCheckForApp()) SWIG_fail;
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11023 return resultobj;
11024fail:
11025 return NULL;
11026}
11027
11028
11029SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11030 PyObject *resultobj = 0;
11031 wxBitmap *arg1 = 0 ;
11032 wxColour *arg2 = 0 ;
11033 int arg3 = (int) 0 ;
11034 wxRegion *result = 0 ;
11035 void *argp1 = 0 ;
11036 int res1 = 0 ;
11037 wxColour temp2 ;
11038 int val3 ;
11039 int ecode3 = 0 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 PyObject * obj2 = 0 ;
11043 char * kwnames[] = {
11044 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11045 };
11046
11047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11048 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11049 if (!SWIG_IsOK(res1)) {
11050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11051 }
11052 if (!argp1) {
11053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11054 }
11055 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11056 {
11057 arg2 = &temp2;
11058 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11059 }
11060 if (obj2) {
11061 ecode3 = SWIG_AsVal_int(obj2, &val3);
11062 if (!SWIG_IsOK(ecode3)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11064 }
11065 arg3 = static_cast< int >(val3);
11066 }
11067 {
11068 if (!wxPyCheckForApp()) SWIG_fail;
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11075 return resultobj;
11076fail:
11077 return NULL;
11078}
11079
11080
11081SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11082 PyObject *resultobj = 0;
11083 int arg1 ;
11084 wxPoint *arg2 = (wxPoint *) 0 ;
11085 int arg3 = (int) wxWINDING_RULE ;
11086 wxRegion *result = 0 ;
11087 int val3 ;
11088 int ecode3 = 0 ;
11089 PyObject * obj0 = 0 ;
11090 PyObject * obj1 = 0 ;
11091 char * kwnames[] = {
11092 (char *) "points",(char *) "fillStyle", NULL
11093 };
11094
11095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11096 {
11097 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11098 if (arg2 == NULL) SWIG_fail;
11099 }
11100 if (obj1) {
11101 ecode3 = SWIG_AsVal_int(obj1, &val3);
11102 if (!SWIG_IsOK(ecode3)) {
11103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11104 }
11105 arg3 = static_cast< int >(val3);
11106 }
11107 {
11108 if (!wxPyCheckForApp()) SWIG_fail;
11109 PyThreadState* __tstate = wxPyBeginAllowThreads();
11110 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11115 {
11116 if (arg2) delete [] arg2;
11117 }
11118 return resultobj;
11119fail:
11120 {
11121 if (arg2) delete [] arg2;
11122 }
11123 return NULL;
d55e5bfc
RD
11124}
11125
11126
554f62e9
RD
11127SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11128 PyObject *resultobj = 0;
11129 wxRegion *arg1 = (wxRegion *) 0 ;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 PyObject *swig_obj[1] ;
11133
11134 if (!args) SWIG_fail;
11135 swig_obj[0] = args;
11136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11137 if (!SWIG_IsOK(res1)) {
11138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11139 }
11140 arg1 = reinterpret_cast< wxRegion * >(argp1);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 delete arg1;
d55e5bfc 11144
554f62e9
RD
11145 wxPyEndAllowThreads(__tstate);
11146 if (PyErr_Occurred()) SWIG_fail;
11147 }
11148 resultobj = SWIG_Py_Void();
11149 return resultobj;
11150fail:
11151 return NULL;
d55e5bfc
RD
11152}
11153
11154
554f62e9
RD
11155SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11156 PyObject *resultobj = 0;
11157 wxRegion *arg1 = (wxRegion *) 0 ;
11158 void *argp1 = 0 ;
11159 int res1 = 0 ;
11160 PyObject *swig_obj[1] ;
11161
11162 if (!args) SWIG_fail;
11163 swig_obj[0] = args;
11164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11165 if (!SWIG_IsOK(res1)) {
11166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11167 }
11168 arg1 = reinterpret_cast< wxRegion * >(argp1);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 (arg1)->Clear();
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 resultobj = SWIG_Py_Void();
11176 return resultobj;
11177fail:
11178 return NULL;
11179}
11180
11181
11182SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj = 0;
11184 wxRegion *arg1 = (wxRegion *) 0 ;
11185 int arg2 ;
11186 int arg3 ;
11187 bool result;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 int val2 ;
11191 int ecode2 = 0 ;
11192 int val3 ;
11193 int ecode3 = 0 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 PyObject * obj2 = 0 ;
11197 char * kwnames[] = {
11198 (char *) "self",(char *) "x",(char *) "y", NULL
11199 };
11200
11201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11203 if (!SWIG_IsOK(res1)) {
11204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11205 }
11206 arg1 = reinterpret_cast< wxRegion * >(argp1);
11207 ecode2 = SWIG_AsVal_int(obj1, &val2);
11208 if (!SWIG_IsOK(ecode2)) {
11209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11210 }
11211 arg2 = static_cast< int >(val2);
11212 ecode3 = SWIG_AsVal_int(obj2, &val3);
11213 if (!SWIG_IsOK(ecode3)) {
11214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11215 }
11216 arg3 = static_cast< int >(val3);
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 result = (bool)(arg1)->Offset(arg2,arg3);
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 {
11224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11225 }
11226 return resultobj;
11227fail:
11228 return NULL;
11229}
11230
11231
11232SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj = 0;
11234 wxRegion *arg1 = (wxRegion *) 0 ;
11235 int arg2 ;
11236 int arg3 ;
11237 wxRegionContain result;
11238 void *argp1 = 0 ;
11239 int res1 = 0 ;
11240 int val2 ;
11241 int ecode2 = 0 ;
11242 int val3 ;
11243 int ecode3 = 0 ;
11244 PyObject * obj0 = 0 ;
11245 PyObject * obj1 = 0 ;
11246 PyObject * obj2 = 0 ;
11247 char * kwnames[] = {
11248 (char *) "self",(char *) "x",(char *) "y", NULL
11249 };
11250
11251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11253 if (!SWIG_IsOK(res1)) {
11254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11255 }
11256 arg1 = reinterpret_cast< wxRegion * >(argp1);
11257 ecode2 = SWIG_AsVal_int(obj1, &val2);
11258 if (!SWIG_IsOK(ecode2)) {
11259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11260 }
11261 arg2 = static_cast< int >(val2);
11262 ecode3 = SWIG_AsVal_int(obj2, &val3);
11263 if (!SWIG_IsOK(ecode3)) {
11264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11265 }
11266 arg3 = static_cast< int >(val3);
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 resultobj = SWIG_From_int(static_cast< int >(result));
11274 return resultobj;
11275fail:
11276 return NULL;
11277}
11278
11279
11280SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj = 0;
11282 wxRegion *arg1 = (wxRegion *) 0 ;
11283 wxPoint *arg2 = 0 ;
11284 wxRegionContain result;
11285 void *argp1 = 0 ;
11286 int res1 = 0 ;
11287 wxPoint temp2 ;
11288 PyObject * obj0 = 0 ;
11289 PyObject * obj1 = 0 ;
11290 char * kwnames[] = {
11291 (char *) "self",(char *) "pt", NULL
11292 };
11293
11294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11296 if (!SWIG_IsOK(res1)) {
11297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11298 }
11299 arg1 = reinterpret_cast< wxRegion * >(argp1);
11300 {
11301 arg2 = &temp2;
11302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11303 }
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 resultobj = SWIG_From_int(static_cast< int >(result));
11311 return resultobj;
11312fail:
11313 return NULL;
11314}
11315
11316
11317SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj = 0;
11319 wxRegion *arg1 = (wxRegion *) 0 ;
11320 wxRect *arg2 = 0 ;
11321 wxRegionContain result;
11322 void *argp1 = 0 ;
11323 int res1 = 0 ;
11324 wxRect temp2 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 char * kwnames[] = {
11328 (char *) "self",(char *) "rect", NULL
11329 };
11330
11331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11333 if (!SWIG_IsOK(res1)) {
11334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11335 }
11336 arg1 = reinterpret_cast< wxRegion * >(argp1);
11337 {
11338 arg2 = &temp2;
11339 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11340 }
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_From_int(static_cast< int >(result));
11348 return resultobj;
11349fail:
11350 return NULL;
11351}
11352
11353
11354SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11355 PyObject *resultobj = 0;
11356 wxRegion *arg1 = (wxRegion *) 0 ;
11357 int arg2 ;
11358 int arg3 ;
11359 int arg4 ;
11360 int arg5 ;
11361 wxRegionContain result;
11362 void *argp1 = 0 ;
11363 int res1 = 0 ;
11364 int val2 ;
11365 int ecode2 = 0 ;
11366 int val3 ;
11367 int ecode3 = 0 ;
11368 int val4 ;
11369 int ecode4 = 0 ;
11370 int val5 ;
11371 int ecode5 = 0 ;
11372 PyObject * obj0 = 0 ;
11373 PyObject * obj1 = 0 ;
11374 PyObject * obj2 = 0 ;
11375 PyObject * obj3 = 0 ;
11376 PyObject * obj4 = 0 ;
11377 char * kwnames[] = {
11378 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11379 };
11380
11381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11383 if (!SWIG_IsOK(res1)) {
11384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11385 }
11386 arg1 = reinterpret_cast< wxRegion * >(argp1);
11387 ecode2 = SWIG_AsVal_int(obj1, &val2);
11388 if (!SWIG_IsOK(ecode2)) {
11389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11390 }
11391 arg2 = static_cast< int >(val2);
11392 ecode3 = SWIG_AsVal_int(obj2, &val3);
11393 if (!SWIG_IsOK(ecode3)) {
11394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11395 }
11396 arg3 = static_cast< int >(val3);
11397 ecode4 = SWIG_AsVal_int(obj3, &val4);
11398 if (!SWIG_IsOK(ecode4)) {
11399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11400 }
11401 arg4 = static_cast< int >(val4);
11402 ecode5 = SWIG_AsVal_int(obj4, &val5);
11403 if (!SWIG_IsOK(ecode5)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11405 }
11406 arg5 = static_cast< int >(val5);
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 resultobj = SWIG_From_int(static_cast< int >(result));
11414 return resultobj;
11415fail:
11416 return NULL;
d55e5bfc
RD
11417}
11418
11419
554f62e9
RD
11420SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11421 PyObject *resultobj = 0;
11422 wxRegion *arg1 = (wxRegion *) 0 ;
11423 wxRect result;
11424 void *argp1 = 0 ;
11425 int res1 = 0 ;
11426 PyObject *swig_obj[1] ;
11427
11428 if (!args) SWIG_fail;
11429 swig_obj[0] = args;
11430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11431 if (!SWIG_IsOK(res1)) {
11432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11433 }
11434 arg1 = reinterpret_cast< wxRegion * >(argp1);
11435 {
11436 PyThreadState* __tstate = wxPyBeginAllowThreads();
11437 result = (arg1)->GetBox();
11438 wxPyEndAllowThreads(__tstate);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 }
11441 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11442 return resultobj;
11443fail:
11444 return NULL;
11445}
11446
11447
11448SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11449 PyObject *resultobj = 0;
11450 wxRegion *arg1 = (wxRegion *) 0 ;
11451 int arg2 ;
11452 int arg3 ;
11453 int arg4 ;
11454 int arg5 ;
11455 bool result;
11456 void *argp1 = 0 ;
11457 int res1 = 0 ;
11458 int val2 ;
11459 int ecode2 = 0 ;
11460 int val3 ;
11461 int ecode3 = 0 ;
11462 int val4 ;
11463 int ecode4 = 0 ;
11464 int val5 ;
11465 int ecode5 = 0 ;
11466 PyObject * obj0 = 0 ;
11467 PyObject * obj1 = 0 ;
11468 PyObject * obj2 = 0 ;
11469 PyObject * obj3 = 0 ;
11470 PyObject * obj4 = 0 ;
11471 char * kwnames[] = {
11472 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11473 };
11474
11475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11477 if (!SWIG_IsOK(res1)) {
11478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11479 }
11480 arg1 = reinterpret_cast< wxRegion * >(argp1);
11481 ecode2 = SWIG_AsVal_int(obj1, &val2);
11482 if (!SWIG_IsOK(ecode2)) {
11483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11484 }
11485 arg2 = static_cast< int >(val2);
11486 ecode3 = SWIG_AsVal_int(obj2, &val3);
11487 if (!SWIG_IsOK(ecode3)) {
11488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11489 }
11490 arg3 = static_cast< int >(val3);
11491 ecode4 = SWIG_AsVal_int(obj3, &val4);
11492 if (!SWIG_IsOK(ecode4)) {
11493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11494 }
11495 arg4 = static_cast< int >(val4);
11496 ecode5 = SWIG_AsVal_int(obj4, &val5);
11497 if (!SWIG_IsOK(ecode5)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11499 }
11500 arg5 = static_cast< int >(val5);
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511fail:
11512 return NULL;
11513}
11514
11515
11516SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj = 0;
11518 wxRegion *arg1 = (wxRegion *) 0 ;
11519 wxRect *arg2 = 0 ;
11520 bool result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 wxRect temp2 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "self",(char *) "rect", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11534 }
11535 arg1 = reinterpret_cast< wxRegion * >(argp1);
11536 {
11537 arg2 = &temp2;
11538 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11539 }
11540 {
11541 PyThreadState* __tstate = wxPyBeginAllowThreads();
11542 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11543 wxPyEndAllowThreads(__tstate);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 {
11547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11548 }
11549 return resultobj;
11550fail:
11551 return NULL;
11552}
11553
11554
11555SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11556 PyObject *resultobj = 0;
11557 wxRegion *arg1 = (wxRegion *) 0 ;
11558 wxRegion *arg2 = 0 ;
11559 bool result;
11560 void *argp1 = 0 ;
11561 int res1 = 0 ;
11562 void *argp2 = 0 ;
11563 int res2 = 0 ;
11564 PyObject * obj0 = 0 ;
11565 PyObject * obj1 = 0 ;
11566 char * kwnames[] = {
11567 (char *) "self",(char *) "region", NULL
11568 };
11569
11570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11572 if (!SWIG_IsOK(res1)) {
11573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11574 }
11575 arg1 = reinterpret_cast< wxRegion * >(argp1);
11576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11577 if (!SWIG_IsOK(res2)) {
11578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11579 }
11580 if (!argp2) {
11581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11582 }
11583 arg2 = reinterpret_cast< wxRegion * >(argp2);
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 {
11591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11592 }
11593 return resultobj;
11594fail:
11595 return NULL;
d55e5bfc
RD
11596}
11597
11598
554f62e9
RD
11599SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11600 PyObject *resultobj = 0;
11601 wxRegion *arg1 = (wxRegion *) 0 ;
11602 bool result;
11603 void *argp1 = 0 ;
11604 int res1 = 0 ;
11605 PyObject *swig_obj[1] ;
11606
11607 if (!args) SWIG_fail;
11608 swig_obj[0] = args;
11609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11610 if (!SWIG_IsOK(res1)) {
11611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11612 }
11613 arg1 = reinterpret_cast< wxRegion * >(argp1);
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 result = (bool)(arg1)->IsEmpty();
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 {
11621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11622 }
11623 return resultobj;
11624fail:
11625 return NULL;
11626}
11627
11628
f5263701
RD
11629SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11630 PyObject *resultobj = 0;
11631 wxRegion *arg1 = (wxRegion *) 0 ;
11632 wxRegion *arg2 = 0 ;
11633 bool result;
11634 void *argp1 = 0 ;
11635 int res1 = 0 ;
11636 void *argp2 = 0 ;
11637 int res2 = 0 ;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
11640 char * kwnames[] = {
11641 (char *) "self",(char *) "region", NULL
11642 };
11643
11644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11646 if (!SWIG_IsOK(res1)) {
11647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11648 }
11649 arg1 = reinterpret_cast< wxRegion * >(argp1);
11650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11651 if (!SWIG_IsOK(res2)) {
11652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11653 }
11654 if (!argp2) {
11655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11656 }
11657 arg2 = reinterpret_cast< wxRegion * >(argp2);
11658 {
11659 PyThreadState* __tstate = wxPyBeginAllowThreads();
11660 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 {
11665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11666 }
11667 return resultobj;
11668fail:
11669 return NULL;
11670}
11671
11672
554f62e9
RD
11673SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11674 PyObject *resultobj = 0;
11675 wxRegion *arg1 = (wxRegion *) 0 ;
11676 int arg2 ;
11677 int arg3 ;
11678 int arg4 ;
11679 int arg5 ;
11680 bool result;
11681 void *argp1 = 0 ;
11682 int res1 = 0 ;
11683 int val2 ;
11684 int ecode2 = 0 ;
11685 int val3 ;
11686 int ecode3 = 0 ;
11687 int val4 ;
11688 int ecode4 = 0 ;
11689 int val5 ;
11690 int ecode5 = 0 ;
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 PyObject * obj2 = 0 ;
11694 PyObject * obj3 = 0 ;
11695 PyObject * obj4 = 0 ;
11696 char * kwnames[] = {
11697 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11698 };
11699
11700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11702 if (!SWIG_IsOK(res1)) {
11703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11704 }
11705 arg1 = reinterpret_cast< wxRegion * >(argp1);
11706 ecode2 = SWIG_AsVal_int(obj1, &val2);
11707 if (!SWIG_IsOK(ecode2)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11709 }
11710 arg2 = static_cast< int >(val2);
11711 ecode3 = SWIG_AsVal_int(obj2, &val3);
11712 if (!SWIG_IsOK(ecode3)) {
11713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11714 }
11715 arg3 = static_cast< int >(val3);
11716 ecode4 = SWIG_AsVal_int(obj3, &val4);
11717 if (!SWIG_IsOK(ecode4)) {
11718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11719 }
11720 arg4 = static_cast< int >(val4);
11721 ecode5 = SWIG_AsVal_int(obj4, &val5);
11722 if (!SWIG_IsOK(ecode5)) {
11723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11724 }
11725 arg5 = static_cast< int >(val5);
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 {
11733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11734 }
11735 return resultobj;
11736fail:
11737 return NULL;
11738}
11739
11740
11741SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxRegion *arg1 = (wxRegion *) 0 ;
11744 wxRect *arg2 = 0 ;
11745 bool result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 wxRect temp2 ;
11749 PyObject * obj0 = 0 ;
11750 PyObject * obj1 = 0 ;
11751 char * kwnames[] = {
11752 (char *) "self",(char *) "rect", NULL
11753 };
11754
11755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11757 if (!SWIG_IsOK(res1)) {
11758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11759 }
11760 arg1 = reinterpret_cast< wxRegion * >(argp1);
11761 {
11762 arg2 = &temp2;
11763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11764 }
11765 {
11766 PyThreadState* __tstate = wxPyBeginAllowThreads();
11767 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 {
11772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11773 }
11774 return resultobj;
11775fail:
11776 return NULL;
11777}
11778
11779
11780SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11781 PyObject *resultobj = 0;
11782 wxRegion *arg1 = (wxRegion *) 0 ;
11783 wxRegion *arg2 = 0 ;
11784 bool result;
11785 void *argp1 = 0 ;
11786 int res1 = 0 ;
11787 void *argp2 = 0 ;
11788 int res2 = 0 ;
11789 PyObject * obj0 = 0 ;
11790 PyObject * obj1 = 0 ;
11791 char * kwnames[] = {
11792 (char *) "self",(char *) "region", NULL
11793 };
11794
11795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11797 if (!SWIG_IsOK(res1)) {
11798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11799 }
11800 arg1 = reinterpret_cast< wxRegion * >(argp1);
11801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11802 if (!SWIG_IsOK(res2)) {
11803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11804 }
11805 if (!argp2) {
11806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11807 }
11808 arg2 = reinterpret_cast< wxRegion * >(argp2);
11809 {
11810 PyThreadState* __tstate = wxPyBeginAllowThreads();
11811 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 {
11816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11817 }
11818 return resultobj;
11819fail:
11820 return NULL;
11821}
11822
11823
11824SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11825 PyObject *resultobj = 0;
11826 wxRegion *arg1 = (wxRegion *) 0 ;
11827 int arg2 ;
11828 int arg3 ;
11829 int arg4 ;
11830 int arg5 ;
11831 bool result;
11832 void *argp1 = 0 ;
11833 int res1 = 0 ;
11834 int val2 ;
11835 int ecode2 = 0 ;
11836 int val3 ;
11837 int ecode3 = 0 ;
11838 int val4 ;
11839 int ecode4 = 0 ;
11840 int val5 ;
11841 int ecode5 = 0 ;
11842 PyObject * obj0 = 0 ;
11843 PyObject * obj1 = 0 ;
11844 PyObject * obj2 = 0 ;
11845 PyObject * obj3 = 0 ;
11846 PyObject * obj4 = 0 ;
11847 char * kwnames[] = {
11848 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11849 };
11850
11851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11853 if (!SWIG_IsOK(res1)) {
11854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11855 }
11856 arg1 = reinterpret_cast< wxRegion * >(argp1);
11857 ecode2 = SWIG_AsVal_int(obj1, &val2);
11858 if (!SWIG_IsOK(ecode2)) {
11859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11860 }
11861 arg2 = static_cast< int >(val2);
11862 ecode3 = SWIG_AsVal_int(obj2, &val3);
11863 if (!SWIG_IsOK(ecode3)) {
11864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11865 }
11866 arg3 = static_cast< int >(val3);
11867 ecode4 = SWIG_AsVal_int(obj3, &val4);
11868 if (!SWIG_IsOK(ecode4)) {
11869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11870 }
11871 arg4 = static_cast< int >(val4);
11872 ecode5 = SWIG_AsVal_int(obj4, &val5);
11873 if (!SWIG_IsOK(ecode5)) {
11874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11875 }
11876 arg5 = static_cast< int >(val5);
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11885 }
11886 return resultobj;
11887fail:
11888 return NULL;
11889}
11890
11891
11892SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxRegion *arg1 = (wxRegion *) 0 ;
11895 wxRect *arg2 = 0 ;
11896 bool result;
11897 void *argp1 = 0 ;
11898 int res1 = 0 ;
11899 wxRect temp2 ;
11900 PyObject * obj0 = 0 ;
11901 PyObject * obj1 = 0 ;
11902 char * kwnames[] = {
11903 (char *) "self",(char *) "rect", NULL
11904 };
11905
11906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11908 if (!SWIG_IsOK(res1)) {
11909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11910 }
11911 arg1 = reinterpret_cast< wxRegion * >(argp1);
11912 {
11913 arg2 = &temp2;
11914 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11915 }
11916 {
11917 PyThreadState* __tstate = wxPyBeginAllowThreads();
11918 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11919 wxPyEndAllowThreads(__tstate);
11920 if (PyErr_Occurred()) SWIG_fail;
11921 }
11922 {
11923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11924 }
11925 return resultobj;
11926fail:
11927 return NULL;
11928}
11929
11930
11931SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11932 PyObject *resultobj = 0;
11933 wxRegion *arg1 = (wxRegion *) 0 ;
11934 wxRegion *arg2 = 0 ;
11935 bool result;
11936 void *argp1 = 0 ;
11937 int res1 = 0 ;
11938 void *argp2 = 0 ;
11939 int res2 = 0 ;
11940 PyObject * obj0 = 0 ;
11941 PyObject * obj1 = 0 ;
11942 char * kwnames[] = {
11943 (char *) "self",(char *) "region", NULL
11944 };
11945
11946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11948 if (!SWIG_IsOK(res1)) {
11949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11950 }
11951 arg1 = reinterpret_cast< wxRegion * >(argp1);
11952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11953 if (!SWIG_IsOK(res2)) {
11954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11955 }
11956 if (!argp2) {
11957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11958 }
11959 arg2 = reinterpret_cast< wxRegion * >(argp2);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 {
11967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11968 }
11969 return resultobj;
11970fail:
11971 return NULL;
11972}
11973
11974
11975SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11976 PyObject *resultobj = 0;
11977 wxRegion *arg1 = (wxRegion *) 0 ;
11978 int arg2 ;
11979 int arg3 ;
11980 int arg4 ;
11981 int arg5 ;
11982 bool result;
11983 void *argp1 = 0 ;
11984 int res1 = 0 ;
11985 int val2 ;
11986 int ecode2 = 0 ;
11987 int val3 ;
11988 int ecode3 = 0 ;
11989 int val4 ;
11990 int ecode4 = 0 ;
11991 int val5 ;
11992 int ecode5 = 0 ;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11996 PyObject * obj3 = 0 ;
11997 PyObject * obj4 = 0 ;
11998 char * kwnames[] = {
11999 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12000 };
12001
12002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12004 if (!SWIG_IsOK(res1)) {
12005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12006 }
12007 arg1 = reinterpret_cast< wxRegion * >(argp1);
12008 ecode2 = SWIG_AsVal_int(obj1, &val2);
12009 if (!SWIG_IsOK(ecode2)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12011 }
12012 arg2 = static_cast< int >(val2);
12013 ecode3 = SWIG_AsVal_int(obj2, &val3);
12014 if (!SWIG_IsOK(ecode3)) {
12015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12016 }
12017 arg3 = static_cast< int >(val3);
12018 ecode4 = SWIG_AsVal_int(obj3, &val4);
12019 if (!SWIG_IsOK(ecode4)) {
12020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12021 }
12022 arg4 = static_cast< int >(val4);
12023 ecode5 = SWIG_AsVal_int(obj4, &val5);
12024 if (!SWIG_IsOK(ecode5)) {
12025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12026 }
12027 arg5 = static_cast< int >(val5);
12028 {
12029 PyThreadState* __tstate = wxPyBeginAllowThreads();
12030 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12031 wxPyEndAllowThreads(__tstate);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 {
12035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12036 }
12037 return resultobj;
12038fail:
12039 return NULL;
12040}
12041
12042
12043SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxRegion *arg1 = (wxRegion *) 0 ;
12046 wxRect *arg2 = 0 ;
12047 bool result;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 wxRect temp2 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char * kwnames[] = {
12054 (char *) "self",(char *) "rect", NULL
12055 };
12056
12057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12061 }
12062 arg1 = reinterpret_cast< wxRegion * >(argp1);
12063 {
12064 arg2 = &temp2;
12065 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12066 }
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 {
12074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12075 }
12076 return resultobj;
12077fail:
12078 return NULL;
12079}
12080
12081
12082SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj = 0;
12084 wxRegion *arg1 = (wxRegion *) 0 ;
12085 wxRegion *arg2 = 0 ;
12086 bool result;
12087 void *argp1 = 0 ;
12088 int res1 = 0 ;
12089 void *argp2 = 0 ;
12090 int res2 = 0 ;
12091 PyObject * obj0 = 0 ;
12092 PyObject * obj1 = 0 ;
12093 char * kwnames[] = {
12094 (char *) "self",(char *) "region", NULL
12095 };
12096
12097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12101 }
12102 arg1 = reinterpret_cast< wxRegion * >(argp1);
12103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12104 if (!SWIG_IsOK(res2)) {
12105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12106 }
12107 if (!argp2) {
12108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12109 }
12110 arg2 = reinterpret_cast< wxRegion * >(argp2);
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) SWIG_fail;
12116 }
12117 {
12118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12119 }
12120 return resultobj;
12121fail:
12122 return NULL;
d55e5bfc
RD
12123}
12124
12125
554f62e9
RD
12126SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12127 PyObject *resultobj = 0;
12128 wxRegion *arg1 = (wxRegion *) 0 ;
12129 SwigValueWrapper<wxBitmap > result;
12130 void *argp1 = 0 ;
12131 int res1 = 0 ;
12132 PyObject *swig_obj[1] ;
12133
12134 if (!args) SWIG_fail;
12135 swig_obj[0] = args;
12136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12137 if (!SWIG_IsOK(res1)) {
12138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12139 }
12140 arg1 = reinterpret_cast< wxRegion * >(argp1);
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 result = (arg1)->ConvertToBitmap();
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12148 return resultobj;
12149fail:
12150 return NULL;
12151}
12152
12153
12154SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12155 PyObject *resultobj = 0;
12156 wxRegion *arg1 = (wxRegion *) 0 ;
12157 wxBitmap *arg2 = 0 ;
12158 bool result;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 void *argp2 = 0 ;
12162 int res2 = 0 ;
12163 PyObject * obj0 = 0 ;
12164 PyObject * obj1 = 0 ;
12165 char * kwnames[] = {
12166 (char *) "self",(char *) "bmp", NULL
12167 };
12168
12169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12171 if (!SWIG_IsOK(res1)) {
12172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12173 }
12174 arg1 = reinterpret_cast< wxRegion * >(argp1);
12175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12176 if (!SWIG_IsOK(res2)) {
12177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12178 }
12179 if (!argp2) {
12180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12181 }
12182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12191 }
12192 return resultobj;
12193fail:
12194 return NULL;
12195}
12196
12197
12198SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12199 PyObject *resultobj = 0;
12200 wxRegion *arg1 = (wxRegion *) 0 ;
12201 wxBitmap *arg2 = 0 ;
12202 wxColour *arg3 = 0 ;
12203 int arg4 = (int) 0 ;
12204 bool result;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 void *argp2 = 0 ;
12208 int res2 = 0 ;
12209 wxColour temp3 ;
12210 int val4 ;
12211 int ecode4 = 0 ;
12212 PyObject * obj0 = 0 ;
12213 PyObject * obj1 = 0 ;
12214 PyObject * obj2 = 0 ;
12215 PyObject * obj3 = 0 ;
12216 char * kwnames[] = {
12217 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12218 };
12219
12220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12224 }
12225 arg1 = reinterpret_cast< wxRegion * >(argp1);
12226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12227 if (!SWIG_IsOK(res2)) {
12228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12229 }
12230 if (!argp2) {
12231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12232 }
12233 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12234 {
12235 arg3 = &temp3;
12236 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12237 }
12238 if (obj3) {
12239 ecode4 = SWIG_AsVal_int(obj3, &val4);
12240 if (!SWIG_IsOK(ecode4)) {
12241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12242 }
12243 arg4 = static_cast< int >(val4);
12244 }
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 {
12252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12253 }
12254 return resultobj;
12255fail:
12256 return NULL;
d55e5bfc
RD
12257}
12258
12259
554f62e9
RD
12260SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12261 PyObject *obj;
12262 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12263 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12264 return SWIG_Py_Void();
d55e5bfc
RD
12265}
12266
554f62e9
RD
12267SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12268 return SWIG_Python_InitShadowInstance(args);
12269}
d55e5bfc 12270
554f62e9
RD
12271SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12272 PyObject *resultobj = 0;
12273 wxRegion *arg1 = 0 ;
12274 wxRegionIterator *result = 0 ;
12275 void *argp1 = 0 ;
12276 int res1 = 0 ;
12277 PyObject * obj0 = 0 ;
12278 char * kwnames[] = {
12279 (char *) "region", NULL
12280 };
12281
12282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12283 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12286 }
12287 if (!argp1) {
12288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12289 }
12290 arg1 = reinterpret_cast< wxRegion * >(argp1);
12291 {
12292 if (!wxPyCheckForApp()) SWIG_fail;
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
12294 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12299 return resultobj;
12300fail:
12301 return NULL;
d55e5bfc
RD
12302}
12303
12304
554f62e9
RD
12305SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12306 PyObject *resultobj = 0;
12307 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 PyObject *swig_obj[1] ;
12311
12312 if (!args) SWIG_fail;
12313 swig_obj[0] = args;
12314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12315 if (!SWIG_IsOK(res1)) {
12316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12317 }
12318 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 delete arg1;
d55e5bfc 12322
554f62e9
RD
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 resultobj = SWIG_Py_Void();
12327 return resultobj;
12328fail:
12329 return NULL;
d55e5bfc
RD
12330}
12331
12332
554f62e9
RD
12333SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12334 PyObject *resultobj = 0;
12335 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12336 int result;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12346 }
12347 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (int)(arg1)->GetX();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_From_int(static_cast< int >(result));
12355 return resultobj;
12356fail:
12357 return NULL;
d55e5bfc
RD
12358}
12359
12360
554f62e9
RD
12361SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12362 PyObject *resultobj = 0;
12363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12364 int result;
12365 void *argp1 = 0 ;
12366 int res1 = 0 ;
12367 PyObject *swig_obj[1] ;
12368
12369 if (!args) SWIG_fail;
12370 swig_obj[0] = args;
12371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12372 if (!SWIG_IsOK(res1)) {
12373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12374 }
12375 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = (int)(arg1)->GetY();
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_From_int(static_cast< int >(result));
12383 return resultobj;
12384fail:
12385 return NULL;
d55e5bfc
RD
12386}
12387
12388
554f62e9
RD
12389SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12392 int result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12402 }
12403 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = (int)(arg1)->GetW();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_From_int(static_cast< int >(result));
12411 return resultobj;
12412fail:
12413 return NULL;
d55e5bfc
RD
12414}
12415
12416
554f62e9
RD
12417SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12420 int result;
12421 void *argp1 = 0 ;
12422 int res1 = 0 ;
12423 PyObject *swig_obj[1] ;
12424
12425 if (!args) SWIG_fail;
12426 swig_obj[0] = args;
12427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12428 if (!SWIG_IsOK(res1)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12430 }
12431 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (int)(arg1)->GetWidth();
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 resultobj = SWIG_From_int(static_cast< int >(result));
12439 return resultobj;
12440fail:
12441 return NULL;
d55e5bfc
RD
12442}
12443
12444
554f62e9
RD
12445SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12446 PyObject *resultobj = 0;
12447 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12448 int result;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 PyObject *swig_obj[1] ;
12452
12453 if (!args) SWIG_fail;
12454 swig_obj[0] = args;
12455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12458 }
12459 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 result = (int)(arg1)->GetH();
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_From_int(static_cast< int >(result));
12467 return resultobj;
12468fail:
12469 return NULL;
d55e5bfc
RD
12470}
12471
12472
554f62e9
RD
12473SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 PyObject *resultobj = 0;
12475 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12476 int result;
12477 void *argp1 = 0 ;
12478 int res1 = 0 ;
12479 PyObject *swig_obj[1] ;
12480
12481 if (!args) SWIG_fail;
12482 swig_obj[0] = args;
12483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12484 if (!SWIG_IsOK(res1)) {
12485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12486 }
12487 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12488 {
12489 PyThreadState* __tstate = wxPyBeginAllowThreads();
12490 result = (int)(arg1)->GetHeight();
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = SWIG_From_int(static_cast< int >(result));
12495 return resultobj;
12496fail:
12497 return NULL;
d55e5bfc
RD
12498}
12499
12500
554f62e9
RD
12501SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12502 PyObject *resultobj = 0;
12503 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12504 wxRect result;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 PyObject *swig_obj[1] ;
12508
12509 if (!args) SWIG_fail;
12510 swig_obj[0] = args;
12511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12512 if (!SWIG_IsOK(res1)) {
12513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12514 }
12515 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (arg1)->GetRect();
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12523 return resultobj;
12524fail:
12525 return NULL;
d55e5bfc
RD
12526}
12527
12528
554f62e9
RD
12529SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12530 PyObject *resultobj = 0;
12531 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12532 bool result;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 PyObject *swig_obj[1] ;
12536
12537 if (!args) SWIG_fail;
12538 swig_obj[0] = args;
12539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12540 if (!SWIG_IsOK(res1)) {
12541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12542 }
12543 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 result = (bool)(arg1)->HaveRects();
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 {
12551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12552 }
12553 return resultobj;
12554fail:
12555 return NULL;
d55e5bfc
RD
12556}
12557
12558
554f62e9
RD
12559SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12560 PyObject *resultobj = 0;
12561 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12562 void *argp1 = 0 ;
12563 int res1 = 0 ;
12564 PyObject *swig_obj[1] ;
12565
12566 if (!args) SWIG_fail;
12567 swig_obj[0] = args;
12568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12569 if (!SWIG_IsOK(res1)) {
12570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12571 }
12572 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 (arg1)->Reset();
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 resultobj = SWIG_Py_Void();
12580 return resultobj;
12581fail:
12582 return NULL;
d55e5bfc
RD
12583}
12584
12585
554f62e9
RD
12586SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12587 PyObject *resultobj = 0;
12588 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 PyObject *swig_obj[1] ;
12592
12593 if (!args) SWIG_fail;
12594 swig_obj[0] = args;
12595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12598 }
12599 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 wxRegionIterator_Next(arg1);
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = SWIG_Py_Void();
12607 return resultobj;
12608fail:
12609 return NULL;
d55e5bfc
RD
12610}
12611
12612
554f62e9
RD
12613SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12614 PyObject *resultobj = 0;
12615 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12616 bool result;
12617 void *argp1 = 0 ;
12618 int res1 = 0 ;
12619 PyObject *swig_obj[1] ;
12620
12621 if (!args) SWIG_fail;
12622 swig_obj[0] = args;
12623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12626 }
12627 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (bool)wxRegionIterator___nonzero__(arg1);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 {
12635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12636 }
12637 return resultobj;
12638fail:
12639 return NULL;
d55e5bfc
RD
12640}
12641
12642
554f62e9
RD
12643SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12644 PyObject *obj;
12645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12646 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12647 return SWIG_Py_Void();
d55e5bfc
RD
12648}
12649
554f62e9
RD
12650SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12651 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12652}
12653
554f62e9
RD
12654SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12655 PyObject *resultobj = 0;
12656 wxNativeFontInfo *result = 0 ;
12657
12658 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12666 return resultobj;
12667fail:
12668 return NULL;
d55e5bfc
RD
12669}
12670
12671
554f62e9
RD
12672SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12673 PyObject *resultobj = 0;
12674 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12675 void *argp1 = 0 ;
12676 int res1 = 0 ;
12677 PyObject *swig_obj[1] ;
12678
12679 if (!args) SWIG_fail;
12680 swig_obj[0] = args;
12681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12682 if (!SWIG_IsOK(res1)) {
12683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12684 }
12685 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 delete arg1;
d55e5bfc 12689
554f62e9
RD
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_Py_Void();
12694 return resultobj;
12695fail:
12696 return NULL;
d55e5bfc
RD
12697}
12698
12699
554f62e9
RD
12700SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12701 PyObject *resultobj = 0;
12702 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12703 void *argp1 = 0 ;
12704 int res1 = 0 ;
12705 PyObject *swig_obj[1] ;
12706
12707 if (!args) SWIG_fail;
12708 swig_obj[0] = args;
12709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12710 if (!SWIG_IsOK(res1)) {
12711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12712 }
12713 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 (arg1)->Init();
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 resultobj = SWIG_Py_Void();
12721 return resultobj;
12722fail:
12723 return NULL;
12724}
12725
12726
12727SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj = 0;
12729 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12730 wxFont *arg2 = 0 ;
12731 void *argp1 = 0 ;
12732 int res1 = 0 ;
12733 void *argp2 = 0 ;
12734 int res2 = 0 ;
12735 PyObject * obj0 = 0 ;
12736 PyObject * obj1 = 0 ;
12737 char * kwnames[] = {
12738 (char *) "self",(char *) "font", NULL
12739 };
12740
12741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12743 if (!SWIG_IsOK(res1)) {
12744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12745 }
12746 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12748 if (!SWIG_IsOK(res2)) {
12749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12750 }
12751 if (!argp2) {
12752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12753 }
12754 arg2 = reinterpret_cast< wxFont * >(argp2);
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 (arg1)->InitFromFont((wxFont const &)*arg2);
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_Py_Void();
12762 return resultobj;
12763fail:
12764 return NULL;
d55e5bfc
RD
12765}
12766
12767
554f62e9
RD
12768SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12769 PyObject *resultobj = 0;
12770 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12771 int result;
12772 void *argp1 = 0 ;
12773 int res1 = 0 ;
12774 PyObject *swig_obj[1] ;
12775
12776 if (!args) SWIG_fail;
12777 swig_obj[0] = args;
12778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12779 if (!SWIG_IsOK(res1)) {
12780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12781 }
12782 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 resultobj = SWIG_From_int(static_cast< int >(result));
12790 return resultobj;
12791fail:
12792 return NULL;
d55e5bfc
RD
12793}
12794
12795
554f62e9
RD
12796SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12797 PyObject *resultobj = 0;
12798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12799 wxSize result;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 PyObject *swig_obj[1] ;
12803
12804 if (!args) SWIG_fail;
12805 swig_obj[0] = args;
12806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12807 if (!SWIG_IsOK(res1)) {
12808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12809 }
12810 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12811 {
12812 PyThreadState* __tstate = wxPyBeginAllowThreads();
12813 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12818 return resultobj;
12819fail:
12820 return NULL;
d55e5bfc
RD
12821}
12822
12823
554f62e9
RD
12824SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12825 PyObject *resultobj = 0;
12826 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12827 wxFontStyle result;
12828 void *argp1 = 0 ;
12829 int res1 = 0 ;
12830 PyObject *swig_obj[1] ;
12831
12832 if (!args) SWIG_fail;
12833 swig_obj[0] = args;
12834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12835 if (!SWIG_IsOK(res1)) {
12836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12837 }
12838 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 resultobj = SWIG_From_int(static_cast< int >(result));
12846 return resultobj;
12847fail:
12848 return NULL;
d55e5bfc
RD
12849}
12850
12851
554f62e9
RD
12852SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12853 PyObject *resultobj = 0;
12854 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12855 wxFontWeight result;
12856 void *argp1 = 0 ;
12857 int res1 = 0 ;
12858 PyObject *swig_obj[1] ;
12859
12860 if (!args) SWIG_fail;
12861 swig_obj[0] = args;
12862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12865 }
12866 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = SWIG_From_int(static_cast< int >(result));
12874 return resultobj;
12875fail:
12876 return NULL;
d55e5bfc
RD
12877}
12878
12879
554f62e9
RD
12880SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12881 PyObject *resultobj = 0;
12882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12883 bool result;
12884 void *argp1 = 0 ;
12885 int res1 = 0 ;
12886 PyObject *swig_obj[1] ;
12887
12888 if (!args) SWIG_fail;
12889 swig_obj[0] = args;
12890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12891 if (!SWIG_IsOK(res1)) {
12892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12893 }
12894 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12895 {
12896 PyThreadState* __tstate = wxPyBeginAllowThreads();
12897 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12898 wxPyEndAllowThreads(__tstate);
12899 if (PyErr_Occurred()) SWIG_fail;
12900 }
12901 {
12902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12903 }
12904 return resultobj;
12905fail:
12906 return NULL;
d55e5bfc
RD
12907}
12908
12909
554f62e9
RD
12910SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12911 PyObject *resultobj = 0;
12912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12913 wxString result;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 PyObject *swig_obj[1] ;
12917
12918 if (!args) SWIG_fail;
12919 swig_obj[0] = args;
12920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
093d3ff1 12932#if wxUSE_UNICODE
554f62e9 12933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12934#else
554f62e9 12935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12936#endif
554f62e9
RD
12937 }
12938 return resultobj;
12939fail:
12940 return NULL;
d55e5bfc
RD
12941}
12942
12943
554f62e9
RD
12944SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12945 PyObject *resultobj = 0;
12946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12947 wxFontFamily result;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 PyObject *swig_obj[1] ;
12951
12952 if (!args) SWIG_fail;
12953 swig_obj[0] = args;
12954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12957 }
12958 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12959 {
12960 PyThreadState* __tstate = wxPyBeginAllowThreads();
12961 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12962 wxPyEndAllowThreads(__tstate);
12963 if (PyErr_Occurred()) SWIG_fail;
12964 }
12965 resultobj = SWIG_From_int(static_cast< int >(result));
12966 return resultobj;
12967fail:
12968 return NULL;
d55e5bfc
RD
12969}
12970
12971
554f62e9
RD
12972SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12973 PyObject *resultobj = 0;
12974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12975 wxFontEncoding result;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 PyObject *swig_obj[1] ;
12979
12980 if (!args) SWIG_fail;
12981 swig_obj[0] = args;
12982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12985 }
12986 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 resultobj = SWIG_From_int(static_cast< int >(result));
12994 return resultobj;
12995fail:
12996 return NULL;
12997}
12998
12999
13000SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13001 PyObject *resultobj = 0;
13002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13003 int arg2 ;
13004 void *argp1 = 0 ;
13005 int res1 = 0 ;
13006 int val2 ;
13007 int ecode2 = 0 ;
13008 PyObject * obj0 = 0 ;
13009 PyObject * obj1 = 0 ;
13010 char * kwnames[] = {
13011 (char *) "self",(char *) "pointsize", NULL
13012 };
13013
13014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13016 if (!SWIG_IsOK(res1)) {
13017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13018 }
13019 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13020 ecode2 = SWIG_AsVal_int(obj1, &val2);
13021 if (!SWIG_IsOK(ecode2)) {
13022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13023 }
13024 arg2 = static_cast< int >(val2);
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 (arg1)->SetPointSize(arg2);
13028 wxPyEndAllowThreads(__tstate);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 resultobj = SWIG_Py_Void();
13032 return resultobj;
13033fail:
13034 return NULL;
13035}
13036
13037
13038SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13039 PyObject *resultobj = 0;
13040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13041 wxSize *arg2 = 0 ;
13042 void *argp1 = 0 ;
13043 int res1 = 0 ;
13044 wxSize temp2 ;
13045 PyObject * obj0 = 0 ;
13046 PyObject * obj1 = 0 ;
13047 char * kwnames[] = {
13048 (char *) "self",(char *) "pixelSize", NULL
13049 };
13050
13051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13053 if (!SWIG_IsOK(res1)) {
13054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13055 }
13056 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13057 {
13058 arg2 = &temp2;
13059 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13060 }
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 (arg1)->SetPixelSize((wxSize const &)*arg2);
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 resultobj = SWIG_Py_Void();
13068 return resultobj;
13069fail:
13070 return NULL;
13071}
13072
13073
13074SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj = 0;
13076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13077 wxFontStyle arg2 ;
13078 void *argp1 = 0 ;
13079 int res1 = 0 ;
13080 int val2 ;
13081 int ecode2 = 0 ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 char * kwnames[] = {
13085 (char *) "self",(char *) "style", NULL
13086 };
13087
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13092 }
13093 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13094 ecode2 = SWIG_AsVal_int(obj1, &val2);
13095 if (!SWIG_IsOK(ecode2)) {
13096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13097 }
13098 arg2 = static_cast< wxFontStyle >(val2);
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 (arg1)->SetStyle(arg2);
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 resultobj = SWIG_Py_Void();
13106 return resultobj;
13107fail:
13108 return NULL;
13109}
13110
13111
13112SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13113 PyObject *resultobj = 0;
13114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13115 wxFontWeight arg2 ;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 int val2 ;
13119 int ecode2 = 0 ;
13120 PyObject * obj0 = 0 ;
13121 PyObject * obj1 = 0 ;
13122 char * kwnames[] = {
13123 (char *) "self",(char *) "weight", NULL
13124 };
13125
13126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13128 if (!SWIG_IsOK(res1)) {
13129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13130 }
13131 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13132 ecode2 = SWIG_AsVal_int(obj1, &val2);
13133 if (!SWIG_IsOK(ecode2)) {
13134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13135 }
13136 arg2 = static_cast< wxFontWeight >(val2);
13137 {
13138 PyThreadState* __tstate = wxPyBeginAllowThreads();
13139 (arg1)->SetWeight(arg2);
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = SWIG_Py_Void();
13144 return resultobj;
13145fail:
13146 return NULL;
13147}
13148
13149
13150SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj = 0;
13152 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13153 bool arg2 ;
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 bool val2 ;
13157 int ecode2 = 0 ;
13158 PyObject * obj0 = 0 ;
13159 PyObject * obj1 = 0 ;
13160 char * kwnames[] = {
13161 (char *) "self",(char *) "underlined", NULL
13162 };
13163
13164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13166 if (!SWIG_IsOK(res1)) {
13167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13168 }
13169 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13170 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13171 if (!SWIG_IsOK(ecode2)) {
13172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13173 }
13174 arg2 = static_cast< bool >(val2);
13175 {
13176 PyThreadState* __tstate = wxPyBeginAllowThreads();
13177 (arg1)->SetUnderlined(arg2);
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 resultobj = SWIG_Py_Void();
13182 return resultobj;
13183fail:
13184 return NULL;
13185}
13186
13187
13188SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj = 0;
13190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13191 wxString arg2 ;
704eda0c 13192 bool result;
554f62e9
RD
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 PyObject * obj0 = 0 ;
13196 PyObject * obj1 = 0 ;
13197 char * kwnames[] = {
13198 (char *) "self",(char *) "facename", NULL
13199 };
13200
13201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13203 if (!SWIG_IsOK(res1)) {
13204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13205 }
13206 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13207 {
13208 wxString* sptr = wxString_in_helper(obj1);
13209 if (sptr == NULL) SWIG_fail;
13210 arg2 = *sptr;
13211 delete sptr;
13212 }
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13215 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
704eda0c
RD
13219 {
13220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13221 }
554f62e9
RD
13222 return resultobj;
13223fail:
13224 return NULL;
13225}
13226
13227
13228SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj = 0;
13230 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13231 wxFontFamily arg2 ;
13232 void *argp1 = 0 ;
13233 int res1 = 0 ;
13234 int val2 ;
13235 int ecode2 = 0 ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char * kwnames[] = {
13239 (char *) "self",(char *) "family", NULL
13240 };
13241
13242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13246 }
13247 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13248 ecode2 = SWIG_AsVal_int(obj1, &val2);
13249 if (!SWIG_IsOK(ecode2)) {
13250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13251 }
13252 arg2 = static_cast< wxFontFamily >(val2);
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 (arg1)->SetFamily(arg2);
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_Py_Void();
13260 return resultobj;
13261fail:
13262 return NULL;
13263}
13264
13265
13266SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13269 wxFontEncoding arg2 ;
13270 void *argp1 = 0 ;
13271 int res1 = 0 ;
13272 int val2 ;
13273 int ecode2 = 0 ;
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "self",(char *) "encoding", NULL
13278 };
13279
13280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13284 }
13285 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13286 ecode2 = SWIG_AsVal_int(obj1, &val2);
13287 if (!SWIG_IsOK(ecode2)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13289 }
13290 arg2 = static_cast< wxFontEncoding >(val2);
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 (arg1)->SetEncoding(arg2);
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_Py_Void();
13298 return resultobj;
13299fail:
13300 return NULL;
13301}
13302
13303
13304SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13305 PyObject *resultobj = 0;
13306 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13307 wxString *arg2 = 0 ;
13308 bool result;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 bool temp2 = false ;
13312 PyObject * obj0 = 0 ;
13313 PyObject * obj1 = 0 ;
13314 char * kwnames[] = {
13315 (char *) "self",(char *) "s", NULL
13316 };
13317
13318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13320 if (!SWIG_IsOK(res1)) {
13321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13322 }
13323 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13324 {
13325 arg2 = wxString_in_helper(obj1);
13326 if (arg2 == NULL) SWIG_fail;
13327 temp2 = true;
13328 }
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 {
13336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13337 }
13338 {
13339 if (temp2)
13340 delete arg2;
13341 }
13342 return resultobj;
13343fail:
13344 {
13345 if (temp2)
13346 delete arg2;
13347 }
13348 return NULL;
d55e5bfc
RD
13349}
13350
13351
554f62e9
RD
13352SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13355 wxString result;
13356 void *argp1 = 0 ;
13357 int res1 = 0 ;
13358 PyObject *swig_obj[1] ;
13359
13360 if (!args) SWIG_fail;
13361 swig_obj[0] = args;
13362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13363 if (!SWIG_IsOK(res1)) {
13364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13365 }
13366 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = ((wxNativeFontInfo const *)arg1)->ToString();
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 {
13374#if wxUSE_UNICODE
13375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13376#else
13377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13378#endif
13379 }
13380 return resultobj;
13381fail:
13382 return NULL;
d55e5bfc
RD
13383}
13384
13385
554f62e9
RD
13386SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13389 wxString result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13399 }
13400 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = wxNativeFontInfo___str__(arg1);
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408#if wxUSE_UNICODE
13409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13410#else
13411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13412#endif
13413 }
13414 return resultobj;
13415fail:
13416 return NULL;
13417}
13418
13419
13420SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj = 0;
13422 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13423 wxString *arg2 = 0 ;
13424 bool result;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 bool temp2 = false ;
13428 PyObject * obj0 = 0 ;
13429 PyObject * obj1 = 0 ;
13430 char * kwnames[] = {
13431 (char *) "self",(char *) "s", NULL
13432 };
13433
13434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13436 if (!SWIG_IsOK(res1)) {
13437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13438 }
13439 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13440 {
13441 arg2 = wxString_in_helper(obj1);
13442 if (arg2 == NULL) SWIG_fail;
13443 temp2 = true;
13444 }
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 {
13452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13453 }
13454 {
13455 if (temp2)
13456 delete arg2;
13457 }
13458 return resultobj;
13459fail:
13460 {
13461 if (temp2)
13462 delete arg2;
13463 }
13464 return NULL;
a2569024
RD
13465}
13466
13467
554f62e9
RD
13468SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *resultobj = 0;
13470 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13471 wxString result;
13472 void *argp1 = 0 ;
13473 int res1 = 0 ;
13474 PyObject *swig_obj[1] ;
13475
13476 if (!args) SWIG_fail;
13477 swig_obj[0] = args;
13478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13479 if (!SWIG_IsOK(res1)) {
13480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13481 }
13482 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13483 {
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 {
13490#if wxUSE_UNICODE
13491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13492#else
13493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13494#endif
13495 }
13496 return resultobj;
13497fail:
13498 return NULL;
d55e5bfc
RD
13499}
13500
13501
554f62e9
RD
13502SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13503 PyObject *obj;
13504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13505 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13506 return SWIG_Py_Void();
d55e5bfc
RD
13507}
13508
554f62e9
RD
13509SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13510 return SWIG_Python_InitShadowInstance(args);
13511}
d55e5bfc 13512
554f62e9
RD
13513SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13516 wxString *arg2 = (wxString *) 0 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 bool temp2 = false ;
13520 PyObject *swig_obj[2] ;
13521
13522 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13526 }
13527 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13528 {
13529 arg2 = wxString_in_helper(swig_obj[1]);
13530 if (arg2 == NULL) SWIG_fail;
13531 temp2 = true;
13532 }
13533 if (arg1) (arg1)->facename = *arg2;
13534
13535 resultobj = SWIG_Py_Void();
13536 {
13537 if (temp2)
13538 delete arg2;
13539 }
13540 return resultobj;
13541fail:
13542 {
13543 if (temp2)
13544 delete arg2;
13545 }
13546 return NULL;
d55e5bfc
RD
13547}
13548
13549
554f62e9
RD
13550SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13551 PyObject *resultobj = 0;
13552 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13553 wxString *result = 0 ;
13554 void *argp1 = 0 ;
13555 int res1 = 0 ;
13556 PyObject *swig_obj[1] ;
13557
13558 if (!args) SWIG_fail;
13559 swig_obj[0] = args;
13560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13561 if (!SWIG_IsOK(res1)) {
13562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13563 }
13564 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13565 result = (wxString *)& ((arg1)->facename);
13566 {
13567#if wxUSE_UNICODE
13568 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13569#else
13570 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13571#endif
13572 }
13573 return resultobj;
13574fail:
13575 return NULL;
d55e5bfc
RD
13576}
13577
13578
554f62e9
RD
13579SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13580 PyObject *resultobj = 0;
13581 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13582 wxFontEncoding arg2 ;
13583 void *argp1 = 0 ;
13584 int res1 = 0 ;
13585 int val2 ;
13586 int ecode2 = 0 ;
13587 PyObject *swig_obj[2] ;
13588
13589 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13591 if (!SWIG_IsOK(res1)) {
13592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13593 }
13594 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13595 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13596 if (!SWIG_IsOK(ecode2)) {
13597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13598 }
13599 arg2 = static_cast< wxFontEncoding >(val2);
13600 if (arg1) (arg1)->encoding = arg2;
13601
13602 resultobj = SWIG_Py_Void();
13603 return resultobj;
13604fail:
13605 return NULL;
d55e5bfc
RD
13606}
13607
13608
554f62e9
RD
13609SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13610 PyObject *resultobj = 0;
13611 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13612 wxFontEncoding result;
13613 void *argp1 = 0 ;
13614 int res1 = 0 ;
13615 PyObject *swig_obj[1] ;
13616
13617 if (!args) SWIG_fail;
13618 swig_obj[0] = args;
13619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13620 if (!SWIG_IsOK(res1)) {
13621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13622 }
13623 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13624 result = (wxFontEncoding) ((arg1)->encoding);
13625 resultobj = SWIG_From_int(static_cast< int >(result));
13626 return resultobj;
13627fail:
13628 return NULL;
d55e5bfc
RD
13629}
13630
13631
554f62e9
RD
13632SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13633 PyObject *resultobj = 0;
13634 wxNativeEncodingInfo *result = 0 ;
13635
13636 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13644 return resultobj;
13645fail:
13646 return NULL;
d55e5bfc
RD
13647}
13648
13649
554f62e9
RD
13650SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13651 PyObject *resultobj = 0;
13652 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13653 void *argp1 = 0 ;
13654 int res1 = 0 ;
13655 PyObject *swig_obj[1] ;
13656
13657 if (!args) SWIG_fail;
13658 swig_obj[0] = args;
13659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13660 if (!SWIG_IsOK(res1)) {
13661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13662 }
13663 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 delete arg1;
d55e5bfc 13667
554f62e9
RD
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_Py_Void();
13672 return resultobj;
13673fail:
13674 return NULL;
13675}
13676
13677
13678SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj = 0;
13680 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13681 wxString *arg2 = 0 ;
13682 bool result;
13683 void *argp1 = 0 ;
13684 int res1 = 0 ;
13685 bool temp2 = false ;
13686 PyObject * obj0 = 0 ;
13687 PyObject * obj1 = 0 ;
13688 char * kwnames[] = {
13689 (char *) "self",(char *) "s", NULL
13690 };
13691
13692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13694 if (!SWIG_IsOK(res1)) {
13695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13696 }
13697 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13698 {
13699 arg2 = wxString_in_helper(obj1);
13700 if (arg2 == NULL) SWIG_fail;
13701 temp2 = true;
13702 }
13703 {
13704 PyThreadState* __tstate = wxPyBeginAllowThreads();
13705 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13706 wxPyEndAllowThreads(__tstate);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 {
13710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13711 }
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return resultobj;
13717fail:
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return NULL;
d55e5bfc
RD
13723}
13724
13725
554f62e9
RD
13726SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13727 PyObject *resultobj = 0;
13728 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13729 wxString result;
13730 void *argp1 = 0 ;
13731 int res1 = 0 ;
13732 PyObject *swig_obj[1] ;
13733
13734 if (!args) SWIG_fail;
13735 swig_obj[0] = args;
13736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13739 }
13740 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13741 {
13742 PyThreadState* __tstate = wxPyBeginAllowThreads();
13743 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 {
13748#if wxUSE_UNICODE
13749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13750#else
13751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13752#endif
13753 }
13754 return resultobj;
13755fail:
13756 return NULL;
d55e5bfc
RD
13757}
13758
13759
554f62e9
RD
13760SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13761 PyObject *obj;
13762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13763 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13764 return SWIG_Py_Void();
d55e5bfc
RD
13765}
13766
554f62e9
RD
13767SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13768 return SWIG_Python_InitShadowInstance(args);
13769}
d55e5bfc 13770
554f62e9
RD
13771SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13772 PyObject *resultobj = 0;
13773 wxFontEncoding arg1 ;
13774 wxNativeEncodingInfo *result = 0 ;
13775 int val1 ;
13776 int ecode1 = 0 ;
13777 PyObject * obj0 = 0 ;
13778 char * kwnames[] = {
13779 (char *) "encoding", NULL
13780 };
13781
13782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13783 ecode1 = SWIG_AsVal_int(obj0, &val1);
13784 if (!SWIG_IsOK(ecode1)) {
13785 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13786 }
13787 arg1 = static_cast< wxFontEncoding >(val1);
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13791 wxPyEndAllowThreads(__tstate);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13795 return resultobj;
13796fail:
13797 return NULL;
13798}
13799
13800
13801SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13802 PyObject *resultobj = 0;
13803 wxNativeEncodingInfo *arg1 = 0 ;
13804 bool result;
13805 void *argp1 = 0 ;
13806 int res1 = 0 ;
13807 PyObject * obj0 = 0 ;
13808 char * kwnames[] = {
13809 (char *) "info", NULL
13810 };
13811
13812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13813 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13814 if (!SWIG_IsOK(res1)) {
13815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13816 }
13817 if (!argp1) {
13818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13819 }
13820 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 {
13828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13829 }
13830 return resultobj;
13831fail:
13832 return NULL;
d55e5bfc
RD
13833}
13834
13835
554f62e9
RD
13836SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxFontMapper *result = 0 ;
13839
13840 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13841 {
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = (wxFontMapper *)new wxFontMapper();
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13848 return resultobj;
13849fail:
13850 return NULL;
d55e5bfc
RD
13851}
13852
13853
554f62e9
RD
13854SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13855 PyObject *resultobj = 0;
13856 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 PyObject *swig_obj[1] ;
13860
13861 if (!args) SWIG_fail;
13862 swig_obj[0] = args;
13863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13866 }
13867 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 delete arg1;
d55e5bfc 13871
554f62e9
RD
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 resultobj = SWIG_Py_Void();
13876 return resultobj;
13877fail:
13878 return NULL;
d55e5bfc
RD
13879}
13880
13881
554f62e9
RD
13882SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13883 PyObject *resultobj = 0;
13884 wxFontMapper *result = 0 ;
13885
13886 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 result = (wxFontMapper *)wxFontMapper::Get();
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13894 return resultobj;
13895fail:
13896 return NULL;
13897}
13898
13899
13900SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13901 PyObject *resultobj = 0;
13902 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13903 wxFontMapper *result = 0 ;
13904 void *argp1 = 0 ;
13905 int res1 = 0 ;
13906 PyObject * obj0 = 0 ;
13907 char * kwnames[] = {
13908 (char *) "mapper", NULL
13909 };
13910
13911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13913 if (!SWIG_IsOK(res1)) {
13914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13915 }
13916 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13924 return resultobj;
13925fail:
13926 return NULL;
13927}
13928
13929
13930SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj = 0;
13932 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13933 wxString *arg2 = 0 ;
13934 bool arg3 = (bool) true ;
13935 wxFontEncoding result;
13936 void *argp1 = 0 ;
13937 int res1 = 0 ;
13938 bool temp2 = false ;
13939 bool val3 ;
13940 int ecode3 = 0 ;
13941 PyObject * obj0 = 0 ;
13942 PyObject * obj1 = 0 ;
13943 PyObject * obj2 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13950 if (!SWIG_IsOK(res1)) {
13951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13952 }
13953 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13954 {
13955 arg2 = wxString_in_helper(obj1);
13956 if (arg2 == NULL) SWIG_fail;
13957 temp2 = true;
13958 }
13959 if (obj2) {
13960 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13961 if (!SWIG_IsOK(ecode3)) {
13962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13963 }
13964 arg3 = static_cast< bool >(val3);
13965 }
13966 {
13967 PyThreadState* __tstate = wxPyBeginAllowThreads();
13968 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 resultobj = SWIG_From_int(static_cast< int >(result));
13973 {
13974 if (temp2)
13975 delete arg2;
13976 }
13977 return resultobj;
13978fail:
13979 {
13980 if (temp2)
13981 delete arg2;
13982 }
13983 return NULL;
d55e5bfc
RD
13984}
13985
13986
554f62e9
RD
13987SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13988 PyObject *resultobj = 0;
13989 size_t result;
13990
13991 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13999 return resultobj;
14000fail:
14001 return NULL;
14002}
14003
14004
14005SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj = 0;
14007 size_t arg1 ;
14008 wxFontEncoding result;
14009 size_t val1 ;
14010 int ecode1 = 0 ;
14011 PyObject * obj0 = 0 ;
14012 char * kwnames[] = {
14013 (char *) "n", NULL
14014 };
14015
14016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14017 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14018 if (!SWIG_IsOK(ecode1)) {
14019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14020 }
14021 arg1 = static_cast< size_t >(val1);
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_From_int(static_cast< int >(result));
14029 return resultobj;
14030fail:
14031 return NULL;
14032}
14033
14034
14035SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj = 0;
14037 wxFontEncoding arg1 ;
14038 wxString result;
14039 int val1 ;
14040 int ecode1 = 0 ;
14041 PyObject * obj0 = 0 ;
14042 char * kwnames[] = {
14043 (char *) "encoding", NULL
14044 };
14045
14046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14047 ecode1 = SWIG_AsVal_int(obj0, &val1);
14048 if (!SWIG_IsOK(ecode1)) {
14049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14050 }
14051 arg1 = static_cast< wxFontEncoding >(val1);
14052 {
14053 PyThreadState* __tstate = wxPyBeginAllowThreads();
14054 result = wxFontMapper::GetEncodingName(arg1);
14055 wxPyEndAllowThreads(__tstate);
14056 if (PyErr_Occurred()) SWIG_fail;
14057 }
14058 {
14059#if wxUSE_UNICODE
14060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14061#else
14062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14063#endif
14064 }
14065 return resultobj;
14066fail:
14067 return NULL;
d55e5bfc
RD
14068}
14069
14070
554f62e9
RD
14071SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14072 PyObject *resultobj = 0;
14073 wxFontEncoding arg1 ;
14074 wxString result;
14075 int val1 ;
14076 int ecode1 = 0 ;
14077 PyObject * obj0 = 0 ;
14078 char * kwnames[] = {
14079 (char *) "encoding", NULL
14080 };
14081
14082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14083 ecode1 = SWIG_AsVal_int(obj0, &val1);
14084 if (!SWIG_IsOK(ecode1)) {
14085 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14086 }
14087 arg1 = static_cast< wxFontEncoding >(val1);
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 result = wxFontMapper::GetEncodingDescription(arg1);
14091 wxPyEndAllowThreads(__tstate);
14092 if (PyErr_Occurred()) SWIG_fail;
14093 }
14094 {
14095#if wxUSE_UNICODE
14096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14097#else
14098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14099#endif
14100 }
14101 return resultobj;
14102fail:
14103 return NULL;
d55e5bfc
RD
14104}
14105
14106
554f62e9
RD
14107SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14108 PyObject *resultobj = 0;
14109 wxString *arg1 = 0 ;
14110 wxFontEncoding result;
14111 bool temp1 = false ;
14112 PyObject * obj0 = 0 ;
14113 char * kwnames[] = {
14114 (char *) "name", NULL
14115 };
14116
14117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14118 {
14119 arg1 = wxString_in_helper(obj0);
14120 if (arg1 == NULL) SWIG_fail;
14121 temp1 = true;
14122 }
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 resultobj = SWIG_From_int(static_cast< int >(result));
14130 {
14131 if (temp1)
14132 delete arg1;
14133 }
14134 return resultobj;
14135fail:
14136 {
14137 if (temp1)
14138 delete arg1;
14139 }
14140 return NULL;
d55e5bfc
RD
14141}
14142
14143
554f62e9
RD
14144SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj = 0;
14146 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14147 wxString *arg2 = 0 ;
14148 void *argp1 = 0 ;
14149 int res1 = 0 ;
14150 bool temp2 = false ;
14151 PyObject * obj0 = 0 ;
14152 PyObject * obj1 = 0 ;
14153 char * kwnames[] = {
14154 (char *) "self",(char *) "prefix", NULL
14155 };
14156
14157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14159 if (!SWIG_IsOK(res1)) {
14160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14161 }
14162 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14163 {
14164 arg2 = wxString_in_helper(obj1);
14165 if (arg2 == NULL) SWIG_fail;
14166 temp2 = true;
14167 }
14168 {
14169 PyThreadState* __tstate = wxPyBeginAllowThreads();
14170 (arg1)->SetConfigPath((wxString const &)*arg2);
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 resultobj = SWIG_Py_Void();
14175 {
14176 if (temp2)
14177 delete arg2;
14178 }
14179 return resultobj;
14180fail:
14181 {
14182 if (temp2)
14183 delete arg2;
14184 }
14185 return NULL;
d55e5bfc
RD
14186}
14187
14188
554f62e9
RD
14189SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14190 PyObject *resultobj = 0;
14191 wxString result;
14192
14193 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14194 {
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = wxFontMapper::GetDefaultConfigPath();
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 {
14201#if wxUSE_UNICODE
14202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14203#else
14204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14205#endif
14206 }
14207 return resultobj;
14208fail:
14209 return NULL;
14210}
14211
14212
14213SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14214 PyObject *resultobj = 0;
14215 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14216 wxFontEncoding arg2 ;
14217 wxString const &arg3_defvalue = wxPyEmptyString ;
14218 wxString *arg3 = (wxString *) &arg3_defvalue ;
14219 bool arg4 = (bool) true ;
14220 PyObject *result = 0 ;
14221 void *argp1 = 0 ;
14222 int res1 = 0 ;
14223 int val2 ;
14224 int ecode2 = 0 ;
14225 bool temp3 = false ;
14226 bool val4 ;
14227 int ecode4 = 0 ;
14228 PyObject * obj0 = 0 ;
14229 PyObject * obj1 = 0 ;
14230 PyObject * obj2 = 0 ;
14231 PyObject * obj3 = 0 ;
14232 char * kwnames[] = {
14233 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14234 };
14235
14236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14238 if (!SWIG_IsOK(res1)) {
14239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14240 }
14241 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14242 ecode2 = SWIG_AsVal_int(obj1, &val2);
14243 if (!SWIG_IsOK(ecode2)) {
14244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14245 }
14246 arg2 = static_cast< wxFontEncoding >(val2);
14247 if (obj2) {
d55e5bfc 14248 {
554f62e9
RD
14249 arg3 = wxString_in_helper(obj2);
14250 if (arg3 == NULL) SWIG_fail;
14251 temp3 = true;
d55e5bfc 14252 }
554f62e9
RD
14253 }
14254 if (obj3) {
14255 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14256 if (!SWIG_IsOK(ecode4)) {
14257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14258 }
14259 arg4 = static_cast< bool >(val4);
14260 }
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 resultobj = result;
14268 {
14269 if (temp3)
14270 delete arg3;
14271 }
14272 return resultobj;
14273fail:
14274 {
14275 if (temp3)
14276 delete arg3;
14277 }
14278 return NULL;
14279}
14280
14281
14282SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14283 PyObject *resultobj = 0;
14284 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14285 wxFontEncoding arg2 ;
14286 wxString const &arg3_defvalue = wxPyEmptyString ;
14287 wxString *arg3 = (wxString *) &arg3_defvalue ;
14288 bool result;
14289 void *argp1 = 0 ;
14290 int res1 = 0 ;
14291 int val2 ;
14292 int ecode2 = 0 ;
14293 bool temp3 = false ;
14294 PyObject * obj0 = 0 ;
14295 PyObject * obj1 = 0 ;
14296 PyObject * obj2 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14303 if (!SWIG_IsOK(res1)) {
14304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14305 }
14306 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14307 ecode2 = SWIG_AsVal_int(obj1, &val2);
14308 if (!SWIG_IsOK(ecode2)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14310 }
14311 arg2 = static_cast< wxFontEncoding >(val2);
14312 if (obj2) {
093d3ff1 14313 {
554f62e9
RD
14314 arg3 = wxString_in_helper(obj2);
14315 if (arg3 == NULL) SWIG_fail;
14316 temp3 = true;
d55e5bfc 14317 }
554f62e9
RD
14318 }
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14327 }
14328 {
14329 if (temp3)
14330 delete arg3;
14331 }
14332 return resultobj;
14333fail:
14334 {
14335 if (temp3)
14336 delete arg3;
14337 }
14338 return NULL;
14339}
14340
14341
14342SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj = 0;
14344 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14345 wxWindow *arg2 = (wxWindow *) 0 ;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 void *argp2 = 0 ;
14349 int res2 = 0 ;
14350 PyObject * obj0 = 0 ;
14351 PyObject * obj1 = 0 ;
14352 char * kwnames[] = {
14353 (char *) "self",(char *) "parent", NULL
14354 };
14355
14356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14358 if (!SWIG_IsOK(res1)) {
14359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14360 }
14361 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14363 if (!SWIG_IsOK(res2)) {
14364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14365 }
14366 arg2 = reinterpret_cast< wxWindow * >(argp2);
14367 {
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 (arg1)->SetDialogParent(arg2);
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 resultobj = SWIG_Py_Void();
14374 return resultobj;
14375fail:
14376 return NULL;
14377}
14378
14379
14380SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14381 PyObject *resultobj = 0;
14382 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14383 wxString *arg2 = 0 ;
14384 void *argp1 = 0 ;
14385 int res1 = 0 ;
14386 bool temp2 = false ;
14387 PyObject * obj0 = 0 ;
14388 PyObject * obj1 = 0 ;
14389 char * kwnames[] = {
14390 (char *) "self",(char *) "title", NULL
14391 };
14392
14393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14395 if (!SWIG_IsOK(res1)) {
14396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14397 }
14398 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14399 {
14400 arg2 = wxString_in_helper(obj1);
14401 if (arg2 == NULL) SWIG_fail;
14402 temp2 = true;
14403 }
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 (arg1)->SetDialogTitle((wxString const &)*arg2);
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 resultobj = SWIG_Py_Void();
14411 {
14412 if (temp2)
14413 delete arg2;
14414 }
14415 return resultobj;
14416fail:
14417 {
14418 if (temp2)
14419 delete arg2;
14420 }
14421 return NULL;
14422}
14423
14424
14425SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14426 PyObject *obj;
14427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14428 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14429 return SWIG_Py_Void();
14430}
14431
14432SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14433 return SWIG_Python_InitShadowInstance(args);
14434}
14435
14436SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj = 0;
14438 int arg1 ;
14439 int arg2 ;
14440 int arg3 ;
14441 int arg4 ;
14442 bool arg5 = (bool) false ;
14443 wxString const &arg6_defvalue = wxPyEmptyString ;
14444 wxString *arg6 = (wxString *) &arg6_defvalue ;
14445 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14446 wxFont *result = 0 ;
14447 int val1 ;
14448 int ecode1 = 0 ;
14449 int val2 ;
14450 int ecode2 = 0 ;
14451 int val3 ;
14452 int ecode3 = 0 ;
14453 int val4 ;
14454 int ecode4 = 0 ;
14455 bool val5 ;
14456 int ecode5 = 0 ;
14457 bool temp6 = false ;
14458 int val7 ;
14459 int ecode7 = 0 ;
14460 PyObject * obj0 = 0 ;
14461 PyObject * obj1 = 0 ;
14462 PyObject * obj2 = 0 ;
14463 PyObject * obj3 = 0 ;
14464 PyObject * obj4 = 0 ;
14465 PyObject * obj5 = 0 ;
14466 PyObject * obj6 = 0 ;
14467 char * kwnames[] = {
14468 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14469 };
14470
14471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14472 ecode1 = SWIG_AsVal_int(obj0, &val1);
14473 if (!SWIG_IsOK(ecode1)) {
14474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14475 }
14476 arg1 = static_cast< int >(val1);
14477 ecode2 = SWIG_AsVal_int(obj1, &val2);
14478 if (!SWIG_IsOK(ecode2)) {
14479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14480 }
14481 arg2 = static_cast< int >(val2);
14482 ecode3 = SWIG_AsVal_int(obj2, &val3);
14483 if (!SWIG_IsOK(ecode3)) {
14484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14485 }
14486 arg3 = static_cast< int >(val3);
14487 ecode4 = SWIG_AsVal_int(obj3, &val4);
14488 if (!SWIG_IsOK(ecode4)) {
14489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14490 }
14491 arg4 = static_cast< int >(val4);
14492 if (obj4) {
14493 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14494 if (!SWIG_IsOK(ecode5)) {
14495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14496 }
14497 arg5 = static_cast< bool >(val5);
14498 }
14499 if (obj5) {
d55e5bfc 14500 {
554f62e9
RD
14501 arg6 = wxString_in_helper(obj5);
14502 if (arg6 == NULL) SWIG_fail;
14503 temp6 = true;
d55e5bfc 14504 }
554f62e9
RD
14505 }
14506 if (obj6) {
14507 ecode7 = SWIG_AsVal_int(obj6, &val7);
14508 if (!SWIG_IsOK(ecode7)) {
14509 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14510 }
14511 arg7 = static_cast< wxFontEncoding >(val7);
14512 }
14513 {
14514 if (!wxPyCheckForApp()) SWIG_fail;
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14521 {
14522 if (temp6)
14523 delete arg6;
14524 }
14525 return resultobj;
14526fail:
14527 {
14528 if (temp6)
14529 delete arg6;
14530 }
14531 return NULL;
d55e5bfc
RD
14532}
14533
14534
554f62e9
RD
14535SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14536 PyObject *resultobj = 0;
14537 wxFont *arg1 = (wxFont *) 0 ;
14538 void *argp1 = 0 ;
14539 int res1 = 0 ;
14540 PyObject *swig_obj[1] ;
14541
14542 if (!args) SWIG_fail;
14543 swig_obj[0] = args;
14544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14545 if (!SWIG_IsOK(res1)) {
14546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14547 }
14548 arg1 = reinterpret_cast< wxFont * >(argp1);
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 delete arg1;
d55e5bfc 14552
554f62e9
RD
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = SWIG_Py_Void();
14557 return resultobj;
14558fail:
14559 return NULL;
14560}
14561
14562
14563SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj = 0;
14565 wxNativeFontInfo *arg1 = 0 ;
14566 wxFont *result = 0 ;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 PyObject * obj0 = 0 ;
14570 char * kwnames[] = {
14571 (char *) "info", NULL
14572 };
14573
14574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14575 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14578 }
14579 if (!argp1) {
14580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14581 }
14582 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14583 {
14584 if (!wxPyCheckForApp()) SWIG_fail;
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14591 return resultobj;
14592fail:
14593 return NULL;
d55e5bfc
RD
14594}
14595
14596
554f62e9
RD
14597SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14598 PyObject *resultobj = 0;
14599 wxString *arg1 = 0 ;
14600 wxFont *result = 0 ;
14601 bool temp1 = false ;
14602 PyObject * obj0 = 0 ;
14603 char * kwnames[] = {
14604 (char *) "info", NULL
14605 };
14606
14607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14608 {
14609 arg1 = wxString_in_helper(obj0);
14610 if (arg1 == NULL) SWIG_fail;
14611 temp1 = true;
14612 }
14613 {
14614 if (!wxPyCheckForApp()) SWIG_fail;
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14621 {
14622 if (temp1)
14623 delete arg1;
14624 }
14625 return resultobj;
14626fail:
14627 {
14628 if (temp1)
14629 delete arg1;
14630 }
14631 return NULL;
14632}
14633
14634
14635SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14636 PyObject *resultobj = 0;
14637 int arg1 ;
14638 wxFontFamily arg2 ;
14639 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14640 wxString const &arg4_defvalue = wxPyEmptyString ;
14641 wxString *arg4 = (wxString *) &arg4_defvalue ;
14642 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14643 wxFont *result = 0 ;
14644 int val1 ;
14645 int ecode1 = 0 ;
14646 int val2 ;
14647 int ecode2 = 0 ;
14648 int val3 ;
14649 int ecode3 = 0 ;
14650 bool temp4 = false ;
14651 int val5 ;
14652 int ecode5 = 0 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 PyObject * obj2 = 0 ;
14656 PyObject * obj3 = 0 ;
14657 PyObject * obj4 = 0 ;
14658 char * kwnames[] = {
14659 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14660 };
14661
14662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14663 ecode1 = SWIG_AsVal_int(obj0, &val1);
14664 if (!SWIG_IsOK(ecode1)) {
14665 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14666 }
14667 arg1 = static_cast< int >(val1);
14668 ecode2 = SWIG_AsVal_int(obj1, &val2);
14669 if (!SWIG_IsOK(ecode2)) {
14670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14671 }
14672 arg2 = static_cast< wxFontFamily >(val2);
14673 if (obj2) {
14674 ecode3 = SWIG_AsVal_int(obj2, &val3);
14675 if (!SWIG_IsOK(ecode3)) {
14676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14677 }
14678 arg3 = static_cast< int >(val3);
14679 }
14680 if (obj3) {
d55e5bfc 14681 {
554f62e9
RD
14682 arg4 = wxString_in_helper(obj3);
14683 if (arg4 == NULL) SWIG_fail;
14684 temp4 = true;
d55e5bfc 14685 }
554f62e9
RD
14686 }
14687 if (obj4) {
14688 ecode5 = SWIG_AsVal_int(obj4, &val5);
14689 if (!SWIG_IsOK(ecode5)) {
14690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14691 }
14692 arg5 = static_cast< wxFontEncoding >(val5);
14693 }
14694 {
14695 if (!wxPyCheckForApp()) SWIG_fail;
14696 PyThreadState* __tstate = wxPyBeginAllowThreads();
14697 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
14701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14702 {
14703 if (temp4)
14704 delete arg4;
14705 }
14706 return resultobj;
14707fail:
14708 {
14709 if (temp4)
14710 delete arg4;
14711 }
14712 return NULL;
14713}
14714
14715
14716SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj = 0;
14718 wxSize *arg1 = 0 ;
14719 int arg2 ;
14720 int arg3 ;
14721 int arg4 ;
14722 bool arg5 = (bool) false ;
14723 wxString const &arg6_defvalue = wxEmptyString ;
14724 wxString *arg6 = (wxString *) &arg6_defvalue ;
14725 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14726 wxFont *result = 0 ;
14727 wxSize temp1 ;
14728 int val2 ;
14729 int ecode2 = 0 ;
14730 int val3 ;
14731 int ecode3 = 0 ;
14732 int val4 ;
14733 int ecode4 = 0 ;
14734 bool val5 ;
14735 int ecode5 = 0 ;
14736 bool temp6 = false ;
14737 int val7 ;
14738 int ecode7 = 0 ;
14739 PyObject * obj0 = 0 ;
14740 PyObject * obj1 = 0 ;
14741 PyObject * obj2 = 0 ;
14742 PyObject * obj3 = 0 ;
14743 PyObject * obj4 = 0 ;
14744 PyObject * obj5 = 0 ;
14745 PyObject * obj6 = 0 ;
14746 char * kwnames[] = {
14747 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14748 };
14749
14750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14751 {
14752 arg1 = &temp1;
14753 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14754 }
14755 ecode2 = SWIG_AsVal_int(obj1, &val2);
14756 if (!SWIG_IsOK(ecode2)) {
14757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14758 }
14759 arg2 = static_cast< int >(val2);
14760 ecode3 = SWIG_AsVal_int(obj2, &val3);
14761 if (!SWIG_IsOK(ecode3)) {
14762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14763 }
14764 arg3 = static_cast< int >(val3);
14765 ecode4 = SWIG_AsVal_int(obj3, &val4);
14766 if (!SWIG_IsOK(ecode4)) {
14767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14768 }
14769 arg4 = static_cast< int >(val4);
14770 if (obj4) {
14771 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14772 if (!SWIG_IsOK(ecode5)) {
14773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14774 }
14775 arg5 = static_cast< bool >(val5);
14776 }
14777 if (obj5) {
d55e5bfc 14778 {
554f62e9
RD
14779 arg6 = wxString_in_helper(obj5);
14780 if (arg6 == NULL) SWIG_fail;
14781 temp6 = true;
d55e5bfc 14782 }
554f62e9
RD
14783 }
14784 if (obj6) {
14785 ecode7 = SWIG_AsVal_int(obj6, &val7);
14786 if (!SWIG_IsOK(ecode7)) {
14787 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14788 }
14789 arg7 = static_cast< wxFontEncoding >(val7);
14790 }
14791 {
14792 if (!wxPyCheckForApp()) SWIG_fail;
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14799 {
14800 if (temp6)
14801 delete arg6;
14802 }
14803 return resultobj;
14804fail:
14805 {
14806 if (temp6)
14807 delete arg6;
14808 }
14809 return NULL;
14810}
14811
14812
14813SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj = 0;
14815 wxSize *arg1 = 0 ;
14816 wxFontFamily arg2 ;
14817 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14818 wxString const &arg4_defvalue = wxEmptyString ;
14819 wxString *arg4 = (wxString *) &arg4_defvalue ;
14820 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14821 wxFont *result = 0 ;
14822 wxSize temp1 ;
14823 int val2 ;
14824 int ecode2 = 0 ;
14825 int val3 ;
14826 int ecode3 = 0 ;
14827 bool temp4 = false ;
14828 int val5 ;
14829 int ecode5 = 0 ;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 PyObject * obj2 = 0 ;
14833 PyObject * obj3 = 0 ;
14834 PyObject * obj4 = 0 ;
14835 char * kwnames[] = {
14836 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14837 };
14838
14839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14840 {
14841 arg1 = &temp1;
14842 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14843 }
14844 ecode2 = SWIG_AsVal_int(obj1, &val2);
14845 if (!SWIG_IsOK(ecode2)) {
14846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14847 }
14848 arg2 = static_cast< wxFontFamily >(val2);
14849 if (obj2) {
14850 ecode3 = SWIG_AsVal_int(obj2, &val3);
14851 if (!SWIG_IsOK(ecode3)) {
14852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14853 }
14854 arg3 = static_cast< int >(val3);
14855 }
14856 if (obj3) {
d55e5bfc 14857 {
554f62e9
RD
14858 arg4 = wxString_in_helper(obj3);
14859 if (arg4 == NULL) SWIG_fail;
14860 temp4 = true;
d55e5bfc 14861 }
554f62e9
RD
14862 }
14863 if (obj4) {
14864 ecode5 = SWIG_AsVal_int(obj4, &val5);
14865 if (!SWIG_IsOK(ecode5)) {
14866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14867 }
14868 arg5 = static_cast< wxFontEncoding >(val5);
14869 }
14870 {
14871 if (!wxPyCheckForApp()) SWIG_fail;
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14878 {
14879 if (temp4)
14880 delete arg4;
14881 }
14882 return resultobj;
14883fail:
14884 {
14885 if (temp4)
14886 delete arg4;
14887 }
14888 return NULL;
d55e5bfc
RD
14889}
14890
14891
b39fe951 14892SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14893 PyObject *resultobj = 0;
14894 wxFont *arg1 = (wxFont *) 0 ;
14895 bool result;
14896 void *argp1 = 0 ;
14897 int res1 = 0 ;
14898 PyObject *swig_obj[1] ;
14899
14900 if (!args) SWIG_fail;
14901 swig_obj[0] = args;
14902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14903 if (!SWIG_IsOK(res1)) {
b39fe951 14904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14905 }
14906 arg1 = reinterpret_cast< wxFont * >(argp1);
14907 {
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14909 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 {
14914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14915 }
14916 return resultobj;
14917fail:
14918 return NULL;
14919}
14920
14921
14922SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxFont *arg1 = (wxFont *) 0 ;
14925 wxFont *arg2 = (wxFont *) 0 ;
14926 bool result;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 void *argp2 = 0 ;
14930 int res2 = 0 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 char * kwnames[] = {
14934 (char *) "self",(char *) "other", NULL
14935 };
14936
14937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14939 if (!SWIG_IsOK(res1)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14941 }
14942 arg1 = reinterpret_cast< wxFont * >(argp1);
14943 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14944 if (!SWIG_IsOK(res2)) {
14945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14946 }
14947 arg2 = reinterpret_cast< wxFont * >(argp2);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 {
14955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14956 }
14957 return resultobj;
14958fail:
14959 return NULL;
14960}
14961
14962
14963SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj = 0;
14965 wxFont *arg1 = (wxFont *) 0 ;
14966 wxFont *arg2 = (wxFont *) 0 ;
14967 bool result;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 void *argp2 = 0 ;
14971 int res2 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 char * kwnames[] = {
14975 (char *) "self",(char *) "other", NULL
14976 };
14977
14978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14982 }
14983 arg1 = reinterpret_cast< wxFont * >(argp1);
14984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14985 if (!SWIG_IsOK(res2)) {
14986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14987 }
14988 arg2 = reinterpret_cast< wxFont * >(argp2);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14997 }
14998 return resultobj;
14999fail:
15000 return NULL;
a2569024
RD
15001}
15002
15003
554f62e9
RD
15004SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15005 PyObject *resultobj = 0;
15006 wxFont *arg1 = (wxFont *) 0 ;
15007 int result;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 PyObject *swig_obj[1] ;
15011
15012 if (!args) SWIG_fail;
15013 swig_obj[0] = args;
15014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15017 }
15018 arg1 = reinterpret_cast< wxFont * >(argp1);
15019 {
15020 PyThreadState* __tstate = wxPyBeginAllowThreads();
15021 result = (int)((wxFont const *)arg1)->GetPointSize();
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
15025 resultobj = SWIG_From_int(static_cast< int >(result));
15026 return resultobj;
15027fail:
15028 return NULL;
d55e5bfc
RD
15029}
15030
15031
554f62e9
RD
15032SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15033 PyObject *resultobj = 0;
15034 wxFont *arg1 = (wxFont *) 0 ;
15035 wxSize result;
15036 void *argp1 = 0 ;
15037 int res1 = 0 ;
15038 PyObject *swig_obj[1] ;
15039
15040 if (!args) SWIG_fail;
15041 swig_obj[0] = args;
15042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15043 if (!SWIG_IsOK(res1)) {
15044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15045 }
15046 arg1 = reinterpret_cast< wxFont * >(argp1);
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 result = ((wxFont const *)arg1)->GetPixelSize();
15050 wxPyEndAllowThreads(__tstate);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 }
15053 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15054 return resultobj;
15055fail:
15056 return NULL;
d55e5bfc
RD
15057}
15058
15059
554f62e9
RD
15060SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15061 PyObject *resultobj = 0;
15062 wxFont *arg1 = (wxFont *) 0 ;
15063 bool result;
15064 void *argp1 = 0 ;
15065 int res1 = 0 ;
15066 PyObject *swig_obj[1] ;
15067
15068 if (!args) SWIG_fail;
15069 swig_obj[0] = args;
15070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15071 if (!SWIG_IsOK(res1)) {
15072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15073 }
15074 arg1 = reinterpret_cast< wxFont * >(argp1);
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 {
15082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15083 }
15084 return resultobj;
15085fail:
15086 return NULL;
d55e5bfc
RD
15087}
15088
15089
554f62e9
RD
15090SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15091 PyObject *resultobj = 0;
15092 wxFont *arg1 = (wxFont *) 0 ;
15093 int result;
15094 void *argp1 = 0 ;
15095 int res1 = 0 ;
15096 PyObject *swig_obj[1] ;
15097
15098 if (!args) SWIG_fail;
15099 swig_obj[0] = args;
15100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15101 if (!SWIG_IsOK(res1)) {
15102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15103 }
15104 arg1 = reinterpret_cast< wxFont * >(argp1);
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (int)((wxFont const *)arg1)->GetFamily();
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = SWIG_From_int(static_cast< int >(result));
15112 return resultobj;
15113fail:
15114 return NULL;
d55e5bfc
RD
15115}
15116
15117
554f62e9
RD
15118SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15119 PyObject *resultobj = 0;
15120 wxFont *arg1 = (wxFont *) 0 ;
15121 int result;
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 PyObject *swig_obj[1] ;
15125
15126 if (!args) SWIG_fail;
15127 swig_obj[0] = args;
15128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15129 if (!SWIG_IsOK(res1)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15131 }
15132 arg1 = reinterpret_cast< wxFont * >(argp1);
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = (int)((wxFont const *)arg1)->GetStyle();
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 resultobj = SWIG_From_int(static_cast< int >(result));
15140 return resultobj;
15141fail:
15142 return NULL;
d55e5bfc
RD
15143}
15144
15145
554f62e9
RD
15146SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15147 PyObject *resultobj = 0;
15148 wxFont *arg1 = (wxFont *) 0 ;
15149 int result;
15150 void *argp1 = 0 ;
15151 int res1 = 0 ;
15152 PyObject *swig_obj[1] ;
15153
15154 if (!args) SWIG_fail;
15155 swig_obj[0] = args;
15156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15157 if (!SWIG_IsOK(res1)) {
15158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15159 }
15160 arg1 = reinterpret_cast< wxFont * >(argp1);
15161 {
15162 PyThreadState* __tstate = wxPyBeginAllowThreads();
15163 result = (int)((wxFont const *)arg1)->GetWeight();
15164 wxPyEndAllowThreads(__tstate);
15165 if (PyErr_Occurred()) SWIG_fail;
15166 }
15167 resultobj = SWIG_From_int(static_cast< int >(result));
15168 return resultobj;
15169fail:
15170 return NULL;
d55e5bfc
RD
15171}
15172
15173
554f62e9
RD
15174SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15175 PyObject *resultobj = 0;
15176 wxFont *arg1 = (wxFont *) 0 ;
15177 bool result;
15178 void *argp1 = 0 ;
15179 int res1 = 0 ;
15180 PyObject *swig_obj[1] ;
15181
15182 if (!args) SWIG_fail;
15183 swig_obj[0] = args;
15184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15185 if (!SWIG_IsOK(res1)) {
15186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15187 }
15188 arg1 = reinterpret_cast< wxFont * >(argp1);
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 {
15196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15197 }
15198 return resultobj;
15199fail:
15200 return NULL;
d55e5bfc
RD
15201}
15202
15203
554f62e9
RD
15204SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15205 PyObject *resultobj = 0;
15206 wxFont *arg1 = (wxFont *) 0 ;
15207 wxString result;
15208 void *argp1 = 0 ;
15209 int res1 = 0 ;
15210 PyObject *swig_obj[1] ;
15211
15212 if (!args) SWIG_fail;
15213 swig_obj[0] = args;
15214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15215 if (!SWIG_IsOK(res1)) {
15216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15217 }
15218 arg1 = reinterpret_cast< wxFont * >(argp1);
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 result = ((wxFont const *)arg1)->GetFaceName();
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 {
15226#if wxUSE_UNICODE
15227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15228#else
15229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15230#endif
15231 }
15232 return resultobj;
15233fail:
15234 return NULL;
d55e5bfc
RD
15235}
15236
15237
554f62e9
RD
15238SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15239 PyObject *resultobj = 0;
15240 wxFont *arg1 = (wxFont *) 0 ;
15241 wxFontEncoding result;
15242 void *argp1 = 0 ;
15243 int res1 = 0 ;
15244 PyObject *swig_obj[1] ;
15245
15246 if (!args) SWIG_fail;
15247 swig_obj[0] = args;
15248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15249 if (!SWIG_IsOK(res1)) {
15250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15251 }
15252 arg1 = reinterpret_cast< wxFont * >(argp1);
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = SWIG_From_int(static_cast< int >(result));
15260 return resultobj;
15261fail:
15262 return NULL;
d55e5bfc
RD
15263}
15264
15265
554f62e9
RD
15266SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15267 PyObject *resultobj = 0;
15268 wxFont *arg1 = (wxFont *) 0 ;
15269 wxNativeFontInfo *result = 0 ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 PyObject *swig_obj[1] ;
15273
15274 if (!args) SWIG_fail;
15275 swig_obj[0] = args;
15276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15277 if (!SWIG_IsOK(res1)) {
15278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15279 }
15280 arg1 = reinterpret_cast< wxFont * >(argp1);
15281 {
15282 PyThreadState* __tstate = wxPyBeginAllowThreads();
15283 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15288 return resultobj;
15289fail:
15290 return NULL;
d55e5bfc
RD
15291}
15292
15293
554f62e9
RD
15294SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15295 PyObject *resultobj = 0;
15296 wxFont *arg1 = (wxFont *) 0 ;
15297 bool result;
15298 void *argp1 = 0 ;
15299 int res1 = 0 ;
15300 PyObject *swig_obj[1] ;
15301
15302 if (!args) SWIG_fail;
15303 swig_obj[0] = args;
15304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15305 if (!SWIG_IsOK(res1)) {
15306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15307 }
15308 arg1 = reinterpret_cast< wxFont * >(argp1);
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 {
15316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15317 }
15318 return resultobj;
15319fail:
15320 return NULL;
d55e5bfc
RD
15321}
15322
15323
554f62e9
RD
15324SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15325 PyObject *resultobj = 0;
15326 wxFont *arg1 = (wxFont *) 0 ;
15327 wxString result;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 PyObject *swig_obj[1] ;
15331
15332 if (!args) SWIG_fail;
15333 swig_obj[0] = args;
15334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15335 if (!SWIG_IsOK(res1)) {
15336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15337 }
15338 arg1 = reinterpret_cast< wxFont * >(argp1);
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15342 wxPyEndAllowThreads(__tstate);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
15345 {
15346#if wxUSE_UNICODE
15347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15348#else
15349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15350#endif
15351 }
15352 return resultobj;
15353fail:
15354 return NULL;
d55e5bfc
RD
15355}
15356
15357
554f62e9
RD
15358SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15359 PyObject *resultobj = 0;
15360 wxFont *arg1 = (wxFont *) 0 ;
15361 wxString result;
15362 void *argp1 = 0 ;
15363 int res1 = 0 ;
15364 PyObject *swig_obj[1] ;
15365
15366 if (!args) SWIG_fail;
15367 swig_obj[0] = args;
15368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15369 if (!SWIG_IsOK(res1)) {
15370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15371 }
15372 arg1 = reinterpret_cast< wxFont * >(argp1);
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 {
15380#if wxUSE_UNICODE
15381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15382#else
15383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15384#endif
15385 }
15386 return resultobj;
15387fail:
15388 return NULL;
15389}
15390
15391
15392SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj = 0;
15394 wxFont *arg1 = (wxFont *) 0 ;
15395 int arg2 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 int val2 ;
15399 int ecode2 = 0 ;
15400 PyObject * obj0 = 0 ;
15401 PyObject * obj1 = 0 ;
15402 char * kwnames[] = {
15403 (char *) "self",(char *) "pointSize", NULL
15404 };
15405
15406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15408 if (!SWIG_IsOK(res1)) {
15409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15410 }
15411 arg1 = reinterpret_cast< wxFont * >(argp1);
15412 ecode2 = SWIG_AsVal_int(obj1, &val2);
15413 if (!SWIG_IsOK(ecode2)) {
15414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15415 }
15416 arg2 = static_cast< int >(val2);
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 (arg1)->SetPointSize(arg2);
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_Py_Void();
15424 return resultobj;
15425fail:
15426 return NULL;
15427}
15428
15429
15430SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj = 0;
15432 wxFont *arg1 = (wxFont *) 0 ;
15433 wxSize *arg2 = 0 ;
15434 void *argp1 = 0 ;
15435 int res1 = 0 ;
15436 wxSize temp2 ;
15437 PyObject * obj0 = 0 ;
15438 PyObject * obj1 = 0 ;
15439 char * kwnames[] = {
15440 (char *) "self",(char *) "pixelSize", NULL
15441 };
15442
15443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15445 if (!SWIG_IsOK(res1)) {
15446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15447 }
15448 arg1 = reinterpret_cast< wxFont * >(argp1);
15449 {
15450 arg2 = &temp2;
15451 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15452 }
15453 {
15454 PyThreadState* __tstate = wxPyBeginAllowThreads();
15455 (arg1)->SetPixelSize((wxSize const &)*arg2);
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 resultobj = SWIG_Py_Void();
15460 return resultobj;
15461fail:
15462 return NULL;
15463}
15464
15465
15466SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj = 0;
15468 wxFont *arg1 = (wxFont *) 0 ;
15469 int arg2 ;
15470 void *argp1 = 0 ;
15471 int res1 = 0 ;
15472 int val2 ;
15473 int ecode2 = 0 ;
15474 PyObject * obj0 = 0 ;
15475 PyObject * obj1 = 0 ;
15476 char * kwnames[] = {
15477 (char *) "self",(char *) "family", NULL
15478 };
15479
15480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15482 if (!SWIG_IsOK(res1)) {
15483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15484 }
15485 arg1 = reinterpret_cast< wxFont * >(argp1);
15486 ecode2 = SWIG_AsVal_int(obj1, &val2);
15487 if (!SWIG_IsOK(ecode2)) {
15488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15489 }
15490 arg2 = static_cast< int >(val2);
15491 {
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 (arg1)->SetFamily(arg2);
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = SWIG_Py_Void();
15498 return resultobj;
15499fail:
15500 return NULL;
15501}
15502
15503
15504SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxFont *arg1 = (wxFont *) 0 ;
15507 int arg2 ;
15508 void *argp1 = 0 ;
15509 int res1 = 0 ;
15510 int val2 ;
15511 int ecode2 = 0 ;
15512 PyObject * obj0 = 0 ;
15513 PyObject * obj1 = 0 ;
15514 char * kwnames[] = {
15515 (char *) "self",(char *) "style", NULL
15516 };
15517
15518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15522 }
15523 arg1 = reinterpret_cast< wxFont * >(argp1);
15524 ecode2 = SWIG_AsVal_int(obj1, &val2);
15525 if (!SWIG_IsOK(ecode2)) {
15526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15527 }
15528 arg2 = static_cast< int >(val2);
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 (arg1)->SetStyle(arg2);
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 resultobj = SWIG_Py_Void();
15536 return resultobj;
15537fail:
15538 return NULL;
15539}
15540
15541
15542SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj = 0;
15544 wxFont *arg1 = (wxFont *) 0 ;
15545 int arg2 ;
15546 void *argp1 = 0 ;
15547 int res1 = 0 ;
15548 int val2 ;
15549 int ecode2 = 0 ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 char * kwnames[] = {
15553 (char *) "self",(char *) "weight", NULL
15554 };
15555
15556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15558 if (!SWIG_IsOK(res1)) {
15559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15560 }
15561 arg1 = reinterpret_cast< wxFont * >(argp1);
15562 ecode2 = SWIG_AsVal_int(obj1, &val2);
15563 if (!SWIG_IsOK(ecode2)) {
15564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15565 }
15566 arg2 = static_cast< int >(val2);
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 (arg1)->SetWeight(arg2);
15570 wxPyEndAllowThreads(__tstate);
15571 if (PyErr_Occurred()) SWIG_fail;
15572 }
15573 resultobj = SWIG_Py_Void();
15574 return resultobj;
15575fail:
15576 return NULL;
15577}
15578
15579
15580SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15581 PyObject *resultobj = 0;
15582 wxFont *arg1 = (wxFont *) 0 ;
15583 wxString *arg2 = 0 ;
704eda0c 15584 bool result;
554f62e9
RD
15585 void *argp1 = 0 ;
15586 int res1 = 0 ;
15587 bool temp2 = false ;
15588 PyObject * obj0 = 0 ;
15589 PyObject * obj1 = 0 ;
15590 char * kwnames[] = {
15591 (char *) "self",(char *) "faceName", NULL
15592 };
15593
15594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15596 if (!SWIG_IsOK(res1)) {
15597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15598 }
15599 arg1 = reinterpret_cast< wxFont * >(argp1);
15600 {
15601 arg2 = wxString_in_helper(obj1);
15602 if (arg2 == NULL) SWIG_fail;
15603 temp2 = true;
15604 }
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15607 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
704eda0c
RD
15611 {
15612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15613 }
554f62e9
RD
15614 {
15615 if (temp2)
15616 delete arg2;
15617 }
15618 return resultobj;
15619fail:
15620 {
15621 if (temp2)
15622 delete arg2;
15623 }
15624 return NULL;
15625}
15626
15627
15628SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15629 PyObject *resultobj = 0;
15630 wxFont *arg1 = (wxFont *) 0 ;
15631 bool arg2 ;
15632 void *argp1 = 0 ;
15633 int res1 = 0 ;
15634 bool val2 ;
15635 int ecode2 = 0 ;
15636 PyObject * obj0 = 0 ;
15637 PyObject * obj1 = 0 ;
15638 char * kwnames[] = {
15639 (char *) "self",(char *) "underlined", NULL
15640 };
15641
15642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15644 if (!SWIG_IsOK(res1)) {
15645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15646 }
15647 arg1 = reinterpret_cast< wxFont * >(argp1);
15648 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15649 if (!SWIG_IsOK(ecode2)) {
15650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15651 }
15652 arg2 = static_cast< bool >(val2);
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 (arg1)->SetUnderlined(arg2);
15656 wxPyEndAllowThreads(__tstate);
15657 if (PyErr_Occurred()) SWIG_fail;
15658 }
15659 resultobj = SWIG_Py_Void();
15660 return resultobj;
15661fail:
15662 return NULL;
15663}
15664
15665
15666SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj = 0;
15668 wxFont *arg1 = (wxFont *) 0 ;
15669 wxFontEncoding arg2 ;
15670 void *argp1 = 0 ;
15671 int res1 = 0 ;
15672 int val2 ;
15673 int ecode2 = 0 ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 char * kwnames[] = {
15677 (char *) "self",(char *) "encoding", NULL
15678 };
15679
15680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15684 }
15685 arg1 = reinterpret_cast< wxFont * >(argp1);
15686 ecode2 = SWIG_AsVal_int(obj1, &val2);
15687 if (!SWIG_IsOK(ecode2)) {
15688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15689 }
15690 arg2 = static_cast< wxFontEncoding >(val2);
15691 {
15692 PyThreadState* __tstate = wxPyBeginAllowThreads();
15693 (arg1)->SetEncoding(arg2);
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 resultobj = SWIG_Py_Void();
15698 return resultobj;
15699fail:
15700 return NULL;
15701}
15702
15703
15704SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15705 PyObject *resultobj = 0;
15706 wxFont *arg1 = (wxFont *) 0 ;
15707 wxNativeFontInfo *arg2 = 0 ;
15708 void *argp1 = 0 ;
15709 int res1 = 0 ;
15710 void *argp2 = 0 ;
15711 int res2 = 0 ;
15712 PyObject * obj0 = 0 ;
15713 PyObject * obj1 = 0 ;
15714 char * kwnames[] = {
15715 (char *) "self",(char *) "info", NULL
15716 };
15717
15718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15720 if (!SWIG_IsOK(res1)) {
15721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15722 }
15723 arg1 = reinterpret_cast< wxFont * >(argp1);
15724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15725 if (!SWIG_IsOK(res2)) {
15726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15727 }
15728 if (!argp2) {
15729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15730 }
15731 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 resultobj = SWIG_Py_Void();
15739 return resultobj;
15740fail:
15741 return NULL;
15742}
15743
15744
15745SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15746 PyObject *resultobj = 0;
15747 wxFont *arg1 = (wxFont *) 0 ;
15748 wxString *arg2 = 0 ;
704eda0c 15749 bool result;
554f62e9
RD
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 bool temp2 = false ;
15753 PyObject * obj0 = 0 ;
15754 PyObject * obj1 = 0 ;
15755 char * kwnames[] = {
15756 (char *) "self",(char *) "info", NULL
15757 };
15758
15759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15763 }
15764 arg1 = reinterpret_cast< wxFont * >(argp1);
15765 {
15766 arg2 = wxString_in_helper(obj1);
15767 if (arg2 == NULL) SWIG_fail;
15768 temp2 = true;
15769 }
15770 {
15771 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15772 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
704eda0c
RD
15776 {
15777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15778 }
554f62e9
RD
15779 {
15780 if (temp2)
15781 delete arg2;
15782 }
15783 return resultobj;
15784fail:
15785 {
15786 if (temp2)
15787 delete arg2;
15788 }
15789 return NULL;
d55e5bfc
RD
15790}
15791
15792
554f62e9
RD
15793SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15794 PyObject *resultobj = 0;
15795 wxFont *arg1 = (wxFont *) 0 ;
15796 wxString *arg2 = 0 ;
704eda0c 15797 bool result;
554f62e9
RD
15798 void *argp1 = 0 ;
15799 int res1 = 0 ;
15800 bool temp2 = false ;
15801 PyObject * obj0 = 0 ;
15802 PyObject * obj1 = 0 ;
15803 char * kwnames[] = {
15804 (char *) "self",(char *) "info", NULL
15805 };
15806
15807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15809 if (!SWIG_IsOK(res1)) {
15810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15811 }
15812 arg1 = reinterpret_cast< wxFont * >(argp1);
15813 {
15814 arg2 = wxString_in_helper(obj1);
15815 if (arg2 == NULL) SWIG_fail;
15816 temp2 = true;
15817 }
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15820 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
704eda0c
RD
15824 {
15825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15826 }
554f62e9
RD
15827 {
15828 if (temp2)
15829 delete arg2;
15830 }
15831 return resultobj;
15832fail:
15833 {
15834 if (temp2)
15835 delete arg2;
15836 }
15837 return NULL;
d55e5bfc
RD
15838}
15839
15840
554f62e9
RD
15841SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15842 PyObject *resultobj = 0;
15843 wxFont *arg1 = (wxFont *) 0 ;
15844 wxString result;
15845 void *argp1 = 0 ;
15846 int res1 = 0 ;
15847 PyObject *swig_obj[1] ;
15848
15849 if (!args) SWIG_fail;
15850 swig_obj[0] = args;
15851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15852 if (!SWIG_IsOK(res1)) {
15853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15854 }
15855 arg1 = reinterpret_cast< wxFont * >(argp1);
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 result = ((wxFont const *)arg1)->GetFamilyString();
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 {
15863#if wxUSE_UNICODE
15864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15865#else
15866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15867#endif
15868 }
15869 return resultobj;
15870fail:
15871 return NULL;
d55e5bfc
RD
15872}
15873
15874
554f62e9
RD
15875SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15876 PyObject *resultobj = 0;
15877 wxFont *arg1 = (wxFont *) 0 ;
15878 wxString result;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 PyObject *swig_obj[1] ;
15882
15883 if (!args) SWIG_fail;
15884 swig_obj[0] = args;
15885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15886 if (!SWIG_IsOK(res1)) {
15887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15888 }
15889 arg1 = reinterpret_cast< wxFont * >(argp1);
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = ((wxFont const *)arg1)->GetStyleString();
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 {
15897#if wxUSE_UNICODE
15898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15899#else
15900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15901#endif
15902 }
15903 return resultobj;
15904fail:
15905 return NULL;
d55e5bfc
RD
15906}
15907
15908
554f62e9
RD
15909SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15910 PyObject *resultobj = 0;
15911 wxFont *arg1 = (wxFont *) 0 ;
15912 wxString result;
15913 void *argp1 = 0 ;
15914 int res1 = 0 ;
15915 PyObject *swig_obj[1] ;
15916
15917 if (!args) SWIG_fail;
15918 swig_obj[0] = args;
15919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15920 if (!SWIG_IsOK(res1)) {
15921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15922 }
15923 arg1 = reinterpret_cast< wxFont * >(argp1);
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = ((wxFont const *)arg1)->GetWeightString();
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 {
15931#if wxUSE_UNICODE
15932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15933#else
15934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15935#endif
15936 }
15937 return resultobj;
15938fail:
15939 return NULL;
15940}
15941
15942
15943SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj = 0;
15945 wxFont *arg1 = (wxFont *) 0 ;
15946 bool arg2 = (bool) true ;
15947 void *argp1 = 0 ;
15948 int res1 = 0 ;
15949 bool val2 ;
15950 int ecode2 = 0 ;
15951 PyObject * obj0 = 0 ;
15952 PyObject * obj1 = 0 ;
15953 char * kwnames[] = {
15954 (char *) "self",(char *) "no", NULL
15955 };
15956
15957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15959 if (!SWIG_IsOK(res1)) {
15960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15961 }
15962 arg1 = reinterpret_cast< wxFont * >(argp1);
15963 if (obj1) {
15964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15965 if (!SWIG_IsOK(ecode2)) {
15966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15967 }
15968 arg2 = static_cast< bool >(val2);
15969 }
15970 {
15971 PyThreadState* __tstate = wxPyBeginAllowThreads();
15972 (arg1)->SetNoAntiAliasing(arg2);
15973 wxPyEndAllowThreads(__tstate);
15974 if (PyErr_Occurred()) SWIG_fail;
15975 }
15976 resultobj = SWIG_Py_Void();
15977 return resultobj;
15978fail:
15979 return NULL;
d55e5bfc
RD
15980}
15981
15982
554f62e9
RD
15983SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15984 PyObject *resultobj = 0;
15985 wxFont *arg1 = (wxFont *) 0 ;
15986 bool result;
15987 void *argp1 = 0 ;
15988 int res1 = 0 ;
15989 PyObject *swig_obj[1] ;
15990
15991 if (!args) SWIG_fail;
15992 swig_obj[0] = args;
15993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15994 if (!SWIG_IsOK(res1)) {
15995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15996 }
15997 arg1 = reinterpret_cast< wxFont * >(argp1);
15998 {
15999 PyThreadState* __tstate = wxPyBeginAllowThreads();
16000 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 {
16005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16006 }
16007 return resultobj;
16008fail:
16009 return NULL;
d55e5bfc
RD
16010}
16011
16012
554f62e9
RD
16013SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16014 PyObject *resultobj = 0;
16015 wxFontEncoding result;
16016
16017 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16018 {
16019 if (!wxPyCheckForApp()) SWIG_fail;
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16022 wxPyEndAllowThreads(__tstate);
16023 if (PyErr_Occurred()) SWIG_fail;
16024 }
16025 resultobj = SWIG_From_int(static_cast< int >(result));
16026 return resultobj;
16027fail:
16028 return NULL;
d55e5bfc
RD
16029}
16030
16031
554f62e9
RD
16032SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj = 0;
16034 wxFontEncoding arg1 ;
16035 int val1 ;
16036 int ecode1 = 0 ;
16037 PyObject * obj0 = 0 ;
16038 char * kwnames[] = {
16039 (char *) "encoding", NULL
16040 };
16041
16042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16043 ecode1 = SWIG_AsVal_int(obj0, &val1);
16044 if (!SWIG_IsOK(ecode1)) {
16045 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16046 }
16047 arg1 = static_cast< wxFontEncoding >(val1);
16048 {
16049 if (!wxPyCheckForApp()) SWIG_fail;
16050 PyThreadState* __tstate = wxPyBeginAllowThreads();
16051 wxFont::SetDefaultEncoding(arg1);
16052 wxPyEndAllowThreads(__tstate);
16053 if (PyErr_Occurred()) SWIG_fail;
16054 }
16055 resultobj = SWIG_Py_Void();
16056 return resultobj;
16057fail:
16058 return NULL;
5e483524
RD
16059}
16060
16061
554f62e9
RD
16062SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16063 PyObject *obj;
16064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16065 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16066 return SWIG_Py_Void();
d55e5bfc
RD
16067}
16068
554f62e9
RD
16069SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16070 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16071}
16072
554f62e9
RD
16073SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16074 PyObject *resultobj = 0;
16075 wxPyFontEnumerator *result = 0 ;
16076
16077 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16078 {
16079 if (!wxPyCheckForApp()) SWIG_fail;
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16086 return resultobj;
16087fail:
16088 return NULL;
d55e5bfc
RD
16089}
16090
16091
554f62e9
RD
16092SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16093 PyObject *resultobj = 0;
16094 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16095 void *argp1 = 0 ;
16096 int res1 = 0 ;
16097 PyObject *swig_obj[1] ;
16098
16099 if (!args) SWIG_fail;
16100 swig_obj[0] = args;
16101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16102 if (!SWIG_IsOK(res1)) {
16103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16104 }
16105 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 delete arg1;
d55e5bfc 16109
554f62e9
RD
16110 wxPyEndAllowThreads(__tstate);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 resultobj = SWIG_Py_Void();
16114 return resultobj;
16115fail:
16116 return NULL;
16117}
16118
16119
16120SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16121 PyObject *resultobj = 0;
16122 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16123 PyObject *arg2 = (PyObject *) 0 ;
16124 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 16125 int arg4 = (int) 0 ;
554f62e9
RD
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
c25f90f6 16128 int val4 ;
554f62e9
RD
16129 int ecode4 = 0 ;
16130 PyObject * obj0 = 0 ;
16131 PyObject * obj1 = 0 ;
16132 PyObject * obj2 = 0 ;
16133 PyObject * obj3 = 0 ;
16134 char * kwnames[] = {
16135 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16136 };
16137
c25f90f6 16138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
16139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16140 if (!SWIG_IsOK(res1)) {
16141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16142 }
16143 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16144 arg2 = obj1;
16145 arg3 = obj2;
c25f90f6
RD
16146 if (obj3) {
16147 ecode4 = SWIG_AsVal_int(obj3, &val4);
16148 if (!SWIG_IsOK(ecode4)) {
16149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16150 }
16151 arg4 = static_cast< int >(val4);
16152 }
554f62e9
RD
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 resultobj = SWIG_Py_Void();
16160 return resultobj;
16161fail:
16162 return NULL;
16163}
16164
16165
16166SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16167 PyObject *resultobj = 0;
16168 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16169 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16170 bool arg3 = (bool) false ;
16171 bool result;
16172 void *argp1 = 0 ;
16173 int res1 = 0 ;
16174 int val2 ;
16175 int ecode2 = 0 ;
16176 bool val3 ;
16177 int ecode3 = 0 ;
16178 PyObject * obj0 = 0 ;
16179 PyObject * obj1 = 0 ;
16180 PyObject * obj2 = 0 ;
16181 char * kwnames[] = {
16182 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16183 };
16184
16185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16187 if (!SWIG_IsOK(res1)) {
16188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16189 }
16190 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16191 if (obj1) {
16192 ecode2 = SWIG_AsVal_int(obj1, &val2);
16193 if (!SWIG_IsOK(ecode2)) {
16194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16195 }
16196 arg2 = static_cast< wxFontEncoding >(val2);
16197 }
16198 if (obj2) {
16199 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16200 if (!SWIG_IsOK(ecode3)) {
16201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16202 }
16203 arg3 = static_cast< bool >(val3);
16204 }
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 {
16212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16213 }
16214 return resultobj;
16215fail:
16216 return NULL;
16217}
16218
16219
16220SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj = 0;
16222 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16223 wxString const &arg2_defvalue = wxPyEmptyString ;
16224 wxString *arg2 = (wxString *) &arg2_defvalue ;
16225 bool result;
16226 void *argp1 = 0 ;
16227 int res1 = 0 ;
16228 bool temp2 = false ;
16229 PyObject * obj0 = 0 ;
16230 PyObject * obj1 = 0 ;
16231 char * kwnames[] = {
16232 (char *) "self",(char *) "facename", NULL
16233 };
16234
16235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16237 if (!SWIG_IsOK(res1)) {
16238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16239 }
16240 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16241 if (obj1) {
093d3ff1 16242 {
554f62e9
RD
16243 arg2 = wxString_in_helper(obj1);
16244 if (arg2 == NULL) SWIG_fail;
16245 temp2 = true;
093d3ff1 16246 }
554f62e9
RD
16247 }
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 {
16255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16256 }
16257 {
16258 if (temp2)
16259 delete arg2;
16260 }
16261 return resultobj;
16262fail:
16263 {
16264 if (temp2)
16265 delete arg2;
16266 }
16267 return NULL;
d55e5bfc
RD
16268}
16269
16270
554f62e9
RD
16271SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16272 PyObject *resultobj = 0;
554f62e9 16273 PyObject *result = 0 ;
554f62e9 16274
704eda0c 16275 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16278 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 resultobj = result;
16283 return resultobj;
16284fail:
16285 return NULL;
d55e5bfc
RD
16286}
16287
16288
554f62e9
RD
16289SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16290 PyObject *resultobj = 0;
554f62e9 16291 PyObject *result = 0 ;
554f62e9 16292
704eda0c 16293 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16294 {
16295 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16296 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16297 wxPyEndAllowThreads(__tstate);
16298 if (PyErr_Occurred()) SWIG_fail;
16299 }
16300 resultobj = result;
16301 return resultobj;
16302fail:
16303 return NULL;
d55e5bfc
RD
16304}
16305
16306
704eda0c
RD
16307SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16308 PyObject *resultobj = 0;
16309 wxString *arg1 = 0 ;
16310 bool result;
16311 bool temp1 = false ;
16312 PyObject * obj0 = 0 ;
16313 char * kwnames[] = {
16314 (char *) "str", NULL
16315 };
16316
16317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16318 {
16319 arg1 = wxString_in_helper(obj0);
16320 if (arg1 == NULL) SWIG_fail;
16321 temp1 = true;
16322 }
16323 {
16324 PyThreadState* __tstate = wxPyBeginAllowThreads();
16325 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16326 wxPyEndAllowThreads(__tstate);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 }
16329 {
16330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16331 }
16332 {
16333 if (temp1)
16334 delete arg1;
16335 }
16336 return resultobj;
16337fail:
16338 {
16339 if (temp1)
16340 delete arg1;
16341 }
16342 return NULL;
16343}
16344
16345
554f62e9
RD
16346SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16347 PyObject *obj;
16348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16349 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16350 return SWIG_Py_Void();
5e483524
RD
16351}
16352
554f62e9
RD
16353SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16354 return SWIG_Python_InitShadowInstance(args);
16355}
5e483524 16356
554f62e9
RD
16357SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16358 PyObject *resultobj = 0;
16359 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16360 int arg2 ;
16361 void *argp1 = 0 ;
16362 int res1 = 0 ;
16363 int val2 ;
16364 int ecode2 = 0 ;
16365 PyObject *swig_obj[2] ;
16366
16367 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16371 }
16372 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16373 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16374 if (!SWIG_IsOK(ecode2)) {
16375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16376 }
16377 arg2 = static_cast< int >(val2);
16378 if (arg1) (arg1)->Language = arg2;
16379
16380 resultobj = SWIG_Py_Void();
16381 return resultobj;
16382fail:
16383 return NULL;
d55e5bfc
RD
16384}
16385
16386
554f62e9
RD
16387SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16388 PyObject *resultobj = 0;
16389 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16390 int result;
16391 void *argp1 = 0 ;
16392 int res1 = 0 ;
16393 PyObject *swig_obj[1] ;
16394
16395 if (!args) SWIG_fail;
16396 swig_obj[0] = args;
16397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16398 if (!SWIG_IsOK(res1)) {
16399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16400 }
16401 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16402 result = (int) ((arg1)->Language);
16403 resultobj = SWIG_From_int(static_cast< int >(result));
16404 return resultobj;
16405fail:
16406 return NULL;
16407}
16408
16409
16410SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16411 PyObject *resultobj = 0;
16412 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16413 wxString *arg2 = (wxString *) 0 ;
16414 void *argp1 = 0 ;
16415 int res1 = 0 ;
16416 bool temp2 = false ;
16417 PyObject *swig_obj[2] ;
16418
16419 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16421 if (!SWIG_IsOK(res1)) {
16422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16423 }
16424 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16425 {
16426 arg2 = wxString_in_helper(swig_obj[1]);
16427 if (arg2 == NULL) SWIG_fail;
16428 temp2 = true;
16429 }
16430 if (arg1) (arg1)->CanonicalName = *arg2;
16431
16432 resultobj = SWIG_Py_Void();
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return resultobj;
16438fail:
16439 {
16440 if (temp2)
16441 delete arg2;
16442 }
16443 return NULL;
d55e5bfc
RD
16444}
16445
16446
554f62e9
RD
16447SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16448 PyObject *resultobj = 0;
16449 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16450 wxString *result = 0 ;
16451 void *argp1 = 0 ;
16452 int res1 = 0 ;
16453 PyObject *swig_obj[1] ;
16454
16455 if (!args) SWIG_fail;
16456 swig_obj[0] = args;
16457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16458 if (!SWIG_IsOK(res1)) {
16459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16460 }
16461 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16462 result = (wxString *)& ((arg1)->CanonicalName);
16463 {
16464#if wxUSE_UNICODE
16465 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16466#else
16467 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16468#endif
16469 }
16470 return resultobj;
16471fail:
16472 return NULL;
d55e5bfc
RD
16473}
16474
16475
554f62e9
RD
16476SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16477 PyObject *resultobj = 0;
16478 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16479 wxString *arg2 = (wxString *) 0 ;
16480 void *argp1 = 0 ;
16481 int res1 = 0 ;
16482 bool temp2 = false ;
16483 PyObject *swig_obj[2] ;
16484
16485 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16487 if (!SWIG_IsOK(res1)) {
16488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16489 }
16490 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16491 {
16492 arg2 = wxString_in_helper(swig_obj[1]);
16493 if (arg2 == NULL) SWIG_fail;
16494 temp2 = true;
16495 }
16496 if (arg1) (arg1)->Description = *arg2;
16497
16498 resultobj = SWIG_Py_Void();
16499 {
16500 if (temp2)
16501 delete arg2;
16502 }
16503 return resultobj;
16504fail:
16505 {
16506 if (temp2)
16507 delete arg2;
16508 }
16509 return NULL;
d55e5bfc
RD
16510}
16511
16512
554f62e9
RD
16513SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16514 PyObject *resultobj = 0;
16515 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16516 wxString *result = 0 ;
16517 void *argp1 = 0 ;
16518 int res1 = 0 ;
16519 PyObject *swig_obj[1] ;
16520
16521 if (!args) SWIG_fail;
16522 swig_obj[0] = args;
16523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16524 if (!SWIG_IsOK(res1)) {
16525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16526 }
16527 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16528 result = (wxString *)& ((arg1)->Description);
16529 {
16530#if wxUSE_UNICODE
16531 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16532#else
16533 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16534#endif
16535 }
16536 return resultobj;
16537fail:
16538 return NULL;
16539}
16540
16541
16542SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16543 PyObject *obj;
16544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16545 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16546 return SWIG_Py_Void();
16547}
16548
16549SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj = 0;
16551 int arg1 = (int) -1 ;
16552 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16553 wxLocale *result = 0 ;
16554 int val1 ;
16555 int ecode1 = 0 ;
16556 int val2 ;
16557 int ecode2 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 char * kwnames[] = {
16561 (char *) "language",(char *) "flags", NULL
16562 };
16563
16564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16565 if (obj0) {
16566 ecode1 = SWIG_AsVal_int(obj0, &val1);
16567 if (!SWIG_IsOK(ecode1)) {
16568 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16569 }
16570 arg1 = static_cast< int >(val1);
16571 }
16572 if (obj1) {
16573 ecode2 = SWIG_AsVal_int(obj1, &val2);
16574 if (!SWIG_IsOK(ecode2)) {
16575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16576 }
16577 arg2 = static_cast< int >(val2);
16578 }
16579 {
16580 PyThreadState* __tstate = wxPyBeginAllowThreads();
16581 result = (wxLocale *)new_wxLocale(arg1,arg2);
16582 wxPyEndAllowThreads(__tstate);
16583 if (PyErr_Occurred()) SWIG_fail;
16584 }
16585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16586 return resultobj;
16587fail:
16588 return NULL;
d55e5bfc
RD
16589}
16590
16591
554f62e9
RD
16592SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16593 PyObject *resultobj = 0;
16594 wxLocale *arg1 = (wxLocale *) 0 ;
16595 void *argp1 = 0 ;
16596 int res1 = 0 ;
16597 PyObject *swig_obj[1] ;
16598
16599 if (!args) SWIG_fail;
16600 swig_obj[0] = args;
16601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16602 if (!SWIG_IsOK(res1)) {
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16604 }
16605 arg1 = reinterpret_cast< wxLocale * >(argp1);
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 delete arg1;
d55e5bfc 16609
554f62e9
RD
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 resultobj = SWIG_Py_Void();
16614 return resultobj;
16615fail:
16616 return NULL;
16617}
16618
16619
16620SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj = 0;
16622 wxLocale *arg1 = (wxLocale *) 0 ;
16623 wxString *arg2 = 0 ;
16624 wxString const &arg3_defvalue = wxPyEmptyString ;
16625 wxString *arg3 = (wxString *) &arg3_defvalue ;
16626 wxString const &arg4_defvalue = wxPyEmptyString ;
16627 wxString *arg4 = (wxString *) &arg4_defvalue ;
16628 bool arg5 = (bool) true ;
16629 bool arg6 = (bool) false ;
16630 bool result;
16631 void *argp1 = 0 ;
16632 int res1 = 0 ;
16633 bool temp2 = false ;
16634 bool temp3 = false ;
16635 bool temp4 = false ;
16636 bool val5 ;
16637 int ecode5 = 0 ;
16638 bool val6 ;
16639 int ecode6 = 0 ;
16640 PyObject * obj0 = 0 ;
16641 PyObject * obj1 = 0 ;
16642 PyObject * obj2 = 0 ;
16643 PyObject * obj3 = 0 ;
16644 PyObject * obj4 = 0 ;
16645 PyObject * obj5 = 0 ;
16646 char * kwnames[] = {
16647 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16648 };
16649
16650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16652 if (!SWIG_IsOK(res1)) {
16653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16654 }
16655 arg1 = reinterpret_cast< wxLocale * >(argp1);
16656 {
16657 arg2 = wxString_in_helper(obj1);
16658 if (arg2 == NULL) SWIG_fail;
16659 temp2 = true;
16660 }
16661 if (obj2) {
093d3ff1 16662 {
554f62e9
RD
16663 arg3 = wxString_in_helper(obj2);
16664 if (arg3 == NULL) SWIG_fail;
16665 temp3 = true;
093d3ff1 16666 }
554f62e9
RD
16667 }
16668 if (obj3) {
d55e5bfc 16669 {
554f62e9
RD
16670 arg4 = wxString_in_helper(obj3);
16671 if (arg4 == NULL) SWIG_fail;
16672 temp4 = true;
d55e5bfc 16673 }
554f62e9
RD
16674 }
16675 if (obj4) {
16676 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16677 if (!SWIG_IsOK(ecode5)) {
16678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16679 }
16680 arg5 = static_cast< bool >(val5);
16681 }
16682 if (obj5) {
16683 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16684 if (!SWIG_IsOK(ecode6)) {
16685 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16686 }
16687 arg6 = static_cast< bool >(val6);
16688 }
16689 {
16690 PyThreadState* __tstate = wxPyBeginAllowThreads();
16691 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 {
16696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16697 }
16698 {
16699 if (temp2)
16700 delete arg2;
16701 }
16702 {
16703 if (temp3)
16704 delete arg3;
16705 }
16706 {
16707 if (temp4)
16708 delete arg4;
16709 }
16710 return resultobj;
16711fail:
16712 {
16713 if (temp2)
16714 delete arg2;
16715 }
16716 {
16717 if (temp3)
16718 delete arg3;
16719 }
16720 {
16721 if (temp4)
16722 delete arg4;
16723 }
16724 return NULL;
16725}
16726
16727
16728SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 wxLocale *arg1 = (wxLocale *) 0 ;
16731 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16732 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16733 bool result;
16734 void *argp1 = 0 ;
16735 int res1 = 0 ;
16736 int val2 ;
16737 int ecode2 = 0 ;
16738 int val3 ;
16739 int ecode3 = 0 ;
16740 PyObject * obj0 = 0 ;
16741 PyObject * obj1 = 0 ;
16742 PyObject * obj2 = 0 ;
16743 char * kwnames[] = {
16744 (char *) "self",(char *) "language",(char *) "flags", NULL
16745 };
16746
16747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16749 if (!SWIG_IsOK(res1)) {
16750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16751 }
16752 arg1 = reinterpret_cast< wxLocale * >(argp1);
16753 if (obj1) {
16754 ecode2 = SWIG_AsVal_int(obj1, &val2);
16755 if (!SWIG_IsOK(ecode2)) {
16756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16757 }
16758 arg2 = static_cast< int >(val2);
16759 }
16760 if (obj2) {
16761 ecode3 = SWIG_AsVal_int(obj2, &val3);
16762 if (!SWIG_IsOK(ecode3)) {
16763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16764 }
16765 arg3 = static_cast< int >(val3);
16766 }
16767 {
16768 PyThreadState* __tstate = wxPyBeginAllowThreads();
16769 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16770 wxPyEndAllowThreads(__tstate);
16771 if (PyErr_Occurred()) SWIG_fail;
16772 }
16773 {
16774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16775 }
16776 return resultobj;
16777fail:
16778 return NULL;
d55e5bfc
RD
16779}
16780
16781
554f62e9
RD
16782SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16783 PyObject *resultobj = 0;
16784 int result;
16785
16786 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 result = (int)wxLocale::GetSystemLanguage();
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 resultobj = SWIG_From_int(static_cast< int >(result));
16794 return resultobj;
16795fail:
16796 return NULL;
d55e5bfc
RD
16797}
16798
16799
554f62e9
RD
16800SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16801 PyObject *resultobj = 0;
16802 wxFontEncoding result;
16803
16804 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16805 {
16806 PyThreadState* __tstate = wxPyBeginAllowThreads();
16807 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 resultobj = SWIG_From_int(static_cast< int >(result));
16812 return resultobj;
16813fail:
16814 return NULL;
d55e5bfc
RD
16815}
16816
16817
554f62e9
RD
16818SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16819 PyObject *resultobj = 0;
16820 wxString result;
16821
16822 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16823 {
16824 PyThreadState* __tstate = wxPyBeginAllowThreads();
16825 result = wxLocale::GetSystemEncodingName();
16826 wxPyEndAllowThreads(__tstate);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 {
16830#if wxUSE_UNICODE
16831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16832#else
16833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16834#endif
16835 }
16836 return resultobj;
16837fail:
16838 return NULL;
d55e5bfc
RD
16839}
16840
16841
554f62e9
RD
16842SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16843 PyObject *resultobj = 0;
16844 wxLocale *arg1 = (wxLocale *) 0 ;
16845 bool result;
16846 void *argp1 = 0 ;
16847 int res1 = 0 ;
16848 PyObject *swig_obj[1] ;
16849
16850 if (!args) SWIG_fail;
16851 swig_obj[0] = args;
16852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16853 if (!SWIG_IsOK(res1)) {
16854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16855 }
16856 arg1 = reinterpret_cast< wxLocale * >(argp1);
16857 {
16858 PyThreadState* __tstate = wxPyBeginAllowThreads();
16859 result = (bool)((wxLocale const *)arg1)->IsOk();
16860 wxPyEndAllowThreads(__tstate);
16861 if (PyErr_Occurred()) SWIG_fail;
16862 }
16863 {
16864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16865 }
16866 return resultobj;
16867fail:
16868 return NULL;
d55e5bfc
RD
16869}
16870
16871
554f62e9
RD
16872SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16873 PyObject *resultobj = 0;
16874 wxLocale *arg1 = (wxLocale *) 0 ;
16875 wxString result;
16876 void *argp1 = 0 ;
16877 int res1 = 0 ;
16878 PyObject *swig_obj[1] ;
16879
16880 if (!args) SWIG_fail;
16881 swig_obj[0] = args;
16882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16883 if (!SWIG_IsOK(res1)) {
16884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16885 }
16886 arg1 = reinterpret_cast< wxLocale * >(argp1);
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
16889 result = ((wxLocale const *)arg1)->GetLocale();
16890 wxPyEndAllowThreads(__tstate);
16891 if (PyErr_Occurred()) SWIG_fail;
16892 }
16893 {
16894#if wxUSE_UNICODE
16895 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16896#else
16897 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16898#endif
16899 }
16900 return resultobj;
16901fail:
16902 return NULL;
d55e5bfc
RD
16903}
16904
16905
554f62e9
RD
16906SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16907 PyObject *resultobj = 0;
16908 wxLocale *arg1 = (wxLocale *) 0 ;
16909 int result;
16910 void *argp1 = 0 ;
16911 int res1 = 0 ;
16912 PyObject *swig_obj[1] ;
16913
16914 if (!args) SWIG_fail;
16915 swig_obj[0] = args;
16916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16917 if (!SWIG_IsOK(res1)) {
16918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16919 }
16920 arg1 = reinterpret_cast< wxLocale * >(argp1);
16921 {
16922 PyThreadState* __tstate = wxPyBeginAllowThreads();
16923 result = (int)((wxLocale const *)arg1)->GetLanguage();
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 resultobj = SWIG_From_int(static_cast< int >(result));
16928 return resultobj;
16929fail:
16930 return NULL;
d55e5bfc
RD
16931}
16932
16933
554f62e9
RD
16934SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16935 PyObject *resultobj = 0;
16936 wxLocale *arg1 = (wxLocale *) 0 ;
16937 wxString result;
16938 void *argp1 = 0 ;
16939 int res1 = 0 ;
16940 PyObject *swig_obj[1] ;
16941
16942 if (!args) SWIG_fail;
16943 swig_obj[0] = args;
16944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16945 if (!SWIG_IsOK(res1)) {
16946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16947 }
16948 arg1 = reinterpret_cast< wxLocale * >(argp1);
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 result = ((wxLocale const *)arg1)->GetSysName();
16952 wxPyEndAllowThreads(__tstate);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 {
16956#if wxUSE_UNICODE
16957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16958#else
16959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16960#endif
16961 }
16962 return resultobj;
16963fail:
16964 return NULL;
d55e5bfc
RD
16965}
16966
16967
554f62e9
RD
16968SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16969 PyObject *resultobj = 0;
16970 wxLocale *arg1 = (wxLocale *) 0 ;
16971 wxString result;
16972 void *argp1 = 0 ;
16973 int res1 = 0 ;
16974 PyObject *swig_obj[1] ;
16975
16976 if (!args) SWIG_fail;
16977 swig_obj[0] = args;
16978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16979 if (!SWIG_IsOK(res1)) {
16980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16981 }
16982 arg1 = reinterpret_cast< wxLocale * >(argp1);
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 result = ((wxLocale const *)arg1)->GetCanonicalName();
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 {
093d3ff1 16990#if wxUSE_UNICODE
554f62e9 16991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16992#else
554f62e9 16993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16994#endif
554f62e9
RD
16995 }
16996 return resultobj;
16997fail:
16998 return NULL;
d55e5bfc
RD
16999}
17000
17001
554f62e9
RD
17002SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17003 PyObject *resultobj = 0;
17004 wxString *arg1 = 0 ;
17005 bool temp1 = false ;
17006 PyObject * obj0 = 0 ;
17007 char * kwnames[] = {
17008 (char *) "prefix", NULL
17009 };
17010
17011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17012 {
17013 arg1 = wxString_in_helper(obj0);
17014 if (arg1 == NULL) SWIG_fail;
17015 temp1 = true;
17016 }
17017 {
17018 PyThreadState* __tstate = wxPyBeginAllowThreads();
17019 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17020 wxPyEndAllowThreads(__tstate);
17021 if (PyErr_Occurred()) SWIG_fail;
17022 }
17023 resultobj = SWIG_Py_Void();
17024 {
17025 if (temp1)
17026 delete arg1;
17027 }
17028 return resultobj;
17029fail:
17030 {
17031 if (temp1)
17032 delete arg1;
17033 }
17034 return NULL;
17035}
17036
17037
17038SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj = 0;
17040 wxLocale *arg1 = (wxLocale *) 0 ;
17041 wxString *arg2 = 0 ;
17042 bool result;
17043 void *argp1 = 0 ;
17044 int res1 = 0 ;
17045 bool temp2 = false ;
17046 PyObject * obj0 = 0 ;
17047 PyObject * obj1 = 0 ;
17048 char * kwnames[] = {
17049 (char *) "self",(char *) "szDomain", NULL
17050 };
17051
17052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17054 if (!SWIG_IsOK(res1)) {
17055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17056 }
17057 arg1 = reinterpret_cast< wxLocale * >(argp1);
17058 {
17059 arg2 = wxString_in_helper(obj1);
17060 if (arg2 == NULL) SWIG_fail;
17061 temp2 = true;
17062 }
17063 {
17064 PyThreadState* __tstate = wxPyBeginAllowThreads();
17065 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 {
17070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17071 }
17072 {
17073 if (temp2)
17074 delete arg2;
17075 }
17076 return resultobj;
17077fail:
17078 {
17079 if (temp2)
17080 delete arg2;
17081 }
17082 return NULL;
17083}
17084
17085
33d6fd3b
RD
17086SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17087 PyObject *resultobj = 0;
17088 int arg1 ;
17089 bool result;
17090 int val1 ;
17091 int ecode1 = 0 ;
17092 PyObject * obj0 = 0 ;
17093 char * kwnames[] = {
17094 (char *) "lang", NULL
17095 };
17096
17097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17098 ecode1 = SWIG_AsVal_int(obj0, &val1);
17099 if (!SWIG_IsOK(ecode1)) {
17100 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17101 }
17102 arg1 = static_cast< int >(val1);
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 result = (bool)wxLocale::IsAvailable(arg1);
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 {
17110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17111 }
17112 return resultobj;
17113fail:
17114 return NULL;
17115}
17116
17117
554f62e9
RD
17118SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj = 0;
17120 wxLocale *arg1 = (wxLocale *) 0 ;
17121 wxString *arg2 = 0 ;
17122 bool result;
17123 void *argp1 = 0 ;
17124 int res1 = 0 ;
17125 bool temp2 = false ;
17126 PyObject * obj0 = 0 ;
17127 PyObject * obj1 = 0 ;
17128 char * kwnames[] = {
17129 (char *) "self",(char *) "szDomain", NULL
17130 };
17131
17132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17134 if (!SWIG_IsOK(res1)) {
17135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17136 }
17137 arg1 = reinterpret_cast< wxLocale * >(argp1);
17138 {
17139 arg2 = wxString_in_helper(obj1);
17140 if (arg2 == NULL) SWIG_fail;
17141 temp2 = true;
17142 }
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 {
17150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17151 }
17152 {
17153 if (temp2)
17154 delete arg2;
17155 }
17156 return resultobj;
17157fail:
17158 {
17159 if (temp2)
17160 delete arg2;
17161 }
17162 return NULL;
d55e5bfc
RD
17163}
17164
17165
554f62e9
RD
17166SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj = 0;
17168 int arg1 ;
17169 wxLanguageInfo *result = 0 ;
17170 int val1 ;
17171 int ecode1 = 0 ;
17172 PyObject * obj0 = 0 ;
17173 char * kwnames[] = {
17174 (char *) "lang", NULL
17175 };
17176
17177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17178 ecode1 = SWIG_AsVal_int(obj0, &val1);
17179 if (!SWIG_IsOK(ecode1)) {
17180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17181 }
17182 arg1 = static_cast< int >(val1);
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17190 return resultobj;
17191fail:
17192 return NULL;
17193}
17194
17195
17196SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17197 PyObject *resultobj = 0;
17198 int arg1 ;
17199 wxString result;
17200 int val1 ;
17201 int ecode1 = 0 ;
17202 PyObject * obj0 = 0 ;
17203 char * kwnames[] = {
17204 (char *) "lang", NULL
17205 };
17206
17207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17208 ecode1 = SWIG_AsVal_int(obj0, &val1);
17209 if (!SWIG_IsOK(ecode1)) {
17210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17211 }
17212 arg1 = static_cast< int >(val1);
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
17215 result = wxLocale::GetLanguageName(arg1);
17216 wxPyEndAllowThreads(__tstate);
17217 if (PyErr_Occurred()) SWIG_fail;
17218 }
17219 {
17220#if wxUSE_UNICODE
17221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17222#else
17223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17224#endif
17225 }
17226 return resultobj;
17227fail:
17228 return NULL;
093d3ff1
RD
17229}
17230
17231
554f62e9
RD
17232SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj = 0;
17234 wxString *arg1 = 0 ;
17235 wxLanguageInfo *result = 0 ;
17236 bool temp1 = false ;
17237 PyObject * obj0 = 0 ;
17238 char * kwnames[] = {
17239 (char *) "locale", NULL
17240 };
17241
17242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17243 {
17244 arg1 = wxString_in_helper(obj0);
17245 if (arg1 == NULL) SWIG_fail;
17246 temp1 = true;
17247 }
17248 {
17249 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17250 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17251 wxPyEndAllowThreads(__tstate);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17255 {
17256 if (temp1)
17257 delete arg1;
17258 }
17259 return resultobj;
17260fail:
17261 {
17262 if (temp1)
17263 delete arg1;
17264 }
17265 return NULL;
17266}
17267
17268
17269SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17270 PyObject *resultobj = 0;
17271 wxLanguageInfo *arg1 = 0 ;
17272 void *argp1 = 0 ;
17273 int res1 = 0 ;
17274 PyObject * obj0 = 0 ;
17275 char * kwnames[] = {
17276 (char *) "info", NULL
17277 };
17278
17279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17281 if (!SWIG_IsOK(res1)) {
17282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17283 }
17284 if (!argp1) {
17285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17286 }
17287 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17291 wxPyEndAllowThreads(__tstate);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 }
17294 resultobj = SWIG_Py_Void();
17295 return resultobj;
17296fail:
17297 return NULL;
17298}
17299
17300
17301SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17302 PyObject *resultobj = 0;
17303 wxLocale *arg1 = (wxLocale *) 0 ;
17304 wxString *arg2 = 0 ;
17305 wxString const &arg3_defvalue = wxPyEmptyString ;
17306 wxString *arg3 = (wxString *) &arg3_defvalue ;
17307 wxString result;
17308 void *argp1 = 0 ;
17309 int res1 = 0 ;
17310 bool temp2 = false ;
17311 bool temp3 = false ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 PyObject * obj2 = 0 ;
17315 char * kwnames[] = {
17316 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17317 };
17318
17319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17321 if (!SWIG_IsOK(res1)) {
17322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17323 }
17324 arg1 = reinterpret_cast< wxLocale * >(argp1);
17325 {
17326 arg2 = wxString_in_helper(obj1);
17327 if (arg2 == NULL) SWIG_fail;
17328 temp2 = true;
17329 }
17330 if (obj2) {
17331 {
17332 arg3 = wxString_in_helper(obj2);
17333 if (arg3 == NULL) SWIG_fail;
17334 temp3 = true;
17335 }
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 {
17344#if wxUSE_UNICODE
17345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17346#else
17347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17348#endif
17349 }
17350 {
17351 if (temp2)
17352 delete arg2;
17353 }
17354 {
17355 if (temp3)
17356 delete arg3;
17357 }
17358 return resultobj;
17359fail:
17360 {
17361 if (temp2)
17362 delete arg2;
17363 }
17364 {
17365 if (temp3)
17366 delete arg3;
17367 }
17368 return NULL;
17369}
17370
17371
17372SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17373 PyObject *resultobj = 0;
17374 wxLocale *arg1 = (wxLocale *) 0 ;
17375 wxString *result = 0 ;
17376 void *argp1 = 0 ;
17377 int res1 = 0 ;
17378 PyObject *swig_obj[1] ;
17379
17380 if (!args) SWIG_fail;
17381 swig_obj[0] = args;
17382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17383 if (!SWIG_IsOK(res1)) {
17384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17385 }
17386 arg1 = reinterpret_cast< wxLocale * >(argp1);
17387 {
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 {
17390 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17391 result = (wxString *) &_result_ref;
17392 }
17393 wxPyEndAllowThreads(__tstate);
17394 if (PyErr_Occurred()) SWIG_fail;
17395 }
17396 {
17397#if wxUSE_UNICODE
17398 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17399#else
17400 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17401#endif
17402 }
17403 return resultobj;
17404fail:
17405 return NULL;
17406}
17407
17408
17409SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17410 PyObject *obj;
17411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17412 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17413 return SWIG_Py_Void();
17414}
17415
17416SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17417 return SWIG_Python_InitShadowInstance(args);
17418}
17419
17420SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj = 0;
17422 int arg1 = (int) -1 ;
17423 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17424 wxPyLocale *result = 0 ;
17425 int val1 ;
17426 int ecode1 = 0 ;
17427 int val2 ;
17428 int ecode2 = 0 ;
17429 PyObject * obj0 = 0 ;
17430 PyObject * obj1 = 0 ;
17431 char * kwnames[] = {
17432 (char *) "language",(char *) "flags", NULL
17433 };
17434
17435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17436 if (obj0) {
17437 ecode1 = SWIG_AsVal_int(obj0, &val1);
17438 if (!SWIG_IsOK(ecode1)) {
17439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17440 }
17441 arg1 = static_cast< int >(val1);
17442 }
17443 if (obj1) {
17444 ecode2 = SWIG_AsVal_int(obj1, &val2);
17445 if (!SWIG_IsOK(ecode2)) {
17446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17447 }
17448 arg2 = static_cast< int >(val2);
17449 }
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17457 return resultobj;
17458fail:
17459 return NULL;
17460}
17461
17462
17463SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17464 PyObject *resultobj = 0;
17465 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17466 void *argp1 = 0 ;
17467 int res1 = 0 ;
17468 PyObject *swig_obj[1] ;
17469
17470 if (!args) SWIG_fail;
17471 swig_obj[0] = args;
17472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17473 if (!SWIG_IsOK(res1)) {
17474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17475 }
17476 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17477 {
17478 PyThreadState* __tstate = wxPyBeginAllowThreads();
17479 delete arg1;
17480
554f62e9
RD
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
fc46b7f3 17484 resultobj = SWIG_Py_Void();
554f62e9
RD
17485 return resultobj;
17486fail:
554f62e9 17487 return NULL;
d55e5bfc
RD
17488}
17489
17490
fc46b7f3 17491SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17492 PyObject *resultobj = 0;
fc46b7f3
RD
17493 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17494 PyObject *arg2 = (PyObject *) 0 ;
17495 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17496 void *argp1 = 0 ;
17497 int res1 = 0 ;
17498 PyObject * obj0 = 0 ;
fc46b7f3
RD
17499 PyObject * obj1 = 0 ;
17500 PyObject * obj2 = 0 ;
554f62e9 17501 char * kwnames[] = {
fc46b7f3 17502 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17503 };
17504
fc46b7f3
RD
17505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17507 if (!SWIG_IsOK(res1)) {
fc46b7f3 17508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17509 }
fc46b7f3
RD
17510 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17511 arg2 = obj1;
17512 arg3 = obj2;
554f62e9
RD
17513 {
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17515 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_Py_Void();
17520 return resultobj;
17521fail:
17522 return NULL;
17523}
17524
17525
fc46b7f3 17526SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17527 PyObject *resultobj = 0;
fc46b7f3
RD
17528 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17529 wxChar *arg2 = (wxChar *) 0 ;
17530 wxChar *arg3 = (wxChar *) NULL ;
17531 wxChar *result = 0 ;
554f62e9
RD
17532 void *argp1 = 0 ;
17533 int res1 = 0 ;
fc46b7f3
RD
17534 void *argp2 = 0 ;
17535 int res2 = 0 ;
17536 void *argp3 = 0 ;
17537 int res3 = 0 ;
554f62e9
RD
17538 PyObject * obj0 = 0 ;
17539 PyObject * obj1 = 0 ;
17540 PyObject * obj2 = 0 ;
17541 char * kwnames[] = {
17542 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17543 };
17544
fc46b7f3
RD
17545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17547 if (!SWIG_IsOK(res1)) {
fc46b7f3 17548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17549 }
fc46b7f3
RD
17550 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17551 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17552 if (!SWIG_IsOK(res2)) {
17553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17554 }
fc46b7f3 17555 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17556 if (obj2) {
fc46b7f3
RD
17557 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17558 if (!SWIG_IsOK(res3)) {
17559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17560 }
fc46b7f3 17561 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17562 }
17563 {
17564 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17565 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17566 wxPyEndAllowThreads(__tstate);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
fc46b7f3 17569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17570 return resultobj;
17571fail:
554f62e9 17572 return NULL;
d55e5bfc
RD
17573}
17574
17575
fc46b7f3 17576SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17577 PyObject *resultobj = 0;
fc46b7f3
RD
17578 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17579 wxChar *arg2 = (wxChar *) 0 ;
17580 wxChar *arg3 = (wxChar *) 0 ;
17581 size_t arg4 ;
17582 wxChar *arg5 = (wxChar *) NULL ;
17583 wxChar *result = 0 ;
554f62e9
RD
17584 void *argp1 = 0 ;
17585 int res1 = 0 ;
fc46b7f3
RD
17586 void *argp2 = 0 ;
17587 int res2 = 0 ;
17588 void *argp3 = 0 ;
17589 int res3 = 0 ;
17590 size_t val4 ;
17591 int ecode4 = 0 ;
17592 void *argp5 = 0 ;
17593 int res5 = 0 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 PyObject * obj2 = 0 ;
17597 PyObject * obj3 = 0 ;
17598 PyObject * obj4 = 0 ;
17599 char * kwnames[] = {
17600 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17601 };
554f62e9 17602
fc46b7f3
RD
17603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17605 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17607 }
17608 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17610 if (!SWIG_IsOK(res2)) {
17611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17612 }
17613 arg2 = reinterpret_cast< wxChar * >(argp2);
17614 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17615 if (!SWIG_IsOK(res3)) {
17616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17617 }
17618 arg3 = reinterpret_cast< wxChar * >(argp3);
17619 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17620 if (!SWIG_IsOK(ecode4)) {
17621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17622 }
17623 arg4 = static_cast< size_t >(val4);
17624 if (obj4) {
17625 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17626 if (!SWIG_IsOK(res5)) {
17627 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17628 }
17629 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17630 }
554f62e9
RD
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17633 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17634 wxPyEndAllowThreads(__tstate);
17635 if (PyErr_Occurred()) SWIG_fail;
17636 }
fc46b7f3 17637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17638 return resultobj;
17639fail:
17640 return NULL;
d55e5bfc
RD
17641}
17642
17643
fc46b7f3 17644SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17645 PyObject *obj;
17646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17647 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17648 return SWIG_Py_Void();
d55e5bfc
RD
17649}
17650
fc46b7f3 17651SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17652 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17653}
17654
554f62e9
RD
17655SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17656 PyObject *resultobj = 0;
17657 wxLocale *result = 0 ;
17658
17659 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (wxLocale *)wxGetLocale();
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17667 return resultobj;
17668fail:
17669 return NULL;
d55e5bfc
RD
17670}
17671
17672
554f62e9
RD
17673SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17674 PyObject *resultobj = 0;
17675 wxString *arg1 = 0 ;
17676 wxString result;
17677 bool temp1 = false ;
17678
17679 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17680 {
17681 arg1 = wxString_in_helper(swig_obj[0]);
17682 if (arg1 == NULL) SWIG_fail;
17683 temp1 = true;
17684 }
17685 {
17686 PyThreadState* __tstate = wxPyBeginAllowThreads();
17687 result = wxGetTranslation((wxString const &)*arg1);
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 {
093d3ff1 17692#if wxUSE_UNICODE
554f62e9 17693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17694#else
554f62e9 17695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17696#endif
554f62e9
RD
17697 }
17698 {
17699 if (temp1)
17700 delete arg1;
17701 }
17702 return resultobj;
17703fail:
17704 {
17705 if (temp1)
17706 delete arg1;
17707 }
17708 return NULL;
d55e5bfc
RD
17709}
17710
17711
554f62e9 17712SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17713 PyObject *resultobj = 0;
17714 wxString *arg1 = 0 ;
17715 wxString *arg2 = 0 ;
17716 wxString result;
17717 bool temp1 = false ;
17718 bool temp2 = false ;
17719
17720 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17721 {
17722 arg1 = wxString_in_helper(swig_obj[0]);
17723 if (arg1 == NULL) SWIG_fail;
17724 temp1 = true;
17725 }
17726 {
17727 arg2 = wxString_in_helper(swig_obj[1]);
17728 if (arg2 == NULL) SWIG_fail;
17729 temp2 = true;
17730 }
17731 {
17732 PyThreadState* __tstate = wxPyBeginAllowThreads();
17733 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 {
17738#if wxUSE_UNICODE
17739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17740#else
17741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17742#endif
17743 }
17744 {
17745 if (temp1)
17746 delete arg1;
17747 }
17748 {
17749 if (temp2)
17750 delete arg2;
17751 }
17752 return resultobj;
17753fail:
17754 {
17755 if (temp1)
17756 delete arg1;
17757 }
17758 {
17759 if (temp2)
17760 delete arg2;
17761 }
17762 return NULL;
17763}
17764
17765
17766SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17767 PyObject *resultobj = 0;
17768 wxString *arg1 = 0 ;
17769 wxString *arg2 = 0 ;
17770 size_t arg3 ;
17771 wxString result;
17772 bool temp1 = false ;
17773 bool temp2 = false ;
17774 size_t val3 ;
17775 int ecode3 = 0 ;
17776
17777 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17778 {
17779 arg1 = wxString_in_helper(swig_obj[0]);
17780 if (arg1 == NULL) SWIG_fail;
17781 temp1 = true;
17782 }
17783 {
17784 arg2 = wxString_in_helper(swig_obj[1]);
17785 if (arg2 == NULL) SWIG_fail;
17786 temp2 = true;
17787 }
17788 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17789 if (!SWIG_IsOK(ecode3)) {
17790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17791 }
17792 arg3 = static_cast< size_t >(val3);
17793 {
17794 PyThreadState* __tstate = wxPyBeginAllowThreads();
17795 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17796 wxPyEndAllowThreads(__tstate);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 }
17799 {
093d3ff1 17800#if wxUSE_UNICODE
554f62e9 17801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17802#else
554f62e9 17803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17804#endif
554f62e9
RD
17805 }
17806 {
17807 if (temp1)
17808 delete arg1;
17809 }
17810 {
17811 if (temp2)
17812 delete arg2;
17813 }
17814 return resultobj;
17815fail:
17816 {
17817 if (temp1)
17818 delete arg1;
17819 }
17820 {
17821 if (temp2)
17822 delete arg2;
17823 }
17824 return NULL;
d55e5bfc
RD
17825}
17826
17827
fc46b7f3
RD
17828SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17829 PyObject *resultobj = 0;
17830 wxString *arg1 = 0 ;
17831 wxString *arg2 = 0 ;
17832 size_t arg3 ;
17833 wxString *arg4 = 0 ;
17834 wxString result;
17835 bool temp1 = false ;
17836 bool temp2 = false ;
17837 size_t val3 ;
17838 int ecode3 = 0 ;
17839 bool temp4 = false ;
17840
17841 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17842 {
17843 arg1 = wxString_in_helper(swig_obj[0]);
17844 if (arg1 == NULL) SWIG_fail;
17845 temp1 = true;
17846 }
17847 {
17848 arg2 = wxString_in_helper(swig_obj[1]);
17849 if (arg2 == NULL) SWIG_fail;
17850 temp2 = true;
17851 }
17852 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17853 if (!SWIG_IsOK(ecode3)) {
17854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17855 }
17856 arg3 = static_cast< size_t >(val3);
17857 {
17858 arg4 = wxString_in_helper(swig_obj[3]);
17859 if (arg4 == NULL) SWIG_fail;
17860 temp4 = true;
17861 }
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 {
17869#if wxUSE_UNICODE
17870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17871#else
17872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17873#endif
17874 }
17875 {
17876 if (temp1)
17877 delete arg1;
17878 }
17879 {
17880 if (temp2)
17881 delete arg2;
17882 }
17883 {
17884 if (temp4)
17885 delete arg4;
17886 }
17887 return resultobj;
17888fail:
17889 {
17890 if (temp1)
17891 delete arg1;
17892 }
17893 {
17894 if (temp2)
17895 delete arg2;
17896 }
17897 {
17898 if (temp4)
17899 delete arg4;
17900 }
17901 return NULL;
17902}
17903
17904
554f62e9
RD
17905SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17906 int argc;
fc46b7f3 17907 PyObject *argv[5];
554f62e9 17908
fc46b7f3 17909 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17910 --argc;
17911 if (argc == 1) {
17912 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17913 }
fc46b7f3 17914 if (argc == 2) {
554f62e9
RD
17915 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17916 }
fc46b7f3
RD
17917 if (argc == 3) {
17918 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17919 }
17920 if (argc == 4) {
17921 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17922 }
554f62e9
RD
17923
17924fail:
17925 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17926 return NULL;
d55e5bfc
RD
17927}
17928
17929
554f62e9
RD
17930SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17931 PyObject *resultobj = 0;
17932 wxEncodingConverter *result = 0 ;
17933
17934 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 result = (wxEncodingConverter *)new wxEncodingConverter();
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17942 return resultobj;
17943fail:
17944 return NULL;
d55e5bfc
RD
17945}
17946
17947
554f62e9
RD
17948SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17949 PyObject *resultobj = 0;
17950 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17951 void *argp1 = 0 ;
17952 int res1 = 0 ;
17953 PyObject *swig_obj[1] ;
17954
17955 if (!args) SWIG_fail;
17956 swig_obj[0] = args;
17957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17960 }
17961 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 delete arg1;
d55e5bfc 17965
554f62e9
RD
17966 wxPyEndAllowThreads(__tstate);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 }
17969 resultobj = SWIG_Py_Void();
17970 return resultobj;
17971fail:
17972 return NULL;
17973}
17974
17975
17976SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj = 0;
17978 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17979 wxFontEncoding arg2 ;
17980 wxFontEncoding arg3 ;
17981 int arg4 = (int) wxCONVERT_STRICT ;
17982 bool result;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 int val2 ;
17986 int ecode2 = 0 ;
17987 int val3 ;
17988 int ecode3 = 0 ;
17989 int val4 ;
17990 int ecode4 = 0 ;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 PyObject * obj2 = 0 ;
17994 PyObject * obj3 = 0 ;
17995 char * kwnames[] = {
17996 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17997 };
17998
17999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18001 if (!SWIG_IsOK(res1)) {
18002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18003 }
18004 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18005 ecode2 = SWIG_AsVal_int(obj1, &val2);
18006 if (!SWIG_IsOK(ecode2)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18008 }
18009 arg2 = static_cast< wxFontEncoding >(val2);
18010 ecode3 = SWIG_AsVal_int(obj2, &val3);
18011 if (!SWIG_IsOK(ecode3)) {
18012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18013 }
18014 arg3 = static_cast< wxFontEncoding >(val3);
18015 if (obj3) {
18016 ecode4 = SWIG_AsVal_int(obj3, &val4);
18017 if (!SWIG_IsOK(ecode4)) {
18018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18019 }
18020 arg4 = static_cast< int >(val4);
18021 }
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 {
18029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18030 }
18031 return resultobj;
18032fail:
18033 return NULL;
18034}
18035
18036
18037SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18038 PyObject *resultobj = 0;
18039 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18040 wxString *arg2 = 0 ;
18041 wxString result;
18042 void *argp1 = 0 ;
18043 int res1 = 0 ;
18044 bool temp2 = false ;
18045 PyObject * obj0 = 0 ;
18046 PyObject * obj1 = 0 ;
18047 char * kwnames[] = {
18048 (char *) "self",(char *) "input", NULL
18049 };
18050
18051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18053 if (!SWIG_IsOK(res1)) {
18054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18055 }
18056 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18057 {
18058 arg2 = wxString_in_helper(obj1);
18059 if (arg2 == NULL) SWIG_fail;
18060 temp2 = true;
18061 }
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 result = (arg1)->Convert((wxString const &)*arg2);
18065 wxPyEndAllowThreads(__tstate);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 }
18068 {
d55e5bfc 18069#if wxUSE_UNICODE
554f62e9 18070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 18071#else
554f62e9 18072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 18073#endif
554f62e9
RD
18074 }
18075 {
18076 if (temp2)
18077 delete arg2;
18078 }
18079 return resultobj;
18080fail:
18081 {
18082 if (temp2)
18083 delete arg2;
18084 }
18085 return NULL;
18086}
18087
18088
18089SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18090 PyObject *resultobj = 0;
18091 wxFontEncoding arg1 ;
18092 int arg2 = (int) wxPLATFORM_CURRENT ;
18093 wxFontEncodingArray result;
18094 int val1 ;
18095 int ecode1 = 0 ;
18096 int val2 ;
18097 int ecode2 = 0 ;
18098 PyObject * obj0 = 0 ;
18099 PyObject * obj1 = 0 ;
18100 char * kwnames[] = {
18101 (char *) "enc",(char *) "platform", NULL
18102 };
18103
18104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18105 ecode1 = SWIG_AsVal_int(obj0, &val1);
18106 if (!SWIG_IsOK(ecode1)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18108 }
18109 arg1 = static_cast< wxFontEncoding >(val1);
18110 if (obj1) {
18111 ecode2 = SWIG_AsVal_int(obj1, &val2);
18112 if (!SWIG_IsOK(ecode2)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18114 }
18115 arg2 = static_cast< int >(val2);
18116 }
18117 {
18118 PyThreadState* __tstate = wxPyBeginAllowThreads();
18119 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18120 wxPyEndAllowThreads(__tstate);
18121 if (PyErr_Occurred()) SWIG_fail;
18122 }
18123 {
18124 resultobj = PyList_New(0);
18125 for (size_t i=0; i < (&result)->GetCount(); i++) {
18126 PyObject* number = PyInt_FromLong((&result)->Item(i));
18127 PyList_Append(resultobj, number);
18128 Py_DECREF(number);
d55e5bfc 18129 }
554f62e9
RD
18130 }
18131 return resultobj;
18132fail:
18133 return NULL;
d55e5bfc
RD
18134}
18135
18136
554f62e9
RD
18137SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj = 0;
18139 wxFontEncoding arg1 ;
18140 wxFontEncodingArray result;
18141 int val1 ;
18142 int ecode1 = 0 ;
18143 PyObject * obj0 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "enc", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18149 ecode1 = SWIG_AsVal_int(obj0, &val1);
18150 if (!SWIG_IsOK(ecode1)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18152 }
18153 arg1 = static_cast< wxFontEncoding >(val1);
18154 {
18155 PyThreadState* __tstate = wxPyBeginAllowThreads();
18156 result = wxEncodingConverter::GetAllEquivalents(arg1);
18157 wxPyEndAllowThreads(__tstate);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 }
18160 {
18161 resultobj = PyList_New(0);
18162 for (size_t i=0; i < (&result)->GetCount(); i++) {
18163 PyObject* number = PyInt_FromLong((&result)->Item(i));
18164 PyList_Append(resultobj, number);
18165 Py_DECREF(number);
d55e5bfc 18166 }
554f62e9
RD
18167 }
18168 return resultobj;
18169fail:
18170 return NULL;
18171}
18172
18173
18174SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18175 PyObject *resultobj = 0;
18176 wxFontEncoding arg1 ;
18177 wxFontEncoding arg2 ;
18178 bool result;
18179 int val1 ;
18180 int ecode1 = 0 ;
18181 int val2 ;
18182 int ecode2 = 0 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char * kwnames[] = {
18186 (char *) "encIn",(char *) "encOut", NULL
18187 };
18188
18189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18190 ecode1 = SWIG_AsVal_int(obj0, &val1);
18191 if (!SWIG_IsOK(ecode1)) {
18192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18193 }
18194 arg1 = static_cast< wxFontEncoding >(val1);
18195 ecode2 = SWIG_AsVal_int(obj1, &val2);
18196 if (!SWIG_IsOK(ecode2)) {
18197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18198 }
18199 arg2 = static_cast< wxFontEncoding >(val2);
18200 {
18201 PyThreadState* __tstate = wxPyBeginAllowThreads();
18202 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 {
18207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18208 }
18209 return resultobj;
18210fail:
18211 return NULL;
d55e5bfc
RD
18212}
18213
18214
554f62e9
RD
18215SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18216 PyObject *obj;
18217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18218 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18219 return SWIG_Py_Void();
d55e5bfc
RD
18220}
18221
554f62e9
RD
18222SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18223 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18224}
18225
554f62e9
RD
18226SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18227 PyObject *resultobj = 0;
18228 wxDC *arg1 = (wxDC *) 0 ;
18229 void *argp1 = 0 ;
18230 int res1 = 0 ;
18231 PyObject *swig_obj[1] ;
18232
18233 if (!args) SWIG_fail;
18234 swig_obj[0] = args;
18235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18236 if (!SWIG_IsOK(res1)) {
18237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18238 }
18239 arg1 = reinterpret_cast< wxDC * >(argp1);
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 delete arg1;
d55e5bfc 18243
554f62e9
RD
18244 wxPyEndAllowThreads(__tstate);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 resultobj = SWIG_Py_Void();
18248 return resultobj;
18249fail:
18250 return NULL;
18251}
18252
18253
18254SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj = 0;
18256 wxDC *arg1 = (wxDC *) 0 ;
18257 int arg2 ;
18258 int arg3 ;
18259 wxColour *arg4 = 0 ;
18260 int arg5 = (int) wxFLOOD_SURFACE ;
18261 bool result;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 int val2 ;
18265 int ecode2 = 0 ;
18266 int val3 ;
18267 int ecode3 = 0 ;
18268 wxColour temp4 ;
18269 int val5 ;
18270 int ecode5 = 0 ;
18271 PyObject * obj0 = 0 ;
18272 PyObject * obj1 = 0 ;
18273 PyObject * obj2 = 0 ;
18274 PyObject * obj3 = 0 ;
18275 PyObject * obj4 = 0 ;
18276 char * kwnames[] = {
18277 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18278 };
18279
18280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18282 if (!SWIG_IsOK(res1)) {
18283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18284 }
18285 arg1 = reinterpret_cast< wxDC * >(argp1);
18286 ecode2 = SWIG_AsVal_int(obj1, &val2);
18287 if (!SWIG_IsOK(ecode2)) {
18288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18289 }
18290 arg2 = static_cast< int >(val2);
18291 ecode3 = SWIG_AsVal_int(obj2, &val3);
18292 if (!SWIG_IsOK(ecode3)) {
18293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18294 }
18295 arg3 = static_cast< int >(val3);
18296 {
18297 arg4 = &temp4;
18298 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18299 }
18300 if (obj4) {
18301 ecode5 = SWIG_AsVal_int(obj4, &val5);
18302 if (!SWIG_IsOK(ecode5)) {
18303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18304 }
18305 arg5 = static_cast< int >(val5);
18306 }
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 {
18314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18315 }
18316 return resultobj;
18317fail:
18318 return NULL;
18319}
18320
18321
18322SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj = 0;
18324 wxDC *arg1 = (wxDC *) 0 ;
18325 wxPoint *arg2 = 0 ;
18326 wxColour *arg3 = 0 ;
18327 int arg4 = (int) wxFLOOD_SURFACE ;
18328 bool result;
18329 void *argp1 = 0 ;
18330 int res1 = 0 ;
18331 wxPoint temp2 ;
18332 wxColour temp3 ;
18333 int val4 ;
18334 int ecode4 = 0 ;
18335 PyObject * obj0 = 0 ;
18336 PyObject * obj1 = 0 ;
18337 PyObject * obj2 = 0 ;
18338 PyObject * obj3 = 0 ;
18339 char * kwnames[] = {
18340 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18341 };
18342
18343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18345 if (!SWIG_IsOK(res1)) {
18346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18347 }
18348 arg1 = reinterpret_cast< wxDC * >(argp1);
18349 {
18350 arg2 = &temp2;
18351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18352 }
18353 {
18354 arg3 = &temp3;
18355 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18356 }
18357 if (obj3) {
18358 ecode4 = SWIG_AsVal_int(obj3, &val4);
18359 if (!SWIG_IsOK(ecode4)) {
18360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18361 }
18362 arg4 = static_cast< int >(val4);
18363 }
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 {
18371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18372 }
18373 return resultobj;
18374fail:
18375 return NULL;
18376}
18377
18378
18379SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj = 0;
18381 wxDC *arg1 = (wxDC *) 0 ;
18382 wxRect *arg2 = 0 ;
18383 wxColour *arg3 = 0 ;
18384 wxColour *arg4 = 0 ;
18385 wxPoint *arg5 = 0 ;
18386 void *argp1 = 0 ;
18387 int res1 = 0 ;
18388 wxRect temp2 ;
18389 wxColour temp3 ;
18390 wxColour temp4 ;
18391 wxPoint temp5 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 PyObject * obj3 = 0 ;
18396 PyObject * obj4 = 0 ;
18397 char * kwnames[] = {
18398 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18399 };
18400
18401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18405 }
18406 arg1 = reinterpret_cast< wxDC * >(argp1);
18407 {
18408 arg2 = &temp2;
18409 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18410 }
18411 {
18412 arg3 = &temp3;
18413 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18414 }
18415 {
18416 arg4 = &temp4;
18417 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18418 }
18419 {
18420 arg5 = &temp5;
18421 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18422 }
18423 {
18424 PyThreadState* __tstate = wxPyBeginAllowThreads();
18425 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18426 wxPyEndAllowThreads(__tstate);
18427 if (PyErr_Occurred()) SWIG_fail;
18428 }
18429 resultobj = SWIG_Py_Void();
18430 return resultobj;
18431fail:
18432 return NULL;
18433}
18434
18435
18436SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18437 PyObject *resultobj = 0;
18438 wxDC *arg1 = (wxDC *) 0 ;
18439 wxRect *arg2 = 0 ;
18440 wxColour *arg3 = 0 ;
18441 wxColour *arg4 = 0 ;
18442 wxDirection arg5 = (wxDirection) wxEAST ;
18443 void *argp1 = 0 ;
18444 int res1 = 0 ;
18445 wxRect temp2 ;
18446 wxColour temp3 ;
18447 wxColour temp4 ;
18448 int val5 ;
18449 int ecode5 = 0 ;
18450 PyObject * obj0 = 0 ;
18451 PyObject * obj1 = 0 ;
18452 PyObject * obj2 = 0 ;
18453 PyObject * obj3 = 0 ;
18454 PyObject * obj4 = 0 ;
18455 char * kwnames[] = {
18456 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18457 };
18458
18459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18461 if (!SWIG_IsOK(res1)) {
18462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18463 }
18464 arg1 = reinterpret_cast< wxDC * >(argp1);
18465 {
18466 arg2 = &temp2;
18467 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18468 }
18469 {
18470 arg3 = &temp3;
18471 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18472 }
18473 {
18474 arg4 = &temp4;
18475 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18476 }
18477 if (obj4) {
18478 ecode5 = SWIG_AsVal_int(obj4, &val5);
18479 if (!SWIG_IsOK(ecode5)) {
18480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18481 }
18482 arg5 = static_cast< wxDirection >(val5);
18483 }
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 return resultobj;
18492fail:
18493 return NULL;
18494}
18495
18496
18497SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj = 0;
18499 wxDC *arg1 = (wxDC *) 0 ;
18500 int arg2 ;
18501 int arg3 ;
18502 wxColour result;
18503 void *argp1 = 0 ;
18504 int res1 = 0 ;
18505 int val2 ;
18506 int ecode2 = 0 ;
18507 int val3 ;
18508 int ecode3 = 0 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 PyObject * obj2 = 0 ;
18512 char * kwnames[] = {
18513 (char *) "self",(char *) "x",(char *) "y", NULL
18514 };
18515
18516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18518 if (!SWIG_IsOK(res1)) {
18519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18520 }
18521 arg1 = reinterpret_cast< wxDC * >(argp1);
18522 ecode2 = SWIG_AsVal_int(obj1, &val2);
18523 if (!SWIG_IsOK(ecode2)) {
18524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18525 }
18526 arg2 = static_cast< int >(val2);
18527 ecode3 = SWIG_AsVal_int(obj2, &val3);
18528 if (!SWIG_IsOK(ecode3)) {
18529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18530 }
18531 arg3 = static_cast< int >(val3);
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = wxDC_GetPixel(arg1,arg2,arg3);
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18539 return resultobj;
18540fail:
18541 return NULL;
18542}
18543
18544
18545SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj = 0;
18547 wxDC *arg1 = (wxDC *) 0 ;
18548 wxPoint *arg2 = 0 ;
18549 wxColour result;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 wxPoint temp2 ;
18553 PyObject * obj0 = 0 ;
18554 PyObject * obj1 = 0 ;
18555 char * kwnames[] = {
18556 (char *) "self",(char *) "pt", NULL
18557 };
18558
18559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18563 }
18564 arg1 = reinterpret_cast< wxDC * >(argp1);
18565 {
18566 arg2 = &temp2;
18567 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18568 }
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18576 return resultobj;
18577fail:
18578 return NULL;
18579}
18580
18581
18582SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxDC *arg1 = (wxDC *) 0 ;
18585 int arg2 ;
18586 int arg3 ;
18587 int arg4 ;
18588 int arg5 ;
18589 void *argp1 = 0 ;
18590 int res1 = 0 ;
18591 int val2 ;
18592 int ecode2 = 0 ;
18593 int val3 ;
18594 int ecode3 = 0 ;
18595 int val4 ;
18596 int ecode4 = 0 ;
18597 int val5 ;
18598 int ecode5 = 0 ;
18599 PyObject * obj0 = 0 ;
18600 PyObject * obj1 = 0 ;
18601 PyObject * obj2 = 0 ;
18602 PyObject * obj3 = 0 ;
18603 PyObject * obj4 = 0 ;
18604 char * kwnames[] = {
18605 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18606 };
18607
18608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18610 if (!SWIG_IsOK(res1)) {
18611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18612 }
18613 arg1 = reinterpret_cast< wxDC * >(argp1);
18614 ecode2 = SWIG_AsVal_int(obj1, &val2);
18615 if (!SWIG_IsOK(ecode2)) {
18616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18617 }
18618 arg2 = static_cast< int >(val2);
18619 ecode3 = SWIG_AsVal_int(obj2, &val3);
18620 if (!SWIG_IsOK(ecode3)) {
18621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18622 }
18623 arg3 = static_cast< int >(val3);
18624 ecode4 = SWIG_AsVal_int(obj3, &val4);
18625 if (!SWIG_IsOK(ecode4)) {
18626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18627 }
18628 arg4 = static_cast< int >(val4);
18629 ecode5 = SWIG_AsVal_int(obj4, &val5);
18630 if (!SWIG_IsOK(ecode5)) {
18631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18632 }
18633 arg5 = static_cast< int >(val5);
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 resultobj = SWIG_Py_Void();
18641 return resultobj;
18642fail:
18643 return NULL;
18644}
18645
18646
18647SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18648 PyObject *resultobj = 0;
18649 wxDC *arg1 = (wxDC *) 0 ;
18650 wxPoint *arg2 = 0 ;
18651 wxPoint *arg3 = 0 ;
18652 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 wxPoint temp2 ;
18655 wxPoint temp3 ;
18656 PyObject * obj0 = 0 ;
18657 PyObject * obj1 = 0 ;
18658 PyObject * obj2 = 0 ;
18659 char * kwnames[] = {
18660 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18661 };
18662
18663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18665 if (!SWIG_IsOK(res1)) {
18666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18667 }
18668 arg1 = reinterpret_cast< wxDC * >(argp1);
18669 {
18670 arg2 = &temp2;
18671 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18672 }
18673 {
18674 arg3 = &temp3;
18675 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18676 }
18677 {
18678 PyThreadState* __tstate = wxPyBeginAllowThreads();
18679 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18680 wxPyEndAllowThreads(__tstate);
18681 if (PyErr_Occurred()) SWIG_fail;
18682 }
18683 resultobj = SWIG_Py_Void();
18684 return resultobj;
18685fail:
18686 return NULL;
18687}
18688
18689
18690SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18691 PyObject *resultobj = 0;
18692 wxDC *arg1 = (wxDC *) 0 ;
18693 int arg2 ;
18694 int arg3 ;
18695 void *argp1 = 0 ;
18696 int res1 = 0 ;
18697 int val2 ;
18698 int ecode2 = 0 ;
18699 int val3 ;
18700 int ecode3 = 0 ;
18701 PyObject * obj0 = 0 ;
18702 PyObject * obj1 = 0 ;
18703 PyObject * obj2 = 0 ;
18704 char * kwnames[] = {
18705 (char *) "self",(char *) "x",(char *) "y", NULL
18706 };
18707
18708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18710 if (!SWIG_IsOK(res1)) {
18711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18712 }
18713 arg1 = reinterpret_cast< wxDC * >(argp1);
18714 ecode2 = SWIG_AsVal_int(obj1, &val2);
18715 if (!SWIG_IsOK(ecode2)) {
18716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18717 }
18718 arg2 = static_cast< int >(val2);
18719 ecode3 = SWIG_AsVal_int(obj2, &val3);
18720 if (!SWIG_IsOK(ecode3)) {
18721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18722 }
18723 arg3 = static_cast< int >(val3);
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 (arg1)->CrossHair(arg2,arg3);
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_Py_Void();
18731 return resultobj;
18732fail:
18733 return NULL;
18734}
18735
18736
18737SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj = 0;
18739 wxDC *arg1 = (wxDC *) 0 ;
18740 wxPoint *arg2 = 0 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 wxPoint temp2 ;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 char * kwnames[] = {
18747 (char *) "self",(char *) "pt", NULL
18748 };
18749
18750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18752 if (!SWIG_IsOK(res1)) {
18753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18754 }
18755 arg1 = reinterpret_cast< wxDC * >(argp1);
18756 {
18757 arg2 = &temp2;
18758 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->CrossHair((wxPoint const &)*arg2);
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_Py_Void();
18767 return resultobj;
18768fail:
18769 return NULL;
18770}
18771
18772
18773SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj = 0;
18775 wxDC *arg1 = (wxDC *) 0 ;
18776 int arg2 ;
18777 int arg3 ;
18778 int arg4 ;
18779 int arg5 ;
18780 int arg6 ;
18781 int arg7 ;
18782 void *argp1 = 0 ;
18783 int res1 = 0 ;
18784 int val2 ;
18785 int ecode2 = 0 ;
18786 int val3 ;
18787 int ecode3 = 0 ;
18788 int val4 ;
18789 int ecode4 = 0 ;
18790 int val5 ;
18791 int ecode5 = 0 ;
18792 int val6 ;
18793 int ecode6 = 0 ;
18794 int val7 ;
18795 int ecode7 = 0 ;
18796 PyObject * obj0 = 0 ;
18797 PyObject * obj1 = 0 ;
18798 PyObject * obj2 = 0 ;
18799 PyObject * obj3 = 0 ;
18800 PyObject * obj4 = 0 ;
18801 PyObject * obj5 = 0 ;
18802 PyObject * obj6 = 0 ;
18803 char * kwnames[] = {
18804 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18805 };
18806
18807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18809 if (!SWIG_IsOK(res1)) {
18810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18811 }
18812 arg1 = reinterpret_cast< wxDC * >(argp1);
18813 ecode2 = SWIG_AsVal_int(obj1, &val2);
18814 if (!SWIG_IsOK(ecode2)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18816 }
18817 arg2 = static_cast< int >(val2);
18818 ecode3 = SWIG_AsVal_int(obj2, &val3);
18819 if (!SWIG_IsOK(ecode3)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18821 }
18822 arg3 = static_cast< int >(val3);
18823 ecode4 = SWIG_AsVal_int(obj3, &val4);
18824 if (!SWIG_IsOK(ecode4)) {
18825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18826 }
18827 arg4 = static_cast< int >(val4);
18828 ecode5 = SWIG_AsVal_int(obj4, &val5);
18829 if (!SWIG_IsOK(ecode5)) {
18830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18831 }
18832 arg5 = static_cast< int >(val5);
18833 ecode6 = SWIG_AsVal_int(obj5, &val6);
18834 if (!SWIG_IsOK(ecode6)) {
18835 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18836 }
18837 arg6 = static_cast< int >(val6);
18838 ecode7 = SWIG_AsVal_int(obj6, &val7);
18839 if (!SWIG_IsOK(ecode7)) {
18840 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18841 }
18842 arg7 = static_cast< int >(val7);
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18846 wxPyEndAllowThreads(__tstate);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 resultobj = SWIG_Py_Void();
18850 return resultobj;
18851fail:
18852 return NULL;
18853}
18854
18855
18856SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18857 PyObject *resultobj = 0;
18858 wxDC *arg1 = (wxDC *) 0 ;
18859 wxPoint *arg2 = 0 ;
18860 wxPoint *arg3 = 0 ;
18861 wxPoint *arg4 = 0 ;
18862 void *argp1 = 0 ;
18863 int res1 = 0 ;
18864 wxPoint temp2 ;
18865 wxPoint temp3 ;
18866 wxPoint temp4 ;
18867 PyObject * obj0 = 0 ;
18868 PyObject * obj1 = 0 ;
18869 PyObject * obj2 = 0 ;
18870 PyObject * obj3 = 0 ;
18871 char * kwnames[] = {
18872 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18873 };
18874
18875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18877 if (!SWIG_IsOK(res1)) {
18878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18879 }
18880 arg1 = reinterpret_cast< wxDC * >(argp1);
18881 {
18882 arg2 = &temp2;
18883 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18884 }
18885 {
18886 arg3 = &temp3;
18887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18888 }
18889 {
18890 arg4 = &temp4;
18891 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18892 }
18893 {
18894 PyThreadState* __tstate = wxPyBeginAllowThreads();
18895 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18896 wxPyEndAllowThreads(__tstate);
18897 if (PyErr_Occurred()) SWIG_fail;
18898 }
18899 resultobj = SWIG_Py_Void();
18900 return resultobj;
18901fail:
18902 return NULL;
18903}
18904
18905
18906SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18907 PyObject *resultobj = 0;
18908 wxDC *arg1 = (wxDC *) 0 ;
18909 int arg2 ;
18910 int arg3 ;
18911 int arg4 ;
18912 int arg5 ;
18913 void *argp1 = 0 ;
18914 int res1 = 0 ;
18915 int val2 ;
18916 int ecode2 = 0 ;
18917 int val3 ;
18918 int ecode3 = 0 ;
18919 int val4 ;
18920 int ecode4 = 0 ;
18921 int val5 ;
18922 int ecode5 = 0 ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 PyObject * obj2 = 0 ;
18926 PyObject * obj3 = 0 ;
18927 PyObject * obj4 = 0 ;
18928 char * kwnames[] = {
18929 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18930 };
18931
18932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18934 if (!SWIG_IsOK(res1)) {
18935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18936 }
18937 arg1 = reinterpret_cast< wxDC * >(argp1);
18938 ecode2 = SWIG_AsVal_int(obj1, &val2);
18939 if (!SWIG_IsOK(ecode2)) {
18940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18941 }
18942 arg2 = static_cast< int >(val2);
18943 ecode3 = SWIG_AsVal_int(obj2, &val3);
18944 if (!SWIG_IsOK(ecode3)) {
18945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18946 }
18947 arg3 = static_cast< int >(val3);
18948 ecode4 = SWIG_AsVal_int(obj3, &val4);
18949 if (!SWIG_IsOK(ecode4)) {
18950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18951 }
18952 arg4 = static_cast< int >(val4);
18953 ecode5 = SWIG_AsVal_int(obj4, &val5);
18954 if (!SWIG_IsOK(ecode5)) {
18955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18956 }
18957 arg5 = static_cast< int >(val5);
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 resultobj = SWIG_Py_Void();
18965 return resultobj;
18966fail:
18967 return NULL;
18968}
18969
18970
18971SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18972 PyObject *resultobj = 0;
18973 wxDC *arg1 = (wxDC *) 0 ;
18974 wxRect *arg2 = 0 ;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 wxRect temp2 ;
18978 PyObject * obj0 = 0 ;
18979 PyObject * obj1 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "rect", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18988 }
18989 arg1 = reinterpret_cast< wxDC * >(argp1);
18990 {
18991 arg2 = &temp2;
18992 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18993 }
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002fail:
19003 return NULL;
19004}
19005
19006
19007SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj = 0;
19009 wxDC *arg1 = (wxDC *) 0 ;
19010 int arg2 ;
19011 int arg3 ;
19012 int arg4 ;
19013 int arg5 ;
19014 double arg6 ;
19015 double arg7 ;
19016 void *argp1 = 0 ;
19017 int res1 = 0 ;
19018 int val2 ;
19019 int ecode2 = 0 ;
19020 int val3 ;
19021 int ecode3 = 0 ;
19022 int val4 ;
19023 int ecode4 = 0 ;
19024 int val5 ;
19025 int ecode5 = 0 ;
19026 double val6 ;
19027 int ecode6 = 0 ;
19028 double val7 ;
19029 int ecode7 = 0 ;
19030 PyObject * obj0 = 0 ;
19031 PyObject * obj1 = 0 ;
19032 PyObject * obj2 = 0 ;
19033 PyObject * obj3 = 0 ;
19034 PyObject * obj4 = 0 ;
19035 PyObject * obj5 = 0 ;
19036 PyObject * obj6 = 0 ;
19037 char * kwnames[] = {
19038 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19039 };
19040
19041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19045 }
19046 arg1 = reinterpret_cast< wxDC * >(argp1);
19047 ecode2 = SWIG_AsVal_int(obj1, &val2);
19048 if (!SWIG_IsOK(ecode2)) {
19049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19050 }
19051 arg2 = static_cast< int >(val2);
19052 ecode3 = SWIG_AsVal_int(obj2, &val3);
19053 if (!SWIG_IsOK(ecode3)) {
19054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19055 }
19056 arg3 = static_cast< int >(val3);
19057 ecode4 = SWIG_AsVal_int(obj3, &val4);
19058 if (!SWIG_IsOK(ecode4)) {
19059 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19060 }
19061 arg4 = static_cast< int >(val4);
19062 ecode5 = SWIG_AsVal_int(obj4, &val5);
19063 if (!SWIG_IsOK(ecode5)) {
19064 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19065 }
19066 arg5 = static_cast< int >(val5);
19067 ecode6 = SWIG_AsVal_double(obj5, &val6);
19068 if (!SWIG_IsOK(ecode6)) {
19069 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19070 }
19071 arg6 = static_cast< double >(val6);
19072 ecode7 = SWIG_AsVal_double(obj6, &val7);
19073 if (!SWIG_IsOK(ecode7)) {
19074 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19075 }
19076 arg7 = static_cast< double >(val7);
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 return resultobj;
19085fail:
19086 return NULL;
19087}
19088
19089
19090SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 wxPoint *arg2 = 0 ;
19094 wxSize *arg3 = 0 ;
19095 double arg4 ;
19096 double arg5 ;
19097 void *argp1 = 0 ;
19098 int res1 = 0 ;
19099 wxPoint temp2 ;
19100 wxSize temp3 ;
19101 double val4 ;
19102 int ecode4 = 0 ;
19103 double val5 ;
19104 int ecode5 = 0 ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 PyObject * obj2 = 0 ;
19108 PyObject * obj3 = 0 ;
19109 PyObject * obj4 = 0 ;
19110 char * kwnames[] = {
19111 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19112 };
19113
19114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19116 if (!SWIG_IsOK(res1)) {
19117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19118 }
19119 arg1 = reinterpret_cast< wxDC * >(argp1);
19120 {
19121 arg2 = &temp2;
19122 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19123 }
19124 {
19125 arg3 = &temp3;
19126 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19127 }
19128 ecode4 = SWIG_AsVal_double(obj3, &val4);
19129 if (!SWIG_IsOK(ecode4)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19131 }
19132 arg4 = static_cast< double >(val4);
19133 ecode5 = SWIG_AsVal_double(obj4, &val5);
19134 if (!SWIG_IsOK(ecode5)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19136 }
19137 arg5 = static_cast< double >(val5);
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 resultobj = SWIG_Py_Void();
19145 return resultobj;
19146fail:
19147 return NULL;
19148}
19149
19150
19151SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19152 PyObject *resultobj = 0;
19153 wxDC *arg1 = (wxDC *) 0 ;
19154 int arg2 ;
19155 int arg3 ;
19156 void *argp1 = 0 ;
19157 int res1 = 0 ;
19158 int val2 ;
19159 int ecode2 = 0 ;
19160 int val3 ;
19161 int ecode3 = 0 ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 PyObject * obj2 = 0 ;
19165 char * kwnames[] = {
19166 (char *) "self",(char *) "x",(char *) "y", NULL
19167 };
19168
19169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19171 if (!SWIG_IsOK(res1)) {
19172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19173 }
19174 arg1 = reinterpret_cast< wxDC * >(argp1);
19175 ecode2 = SWIG_AsVal_int(obj1, &val2);
19176 if (!SWIG_IsOK(ecode2)) {
19177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19178 }
19179 arg2 = static_cast< int >(val2);
19180 ecode3 = SWIG_AsVal_int(obj2, &val3);
19181 if (!SWIG_IsOK(ecode3)) {
19182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19183 }
19184 arg3 = static_cast< int >(val3);
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 (arg1)->DrawPoint(arg2,arg3);
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 resultobj = SWIG_Py_Void();
19192 return resultobj;
19193fail:
19194 return NULL;
19195}
19196
19197
19198SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19199 PyObject *resultobj = 0;
19200 wxDC *arg1 = (wxDC *) 0 ;
19201 wxPoint *arg2 = 0 ;
19202 void *argp1 = 0 ;
19203 int res1 = 0 ;
19204 wxPoint temp2 ;
19205 PyObject * obj0 = 0 ;
19206 PyObject * obj1 = 0 ;
19207 char * kwnames[] = {
19208 (char *) "self",(char *) "pt", NULL
19209 };
19210
19211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19213 if (!SWIG_IsOK(res1)) {
19214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19215 }
19216 arg1 = reinterpret_cast< wxDC * >(argp1);
19217 {
19218 arg2 = &temp2;
19219 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19220 }
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 (arg1)->DrawPoint((wxPoint const &)*arg2);
19224 wxPyEndAllowThreads(__tstate);
19225 if (PyErr_Occurred()) SWIG_fail;
19226 }
19227 resultobj = SWIG_Py_Void();
19228 return resultobj;
19229fail:
19230 return NULL;
19231}
19232
19233
19234SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19235 PyObject *resultobj = 0;
19236 wxDC *arg1 = (wxDC *) 0 ;
19237 int arg2 ;
19238 int arg3 ;
19239 int arg4 ;
19240 int arg5 ;
19241 void *argp1 = 0 ;
19242 int res1 = 0 ;
19243 int val2 ;
19244 int ecode2 = 0 ;
19245 int val3 ;
19246 int ecode3 = 0 ;
19247 int val4 ;
19248 int ecode4 = 0 ;
19249 int val5 ;
19250 int ecode5 = 0 ;
19251 PyObject * obj0 = 0 ;
19252 PyObject * obj1 = 0 ;
19253 PyObject * obj2 = 0 ;
19254 PyObject * obj3 = 0 ;
19255 PyObject * obj4 = 0 ;
19256 char * kwnames[] = {
19257 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19258 };
19259
19260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19262 if (!SWIG_IsOK(res1)) {
19263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19264 }
19265 arg1 = reinterpret_cast< wxDC * >(argp1);
19266 ecode2 = SWIG_AsVal_int(obj1, &val2);
19267 if (!SWIG_IsOK(ecode2)) {
19268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19269 }
19270 arg2 = static_cast< int >(val2);
19271 ecode3 = SWIG_AsVal_int(obj2, &val3);
19272 if (!SWIG_IsOK(ecode3)) {
19273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19274 }
19275 arg3 = static_cast< int >(val3);
19276 ecode4 = SWIG_AsVal_int(obj3, &val4);
19277 if (!SWIG_IsOK(ecode4)) {
19278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19279 }
19280 arg4 = static_cast< int >(val4);
19281 ecode5 = SWIG_AsVal_int(obj4, &val5);
19282 if (!SWIG_IsOK(ecode5)) {
19283 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19284 }
19285 arg5 = static_cast< int >(val5);
19286 {
19287 PyThreadState* __tstate = wxPyBeginAllowThreads();
19288 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 resultobj = SWIG_Py_Void();
19293 return resultobj;
19294fail:
19295 return NULL;
19296}
19297
19298
19299SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = 0;
19301 wxDC *arg1 = (wxDC *) 0 ;
19302 wxRect *arg2 = 0 ;
19303 void *argp1 = 0 ;
19304 int res1 = 0 ;
19305 wxRect temp2 ;
19306 PyObject * obj0 = 0 ;
19307 PyObject * obj1 = 0 ;
19308 char * kwnames[] = {
19309 (char *) "self",(char *) "rect", NULL
19310 };
19311
19312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19316 }
19317 arg1 = reinterpret_cast< wxDC * >(argp1);
19318 {
19319 arg2 = &temp2;
19320 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19321 }
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 (arg1)->DrawRectangle((wxRect const &)*arg2);
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_Py_Void();
19329 return resultobj;
19330fail:
19331 return NULL;
19332}
19333
19334
19335SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj = 0;
19337 wxDC *arg1 = (wxDC *) 0 ;
19338 wxPoint *arg2 = 0 ;
19339 wxSize *arg3 = 0 ;
19340 void *argp1 = 0 ;
19341 int res1 = 0 ;
19342 wxPoint temp2 ;
19343 wxSize temp3 ;
19344 PyObject * obj0 = 0 ;
19345 PyObject * obj1 = 0 ;
19346 PyObject * obj2 = 0 ;
19347 char * kwnames[] = {
19348 (char *) "self",(char *) "pt",(char *) "sz", NULL
19349 };
19350
19351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19355 }
19356 arg1 = reinterpret_cast< wxDC * >(argp1);
19357 {
19358 arg2 = &temp2;
19359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19360 }
19361 {
19362 arg3 = &temp3;
19363 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19364 }
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_Py_Void();
19372 return resultobj;
19373fail:
19374 return NULL;
19375}
19376
19377
19378SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj = 0;
19380 wxDC *arg1 = (wxDC *) 0 ;
19381 int arg2 ;
19382 int arg3 ;
19383 int arg4 ;
19384 int arg5 ;
19385 double arg6 ;
19386 void *argp1 = 0 ;
19387 int res1 = 0 ;
19388 int val2 ;
19389 int ecode2 = 0 ;
19390 int val3 ;
19391 int ecode3 = 0 ;
19392 int val4 ;
19393 int ecode4 = 0 ;
19394 int val5 ;
19395 int ecode5 = 0 ;
19396 double val6 ;
19397 int ecode6 = 0 ;
19398 PyObject * obj0 = 0 ;
19399 PyObject * obj1 = 0 ;
19400 PyObject * obj2 = 0 ;
19401 PyObject * obj3 = 0 ;
19402 PyObject * obj4 = 0 ;
19403 PyObject * obj5 = 0 ;
19404 char * kwnames[] = {
19405 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19406 };
19407
19408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19412 }
19413 arg1 = reinterpret_cast< wxDC * >(argp1);
19414 ecode2 = SWIG_AsVal_int(obj1, &val2);
19415 if (!SWIG_IsOK(ecode2)) {
19416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19417 }
19418 arg2 = static_cast< int >(val2);
19419 ecode3 = SWIG_AsVal_int(obj2, &val3);
19420 if (!SWIG_IsOK(ecode3)) {
19421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19422 }
19423 arg3 = static_cast< int >(val3);
19424 ecode4 = SWIG_AsVal_int(obj3, &val4);
19425 if (!SWIG_IsOK(ecode4)) {
19426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19427 }
19428 arg4 = static_cast< int >(val4);
19429 ecode5 = SWIG_AsVal_int(obj4, &val5);
19430 if (!SWIG_IsOK(ecode5)) {
19431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19432 }
19433 arg5 = static_cast< int >(val5);
19434 ecode6 = SWIG_AsVal_double(obj5, &val6);
19435 if (!SWIG_IsOK(ecode6)) {
19436 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19437 }
19438 arg6 = static_cast< double >(val6);
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_Py_Void();
19446 return resultobj;
19447fail:
19448 return NULL;
19449}
19450
19451
19452SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19453 PyObject *resultobj = 0;
19454 wxDC *arg1 = (wxDC *) 0 ;
19455 wxRect *arg2 = 0 ;
19456 double arg3 ;
19457 void *argp1 = 0 ;
19458 int res1 = 0 ;
19459 wxRect temp2 ;
19460 double val3 ;
19461 int ecode3 = 0 ;
19462 PyObject * obj0 = 0 ;
19463 PyObject * obj1 = 0 ;
19464 PyObject * obj2 = 0 ;
19465 char * kwnames[] = {
19466 (char *) "self",(char *) "r",(char *) "radius", NULL
19467 };
19468
19469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19471 if (!SWIG_IsOK(res1)) {
19472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19473 }
19474 arg1 = reinterpret_cast< wxDC * >(argp1);
19475 {
19476 arg2 = &temp2;
19477 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19478 }
19479 ecode3 = SWIG_AsVal_double(obj2, &val3);
19480 if (!SWIG_IsOK(ecode3)) {
19481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19482 }
19483 arg3 = static_cast< double >(val3);
19484 {
19485 PyThreadState* __tstate = wxPyBeginAllowThreads();
19486 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 resultobj = SWIG_Py_Void();
19491 return resultobj;
19492fail:
19493 return NULL;
19494}
19495
19496
19497SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj = 0;
19499 wxDC *arg1 = (wxDC *) 0 ;
19500 wxPoint *arg2 = 0 ;
19501 wxSize *arg3 = 0 ;
19502 double arg4 ;
19503 void *argp1 = 0 ;
19504 int res1 = 0 ;
19505 wxPoint temp2 ;
19506 wxSize temp3 ;
19507 double val4 ;
19508 int ecode4 = 0 ;
19509 PyObject * obj0 = 0 ;
19510 PyObject * obj1 = 0 ;
19511 PyObject * obj2 = 0 ;
19512 PyObject * obj3 = 0 ;
19513 char * kwnames[] = {
19514 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19515 };
19516
19517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19519 if (!SWIG_IsOK(res1)) {
19520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19521 }
19522 arg1 = reinterpret_cast< wxDC * >(argp1);
19523 {
19524 arg2 = &temp2;
19525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19526 }
19527 {
19528 arg3 = &temp3;
19529 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19530 }
19531 ecode4 = SWIG_AsVal_double(obj3, &val4);
19532 if (!SWIG_IsOK(ecode4)) {
19533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19534 }
19535 arg4 = static_cast< double >(val4);
19536 {
19537 PyThreadState* __tstate = wxPyBeginAllowThreads();
19538 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19539 wxPyEndAllowThreads(__tstate);
19540 if (PyErr_Occurred()) SWIG_fail;
19541 }
19542 resultobj = SWIG_Py_Void();
19543 return resultobj;
19544fail:
19545 return NULL;
19546}
19547
19548
19549SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj = 0;
19551 wxDC *arg1 = (wxDC *) 0 ;
19552 int arg2 ;
19553 int arg3 ;
19554 int arg4 ;
19555 void *argp1 = 0 ;
19556 int res1 = 0 ;
19557 int val2 ;
19558 int ecode2 = 0 ;
19559 int val3 ;
19560 int ecode3 = 0 ;
19561 int val4 ;
19562 int ecode4 = 0 ;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 PyObject * obj2 = 0 ;
19566 PyObject * obj3 = 0 ;
19567 char * kwnames[] = {
19568 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19569 };
19570
19571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19573 if (!SWIG_IsOK(res1)) {
19574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19575 }
19576 arg1 = reinterpret_cast< wxDC * >(argp1);
19577 ecode2 = SWIG_AsVal_int(obj1, &val2);
19578 if (!SWIG_IsOK(ecode2)) {
19579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19580 }
19581 arg2 = static_cast< int >(val2);
19582 ecode3 = SWIG_AsVal_int(obj2, &val3);
19583 if (!SWIG_IsOK(ecode3)) {
19584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19585 }
19586 arg3 = static_cast< int >(val3);
19587 ecode4 = SWIG_AsVal_int(obj3, &val4);
19588 if (!SWIG_IsOK(ecode4)) {
19589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19590 }
19591 arg4 = static_cast< int >(val4);
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 (arg1)->DrawCircle(arg2,arg3,arg4);
19595 wxPyEndAllowThreads(__tstate);
19596 if (PyErr_Occurred()) SWIG_fail;
19597 }
19598 resultobj = SWIG_Py_Void();
19599 return resultobj;
19600fail:
19601 return NULL;
19602}
19603
19604
19605SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19606 PyObject *resultobj = 0;
19607 wxDC *arg1 = (wxDC *) 0 ;
19608 wxPoint *arg2 = 0 ;
19609 int arg3 ;
19610 void *argp1 = 0 ;
19611 int res1 = 0 ;
19612 wxPoint temp2 ;
19613 int val3 ;
19614 int ecode3 = 0 ;
19615 PyObject * obj0 = 0 ;
19616 PyObject * obj1 = 0 ;
19617 PyObject * obj2 = 0 ;
19618 char * kwnames[] = {
19619 (char *) "self",(char *) "pt",(char *) "radius", NULL
19620 };
19621
19622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19624 if (!SWIG_IsOK(res1)) {
19625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19626 }
19627 arg1 = reinterpret_cast< wxDC * >(argp1);
19628 {
19629 arg2 = &temp2;
19630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19631 }
19632 ecode3 = SWIG_AsVal_int(obj2, &val3);
19633 if (!SWIG_IsOK(ecode3)) {
19634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19635 }
19636 arg3 = static_cast< int >(val3);
19637 {
19638 PyThreadState* __tstate = wxPyBeginAllowThreads();
19639 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19640 wxPyEndAllowThreads(__tstate);
19641 if (PyErr_Occurred()) SWIG_fail;
19642 }
19643 resultobj = SWIG_Py_Void();
19644 return resultobj;
19645fail:
19646 return NULL;
19647}
19648
19649
19650SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19651 PyObject *resultobj = 0;
19652 wxDC *arg1 = (wxDC *) 0 ;
19653 int arg2 ;
19654 int arg3 ;
19655 int arg4 ;
19656 int arg5 ;
19657 void *argp1 = 0 ;
19658 int res1 = 0 ;
19659 int val2 ;
19660 int ecode2 = 0 ;
19661 int val3 ;
19662 int ecode3 = 0 ;
19663 int val4 ;
19664 int ecode4 = 0 ;
19665 int val5 ;
19666 int ecode5 = 0 ;
19667 PyObject * obj0 = 0 ;
19668 PyObject * obj1 = 0 ;
19669 PyObject * obj2 = 0 ;
19670 PyObject * obj3 = 0 ;
19671 PyObject * obj4 = 0 ;
19672 char * kwnames[] = {
19673 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19674 };
19675
19676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19678 if (!SWIG_IsOK(res1)) {
19679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19680 }
19681 arg1 = reinterpret_cast< wxDC * >(argp1);
19682 ecode2 = SWIG_AsVal_int(obj1, &val2);
19683 if (!SWIG_IsOK(ecode2)) {
19684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19685 }
19686 arg2 = static_cast< int >(val2);
19687 ecode3 = SWIG_AsVal_int(obj2, &val3);
19688 if (!SWIG_IsOK(ecode3)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19690 }
19691 arg3 = static_cast< int >(val3);
19692 ecode4 = SWIG_AsVal_int(obj3, &val4);
19693 if (!SWIG_IsOK(ecode4)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19695 }
19696 arg4 = static_cast< int >(val4);
19697 ecode5 = SWIG_AsVal_int(obj4, &val5);
19698 if (!SWIG_IsOK(ecode5)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19700 }
19701 arg5 = static_cast< int >(val5);
19702 {
19703 PyThreadState* __tstate = wxPyBeginAllowThreads();
19704 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 resultobj = SWIG_Py_Void();
19709 return resultobj;
19710fail:
19711 return NULL;
19712}
19713
19714
19715SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19716 PyObject *resultobj = 0;
19717 wxDC *arg1 = (wxDC *) 0 ;
19718 wxRect *arg2 = 0 ;
19719 void *argp1 = 0 ;
19720 int res1 = 0 ;
19721 wxRect temp2 ;
19722 PyObject * obj0 = 0 ;
19723 PyObject * obj1 = 0 ;
19724 char * kwnames[] = {
19725 (char *) "self",(char *) "rect", NULL
19726 };
19727
19728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19730 if (!SWIG_IsOK(res1)) {
19731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19732 }
19733 arg1 = reinterpret_cast< wxDC * >(argp1);
19734 {
19735 arg2 = &temp2;
19736 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19737 }
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 (arg1)->DrawEllipse((wxRect const &)*arg2);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 resultobj = SWIG_Py_Void();
19745 return resultobj;
19746fail:
19747 return NULL;
19748}
19749
19750
19751SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19752 PyObject *resultobj = 0;
19753 wxDC *arg1 = (wxDC *) 0 ;
19754 wxPoint *arg2 = 0 ;
19755 wxSize *arg3 = 0 ;
19756 void *argp1 = 0 ;
19757 int res1 = 0 ;
19758 wxPoint temp2 ;
19759 wxSize temp3 ;
19760 PyObject * obj0 = 0 ;
19761 PyObject * obj1 = 0 ;
19762 PyObject * obj2 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "pt",(char *) "sz", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19771 }
19772 arg1 = reinterpret_cast< wxDC * >(argp1);
19773 {
19774 arg2 = &temp2;
19775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19776 }
19777 {
19778 arg3 = &temp3;
19779 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19780 }
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = SWIG_Py_Void();
19788 return resultobj;
19789fail:
19790 return NULL;
19791}
19792
19793
19794SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19795 PyObject *resultobj = 0;
19796 wxDC *arg1 = (wxDC *) 0 ;
19797 wxIcon *arg2 = 0 ;
19798 int arg3 ;
19799 int arg4 ;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 void *argp2 = 0 ;
19803 int res2 = 0 ;
19804 int val3 ;
19805 int ecode3 = 0 ;
19806 int val4 ;
19807 int ecode4 = 0 ;
19808 PyObject * obj0 = 0 ;
19809 PyObject * obj1 = 0 ;
19810 PyObject * obj2 = 0 ;
19811 PyObject * obj3 = 0 ;
19812 char * kwnames[] = {
19813 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19814 };
19815
19816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19818 if (!SWIG_IsOK(res1)) {
19819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19820 }
19821 arg1 = reinterpret_cast< wxDC * >(argp1);
19822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19823 if (!SWIG_IsOK(res2)) {
19824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19825 }
19826 if (!argp2) {
19827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19828 }
19829 arg2 = reinterpret_cast< wxIcon * >(argp2);
19830 ecode3 = SWIG_AsVal_int(obj2, &val3);
19831 if (!SWIG_IsOK(ecode3)) {
19832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19833 }
19834 arg3 = static_cast< int >(val3);
19835 ecode4 = SWIG_AsVal_int(obj3, &val4);
19836 if (!SWIG_IsOK(ecode4)) {
19837 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19838 }
19839 arg4 = static_cast< int >(val4);
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 resultobj = SWIG_Py_Void();
19847 return resultobj;
19848fail:
19849 return NULL;
19850}
19851
19852
19853SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19854 PyObject *resultobj = 0;
19855 wxDC *arg1 = (wxDC *) 0 ;
19856 wxIcon *arg2 = 0 ;
19857 wxPoint *arg3 = 0 ;
19858 void *argp1 = 0 ;
19859 int res1 = 0 ;
19860 void *argp2 = 0 ;
19861 int res2 = 0 ;
19862 wxPoint temp3 ;
19863 PyObject * obj0 = 0 ;
19864 PyObject * obj1 = 0 ;
19865 PyObject * obj2 = 0 ;
19866 char * kwnames[] = {
19867 (char *) "self",(char *) "icon",(char *) "pt", NULL
19868 };
19869
19870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19872 if (!SWIG_IsOK(res1)) {
19873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19874 }
19875 arg1 = reinterpret_cast< wxDC * >(argp1);
19876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19877 if (!SWIG_IsOK(res2)) {
19878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19879 }
19880 if (!argp2) {
19881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19882 }
19883 arg2 = reinterpret_cast< wxIcon * >(argp2);
19884 {
19885 arg3 = &temp3;
19886 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19887 }
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_Py_Void();
19895 return resultobj;
19896fail:
19897 return NULL;
19898}
19899
19900
19901SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 wxBitmap *arg2 = 0 ;
19905 int arg3 ;
19906 int arg4 ;
19907 bool arg5 = (bool) false ;
19908 void *argp1 = 0 ;
19909 int res1 = 0 ;
19910 void *argp2 = 0 ;
19911 int res2 = 0 ;
19912 int val3 ;
19913 int ecode3 = 0 ;
19914 int val4 ;
19915 int ecode4 = 0 ;
19916 bool val5 ;
19917 int ecode5 = 0 ;
19918 PyObject * obj0 = 0 ;
19919 PyObject * obj1 = 0 ;
19920 PyObject * obj2 = 0 ;
19921 PyObject * obj3 = 0 ;
19922 PyObject * obj4 = 0 ;
19923 char * kwnames[] = {
19924 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19925 };
19926
19927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19929 if (!SWIG_IsOK(res1)) {
19930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19931 }
19932 arg1 = reinterpret_cast< wxDC * >(argp1);
19933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19934 if (!SWIG_IsOK(res2)) {
19935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19936 }
19937 if (!argp2) {
19938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19939 }
19940 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19941 ecode3 = SWIG_AsVal_int(obj2, &val3);
19942 if (!SWIG_IsOK(ecode3)) {
19943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19944 }
19945 arg3 = static_cast< int >(val3);
19946 ecode4 = SWIG_AsVal_int(obj3, &val4);
19947 if (!SWIG_IsOK(ecode4)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19949 }
19950 arg4 = static_cast< int >(val4);
19951 if (obj4) {
19952 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19953 if (!SWIG_IsOK(ecode5)) {
19954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19955 }
19956 arg5 = static_cast< bool >(val5);
19957 }
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 resultobj = SWIG_Py_Void();
19965 return resultobj;
19966fail:
19967 return NULL;
19968}
19969
19970
19971SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19972 PyObject *resultobj = 0;
19973 wxDC *arg1 = (wxDC *) 0 ;
19974 wxBitmap *arg2 = 0 ;
19975 wxPoint *arg3 = 0 ;
19976 bool arg4 = (bool) false ;
19977 void *argp1 = 0 ;
19978 int res1 = 0 ;
19979 void *argp2 = 0 ;
19980 int res2 = 0 ;
19981 wxPoint temp3 ;
19982 bool val4 ;
19983 int ecode4 = 0 ;
19984 PyObject * obj0 = 0 ;
19985 PyObject * obj1 = 0 ;
19986 PyObject * obj2 = 0 ;
19987 PyObject * obj3 = 0 ;
19988 char * kwnames[] = {
19989 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19990 };
19991
19992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19994 if (!SWIG_IsOK(res1)) {
19995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19996 }
19997 arg1 = reinterpret_cast< wxDC * >(argp1);
19998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19999 if (!SWIG_IsOK(res2)) {
20000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20001 }
20002 if (!argp2) {
20003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20004 }
20005 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20006 {
20007 arg3 = &temp3;
20008 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20009 }
20010 if (obj3) {
20011 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20012 if (!SWIG_IsOK(ecode4)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20014 }
20015 arg4 = static_cast< bool >(val4);
20016 }
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_Py_Void();
20024 return resultobj;
20025fail:
20026 return NULL;
20027}
20028
20029
20030SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxDC *arg1 = (wxDC *) 0 ;
20033 wxString *arg2 = 0 ;
20034 int arg3 ;
20035 int arg4 ;
20036 void *argp1 = 0 ;
20037 int res1 = 0 ;
20038 bool temp2 = false ;
20039 int val3 ;
20040 int ecode3 = 0 ;
20041 int val4 ;
20042 int ecode4 = 0 ;
20043 PyObject * obj0 = 0 ;
20044 PyObject * obj1 = 0 ;
20045 PyObject * obj2 = 0 ;
20046 PyObject * obj3 = 0 ;
20047 char * kwnames[] = {
20048 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20049 };
20050
20051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20053 if (!SWIG_IsOK(res1)) {
20054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20055 }
20056 arg1 = reinterpret_cast< wxDC * >(argp1);
20057 {
20058 arg2 = wxString_in_helper(obj1);
20059 if (arg2 == NULL) SWIG_fail;
20060 temp2 = true;
20061 }
20062 ecode3 = SWIG_AsVal_int(obj2, &val3);
20063 if (!SWIG_IsOK(ecode3)) {
20064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20065 }
20066 arg3 = static_cast< int >(val3);
20067 ecode4 = SWIG_AsVal_int(obj3, &val4);
20068 if (!SWIG_IsOK(ecode4)) {
20069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20070 }
20071 arg4 = static_cast< int >(val4);
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 resultobj = SWIG_Py_Void();
20079 {
20080 if (temp2)
20081 delete arg2;
20082 }
20083 return resultobj;
20084fail:
20085 {
20086 if (temp2)
20087 delete arg2;
20088 }
20089 return NULL;
20090}
20091
20092
20093SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20094 PyObject *resultobj = 0;
20095 wxDC *arg1 = (wxDC *) 0 ;
20096 wxString *arg2 = 0 ;
20097 wxPoint *arg3 = 0 ;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 bool temp2 = false ;
20101 wxPoint temp3 ;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104 PyObject * obj2 = 0 ;
20105 char * kwnames[] = {
20106 (char *) "self",(char *) "text",(char *) "pt", NULL
20107 };
20108
20109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20111 if (!SWIG_IsOK(res1)) {
20112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20113 }
20114 arg1 = reinterpret_cast< wxDC * >(argp1);
20115 {
20116 arg2 = wxString_in_helper(obj1);
20117 if (arg2 == NULL) SWIG_fail;
20118 temp2 = true;
20119 }
20120 {
20121 arg3 = &temp3;
20122 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20123 }
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 resultobj = SWIG_Py_Void();
20131 {
20132 if (temp2)
20133 delete arg2;
20134 }
20135 return resultobj;
20136fail:
20137 {
20138 if (temp2)
20139 delete arg2;
20140 }
20141 return NULL;
20142}
20143
20144
20145SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj = 0;
20147 wxDC *arg1 = (wxDC *) 0 ;
20148 wxString *arg2 = 0 ;
20149 int arg3 ;
20150 int arg4 ;
20151 double arg5 ;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 bool temp2 = false ;
20155 int val3 ;
20156 int ecode3 = 0 ;
20157 int val4 ;
20158 int ecode4 = 0 ;
20159 double val5 ;
20160 int ecode5 = 0 ;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 PyObject * obj2 = 0 ;
20164 PyObject * obj3 = 0 ;
20165 PyObject * obj4 = 0 ;
20166 char * kwnames[] = {
20167 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20168 };
20169
20170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20172 if (!SWIG_IsOK(res1)) {
20173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20174 }
20175 arg1 = reinterpret_cast< wxDC * >(argp1);
20176 {
20177 arg2 = wxString_in_helper(obj1);
20178 if (arg2 == NULL) SWIG_fail;
20179 temp2 = true;
20180 }
20181 ecode3 = SWIG_AsVal_int(obj2, &val3);
20182 if (!SWIG_IsOK(ecode3)) {
20183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20184 }
20185 arg3 = static_cast< int >(val3);
20186 ecode4 = SWIG_AsVal_int(obj3, &val4);
20187 if (!SWIG_IsOK(ecode4)) {
20188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20189 }
20190 arg4 = static_cast< int >(val4);
20191 ecode5 = SWIG_AsVal_double(obj4, &val5);
20192 if (!SWIG_IsOK(ecode5)) {
20193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20194 }
20195 arg5 = static_cast< double >(val5);
20196 {
20197 PyThreadState* __tstate = wxPyBeginAllowThreads();
20198 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20199 wxPyEndAllowThreads(__tstate);
20200 if (PyErr_Occurred()) SWIG_fail;
20201 }
20202 resultobj = SWIG_Py_Void();
20203 {
20204 if (temp2)
20205 delete arg2;
20206 }
20207 return resultobj;
20208fail:
20209 {
20210 if (temp2)
20211 delete arg2;
20212 }
20213 return NULL;
20214}
20215
20216
20217SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxDC *arg1 = (wxDC *) 0 ;
20220 wxString *arg2 = 0 ;
20221 wxPoint *arg3 = 0 ;
20222 double arg4 ;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 bool temp2 = false ;
20226 wxPoint temp3 ;
20227 double val4 ;
20228 int ecode4 = 0 ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 PyObject * obj2 = 0 ;
20232 PyObject * obj3 = 0 ;
20233 char * kwnames[] = {
20234 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20235 };
20236
20237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20239 if (!SWIG_IsOK(res1)) {
20240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20241 }
20242 arg1 = reinterpret_cast< wxDC * >(argp1);
20243 {
20244 arg2 = wxString_in_helper(obj1);
20245 if (arg2 == NULL) SWIG_fail;
20246 temp2 = true;
20247 }
20248 {
20249 arg3 = &temp3;
20250 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20251 }
20252 ecode4 = SWIG_AsVal_double(obj3, &val4);
20253 if (!SWIG_IsOK(ecode4)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20255 }
20256 arg4 = static_cast< double >(val4);
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20260 wxPyEndAllowThreads(__tstate);
20261 if (PyErr_Occurred()) SWIG_fail;
20262 }
20263 resultobj = SWIG_Py_Void();
20264 {
20265 if (temp2)
20266 delete arg2;
20267 }
20268 return resultobj;
20269fail:
20270 {
20271 if (temp2)
20272 delete arg2;
20273 }
20274 return NULL;
20275}
20276
20277
20278SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20279 PyObject *resultobj = 0;
20280 wxDC *arg1 = (wxDC *) 0 ;
20281 int arg2 ;
20282 int arg3 ;
20283 int arg4 ;
20284 int arg5 ;
20285 wxDC *arg6 = (wxDC *) 0 ;
20286 int arg7 ;
20287 int arg8 ;
20288 int arg9 = (int) wxCOPY ;
20289 bool arg10 = (bool) false ;
20290 int arg11 = (int) -1 ;
20291 int arg12 = (int) -1 ;
20292 bool result;
20293 void *argp1 = 0 ;
20294 int res1 = 0 ;
20295 int val2 ;
20296 int ecode2 = 0 ;
20297 int val3 ;
20298 int ecode3 = 0 ;
20299 int val4 ;
20300 int ecode4 = 0 ;
20301 int val5 ;
20302 int ecode5 = 0 ;
20303 void *argp6 = 0 ;
20304 int res6 = 0 ;
20305 int val7 ;
20306 int ecode7 = 0 ;
20307 int val8 ;
20308 int ecode8 = 0 ;
20309 int val9 ;
20310 int ecode9 = 0 ;
20311 bool val10 ;
20312 int ecode10 = 0 ;
20313 int val11 ;
20314 int ecode11 = 0 ;
20315 int val12 ;
20316 int ecode12 = 0 ;
20317 PyObject * obj0 = 0 ;
20318 PyObject * obj1 = 0 ;
20319 PyObject * obj2 = 0 ;
20320 PyObject * obj3 = 0 ;
20321 PyObject * obj4 = 0 ;
20322 PyObject * obj5 = 0 ;
20323 PyObject * obj6 = 0 ;
20324 PyObject * obj7 = 0 ;
20325 PyObject * obj8 = 0 ;
20326 PyObject * obj9 = 0 ;
20327 PyObject * obj10 = 0 ;
20328 PyObject * obj11 = 0 ;
20329 char * kwnames[] = {
20330 (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
20331 };
20332
20333 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;
20334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20337 }
20338 arg1 = reinterpret_cast< wxDC * >(argp1);
20339 ecode2 = SWIG_AsVal_int(obj1, &val2);
20340 if (!SWIG_IsOK(ecode2)) {
20341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20342 }
20343 arg2 = static_cast< int >(val2);
20344 ecode3 = SWIG_AsVal_int(obj2, &val3);
20345 if (!SWIG_IsOK(ecode3)) {
20346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20347 }
20348 arg3 = static_cast< int >(val3);
20349 ecode4 = SWIG_AsVal_int(obj3, &val4);
20350 if (!SWIG_IsOK(ecode4)) {
20351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20352 }
20353 arg4 = static_cast< int >(val4);
20354 ecode5 = SWIG_AsVal_int(obj4, &val5);
20355 if (!SWIG_IsOK(ecode5)) {
20356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20357 }
20358 arg5 = static_cast< int >(val5);
20359 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20360 if (!SWIG_IsOK(res6)) {
20361 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20362 }
20363 arg6 = reinterpret_cast< wxDC * >(argp6);
20364 ecode7 = SWIG_AsVal_int(obj6, &val7);
20365 if (!SWIG_IsOK(ecode7)) {
20366 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20367 }
20368 arg7 = static_cast< int >(val7);
20369 ecode8 = SWIG_AsVal_int(obj7, &val8);
20370 if (!SWIG_IsOK(ecode8)) {
20371 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20372 }
20373 arg8 = static_cast< int >(val8);
20374 if (obj8) {
20375 ecode9 = SWIG_AsVal_int(obj8, &val9);
20376 if (!SWIG_IsOK(ecode9)) {
20377 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20378 }
20379 arg9 = static_cast< int >(val9);
20380 }
20381 if (obj9) {
20382 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20383 if (!SWIG_IsOK(ecode10)) {
20384 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20385 }
20386 arg10 = static_cast< bool >(val10);
20387 }
20388 if (obj10) {
20389 ecode11 = SWIG_AsVal_int(obj10, &val11);
20390 if (!SWIG_IsOK(ecode11)) {
20391 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20392 }
20393 arg11 = static_cast< int >(val11);
20394 }
20395 if (obj11) {
20396 ecode12 = SWIG_AsVal_int(obj11, &val12);
20397 if (!SWIG_IsOK(ecode12)) {
20398 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20399 }
20400 arg12 = static_cast< int >(val12);
20401 }
20402 {
20403 PyThreadState* __tstate = wxPyBeginAllowThreads();
20404 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
20408 {
20409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20410 }
20411 return resultobj;
20412fail:
20413 return NULL;
20414}
20415
20416
20417SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20418 PyObject *resultobj = 0;
20419 wxDC *arg1 = (wxDC *) 0 ;
20420 wxPoint *arg2 = 0 ;
20421 wxSize *arg3 = 0 ;
20422 wxDC *arg4 = (wxDC *) 0 ;
20423 wxPoint *arg5 = 0 ;
20424 int arg6 = (int) wxCOPY ;
20425 bool arg7 = (bool) false ;
20426 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20427 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20428 bool result;
20429 void *argp1 = 0 ;
20430 int res1 = 0 ;
20431 wxPoint temp2 ;
20432 wxSize temp3 ;
20433 void *argp4 = 0 ;
20434 int res4 = 0 ;
20435 wxPoint temp5 ;
20436 int val6 ;
20437 int ecode6 = 0 ;
20438 bool val7 ;
20439 int ecode7 = 0 ;
20440 wxPoint temp8 ;
20441 PyObject * obj0 = 0 ;
20442 PyObject * obj1 = 0 ;
20443 PyObject * obj2 = 0 ;
20444 PyObject * obj3 = 0 ;
20445 PyObject * obj4 = 0 ;
20446 PyObject * obj5 = 0 ;
20447 PyObject * obj6 = 0 ;
20448 PyObject * obj7 = 0 ;
20449 char * kwnames[] = {
20450 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20451 };
20452
20453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20455 if (!SWIG_IsOK(res1)) {
20456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20457 }
20458 arg1 = reinterpret_cast< wxDC * >(argp1);
20459 {
20460 arg2 = &temp2;
20461 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20462 }
20463 {
20464 arg3 = &temp3;
20465 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20466 }
20467 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20468 if (!SWIG_IsOK(res4)) {
20469 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20470 }
20471 arg4 = reinterpret_cast< wxDC * >(argp4);
20472 {
20473 arg5 = &temp5;
20474 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20475 }
20476 if (obj5) {
20477 ecode6 = SWIG_AsVal_int(obj5, &val6);
20478 if (!SWIG_IsOK(ecode6)) {
20479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20480 }
20481 arg6 = static_cast< int >(val6);
20482 }
20483 if (obj6) {
20484 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20485 if (!SWIG_IsOK(ecode7)) {
20486 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20487 }
20488 arg7 = static_cast< bool >(val7);
20489 }
20490 if (obj7) {
093d3ff1 20491 {
554f62e9
RD
20492 arg8 = &temp8;
20493 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20494 }
554f62e9
RD
20495 }
20496 {
20497 PyThreadState* __tstate = wxPyBeginAllowThreads();
20498 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20499 wxPyEndAllowThreads(__tstate);
20500 if (PyErr_Occurred()) SWIG_fail;
20501 }
20502 {
20503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20504 }
20505 return resultobj;
20506fail:
20507 return NULL;
20508}
20509
20510
8f514ab4
RD
20511SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20512 PyObject *resultobj = 0;
20513 wxDC *arg1 = (wxDC *) 0 ;
20514 wxRect *arg2 = (wxRect *) NULL ;
20515 SwigValueWrapper<wxBitmap > result;
20516 void *argp1 = 0 ;
20517 int res1 = 0 ;
20518 void *argp2 = 0 ;
20519 int res2 = 0 ;
20520 PyObject * obj0 = 0 ;
20521 PyObject * obj1 = 0 ;
20522 char * kwnames[] = {
20523 (char *) "self",(char *) "subrect", NULL
20524 };
20525
20526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20528 if (!SWIG_IsOK(res1)) {
20529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20530 }
20531 arg1 = reinterpret_cast< wxDC * >(argp1);
20532 if (obj1) {
20533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20534 if (!SWIG_IsOK(res2)) {
20535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20536 }
20537 arg2 = reinterpret_cast< wxRect * >(argp2);
20538 }
20539 {
20540 PyThreadState* __tstate = wxPyBeginAllowThreads();
20541 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20542 wxPyEndAllowThreads(__tstate);
20543 if (PyErr_Occurred()) SWIG_fail;
20544 }
20545 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20546 return resultobj;
20547fail:
20548 return NULL;
20549}
20550
20551
554f62e9
RD
20552SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20553 PyObject *resultobj = 0;
20554 wxDC *arg1 = (wxDC *) 0 ;
20555 int arg2 ;
20556 int arg3 ;
20557 int arg4 ;
20558 int arg5 ;
20559 void *argp1 = 0 ;
20560 int res1 = 0 ;
20561 int val2 ;
20562 int ecode2 = 0 ;
20563 int val3 ;
20564 int ecode3 = 0 ;
20565 int val4 ;
20566 int ecode4 = 0 ;
20567 int val5 ;
20568 int ecode5 = 0 ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 PyObject * obj2 = 0 ;
20572 PyObject * obj3 = 0 ;
20573 PyObject * obj4 = 0 ;
20574 char * kwnames[] = {
20575 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20576 };
20577
20578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20580 if (!SWIG_IsOK(res1)) {
20581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20582 }
20583 arg1 = reinterpret_cast< wxDC * >(argp1);
20584 ecode2 = SWIG_AsVal_int(obj1, &val2);
20585 if (!SWIG_IsOK(ecode2)) {
20586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20587 }
20588 arg2 = static_cast< int >(val2);
20589 ecode3 = SWIG_AsVal_int(obj2, &val3);
20590 if (!SWIG_IsOK(ecode3)) {
20591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20592 }
20593 arg3 = static_cast< int >(val3);
20594 ecode4 = SWIG_AsVal_int(obj3, &val4);
20595 if (!SWIG_IsOK(ecode4)) {
20596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20597 }
20598 arg4 = static_cast< int >(val4);
20599 ecode5 = SWIG_AsVal_int(obj4, &val5);
20600 if (!SWIG_IsOK(ecode5)) {
20601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20602 }
20603 arg5 = static_cast< int >(val5);
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 resultobj = SWIG_Py_Void();
20611 return resultobj;
20612fail:
20613 return NULL;
20614}
20615
20616
20617SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20618 PyObject *resultobj = 0;
20619 wxDC *arg1 = (wxDC *) 0 ;
20620 wxPoint *arg2 = 0 ;
20621 wxSize *arg3 = 0 ;
20622 void *argp1 = 0 ;
20623 int res1 = 0 ;
20624 wxPoint temp2 ;
20625 wxSize temp3 ;
20626 PyObject * obj0 = 0 ;
20627 PyObject * obj1 = 0 ;
20628 PyObject * obj2 = 0 ;
20629 char * kwnames[] = {
20630 (char *) "self",(char *) "pt",(char *) "sz", NULL
20631 };
20632
20633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20635 if (!SWIG_IsOK(res1)) {
20636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20637 }
20638 arg1 = reinterpret_cast< wxDC * >(argp1);
20639 {
20640 arg2 = &temp2;
20641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20642 }
20643 {
20644 arg3 = &temp3;
20645 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20646 }
20647 {
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_Py_Void();
20654 return resultobj;
20655fail:
20656 return NULL;
20657}
20658
20659
20660SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20661 PyObject *resultobj = 0;
20662 wxDC *arg1 = (wxDC *) 0 ;
20663 wxRegion *arg2 = 0 ;
20664 void *argp1 = 0 ;
20665 int res1 = 0 ;
20666 void *argp2 = 0 ;
20667 int res2 = 0 ;
20668 PyObject * obj0 = 0 ;
20669 PyObject * obj1 = 0 ;
20670 char * kwnames[] = {
20671 (char *) "self",(char *) "region", NULL
20672 };
20673
20674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20676 if (!SWIG_IsOK(res1)) {
20677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20678 }
20679 arg1 = reinterpret_cast< wxDC * >(argp1);
20680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20681 if (!SWIG_IsOK(res2)) {
20682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20683 }
20684 if (!argp2) {
20685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20686 }
20687 arg2 = reinterpret_cast< wxRegion * >(argp2);
20688 {
20689 PyThreadState* __tstate = wxPyBeginAllowThreads();
20690 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20691 wxPyEndAllowThreads(__tstate);
20692 if (PyErr_Occurred()) SWIG_fail;
20693 }
20694 resultobj = SWIG_Py_Void();
20695 return resultobj;
20696fail:
20697 return NULL;
20698}
20699
20700
20701SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20702 PyObject *resultobj = 0;
20703 wxDC *arg1 = (wxDC *) 0 ;
20704 wxRect *arg2 = 0 ;
20705 void *argp1 = 0 ;
20706 int res1 = 0 ;
20707 wxRect temp2 ;
20708 PyObject * obj0 = 0 ;
20709 PyObject * obj1 = 0 ;
20710 char * kwnames[] = {
20711 (char *) "self",(char *) "rect", NULL
20712 };
20713
20714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20718 }
20719 arg1 = reinterpret_cast< wxDC * >(argp1);
20720 {
20721 arg2 = &temp2;
20722 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20723 }
20724 {
20725 PyThreadState* __tstate = wxPyBeginAllowThreads();
20726 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20727 wxPyEndAllowThreads(__tstate);
20728 if (PyErr_Occurred()) SWIG_fail;
20729 }
20730 resultobj = SWIG_Py_Void();
20731 return resultobj;
20732fail:
20733 return NULL;
20734}
20735
20736
20737SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxDC *arg1 = (wxDC *) 0 ;
20740 int arg2 ;
20741 wxPoint *arg3 = (wxPoint *) 0 ;
20742 int arg4 = (int) 0 ;
20743 int arg5 = (int) 0 ;
20744 void *argp1 = 0 ;
20745 int res1 = 0 ;
20746 int val4 ;
20747 int ecode4 = 0 ;
20748 int val5 ;
20749 int ecode5 = 0 ;
20750 PyObject * obj0 = 0 ;
20751 PyObject * obj1 = 0 ;
20752 PyObject * obj2 = 0 ;
20753 PyObject * obj3 = 0 ;
20754 char * kwnames[] = {
20755 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20756 };
20757
20758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20760 if (!SWIG_IsOK(res1)) {
20761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20762 }
20763 arg1 = reinterpret_cast< wxDC * >(argp1);
20764 {
20765 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20766 if (arg3 == NULL) SWIG_fail;
20767 }
20768 if (obj2) {
20769 ecode4 = SWIG_AsVal_int(obj2, &val4);
20770 if (!SWIG_IsOK(ecode4)) {
20771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20772 }
20773 arg4 = static_cast< int >(val4);
20774 }
20775 if (obj3) {
20776 ecode5 = SWIG_AsVal_int(obj3, &val5);
20777 if (!SWIG_IsOK(ecode5)) {
20778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20779 }
20780 arg5 = static_cast< int >(val5);
20781 }
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20785 wxPyEndAllowThreads(__tstate);
20786 if (PyErr_Occurred()) SWIG_fail;
20787 }
20788 resultobj = SWIG_Py_Void();
20789 {
20790 if (arg3) delete [] arg3;
20791 }
20792 return resultobj;
20793fail:
20794 {
20795 if (arg3) delete [] arg3;
20796 }
20797 return NULL;
20798}
20799
20800
20801SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20802 PyObject *resultobj = 0;
20803 wxDC *arg1 = (wxDC *) 0 ;
20804 int arg2 ;
20805 wxPoint *arg3 = (wxPoint *) 0 ;
20806 int arg4 = (int) 0 ;
20807 int arg5 = (int) 0 ;
20808 int arg6 = (int) wxODDEVEN_RULE ;
20809 void *argp1 = 0 ;
20810 int res1 = 0 ;
20811 int val4 ;
20812 int ecode4 = 0 ;
20813 int val5 ;
20814 int ecode5 = 0 ;
20815 int val6 ;
20816 int ecode6 = 0 ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 PyObject * obj2 = 0 ;
20820 PyObject * obj3 = 0 ;
20821 PyObject * obj4 = 0 ;
20822 char * kwnames[] = {
20823 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20824 };
20825
20826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20828 if (!SWIG_IsOK(res1)) {
20829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20830 }
20831 arg1 = reinterpret_cast< wxDC * >(argp1);
20832 {
20833 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20834 if (arg3 == NULL) SWIG_fail;
20835 }
20836 if (obj2) {
20837 ecode4 = SWIG_AsVal_int(obj2, &val4);
20838 if (!SWIG_IsOK(ecode4)) {
20839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20840 }
20841 arg4 = static_cast< int >(val4);
20842 }
20843 if (obj3) {
20844 ecode5 = SWIG_AsVal_int(obj3, &val5);
20845 if (!SWIG_IsOK(ecode5)) {
20846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20847 }
20848 arg5 = static_cast< int >(val5);
20849 }
20850 if (obj4) {
20851 ecode6 = SWIG_AsVal_int(obj4, &val6);
20852 if (!SWIG_IsOK(ecode6)) {
20853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20854 }
20855 arg6 = static_cast< int >(val6);
20856 }
20857 {
20858 PyThreadState* __tstate = wxPyBeginAllowThreads();
20859 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20860 wxPyEndAllowThreads(__tstate);
20861 if (PyErr_Occurred()) SWIG_fail;
20862 }
20863 resultobj = SWIG_Py_Void();
20864 {
20865 if (arg3) delete [] arg3;
20866 }
20867 return resultobj;
20868fail:
20869 {
20870 if (arg3) delete [] arg3;
20871 }
20872 return NULL;
20873}
20874
20875
20876SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20877 PyObject *resultobj = 0;
20878 wxDC *arg1 = (wxDC *) 0 ;
20879 wxString *arg2 = 0 ;
20880 wxRect *arg3 = 0 ;
20881 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20882 int arg5 = (int) -1 ;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 bool temp2 = false ;
20886 wxRect temp3 ;
20887 int val4 ;
20888 int ecode4 = 0 ;
20889 int val5 ;
20890 int ecode5 = 0 ;
20891 PyObject * obj0 = 0 ;
20892 PyObject * obj1 = 0 ;
20893 PyObject * obj2 = 0 ;
20894 PyObject * obj3 = 0 ;
20895 PyObject * obj4 = 0 ;
20896 char * kwnames[] = {
20897 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20898 };
20899
20900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20902 if (!SWIG_IsOK(res1)) {
20903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20904 }
20905 arg1 = reinterpret_cast< wxDC * >(argp1);
20906 {
20907 arg2 = wxString_in_helper(obj1);
20908 if (arg2 == NULL) SWIG_fail;
20909 temp2 = true;
20910 }
20911 {
20912 arg3 = &temp3;
20913 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20914 }
20915 if (obj3) {
20916 ecode4 = SWIG_AsVal_int(obj3, &val4);
20917 if (!SWIG_IsOK(ecode4)) {
20918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20919 }
20920 arg4 = static_cast< int >(val4);
20921 }
20922 if (obj4) {
20923 ecode5 = SWIG_AsVal_int(obj4, &val5);
20924 if (!SWIG_IsOK(ecode5)) {
20925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20926 }
20927 arg5 = static_cast< int >(val5);
20928 }
20929 {
20930 PyThreadState* __tstate = wxPyBeginAllowThreads();
20931 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20932 wxPyEndAllowThreads(__tstate);
20933 if (PyErr_Occurred()) SWIG_fail;
20934 }
20935 resultobj = SWIG_Py_Void();
20936 {
20937 if (temp2)
20938 delete arg2;
20939 }
20940 return resultobj;
20941fail:
20942 {
20943 if (temp2)
20944 delete arg2;
20945 }
20946 return NULL;
20947}
20948
20949
20950SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxDC *arg1 = (wxDC *) 0 ;
20953 wxString *arg2 = 0 ;
20954 wxBitmap *arg3 = 0 ;
20955 wxRect *arg4 = 0 ;
20956 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20957 int arg6 = (int) -1 ;
20958 wxRect result;
20959 void *argp1 = 0 ;
20960 int res1 = 0 ;
20961 bool temp2 = false ;
20962 void *argp3 = 0 ;
20963 int res3 = 0 ;
20964 wxRect temp4 ;
20965 int val5 ;
20966 int ecode5 = 0 ;
20967 int val6 ;
20968 int ecode6 = 0 ;
20969 PyObject * obj0 = 0 ;
20970 PyObject * obj1 = 0 ;
20971 PyObject * obj2 = 0 ;
20972 PyObject * obj3 = 0 ;
20973 PyObject * obj4 = 0 ;
20974 PyObject * obj5 = 0 ;
20975 char * kwnames[] = {
20976 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20977 };
20978
20979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20981 if (!SWIG_IsOK(res1)) {
20982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20983 }
20984 arg1 = reinterpret_cast< wxDC * >(argp1);
20985 {
20986 arg2 = wxString_in_helper(obj1);
20987 if (arg2 == NULL) SWIG_fail;
20988 temp2 = true;
20989 }
20990 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20991 if (!SWIG_IsOK(res3)) {
20992 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20993 }
20994 if (!argp3) {
20995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20996 }
20997 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20998 {
20999 arg4 = &temp4;
21000 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21001 }
21002 if (obj4) {
21003 ecode5 = SWIG_AsVal_int(obj4, &val5);
21004 if (!SWIG_IsOK(ecode5)) {
21005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21006 }
21007 arg5 = static_cast< int >(val5);
21008 }
21009 if (obj5) {
21010 ecode6 = SWIG_AsVal_int(obj5, &val6);
21011 if (!SWIG_IsOK(ecode6)) {
21012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21013 }
21014 arg6 = static_cast< int >(val6);
21015 }
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21023 {
21024 if (temp2)
21025 delete arg2;
21026 }
21027 return resultobj;
21028fail:
21029 {
21030 if (temp2)
21031 delete arg2;
21032 }
21033 return NULL;
21034}
21035
21036
21037SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj = 0;
21039 wxDC *arg1 = (wxDC *) 0 ;
21040 int arg2 ;
21041 wxPoint *arg3 = (wxPoint *) 0 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 PyObject * obj0 = 0 ;
21045 PyObject * obj1 = 0 ;
21046 char * kwnames[] = {
21047 (char *) "self",(char *) "points", NULL
21048 };
21049
21050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21052 if (!SWIG_IsOK(res1)) {
21053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21054 }
21055 arg1 = reinterpret_cast< wxDC * >(argp1);
21056 {
21057 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21058 if (arg3 == NULL) SWIG_fail;
21059 }
21060 {
21061 PyThreadState* __tstate = wxPyBeginAllowThreads();
21062 (arg1)->DrawSpline(arg2,arg3);
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 resultobj = SWIG_Py_Void();
21067 {
21068 if (arg3) delete [] arg3;
21069 }
21070 return resultobj;
21071fail:
21072 {
21073 if (arg3) delete [] arg3;
21074 }
21075 return NULL;
21076}
21077
21078
21079SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21080 PyObject *resultobj = 0;
21081 wxDC *arg1 = (wxDC *) 0 ;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 PyObject *swig_obj[1] ;
21085
21086 if (!args) SWIG_fail;
21087 swig_obj[0] = args;
21088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21089 if (!SWIG_IsOK(res1)) {
21090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21091 }
21092 arg1 = reinterpret_cast< wxDC * >(argp1);
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 (arg1)->Clear();
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_Py_Void();
21100 return resultobj;
21101fail:
21102 return NULL;
21103}
21104
21105
21106SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj = 0;
21108 wxDC *arg1 = (wxDC *) 0 ;
21109 wxString *arg2 = 0 ;
21110 bool result;
21111 void *argp1 = 0 ;
21112 int res1 = 0 ;
21113 bool temp2 = false ;
21114 PyObject * obj0 = 0 ;
21115 PyObject * obj1 = 0 ;
21116 char * kwnames[] = {
21117 (char *) "self",(char *) "message", NULL
21118 };
21119
21120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21122 if (!SWIG_IsOK(res1)) {
21123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21124 }
21125 arg1 = reinterpret_cast< wxDC * >(argp1);
21126 {
21127 arg2 = wxString_in_helper(obj1);
21128 if (arg2 == NULL) SWIG_fail;
21129 temp2 = true;
21130 }
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21134 wxPyEndAllowThreads(__tstate);
21135 if (PyErr_Occurred()) SWIG_fail;
21136 }
21137 {
21138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21139 }
21140 {
21141 if (temp2)
21142 delete arg2;
21143 }
21144 return resultobj;
21145fail:
21146 {
21147 if (temp2)
21148 delete arg2;
21149 }
21150 return NULL;
21151}
21152
21153
21154SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21155 PyObject *resultobj = 0;
21156 wxDC *arg1 = (wxDC *) 0 ;
21157 void *argp1 = 0 ;
21158 int res1 = 0 ;
21159 PyObject *swig_obj[1] ;
21160
21161 if (!args) SWIG_fail;
21162 swig_obj[0] = args;
21163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21164 if (!SWIG_IsOK(res1)) {
21165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21166 }
21167 arg1 = reinterpret_cast< wxDC * >(argp1);
21168 {
21169 PyThreadState* __tstate = wxPyBeginAllowThreads();
21170 (arg1)->EndDoc();
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 resultobj = SWIG_Py_Void();
21175 return resultobj;
21176fail:
21177 return NULL;
21178}
21179
21180
21181SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21182 PyObject *resultobj = 0;
21183 wxDC *arg1 = (wxDC *) 0 ;
21184 void *argp1 = 0 ;
21185 int res1 = 0 ;
21186 PyObject *swig_obj[1] ;
21187
21188 if (!args) SWIG_fail;
21189 swig_obj[0] = args;
21190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21191 if (!SWIG_IsOK(res1)) {
21192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21193 }
21194 arg1 = reinterpret_cast< wxDC * >(argp1);
21195 {
21196 PyThreadState* __tstate = wxPyBeginAllowThreads();
21197 (arg1)->StartPage();
21198 wxPyEndAllowThreads(__tstate);
21199 if (PyErr_Occurred()) SWIG_fail;
21200 }
21201 resultobj = SWIG_Py_Void();
21202 return resultobj;
21203fail:
21204 return NULL;
21205}
21206
21207
21208SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21209 PyObject *resultobj = 0;
21210 wxDC *arg1 = (wxDC *) 0 ;
21211 void *argp1 = 0 ;
21212 int res1 = 0 ;
21213 PyObject *swig_obj[1] ;
21214
21215 if (!args) SWIG_fail;
21216 swig_obj[0] = args;
21217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21220 }
21221 arg1 = reinterpret_cast< wxDC * >(argp1);
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 (arg1)->EndPage();
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_Py_Void();
21229 return resultobj;
21230fail:
21231 return NULL;
21232}
21233
21234
21235SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21236 PyObject *resultobj = 0;
21237 wxDC *arg1 = (wxDC *) 0 ;
21238 wxFont *arg2 = 0 ;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 void *argp2 = 0 ;
21242 int res2 = 0 ;
21243 PyObject * obj0 = 0 ;
21244 PyObject * obj1 = 0 ;
21245 char * kwnames[] = {
21246 (char *) "self",(char *) "font", NULL
21247 };
21248
21249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21251 if (!SWIG_IsOK(res1)) {
21252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21253 }
21254 arg1 = reinterpret_cast< wxDC * >(argp1);
21255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21256 if (!SWIG_IsOK(res2)) {
21257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21258 }
21259 if (!argp2) {
21260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21261 }
21262 arg2 = reinterpret_cast< wxFont * >(argp2);
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 (arg1)->SetFont((wxFont const &)*arg2);
21266 wxPyEndAllowThreads(__tstate);
21267 if (PyErr_Occurred()) SWIG_fail;
21268 }
21269 resultobj = SWIG_Py_Void();
21270 return resultobj;
21271fail:
21272 return NULL;
21273}
21274
21275
21276SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21277 PyObject *resultobj = 0;
21278 wxDC *arg1 = (wxDC *) 0 ;
21279 wxPen *arg2 = 0 ;
21280 void *argp1 = 0 ;
21281 int res1 = 0 ;
21282 void *argp2 = 0 ;
21283 int res2 = 0 ;
21284 PyObject * obj0 = 0 ;
21285 PyObject * obj1 = 0 ;
21286 char * kwnames[] = {
21287 (char *) "self",(char *) "pen", NULL
21288 };
21289
21290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21292 if (!SWIG_IsOK(res1)) {
21293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21294 }
21295 arg1 = reinterpret_cast< wxDC * >(argp1);
21296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21297 if (!SWIG_IsOK(res2)) {
21298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21299 }
21300 if (!argp2) {
21301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21302 }
21303 arg2 = reinterpret_cast< wxPen * >(argp2);
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 (arg1)->SetPen((wxPen const &)*arg2);
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_Py_Void();
21311 return resultobj;
21312fail:
21313 return NULL;
21314}
21315
21316
21317SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 wxDC *arg1 = (wxDC *) 0 ;
21320 wxBrush *arg2 = 0 ;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 void *argp2 = 0 ;
21324 int res2 = 0 ;
21325 PyObject * obj0 = 0 ;
21326 PyObject * obj1 = 0 ;
21327 char * kwnames[] = {
21328 (char *) "self",(char *) "brush", NULL
21329 };
21330
21331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21333 if (!SWIG_IsOK(res1)) {
21334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21338 if (!SWIG_IsOK(res2)) {
21339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21340 }
21341 if (!argp2) {
21342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21343 }
21344 arg2 = reinterpret_cast< wxBrush * >(argp2);
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 (arg1)->SetBrush((wxBrush const &)*arg2);
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 resultobj = SWIG_Py_Void();
21352 return resultobj;
21353fail:
21354 return NULL;
21355}
21356
21357
21358SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 wxDC *arg1 = (wxDC *) 0 ;
21361 wxBrush *arg2 = 0 ;
21362 void *argp1 = 0 ;
21363 int res1 = 0 ;
21364 void *argp2 = 0 ;
21365 int res2 = 0 ;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char * kwnames[] = {
21369 (char *) "self",(char *) "brush", NULL
21370 };
21371
21372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21376 }
21377 arg1 = reinterpret_cast< wxDC * >(argp1);
21378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21379 if (!SWIG_IsOK(res2)) {
21380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21381 }
21382 if (!argp2) {
21383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21384 }
21385 arg2 = reinterpret_cast< wxBrush * >(argp2);
21386 {
21387 PyThreadState* __tstate = wxPyBeginAllowThreads();
21388 (arg1)->SetBackground((wxBrush const &)*arg2);
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 resultobj = SWIG_Py_Void();
21393 return resultobj;
21394fail:
21395 return NULL;
21396}
21397
21398
21399SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21400 PyObject *resultobj = 0;
21401 wxDC *arg1 = (wxDC *) 0 ;
21402 int arg2 ;
21403 void *argp1 = 0 ;
21404 int res1 = 0 ;
21405 int val2 ;
21406 int ecode2 = 0 ;
21407 PyObject * obj0 = 0 ;
21408 PyObject * obj1 = 0 ;
21409 char * kwnames[] = {
21410 (char *) "self",(char *) "mode", NULL
21411 };
21412
21413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21415 if (!SWIG_IsOK(res1)) {
21416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21417 }
21418 arg1 = reinterpret_cast< wxDC * >(argp1);
21419 ecode2 = SWIG_AsVal_int(obj1, &val2);
21420 if (!SWIG_IsOK(ecode2)) {
21421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21422 }
21423 arg2 = static_cast< int >(val2);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 (arg1)->SetBackgroundMode(arg2);
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_Py_Void();
21431 return resultobj;
21432fail:
21433 return NULL;
21434}
21435
21436
21437SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 wxPalette *arg2 = 0 ;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 void *argp2 = 0 ;
21444 int res2 = 0 ;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 char * kwnames[] = {
21448 (char *) "self",(char *) "palette", NULL
21449 };
21450
21451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21453 if (!SWIG_IsOK(res1)) {
21454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21455 }
21456 arg1 = reinterpret_cast< wxDC * >(argp1);
21457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21458 if (!SWIG_IsOK(res2)) {
21459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21460 }
21461 if (!argp2) {
21462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21463 }
21464 arg2 = reinterpret_cast< wxPalette * >(argp2);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 (arg1)->SetPalette((wxPalette const &)*arg2);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_Py_Void();
21472 return resultobj;
21473fail:
21474 return NULL;
21475}
21476
21477
21478SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21479 PyObject *resultobj = 0;
21480 wxDC *arg1 = (wxDC *) 0 ;
21481 void *argp1 = 0 ;
21482 int res1 = 0 ;
21483 PyObject *swig_obj[1] ;
21484
21485 if (!args) SWIG_fail;
21486 swig_obj[0] = args;
21487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21488 if (!SWIG_IsOK(res1)) {
21489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21490 }
21491 arg1 = reinterpret_cast< wxDC * >(argp1);
21492 {
21493 PyThreadState* __tstate = wxPyBeginAllowThreads();
21494 (arg1)->DestroyClippingRegion();
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 resultobj = SWIG_Py_Void();
21499 return resultobj;
21500fail:
21501 return NULL;
21502}
21503
21504
21505SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21506 PyObject *resultobj = 0;
21507 wxDC *arg1 = (wxDC *) 0 ;
21508 int *arg2 = (int *) 0 ;
21509 int *arg3 = (int *) 0 ;
21510 int *arg4 = (int *) 0 ;
21511 int *arg5 = (int *) 0 ;
21512 void *argp1 = 0 ;
21513 int res1 = 0 ;
21514 int temp2 ;
21515 int res2 = SWIG_TMPOBJ ;
21516 int temp3 ;
21517 int res3 = SWIG_TMPOBJ ;
21518 int temp4 ;
21519 int res4 = SWIG_TMPOBJ ;
21520 int temp5 ;
21521 int res5 = SWIG_TMPOBJ ;
21522 PyObject *swig_obj[1] ;
21523
21524 arg2 = &temp2;
21525 arg3 = &temp3;
21526 arg4 = &temp4;
21527 arg5 = &temp5;
21528 if (!args) SWIG_fail;
21529 swig_obj[0] = args;
21530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21531 if (!SWIG_IsOK(res1)) {
21532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21533 }
21534 arg1 = reinterpret_cast< wxDC * >(argp1);
21535 {
21536 PyThreadState* __tstate = wxPyBeginAllowThreads();
21537 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21538 wxPyEndAllowThreads(__tstate);
21539 if (PyErr_Occurred()) SWIG_fail;
21540 }
21541 resultobj = SWIG_Py_Void();
21542 if (SWIG_IsTmpObj(res2)) {
21543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21544 } else {
21545 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21547 }
21548 if (SWIG_IsTmpObj(res3)) {
21549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21550 } else {
21551 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21553 }
21554 if (SWIG_IsTmpObj(res4)) {
21555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21556 } else {
21557 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21559 }
21560 if (SWIG_IsTmpObj(res5)) {
21561 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21562 } else {
21563 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21564 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21565 }
21566 return resultobj;
21567fail:
21568 return NULL;
21569}
21570
21571
21572SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21573 PyObject *resultobj = 0;
21574 wxDC *arg1 = (wxDC *) 0 ;
21575 wxRect result;
21576 void *argp1 = 0 ;
21577 int res1 = 0 ;
21578 PyObject *swig_obj[1] ;
21579
21580 if (!args) SWIG_fail;
21581 swig_obj[0] = args;
21582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21583 if (!SWIG_IsOK(res1)) {
21584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21585 }
21586 arg1 = reinterpret_cast< wxDC * >(argp1);
21587 {
21588 PyThreadState* __tstate = wxPyBeginAllowThreads();
21589 result = wxDC_GetClippingRect(arg1);
21590 wxPyEndAllowThreads(__tstate);
21591 if (PyErr_Occurred()) SWIG_fail;
21592 }
21593 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21594 return resultobj;
21595fail:
21596 return NULL;
21597}
21598
21599
21600SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 PyObject *resultobj = 0;
21602 wxDC *arg1 = (wxDC *) 0 ;
21603 int result;
21604 void *argp1 = 0 ;
21605 int res1 = 0 ;
21606 PyObject *swig_obj[1] ;
21607
21608 if (!args) SWIG_fail;
21609 swig_obj[0] = args;
21610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21611 if (!SWIG_IsOK(res1)) {
21612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21613 }
21614 arg1 = reinterpret_cast< wxDC * >(argp1);
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (int)((wxDC const *)arg1)->GetCharHeight();
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 resultobj = SWIG_From_int(static_cast< int >(result));
21622 return resultobj;
21623fail:
21624 return NULL;
21625}
21626
21627
21628SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21629 PyObject *resultobj = 0;
21630 wxDC *arg1 = (wxDC *) 0 ;
21631 int result;
21632 void *argp1 = 0 ;
21633 int res1 = 0 ;
21634 PyObject *swig_obj[1] ;
21635
21636 if (!args) SWIG_fail;
21637 swig_obj[0] = args;
21638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21639 if (!SWIG_IsOK(res1)) {
21640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21641 }
21642 arg1 = reinterpret_cast< wxDC * >(argp1);
21643 {
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = (int)((wxDC const *)arg1)->GetCharWidth();
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_From_int(static_cast< int >(result));
21650 return resultobj;
21651fail:
21652 return NULL;
21653}
21654
21655
21656SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21657 PyObject *resultobj = 0;
21658 wxDC *arg1 = (wxDC *) 0 ;
21659 wxString *arg2 = 0 ;
21660 int *arg3 = (int *) 0 ;
21661 int *arg4 = (int *) 0 ;
21662 void *argp1 = 0 ;
21663 int res1 = 0 ;
21664 bool temp2 = false ;
21665 int temp3 ;
21666 int res3 = SWIG_TMPOBJ ;
21667 int temp4 ;
21668 int res4 = SWIG_TMPOBJ ;
21669 PyObject * obj0 = 0 ;
21670 PyObject * obj1 = 0 ;
21671 char * kwnames[] = {
21672 (char *) "self",(char *) "string", NULL
21673 };
21674
21675 arg3 = &temp3;
21676 arg4 = &temp4;
21677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21679 if (!SWIG_IsOK(res1)) {
21680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21681 }
21682 arg1 = reinterpret_cast< wxDC * >(argp1);
21683 {
21684 arg2 = wxString_in_helper(obj1);
21685 if (arg2 == NULL) SWIG_fail;
21686 temp2 = true;
21687 }
21688 {
21689 PyThreadState* __tstate = wxPyBeginAllowThreads();
21690 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21691 wxPyEndAllowThreads(__tstate);
21692 if (PyErr_Occurred()) SWIG_fail;
21693 }
21694 resultobj = SWIG_Py_Void();
21695 if (SWIG_IsTmpObj(res3)) {
21696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21697 } else {
21698 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21700 }
21701 if (SWIG_IsTmpObj(res4)) {
21702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21703 } else {
21704 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21706 }
21707 {
21708 if (temp2)
21709 delete arg2;
21710 }
21711 return resultobj;
21712fail:
21713 {
21714 if (temp2)
21715 delete arg2;
21716 }
21717 return NULL;
21718}
21719
21720
21721SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj = 0;
21723 wxDC *arg1 = (wxDC *) 0 ;
21724 wxString *arg2 = 0 ;
21725 int *arg3 = (int *) 0 ;
21726 int *arg4 = (int *) 0 ;
21727 int *arg5 = (int *) 0 ;
21728 int *arg6 = (int *) 0 ;
21729 wxFont *arg7 = (wxFont *) NULL ;
21730 void *argp1 = 0 ;
21731 int res1 = 0 ;
21732 bool temp2 = false ;
21733 int temp3 ;
21734 int res3 = SWIG_TMPOBJ ;
21735 int temp4 ;
21736 int res4 = SWIG_TMPOBJ ;
21737 int temp5 ;
21738 int res5 = SWIG_TMPOBJ ;
21739 int temp6 ;
21740 int res6 = SWIG_TMPOBJ ;
21741 void *argp7 = 0 ;
21742 int res7 = 0 ;
21743 PyObject * obj0 = 0 ;
21744 PyObject * obj1 = 0 ;
21745 PyObject * obj2 = 0 ;
21746 char * kwnames[] = {
21747 (char *) "self",(char *) "string",(char *) "font", NULL
21748 };
21749
21750 arg3 = &temp3;
21751 arg4 = &temp4;
21752 arg5 = &temp5;
21753 arg6 = &temp6;
21754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21756 if (!SWIG_IsOK(res1)) {
21757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21758 }
21759 arg1 = reinterpret_cast< wxDC * >(argp1);
21760 {
21761 arg2 = wxString_in_helper(obj1);
21762 if (arg2 == NULL) SWIG_fail;
21763 temp2 = true;
21764 }
21765 if (obj2) {
21766 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21767 if (!SWIG_IsOK(res7)) {
21768 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21769 }
554f62e9
RD
21770 arg7 = reinterpret_cast< wxFont * >(argp7);
21771 }
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 resultobj = SWIG_Py_Void();
21779 if (SWIG_IsTmpObj(res3)) {
21780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21781 } else {
21782 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21784 }
21785 if (SWIG_IsTmpObj(res4)) {
21786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21787 } else {
21788 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21790 }
21791 if (SWIG_IsTmpObj(res5)) {
21792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21793 } else {
21794 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21796 }
21797 if (SWIG_IsTmpObj(res6)) {
21798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21799 } else {
21800 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21802 }
21803 {
21804 if (temp2)
21805 delete arg2;
21806 }
21807 return resultobj;
21808fail:
21809 {
21810 if (temp2)
21811 delete arg2;
21812 }
21813 return NULL;
21814}
21815
21816
21817SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21818 PyObject *resultobj = 0;
21819 wxDC *arg1 = (wxDC *) 0 ;
21820 wxString *arg2 = 0 ;
21821 int *arg3 = (int *) 0 ;
21822 int *arg4 = (int *) 0 ;
21823 int *arg5 = (int *) 0 ;
21824 wxFont *arg6 = (wxFont *) NULL ;
21825 void *argp1 = 0 ;
21826 int res1 = 0 ;
21827 bool temp2 = false ;
21828 int temp3 ;
21829 int res3 = SWIG_TMPOBJ ;
21830 int temp4 ;
21831 int res4 = SWIG_TMPOBJ ;
21832 int temp5 ;
21833 int res5 = SWIG_TMPOBJ ;
21834 void *argp6 = 0 ;
21835 int res6 = 0 ;
21836 PyObject * obj0 = 0 ;
21837 PyObject * obj1 = 0 ;
21838 PyObject * obj2 = 0 ;
21839 char * kwnames[] = {
21840 (char *) "self",(char *) "text",(char *) "font", NULL
21841 };
21842
21843 arg3 = &temp3;
21844 arg4 = &temp4;
21845 arg5 = &temp5;
21846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21850 }
21851 arg1 = reinterpret_cast< wxDC * >(argp1);
21852 {
21853 arg2 = wxString_in_helper(obj1);
21854 if (arg2 == NULL) SWIG_fail;
21855 temp2 = true;
21856 }
21857 if (obj2) {
21858 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21859 if (!SWIG_IsOK(res6)) {
21860 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21861 }
554f62e9
RD
21862 arg6 = reinterpret_cast< wxFont * >(argp6);
21863 }
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 resultobj = SWIG_Py_Void();
21871 if (SWIG_IsTmpObj(res3)) {
21872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21873 } else {
21874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21876 }
21877 if (SWIG_IsTmpObj(res4)) {
21878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21879 } else {
21880 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21882 }
21883 if (SWIG_IsTmpObj(res5)) {
21884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21885 } else {
21886 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21888 }
21889 {
21890 if (temp2)
21891 delete arg2;
21892 }
21893 return resultobj;
21894fail:
21895 {
21896 if (temp2)
21897 delete arg2;
21898 }
21899 return NULL;
21900}
21901
21902
21903SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj = 0;
21905 wxDC *arg1 = (wxDC *) 0 ;
21906 wxString *arg2 = 0 ;
21907 wxArrayInt result;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 bool temp2 = false ;
21911 PyObject * obj0 = 0 ;
21912 PyObject * obj1 = 0 ;
21913 char * kwnames[] = {
21914 (char *) "self",(char *) "text", NULL
21915 };
21916
21917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21919 if (!SWIG_IsOK(res1)) {
21920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21921 }
21922 arg1 = reinterpret_cast< wxDC * >(argp1);
21923 {
21924 arg2 = wxString_in_helper(obj1);
21925 if (arg2 == NULL) SWIG_fail;
21926 temp2 = true;
21927 }
21928 {
21929 PyThreadState* __tstate = wxPyBeginAllowThreads();
21930 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
b39fe951 21935 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21936 }
21937 {
21938 if (temp2)
21939 delete arg2;
21940 }
21941 return resultobj;
21942fail:
21943 {
21944 if (temp2)
21945 delete arg2;
21946 }
21947 return NULL;
21948}
21949
21950
21951SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21952 PyObject *resultobj = 0;
21953 wxDC *arg1 = (wxDC *) 0 ;
21954 wxSize result;
21955 void *argp1 = 0 ;
21956 int res1 = 0 ;
21957 PyObject *swig_obj[1] ;
21958
21959 if (!args) SWIG_fail;
21960 swig_obj[0] = args;
21961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21962 if (!SWIG_IsOK(res1)) {
21963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21964 }
21965 arg1 = reinterpret_cast< wxDC * >(argp1);
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 result = (arg1)->GetSize();
21969 wxPyEndAllowThreads(__tstate);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21973 return resultobj;
21974fail:
21975 return NULL;
21976}
21977
21978
21979SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21980 PyObject *resultobj = 0;
21981 wxDC *arg1 = (wxDC *) 0 ;
21982 int *arg2 = (int *) 0 ;
21983 int *arg3 = (int *) 0 ;
21984 void *argp1 = 0 ;
21985 int res1 = 0 ;
21986 int temp2 ;
21987 int res2 = SWIG_TMPOBJ ;
21988 int temp3 ;
21989 int res3 = SWIG_TMPOBJ ;
21990 PyObject *swig_obj[1] ;
21991
21992 arg2 = &temp2;
21993 arg3 = &temp3;
21994 if (!args) SWIG_fail;
21995 swig_obj[0] = args;
21996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21997 if (!SWIG_IsOK(res1)) {
21998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21999 }
22000 arg1 = reinterpret_cast< wxDC * >(argp1);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 (arg1)->GetSize(arg2,arg3);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_Py_Void();
22008 if (SWIG_IsTmpObj(res2)) {
22009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22010 } else {
22011 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22013 }
22014 if (SWIG_IsTmpObj(res3)) {
22015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22016 } else {
22017 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22019 }
22020 return resultobj;
22021fail:
22022 return NULL;
22023}
22024
22025
22026SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22027 PyObject *resultobj = 0;
22028 wxDC *arg1 = (wxDC *) 0 ;
22029 wxSize result;
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 PyObject *swig_obj[1] ;
22033
22034 if (!args) SWIG_fail;
22035 swig_obj[0] = args;
22036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22037 if (!SWIG_IsOK(res1)) {
22038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22039 }
22040 arg1 = reinterpret_cast< wxDC * >(argp1);
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 result = ((wxDC const *)arg1)->GetSizeMM();
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22048 return resultobj;
22049fail:
22050 return NULL;
22051}
22052
22053
22054SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22055 PyObject *resultobj = 0;
22056 wxDC *arg1 = (wxDC *) 0 ;
22057 int *arg2 = (int *) 0 ;
22058 int *arg3 = (int *) 0 ;
22059 void *argp1 = 0 ;
22060 int res1 = 0 ;
22061 int temp2 ;
22062 int res2 = SWIG_TMPOBJ ;
22063 int temp3 ;
22064 int res3 = SWIG_TMPOBJ ;
22065 PyObject *swig_obj[1] ;
22066
22067 arg2 = &temp2;
22068 arg3 = &temp3;
22069 if (!args) SWIG_fail;
22070 swig_obj[0] = args;
22071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22072 if (!SWIG_IsOK(res1)) {
22073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22074 }
22075 arg1 = reinterpret_cast< wxDC * >(argp1);
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 resultobj = SWIG_Py_Void();
22083 if (SWIG_IsTmpObj(res2)) {
22084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22085 } else {
22086 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22088 }
22089 if (SWIG_IsTmpObj(res3)) {
22090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22091 } else {
22092 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22094 }
22095 return resultobj;
22096fail:
22097 return NULL;
22098}
22099
22100
22101SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22102 PyObject *resultobj = 0;
22103 wxDC *arg1 = (wxDC *) 0 ;
22104 int arg2 ;
22105 int result;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 int val2 ;
22109 int ecode2 = 0 ;
22110 PyObject * obj0 = 0 ;
22111 PyObject * obj1 = 0 ;
22112 char * kwnames[] = {
22113 (char *) "self",(char *) "x", NULL
22114 };
22115
22116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22118 if (!SWIG_IsOK(res1)) {
22119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22120 }
22121 arg1 = reinterpret_cast< wxDC * >(argp1);
22122 ecode2 = SWIG_AsVal_int(obj1, &val2);
22123 if (!SWIG_IsOK(ecode2)) {
22124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22125 }
22126 arg2 = static_cast< int >(val2);
22127 {
22128 PyThreadState* __tstate = wxPyBeginAllowThreads();
22129 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 resultobj = SWIG_From_int(static_cast< int >(result));
22134 return resultobj;
22135fail:
22136 return NULL;
22137}
22138
22139
22140SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22141 PyObject *resultobj = 0;
22142 wxDC *arg1 = (wxDC *) 0 ;
22143 int arg2 ;
22144 int result;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 int val2 ;
22148 int ecode2 = 0 ;
22149 PyObject * obj0 = 0 ;
22150 PyObject * obj1 = 0 ;
22151 char * kwnames[] = {
22152 (char *) "self",(char *) "y", NULL
22153 };
22154
22155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22157 if (!SWIG_IsOK(res1)) {
22158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22159 }
22160 arg1 = reinterpret_cast< wxDC * >(argp1);
22161 ecode2 = SWIG_AsVal_int(obj1, &val2);
22162 if (!SWIG_IsOK(ecode2)) {
22163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22164 }
22165 arg2 = static_cast< int >(val2);
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
22168 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 resultobj = SWIG_From_int(static_cast< int >(result));
22173 return resultobj;
22174fail:
22175 return NULL;
22176}
22177
22178
22179SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22180 PyObject *resultobj = 0;
22181 wxDC *arg1 = (wxDC *) 0 ;
22182 int arg2 ;
22183 int result;
22184 void *argp1 = 0 ;
22185 int res1 = 0 ;
22186 int val2 ;
22187 int ecode2 = 0 ;
22188 PyObject * obj0 = 0 ;
22189 PyObject * obj1 = 0 ;
22190 char * kwnames[] = {
22191 (char *) "self",(char *) "x", NULL
22192 };
22193
22194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22196 if (!SWIG_IsOK(res1)) {
22197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22198 }
22199 arg1 = reinterpret_cast< wxDC * >(argp1);
22200 ecode2 = SWIG_AsVal_int(obj1, &val2);
22201 if (!SWIG_IsOK(ecode2)) {
22202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22203 }
22204 arg2 = static_cast< int >(val2);
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
22211 resultobj = SWIG_From_int(static_cast< int >(result));
22212 return resultobj;
22213fail:
22214 return NULL;
22215}
22216
22217
22218SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 int arg2 ;
22222 int result;
22223 void *argp1 = 0 ;
22224 int res1 = 0 ;
22225 int val2 ;
22226 int ecode2 = 0 ;
22227 PyObject * obj0 = 0 ;
22228 PyObject * obj1 = 0 ;
22229 char * kwnames[] = {
22230 (char *) "self",(char *) "y", NULL
22231 };
22232
22233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22235 if (!SWIG_IsOK(res1)) {
22236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22237 }
22238 arg1 = reinterpret_cast< wxDC * >(argp1);
22239 ecode2 = SWIG_AsVal_int(obj1, &val2);
22240 if (!SWIG_IsOK(ecode2)) {
22241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22242 }
22243 arg2 = static_cast< int >(val2);
22244 {
22245 PyThreadState* __tstate = wxPyBeginAllowThreads();
22246 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 resultobj = SWIG_From_int(static_cast< int >(result));
22251 return resultobj;
22252fail:
22253 return NULL;
22254}
22255
22256
22257SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22258 PyObject *resultobj = 0;
22259 wxDC *arg1 = (wxDC *) 0 ;
22260 int arg2 ;
22261 int result;
22262 void *argp1 = 0 ;
22263 int res1 = 0 ;
22264 int val2 ;
22265 int ecode2 = 0 ;
22266 PyObject * obj0 = 0 ;
22267 PyObject * obj1 = 0 ;
22268 char * kwnames[] = {
22269 (char *) "self",(char *) "x", NULL
22270 };
22271
22272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22274 if (!SWIG_IsOK(res1)) {
22275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22276 }
22277 arg1 = reinterpret_cast< wxDC * >(argp1);
22278 ecode2 = SWIG_AsVal_int(obj1, &val2);
22279 if (!SWIG_IsOK(ecode2)) {
22280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22281 }
22282 arg2 = static_cast< int >(val2);
22283 {
22284 PyThreadState* __tstate = wxPyBeginAllowThreads();
22285 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22286 wxPyEndAllowThreads(__tstate);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 resultobj = SWIG_From_int(static_cast< int >(result));
22290 return resultobj;
22291fail:
22292 return NULL;
22293}
22294
22295
22296SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22297 PyObject *resultobj = 0;
22298 wxDC *arg1 = (wxDC *) 0 ;
22299 int arg2 ;
22300 int result;
22301 void *argp1 = 0 ;
22302 int res1 = 0 ;
22303 int val2 ;
22304 int ecode2 = 0 ;
22305 PyObject * obj0 = 0 ;
22306 PyObject * obj1 = 0 ;
22307 char * kwnames[] = {
22308 (char *) "self",(char *) "y", NULL
22309 };
22310
22311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22313 if (!SWIG_IsOK(res1)) {
22314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22315 }
22316 arg1 = reinterpret_cast< wxDC * >(argp1);
22317 ecode2 = SWIG_AsVal_int(obj1, &val2);
22318 if (!SWIG_IsOK(ecode2)) {
22319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22320 }
22321 arg2 = static_cast< int >(val2);
22322 {
22323 PyThreadState* __tstate = wxPyBeginAllowThreads();
22324 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 resultobj = SWIG_From_int(static_cast< int >(result));
22329 return resultobj;
22330fail:
22331 return NULL;
22332}
22333
22334
22335SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj = 0;
22337 wxDC *arg1 = (wxDC *) 0 ;
22338 int arg2 ;
22339 int result;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 int val2 ;
22343 int ecode2 = 0 ;
22344 PyObject * obj0 = 0 ;
22345 PyObject * obj1 = 0 ;
22346 char * kwnames[] = {
22347 (char *) "self",(char *) "x", NULL
22348 };
22349
22350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22352 if (!SWIG_IsOK(res1)) {
22353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22354 }
22355 arg1 = reinterpret_cast< wxDC * >(argp1);
22356 ecode2 = SWIG_AsVal_int(obj1, &val2);
22357 if (!SWIG_IsOK(ecode2)) {
22358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22359 }
22360 arg2 = static_cast< int >(val2);
22361 {
22362 PyThreadState* __tstate = wxPyBeginAllowThreads();
22363 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 resultobj = SWIG_From_int(static_cast< int >(result));
22368 return resultobj;
22369fail:
22370 return NULL;
22371}
22372
22373
22374SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22375 PyObject *resultobj = 0;
22376 wxDC *arg1 = (wxDC *) 0 ;
22377 int arg2 ;
22378 int result;
22379 void *argp1 = 0 ;
22380 int res1 = 0 ;
22381 int val2 ;
22382 int ecode2 = 0 ;
22383 PyObject * obj0 = 0 ;
22384 PyObject * obj1 = 0 ;
22385 char * kwnames[] = {
22386 (char *) "self",(char *) "y", NULL
22387 };
22388
22389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22391 if (!SWIG_IsOK(res1)) {
22392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22393 }
22394 arg1 = reinterpret_cast< wxDC * >(argp1);
22395 ecode2 = SWIG_AsVal_int(obj1, &val2);
22396 if (!SWIG_IsOK(ecode2)) {
22397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22398 }
22399 arg2 = static_cast< int >(val2);
22400 {
22401 PyThreadState* __tstate = wxPyBeginAllowThreads();
22402 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22403 wxPyEndAllowThreads(__tstate);
22404 if (PyErr_Occurred()) SWIG_fail;
22405 }
22406 resultobj = SWIG_From_int(static_cast< int >(result));
22407 return resultobj;
22408fail:
22409 return NULL;
22410}
22411
22412
22413SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22414 PyObject *resultobj = 0;
22415 wxDC *arg1 = (wxDC *) 0 ;
22416 bool result;
22417 void *argp1 = 0 ;
22418 int res1 = 0 ;
22419 PyObject *swig_obj[1] ;
22420
22421 if (!args) SWIG_fail;
22422 swig_obj[0] = args;
22423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22424 if (!SWIG_IsOK(res1)) {
22425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22426 }
22427 arg1 = reinterpret_cast< wxDC * >(argp1);
22428 {
22429 PyThreadState* __tstate = wxPyBeginAllowThreads();
22430 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22431 wxPyEndAllowThreads(__tstate);
22432 if (PyErr_Occurred()) SWIG_fail;
22433 }
22434 {
22435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22436 }
22437 return resultobj;
22438fail:
22439 return NULL;
22440}
22441
22442
22443SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22444 PyObject *resultobj = 0;
22445 wxDC *arg1 = (wxDC *) 0 ;
22446 bool result;
22447 void *argp1 = 0 ;
22448 int res1 = 0 ;
22449 PyObject *swig_obj[1] ;
22450
22451 if (!args) SWIG_fail;
22452 swig_obj[0] = args;
22453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22454 if (!SWIG_IsOK(res1)) {
22455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22456 }
22457 arg1 = reinterpret_cast< wxDC * >(argp1);
22458 {
22459 PyThreadState* __tstate = wxPyBeginAllowThreads();
22460 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22461 wxPyEndAllowThreads(__tstate);
22462 if (PyErr_Occurred()) SWIG_fail;
22463 }
22464 {
22465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22466 }
22467 return resultobj;
22468fail:
22469 return NULL;
22470}
22471
22472
22473SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22474 PyObject *resultobj = 0;
22475 wxDC *arg1 = (wxDC *) 0 ;
22476 int result;
22477 void *argp1 = 0 ;
22478 int res1 = 0 ;
22479 PyObject *swig_obj[1] ;
22480
22481 if (!args) SWIG_fail;
22482 swig_obj[0] = args;
22483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22486 }
22487 arg1 = reinterpret_cast< wxDC * >(argp1);
22488 {
22489 PyThreadState* __tstate = wxPyBeginAllowThreads();
22490 result = (int)((wxDC const *)arg1)->GetDepth();
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 resultobj = SWIG_From_int(static_cast< int >(result));
22495 return resultobj;
22496fail:
22497 return NULL;
22498}
22499
22500
22501SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22502 PyObject *resultobj = 0;
22503 wxDC *arg1 = (wxDC *) 0 ;
22504 wxSize result;
22505 void *argp1 = 0 ;
22506 int res1 = 0 ;
22507 PyObject *swig_obj[1] ;
22508
22509 if (!args) SWIG_fail;
22510 swig_obj[0] = args;
22511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22512 if (!SWIG_IsOK(res1)) {
22513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22514 }
22515 arg1 = reinterpret_cast< wxDC * >(argp1);
22516 {
22517 PyThreadState* __tstate = wxPyBeginAllowThreads();
22518 result = ((wxDC const *)arg1)->GetPPI();
22519 wxPyEndAllowThreads(__tstate);
22520 if (PyErr_Occurred()) SWIG_fail;
22521 }
22522 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22523 return resultobj;
22524fail:
22525 return NULL;
22526}
22527
22528
b39fe951 22529SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22530 PyObject *resultobj = 0;
22531 wxDC *arg1 = (wxDC *) 0 ;
22532 bool result;
22533 void *argp1 = 0 ;
22534 int res1 = 0 ;
22535 PyObject *swig_obj[1] ;
22536
22537 if (!args) SWIG_fail;
22538 swig_obj[0] = args;
22539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22540 if (!SWIG_IsOK(res1)) {
b39fe951 22541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22542 }
22543 arg1 = reinterpret_cast< wxDC * >(argp1);
22544 {
22545 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22546 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22547 wxPyEndAllowThreads(__tstate);
22548 if (PyErr_Occurred()) SWIG_fail;
22549 }
22550 {
22551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22552 }
22553 return resultobj;
22554fail:
22555 return NULL;
22556}
22557
22558
22559SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22560 PyObject *resultobj = 0;
22561 wxDC *arg1 = (wxDC *) 0 ;
22562 int result;
22563 void *argp1 = 0 ;
22564 int res1 = 0 ;
22565 PyObject *swig_obj[1] ;
22566
22567 if (!args) SWIG_fail;
22568 swig_obj[0] = args;
22569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22570 if (!SWIG_IsOK(res1)) {
22571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22572 }
22573 arg1 = reinterpret_cast< wxDC * >(argp1);
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_From_int(static_cast< int >(result));
22581 return resultobj;
22582fail:
22583 return NULL;
22584}
22585
22586
22587SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *resultobj = 0;
22589 wxDC *arg1 = (wxDC *) 0 ;
22590 wxBrush *result = 0 ;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 PyObject *swig_obj[1] ;
22594
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22600 }
22601 arg1 = reinterpret_cast< wxDC * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22604 {
554f62e9
RD
22605 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22606 result = (wxBrush *) &_result_ref;
093d3ff1 22607 }
554f62e9
RD
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 {
22612 wxBrush* resultptr = new wxBrush(*result);
22613 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22614 }
22615 return resultobj;
22616fail:
22617 return NULL;
22618}
22619
22620
22621SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22622 PyObject *resultobj = 0;
22623 wxDC *arg1 = (wxDC *) 0 ;
22624 wxBrush *result = 0 ;
22625 void *argp1 = 0 ;
22626 int res1 = 0 ;
22627 PyObject *swig_obj[1] ;
22628
22629 if (!args) SWIG_fail;
22630 swig_obj[0] = args;
22631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22632 if (!SWIG_IsOK(res1)) {
22633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22634 }
22635 arg1 = reinterpret_cast< wxDC * >(argp1);
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22638 {
554f62e9
RD
22639 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22640 result = (wxBrush *) &_result_ref;
093d3ff1 22641 }
554f62e9
RD
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 {
22646 wxBrush* resultptr = new wxBrush(*result);
22647 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22648 }
22649 return resultobj;
22650fail:
22651 return NULL;
22652}
22653
22654
22655SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22656 PyObject *resultobj = 0;
22657 wxDC *arg1 = (wxDC *) 0 ;
22658 wxFont *result = 0 ;
22659 void *argp1 = 0 ;
22660 int res1 = 0 ;
22661 PyObject *swig_obj[1] ;
22662
22663 if (!args) SWIG_fail;
22664 swig_obj[0] = args;
22665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22666 if (!SWIG_IsOK(res1)) {
22667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22668 }
22669 arg1 = reinterpret_cast< wxDC * >(argp1);
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22672 {
554f62e9
RD
22673 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22674 result = (wxFont *) &_result_ref;
093d3ff1 22675 }
554f62e9
RD
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 {
22680 wxFont* resultptr = new wxFont(*result);
22681 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22682 }
22683 return resultobj;
22684fail:
22685 return NULL;
22686}
22687
22688
22689SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22690 PyObject *resultobj = 0;
22691 wxDC *arg1 = (wxDC *) 0 ;
22692 wxPen *result = 0 ;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 PyObject *swig_obj[1] ;
22696
22697 if (!args) SWIG_fail;
22698 swig_obj[0] = args;
22699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22706 {
554f62e9
RD
22707 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22708 result = (wxPen *) &_result_ref;
093d3ff1 22709 }
554f62e9
RD
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 {
22714 wxPen* resultptr = new wxPen(*result);
22715 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22716 }
22717 return resultobj;
22718fail:
22719 return NULL;
22720}
22721
22722
22723SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22724 PyObject *resultobj = 0;
22725 wxDC *arg1 = (wxDC *) 0 ;
22726 wxColour *result = 0 ;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 PyObject *swig_obj[1] ;
22730
22731 if (!args) SWIG_fail;
22732 swig_obj[0] = args;
22733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22736 }
22737 arg1 = reinterpret_cast< wxDC * >(argp1);
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22740 {
554f62e9
RD
22741 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22742 result = (wxColour *) &_result_ref;
093d3ff1 22743 }
554f62e9
RD
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22748 return resultobj;
22749fail:
22750 return NULL;
22751}
22752
22753
22754SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22755 PyObject *resultobj = 0;
22756 wxDC *arg1 = (wxDC *) 0 ;
22757 wxColour *result = 0 ;
22758 void *argp1 = 0 ;
22759 int res1 = 0 ;
22760 PyObject *swig_obj[1] ;
22761
22762 if (!args) SWIG_fail;
22763 swig_obj[0] = args;
22764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22765 if (!SWIG_IsOK(res1)) {
22766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22767 }
22768 arg1 = reinterpret_cast< wxDC * >(argp1);
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22771 {
554f62e9
RD
22772 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22773 result = (wxColour *) &_result_ref;
093d3ff1 22774 }
554f62e9
RD
22775 wxPyEndAllowThreads(__tstate);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 }
22778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22779 return resultobj;
22780fail:
22781 return NULL;
22782}
22783
22784
22785SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22786 PyObject *resultobj = 0;
22787 wxDC *arg1 = (wxDC *) 0 ;
22788 wxColour *arg2 = 0 ;
22789 void *argp1 = 0 ;
22790 int res1 = 0 ;
22791 wxColour temp2 ;
22792 PyObject * obj0 = 0 ;
22793 PyObject * obj1 = 0 ;
22794 char * kwnames[] = {
22795 (char *) "self",(char *) "colour", NULL
22796 };
22797
22798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22802 }
22803 arg1 = reinterpret_cast< wxDC * >(argp1);
22804 {
22805 arg2 = &temp2;
22806 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22807 }
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 (arg1)->SetTextForeground((wxColour const &)*arg2);
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_Py_Void();
22815 return resultobj;
22816fail:
22817 return NULL;
22818}
22819
22820
22821SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22822 PyObject *resultobj = 0;
22823 wxDC *arg1 = (wxDC *) 0 ;
22824 wxColour *arg2 = 0 ;
22825 void *argp1 = 0 ;
22826 int res1 = 0 ;
22827 wxColour temp2 ;
22828 PyObject * obj0 = 0 ;
22829 PyObject * obj1 = 0 ;
22830 char * kwnames[] = {
22831 (char *) "self",(char *) "colour", NULL
22832 };
22833
22834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22838 }
22839 arg1 = reinterpret_cast< wxDC * >(argp1);
22840 {
22841 arg2 = &temp2;
22842 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22843 }
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 (arg1)->SetTextBackground((wxColour const &)*arg2);
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = SWIG_Py_Void();
22851 return resultobj;
22852fail:
22853 return NULL;
22854}
22855
22856
22857SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22858 PyObject *resultobj = 0;
22859 wxDC *arg1 = (wxDC *) 0 ;
22860 int result;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 PyObject *swig_obj[1] ;
22864
22865 if (!args) SWIG_fail;
22866 swig_obj[0] = args;
22867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22868 if (!SWIG_IsOK(res1)) {
22869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22870 }
22871 arg1 = reinterpret_cast< wxDC * >(argp1);
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 result = (int)((wxDC const *)arg1)->GetMapMode();
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 resultobj = SWIG_From_int(static_cast< int >(result));
22879 return resultobj;
22880fail:
22881 return NULL;
22882}
22883
22884
22885SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22886 PyObject *resultobj = 0;
22887 wxDC *arg1 = (wxDC *) 0 ;
22888 int arg2 ;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 int val2 ;
22892 int ecode2 = 0 ;
22893 PyObject * obj0 = 0 ;
22894 PyObject * obj1 = 0 ;
22895 char * kwnames[] = {
22896 (char *) "self",(char *) "mode", NULL
22897 };
22898
22899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22903 }
22904 arg1 = reinterpret_cast< wxDC * >(argp1);
22905 ecode2 = SWIG_AsVal_int(obj1, &val2);
22906 if (!SWIG_IsOK(ecode2)) {
22907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22908 }
22909 arg2 = static_cast< int >(val2);
22910 {
22911 PyThreadState* __tstate = wxPyBeginAllowThreads();
22912 (arg1)->SetMapMode(arg2);
22913 wxPyEndAllowThreads(__tstate);
22914 if (PyErr_Occurred()) SWIG_fail;
22915 }
22916 resultobj = SWIG_Py_Void();
22917 return resultobj;
22918fail:
22919 return NULL;
22920}
22921
22922
22923SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22924 PyObject *resultobj = 0;
22925 wxDC *arg1 = (wxDC *) 0 ;
22926 double *arg2 = (double *) 0 ;
22927 double *arg3 = (double *) 0 ;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 double temp2 ;
22931 int res2 = SWIG_TMPOBJ ;
22932 double temp3 ;
22933 int res3 = SWIG_TMPOBJ ;
22934 PyObject *swig_obj[1] ;
22935
22936 arg2 = &temp2;
22937 arg3 = &temp3;
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22943 }
22944 arg1 = reinterpret_cast< wxDC * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_Py_Void();
22952 if (SWIG_IsTmpObj(res2)) {
22953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22954 } else {
22955 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22957 }
22958 if (SWIG_IsTmpObj(res3)) {
22959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22960 } else {
22961 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22963 }
22964 return resultobj;
22965fail:
22966 return NULL;
22967}
22968
22969
22970SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22971 PyObject *resultobj = 0;
22972 wxDC *arg1 = (wxDC *) 0 ;
22973 double arg2 ;
22974 double arg3 ;
22975 void *argp1 = 0 ;
22976 int res1 = 0 ;
22977 double val2 ;
22978 int ecode2 = 0 ;
22979 double val3 ;
22980 int ecode3 = 0 ;
22981 PyObject * obj0 = 0 ;
22982 PyObject * obj1 = 0 ;
22983 PyObject * obj2 = 0 ;
22984 char * kwnames[] = {
22985 (char *) "self",(char *) "x",(char *) "y", NULL
22986 };
22987
22988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22990 if (!SWIG_IsOK(res1)) {
22991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22992 }
22993 arg1 = reinterpret_cast< wxDC * >(argp1);
22994 ecode2 = SWIG_AsVal_double(obj1, &val2);
22995 if (!SWIG_IsOK(ecode2)) {
22996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22997 }
22998 arg2 = static_cast< double >(val2);
22999 ecode3 = SWIG_AsVal_double(obj2, &val3);
23000 if (!SWIG_IsOK(ecode3)) {
23001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23002 }
23003 arg3 = static_cast< double >(val3);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 (arg1)->SetUserScale(arg2,arg3);
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_Py_Void();
23011 return resultobj;
23012fail:
23013 return NULL;
23014}
23015
23016
23017SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23018 PyObject *resultobj = 0;
23019 wxDC *arg1 = (wxDC *) 0 ;
23020 double *arg2 = (double *) 0 ;
23021 double *arg3 = (double *) 0 ;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 double temp2 ;
23025 int res2 = SWIG_TMPOBJ ;
23026 double temp3 ;
23027 int res3 = SWIG_TMPOBJ ;
23028 PyObject *swig_obj[1] ;
23029
23030 arg2 = &temp2;
23031 arg3 = &temp3;
23032 if (!args) SWIG_fail;
23033 swig_obj[0] = args;
23034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23035 if (!SWIG_IsOK(res1)) {
23036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23037 }
23038 arg1 = reinterpret_cast< wxDC * >(argp1);
23039 {
23040 PyThreadState* __tstate = wxPyBeginAllowThreads();
23041 (arg1)->GetLogicalScale(arg2,arg3);
23042 wxPyEndAllowThreads(__tstate);
23043 if (PyErr_Occurred()) SWIG_fail;
23044 }
23045 resultobj = SWIG_Py_Void();
23046 if (SWIG_IsTmpObj(res2)) {
23047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23048 } else {
23049 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23051 }
23052 if (SWIG_IsTmpObj(res3)) {
23053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23054 } else {
23055 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23056 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23057 }
23058 return resultobj;
23059fail:
23060 return NULL;
23061}
23062
23063
23064SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23065 PyObject *resultobj = 0;
23066 wxDC *arg1 = (wxDC *) 0 ;
23067 double arg2 ;
23068 double arg3 ;
23069 void *argp1 = 0 ;
23070 int res1 = 0 ;
23071 double val2 ;
23072 int ecode2 = 0 ;
23073 double val3 ;
23074 int ecode3 = 0 ;
23075 PyObject * obj0 = 0 ;
23076 PyObject * obj1 = 0 ;
23077 PyObject * obj2 = 0 ;
23078 char * kwnames[] = {
23079 (char *) "self",(char *) "x",(char *) "y", NULL
23080 };
23081
23082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23084 if (!SWIG_IsOK(res1)) {
23085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23086 }
23087 arg1 = reinterpret_cast< wxDC * >(argp1);
23088 ecode2 = SWIG_AsVal_double(obj1, &val2);
23089 if (!SWIG_IsOK(ecode2)) {
23090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23091 }
23092 arg2 = static_cast< double >(val2);
23093 ecode3 = SWIG_AsVal_double(obj2, &val3);
23094 if (!SWIG_IsOK(ecode3)) {
23095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23096 }
23097 arg3 = static_cast< double >(val3);
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 (arg1)->SetLogicalScale(arg2,arg3);
23101 wxPyEndAllowThreads(__tstate);
23102 if (PyErr_Occurred()) SWIG_fail;
23103 }
23104 resultobj = SWIG_Py_Void();
23105 return resultobj;
23106fail:
23107 return NULL;
23108}
23109
23110
23111SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23112 PyObject *resultobj = 0;
23113 wxDC *arg1 = (wxDC *) 0 ;
23114 wxPoint result;
23115 void *argp1 = 0 ;
23116 int res1 = 0 ;
23117 PyObject *swig_obj[1] ;
23118
23119 if (!args) SWIG_fail;
23120 swig_obj[0] = args;
23121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23122 if (!SWIG_IsOK(res1)) {
23123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23124 }
23125 arg1 = reinterpret_cast< wxDC * >(argp1);
23126 {
23127 PyThreadState* __tstate = wxPyBeginAllowThreads();
23128 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23133 return resultobj;
23134fail:
23135 return NULL;
23136}
23137
23138
23139SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23140 PyObject *resultobj = 0;
23141 wxDC *arg1 = (wxDC *) 0 ;
23142 int *arg2 = (int *) 0 ;
23143 int *arg3 = (int *) 0 ;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 int temp2 ;
23147 int res2 = SWIG_TMPOBJ ;
23148 int temp3 ;
23149 int res3 = SWIG_TMPOBJ ;
23150 PyObject *swig_obj[1] ;
23151
23152 arg2 = &temp2;
23153 arg3 = &temp3;
23154 if (!args) SWIG_fail;
23155 swig_obj[0] = args;
23156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23157 if (!SWIG_IsOK(res1)) {
23158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23159 }
23160 arg1 = reinterpret_cast< wxDC * >(argp1);
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 resultobj = SWIG_Py_Void();
23168 if (SWIG_IsTmpObj(res2)) {
23169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23170 } else {
23171 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23173 }
23174 if (SWIG_IsTmpObj(res3)) {
23175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23176 } else {
23177 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23179 }
23180 return resultobj;
23181fail:
23182 return NULL;
23183}
23184
23185
23186SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23187 PyObject *resultobj = 0;
23188 wxDC *arg1 = (wxDC *) 0 ;
23189 int arg2 ;
23190 int arg3 ;
23191 void *argp1 = 0 ;
23192 int res1 = 0 ;
23193 int val2 ;
23194 int ecode2 = 0 ;
23195 int val3 ;
23196 int ecode3 = 0 ;
23197 PyObject * obj0 = 0 ;
23198 PyObject * obj1 = 0 ;
23199 PyObject * obj2 = 0 ;
23200 char * kwnames[] = {
23201 (char *) "self",(char *) "x",(char *) "y", NULL
23202 };
23203
23204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23206 if (!SWIG_IsOK(res1)) {
23207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23208 }
23209 arg1 = reinterpret_cast< wxDC * >(argp1);
23210 ecode2 = SWIG_AsVal_int(obj1, &val2);
23211 if (!SWIG_IsOK(ecode2)) {
23212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23213 }
23214 arg2 = static_cast< int >(val2);
23215 ecode3 = SWIG_AsVal_int(obj2, &val3);
23216 if (!SWIG_IsOK(ecode3)) {
23217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23218 }
23219 arg3 = static_cast< int >(val3);
23220 {
23221 PyThreadState* __tstate = wxPyBeginAllowThreads();
23222 (arg1)->SetLogicalOrigin(arg2,arg3);
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 resultobj = SWIG_Py_Void();
23227 return resultobj;
23228fail:
23229 return NULL;
23230}
23231
23232
23233SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23234 PyObject *resultobj = 0;
23235 wxDC *arg1 = (wxDC *) 0 ;
23236 wxPoint *arg2 = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 wxPoint temp2 ;
23240 PyObject * obj0 = 0 ;
23241 PyObject * obj1 = 0 ;
23242 char * kwnames[] = {
23243 (char *) "self",(char *) "point", NULL
23244 };
23245
23246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23250 }
23251 arg1 = reinterpret_cast< wxDC * >(argp1);
23252 {
23253 arg2 = &temp2;
23254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23255 }
23256 {
23257 PyThreadState* __tstate = wxPyBeginAllowThreads();
23258 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23259 wxPyEndAllowThreads(__tstate);
23260 if (PyErr_Occurred()) SWIG_fail;
23261 }
23262 resultobj = SWIG_Py_Void();
23263 return resultobj;
23264fail:
23265 return NULL;
23266}
23267
23268
23269SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23270 PyObject *resultobj = 0;
23271 wxDC *arg1 = (wxDC *) 0 ;
23272 wxPoint result;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 PyObject *swig_obj[1] ;
23276
23277 if (!args) SWIG_fail;
23278 swig_obj[0] = args;
23279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23280 if (!SWIG_IsOK(res1)) {
23281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23282 }
23283 arg1 = reinterpret_cast< wxDC * >(argp1);
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23291 return resultobj;
23292fail:
23293 return NULL;
23294}
23295
23296
23297SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23298 PyObject *resultobj = 0;
23299 wxDC *arg1 = (wxDC *) 0 ;
23300 int *arg2 = (int *) 0 ;
23301 int *arg3 = (int *) 0 ;
23302 void *argp1 = 0 ;
23303 int res1 = 0 ;
23304 int temp2 ;
23305 int res2 = SWIG_TMPOBJ ;
23306 int temp3 ;
23307 int res3 = SWIG_TMPOBJ ;
23308 PyObject *swig_obj[1] ;
23309
23310 arg2 = &temp2;
23311 arg3 = &temp3;
23312 if (!args) SWIG_fail;
23313 swig_obj[0] = args;
23314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23317 }
23318 arg1 = reinterpret_cast< wxDC * >(argp1);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_Py_Void();
23326 if (SWIG_IsTmpObj(res2)) {
23327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23328 } else {
23329 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23331 }
23332 if (SWIG_IsTmpObj(res3)) {
23333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23334 } else {
23335 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23337 }
23338 return resultobj;
23339fail:
23340 return NULL;
23341}
23342
23343
23344SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23345 PyObject *resultobj = 0;
23346 wxDC *arg1 = (wxDC *) 0 ;
23347 int arg2 ;
23348 int arg3 ;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 int val2 ;
23352 int ecode2 = 0 ;
23353 int val3 ;
23354 int ecode3 = 0 ;
23355 PyObject * obj0 = 0 ;
23356 PyObject * obj1 = 0 ;
23357 PyObject * obj2 = 0 ;
23358 char * kwnames[] = {
23359 (char *) "self",(char *) "x",(char *) "y", NULL
23360 };
23361
23362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23366 }
23367 arg1 = reinterpret_cast< wxDC * >(argp1);
23368 ecode2 = SWIG_AsVal_int(obj1, &val2);
23369 if (!SWIG_IsOK(ecode2)) {
23370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23371 }
23372 arg2 = static_cast< int >(val2);
23373 ecode3 = SWIG_AsVal_int(obj2, &val3);
23374 if (!SWIG_IsOK(ecode3)) {
23375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23376 }
23377 arg3 = static_cast< int >(val3);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 (arg1)->SetDeviceOrigin(arg2,arg3);
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 resultobj = SWIG_Py_Void();
23385 return resultobj;
23386fail:
23387 return NULL;
23388}
23389
23390
23391SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj = 0;
23393 wxDC *arg1 = (wxDC *) 0 ;
23394 wxPoint *arg2 = 0 ;
23395 void *argp1 = 0 ;
23396 int res1 = 0 ;
23397 wxPoint temp2 ;
23398 PyObject * obj0 = 0 ;
23399 PyObject * obj1 = 0 ;
23400 char * kwnames[] = {
23401 (char *) "self",(char *) "point", NULL
23402 };
23403
23404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23406 if (!SWIG_IsOK(res1)) {
23407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23408 }
23409 arg1 = reinterpret_cast< wxDC * >(argp1);
23410 {
23411 arg2 = &temp2;
23412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23413 }
23414 {
23415 PyThreadState* __tstate = wxPyBeginAllowThreads();
23416 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23417 wxPyEndAllowThreads(__tstate);
23418 if (PyErr_Occurred()) SWIG_fail;
23419 }
23420 resultobj = SWIG_Py_Void();
23421 return resultobj;
23422fail:
23423 return NULL;
23424}
23425
23426
23427SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23428 PyObject *resultobj = 0;
23429 wxDC *arg1 = (wxDC *) 0 ;
23430 bool arg2 ;
23431 bool arg3 ;
23432 void *argp1 = 0 ;
23433 int res1 = 0 ;
23434 bool val2 ;
23435 int ecode2 = 0 ;
23436 bool val3 ;
23437 int ecode3 = 0 ;
23438 PyObject * obj0 = 0 ;
23439 PyObject * obj1 = 0 ;
23440 PyObject * obj2 = 0 ;
23441 char * kwnames[] = {
23442 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23443 };
23444
23445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23447 if (!SWIG_IsOK(res1)) {
23448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23449 }
23450 arg1 = reinterpret_cast< wxDC * >(argp1);
23451 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23452 if (!SWIG_IsOK(ecode2)) {
23453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23454 }
23455 arg2 = static_cast< bool >(val2);
23456 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23457 if (!SWIG_IsOK(ecode3)) {
23458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23459 }
23460 arg3 = static_cast< bool >(val3);
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 (arg1)->SetAxisOrientation(arg2,arg3);
23464 wxPyEndAllowThreads(__tstate);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 resultobj = SWIG_Py_Void();
23468 return resultobj;
23469fail:
23470 return NULL;
23471}
23472
23473
23474SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23475 PyObject *resultobj = 0;
23476 wxDC *arg1 = (wxDC *) 0 ;
23477 int result;
23478 void *argp1 = 0 ;
23479 int res1 = 0 ;
23480 PyObject *swig_obj[1] ;
23481
23482 if (!args) SWIG_fail;
23483 swig_obj[0] = args;
23484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23485 if (!SWIG_IsOK(res1)) {
23486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23487 }
23488 arg1 = reinterpret_cast< wxDC * >(argp1);
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23492 wxPyEndAllowThreads(__tstate);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 }
23495 resultobj = SWIG_From_int(static_cast< int >(result));
23496 return resultobj;
23497fail:
23498 return NULL;
23499}
23500
23501
23502SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxDC *arg1 = (wxDC *) 0 ;
23505 int arg2 ;
23506 void *argp1 = 0 ;
23507 int res1 = 0 ;
23508 int val2 ;
23509 int ecode2 = 0 ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 char * kwnames[] = {
23513 (char *) "self",(char *) "function", NULL
23514 };
23515
23516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23520 }
23521 arg1 = reinterpret_cast< wxDC * >(argp1);
23522 ecode2 = SWIG_AsVal_int(obj1, &val2);
23523 if (!SWIG_IsOK(ecode2)) {
23524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23525 }
23526 arg2 = static_cast< int >(val2);
23527 {
23528 PyThreadState* __tstate = wxPyBeginAllowThreads();
23529 (arg1)->SetLogicalFunction(arg2);
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 resultobj = SWIG_Py_Void();
23534 return resultobj;
23535fail:
23536 return NULL;
23537}
23538
23539
23540SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23541 PyObject *resultobj = 0;
23542 wxDC *arg1 = (wxDC *) 0 ;
23543 void *argp1 = 0 ;
23544 int res1 = 0 ;
23545 PyObject *swig_obj[1] ;
23546
23547 if (!args) SWIG_fail;
23548 swig_obj[0] = args;
23549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23550 if (!SWIG_IsOK(res1)) {
23551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23552 }
23553 arg1 = reinterpret_cast< wxDC * >(argp1);
23554 {
23555 PyThreadState* __tstate = wxPyBeginAllowThreads();
23556 (arg1)->ComputeScaleAndOrigin();
23557 wxPyEndAllowThreads(__tstate);
23558 if (PyErr_Occurred()) SWIG_fail;
23559 }
23560 resultobj = SWIG_Py_Void();
23561 return resultobj;
23562fail:
23563 return NULL;
23564}
23565
23566
23567SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23568 PyObject *resultobj = 0;
23569 wxDC *arg1 = (wxDC *) 0 ;
23570 int arg2 ;
23571 int arg3 ;
23572 void *argp1 = 0 ;
23573 int res1 = 0 ;
23574 int val2 ;
23575 int ecode2 = 0 ;
23576 int val3 ;
23577 int ecode3 = 0 ;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 PyObject * obj2 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "self",(char *) "x",(char *) "y", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23589 }
23590 arg1 = reinterpret_cast< wxDC * >(argp1);
23591 ecode2 = SWIG_AsVal_int(obj1, &val2);
23592 if (!SWIG_IsOK(ecode2)) {
23593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23594 }
23595 arg2 = static_cast< int >(val2);
23596 ecode3 = SWIG_AsVal_int(obj2, &val3);
23597 if (!SWIG_IsOK(ecode3)) {
23598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23599 }
23600 arg3 = static_cast< int >(val3);
23601 {
23602 PyThreadState* __tstate = wxPyBeginAllowThreads();
23603 (arg1)->CalcBoundingBox(arg2,arg3);
23604 wxPyEndAllowThreads(__tstate);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 }
23607 resultobj = SWIG_Py_Void();
23608 return resultobj;
23609fail:
23610 return NULL;
23611}
23612
23613
23614SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23615 PyObject *resultobj = 0;
23616 wxDC *arg1 = (wxDC *) 0 ;
23617 wxPoint *arg2 = 0 ;
23618 void *argp1 = 0 ;
23619 int res1 = 0 ;
23620 wxPoint temp2 ;
23621 PyObject * obj0 = 0 ;
23622 PyObject * obj1 = 0 ;
23623 char * kwnames[] = {
23624 (char *) "self",(char *) "point", NULL
23625 };
23626
23627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23629 if (!SWIG_IsOK(res1)) {
23630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23631 }
23632 arg1 = reinterpret_cast< wxDC * >(argp1);
23633 {
23634 arg2 = &temp2;
23635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23636 }
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 resultobj = SWIG_Py_Void();
23644 return resultobj;
23645fail:
23646 return NULL;
23647}
23648
23649
23650SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23651 PyObject *resultobj = 0;
23652 wxDC *arg1 = (wxDC *) 0 ;
23653 void *argp1 = 0 ;
23654 int res1 = 0 ;
23655 PyObject *swig_obj[1] ;
23656
23657 if (!args) SWIG_fail;
23658 swig_obj[0] = args;
23659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23662 }
23663 arg1 = reinterpret_cast< wxDC * >(argp1);
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 (arg1)->ResetBoundingBox();
23667 wxPyEndAllowThreads(__tstate);
23668 if (PyErr_Occurred()) SWIG_fail;
23669 }
23670 resultobj = SWIG_Py_Void();
23671 return resultobj;
23672fail:
23673 return NULL;
23674}
23675
23676
23677SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23678 PyObject *resultobj = 0;
23679 wxDC *arg1 = (wxDC *) 0 ;
23680 int result;
23681 void *argp1 = 0 ;
23682 int res1 = 0 ;
23683 PyObject *swig_obj[1] ;
23684
23685 if (!args) SWIG_fail;
23686 swig_obj[0] = args;
23687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23688 if (!SWIG_IsOK(res1)) {
23689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23690 }
23691 arg1 = reinterpret_cast< wxDC * >(argp1);
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = (int)((wxDC const *)arg1)->MinX();
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 resultobj = SWIG_From_int(static_cast< int >(result));
23699 return resultobj;
23700fail:
23701 return NULL;
23702}
23703
23704
23705SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23706 PyObject *resultobj = 0;
23707 wxDC *arg1 = (wxDC *) 0 ;
23708 int result;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 PyObject *swig_obj[1] ;
23712
23713 if (!args) SWIG_fail;
23714 swig_obj[0] = args;
23715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23716 if (!SWIG_IsOK(res1)) {
23717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23718 }
23719 arg1 = reinterpret_cast< wxDC * >(argp1);
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (int)((wxDC const *)arg1)->MaxX();
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 resultobj = SWIG_From_int(static_cast< int >(result));
23727 return resultobj;
23728fail:
23729 return NULL;
23730}
23731
23732
23733SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23734 PyObject *resultobj = 0;
23735 wxDC *arg1 = (wxDC *) 0 ;
23736 int result;
23737 void *argp1 = 0 ;
23738 int res1 = 0 ;
23739 PyObject *swig_obj[1] ;
23740
23741 if (!args) SWIG_fail;
23742 swig_obj[0] = args;
23743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23744 if (!SWIG_IsOK(res1)) {
23745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23746 }
23747 arg1 = reinterpret_cast< wxDC * >(argp1);
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = (int)((wxDC const *)arg1)->MinY();
23751 wxPyEndAllowThreads(__tstate);
23752 if (PyErr_Occurred()) SWIG_fail;
23753 }
23754 resultobj = SWIG_From_int(static_cast< int >(result));
23755 return resultobj;
23756fail:
23757 return NULL;
23758}
23759
23760
23761SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23762 PyObject *resultobj = 0;
23763 wxDC *arg1 = (wxDC *) 0 ;
23764 int result;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 PyObject *swig_obj[1] ;
23768
23769 if (!args) SWIG_fail;
23770 swig_obj[0] = args;
23771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23772 if (!SWIG_IsOK(res1)) {
23773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23774 }
23775 arg1 = reinterpret_cast< wxDC * >(argp1);
23776 {
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 result = (int)((wxDC const *)arg1)->MaxY();
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_From_int(static_cast< int >(result));
23783 return resultobj;
23784fail:
23785 return NULL;
23786}
23787
23788
23789SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23790 PyObject *resultobj = 0;
23791 wxDC *arg1 = (wxDC *) 0 ;
23792 int *arg2 = (int *) 0 ;
23793 int *arg3 = (int *) 0 ;
23794 int *arg4 = (int *) 0 ;
23795 int *arg5 = (int *) 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 int temp2 ;
23799 int res2 = SWIG_TMPOBJ ;
23800 int temp3 ;
23801 int res3 = SWIG_TMPOBJ ;
23802 int temp4 ;
23803 int res4 = SWIG_TMPOBJ ;
23804 int temp5 ;
23805 int res5 = SWIG_TMPOBJ ;
23806 PyObject *swig_obj[1] ;
23807
23808 arg2 = &temp2;
23809 arg3 = &temp3;
23810 arg4 = &temp4;
23811 arg5 = &temp5;
23812 if (!args) SWIG_fail;
23813 swig_obj[0] = args;
23814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23815 if (!SWIG_IsOK(res1)) {
23816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23817 }
23818 arg1 = reinterpret_cast< wxDC * >(argp1);
23819 {
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
23821 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 resultobj = SWIG_Py_Void();
23826 if (SWIG_IsTmpObj(res2)) {
23827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23828 } else {
23829 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23831 }
23832 if (SWIG_IsTmpObj(res3)) {
23833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23834 } else {
23835 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23837 }
23838 if (SWIG_IsTmpObj(res4)) {
23839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23840 } else {
23841 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23843 }
23844 if (SWIG_IsTmpObj(res5)) {
23845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23846 } else {
23847 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23849 }
23850 return resultobj;
23851fail:
23852 return NULL;
23853}
23854
23855
b39fe951
RD
23856SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23857 PyObject *resultobj = 0;
23858 wxDC *arg1 = (wxDC *) 0 ;
23859 wxLayoutDirection result;
23860 void *argp1 = 0 ;
23861 int res1 = 0 ;
23862 PyObject *swig_obj[1] ;
23863
23864 if (!args) SWIG_fail;
23865 swig_obj[0] = args;
23866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23867 if (!SWIG_IsOK(res1)) {
23868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23869 }
23870 arg1 = reinterpret_cast< wxDC * >(argp1);
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 resultobj = SWIG_From_int(static_cast< int >(result));
23878 return resultobj;
23879fail:
23880 return NULL;
23881}
23882
23883
23884SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj = 0;
23886 wxDC *arg1 = (wxDC *) 0 ;
23887 wxLayoutDirection arg2 ;
23888 void *argp1 = 0 ;
23889 int res1 = 0 ;
23890 int val2 ;
23891 int ecode2 = 0 ;
23892 PyObject * obj0 = 0 ;
23893 PyObject * obj1 = 0 ;
23894 char * kwnames[] = {
23895 (char *) "self",(char *) "dir", NULL
23896 };
23897
23898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23900 if (!SWIG_IsOK(res1)) {
23901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23902 }
23903 arg1 = reinterpret_cast< wxDC * >(argp1);
23904 ecode2 = SWIG_AsVal_int(obj1, &val2);
23905 if (!SWIG_IsOK(ecode2)) {
23906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23907 }
23908 arg2 = static_cast< wxLayoutDirection >(val2);
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 (arg1)->SetLayoutDirection(arg2);
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 resultobj = SWIG_Py_Void();
23916 return resultobj;
23917fail:
23918 return NULL;
23919}
23920
23921
554f62e9
RD
23922SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23923 PyObject *resultobj = 0;
23924 wxDC *arg1 = (wxDC *) 0 ;
23925 long result;
23926 void *argp1 = 0 ;
23927 int res1 = 0 ;
23928 PyObject *swig_obj[1] ;
23929
23930 if (!args) SWIG_fail;
23931 swig_obj[0] = args;
23932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23933 if (!SWIG_IsOK(res1)) {
23934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23935 }
23936 arg1 = reinterpret_cast< wxDC * >(argp1);
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 result = (long)(arg1)->GetHDC();
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 resultobj = SWIG_From_long(static_cast< long >(result));
23944 return resultobj;
23945fail:
23946 return NULL;
23947}
23948
23949
23950SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23951 PyObject *resultobj = 0;
23952 wxDC *arg1 = (wxDC *) 0 ;
23953 PyObject *arg2 = (PyObject *) 0 ;
23954 PyObject *arg3 = (PyObject *) 0 ;
23955 PyObject *arg4 = (PyObject *) 0 ;
23956 PyObject *result = 0 ;
23957 void *argp1 = 0 ;
23958 int res1 = 0 ;
23959 PyObject * obj0 = 0 ;
23960 PyObject * obj1 = 0 ;
23961 PyObject * obj2 = 0 ;
23962 PyObject * obj3 = 0 ;
23963 char * kwnames[] = {
23964 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23965 };
23966
23967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23969 if (!SWIG_IsOK(res1)) {
23970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23971 }
23972 arg1 = reinterpret_cast< wxDC * >(argp1);
23973 arg2 = obj1;
23974 arg3 = obj2;
23975 arg4 = obj3;
23976 {
23977 PyThreadState* __tstate = wxPyBeginAllowThreads();
23978 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23979 wxPyEndAllowThreads(__tstate);
23980 if (PyErr_Occurred()) SWIG_fail;
23981 }
23982 resultobj = result;
23983 return resultobj;
23984fail:
23985 return NULL;
23986}
23987
23988
23989SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23990 PyObject *resultobj = 0;
23991 wxDC *arg1 = (wxDC *) 0 ;
23992 PyObject *arg2 = (PyObject *) 0 ;
23993 PyObject *arg3 = (PyObject *) 0 ;
23994 PyObject *arg4 = (PyObject *) 0 ;
23995 PyObject *result = 0 ;
23996 void *argp1 = 0 ;
23997 int res1 = 0 ;
23998 PyObject * obj0 = 0 ;
23999 PyObject * obj1 = 0 ;
24000 PyObject * obj2 = 0 ;
24001 PyObject * obj3 = 0 ;
24002 char * kwnames[] = {
24003 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24004 };
24005
24006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24008 if (!SWIG_IsOK(res1)) {
24009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24010 }
24011 arg1 = reinterpret_cast< wxDC * >(argp1);
24012 arg2 = obj1;
24013 arg3 = obj2;
24014 arg4 = obj3;
24015 {
24016 PyThreadState* __tstate = wxPyBeginAllowThreads();
24017 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24018 wxPyEndAllowThreads(__tstate);
24019 if (PyErr_Occurred()) SWIG_fail;
24020 }
24021 resultobj = result;
24022 return resultobj;
24023fail:
24024 return NULL;
24025}
24026
24027
24028SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24029 PyObject *resultobj = 0;
24030 wxDC *arg1 = (wxDC *) 0 ;
24031 PyObject *arg2 = (PyObject *) 0 ;
24032 PyObject *arg3 = (PyObject *) 0 ;
24033 PyObject *arg4 = (PyObject *) 0 ;
24034 PyObject *result = 0 ;
24035 void *argp1 = 0 ;
24036 int res1 = 0 ;
24037 PyObject * obj0 = 0 ;
24038 PyObject * obj1 = 0 ;
24039 PyObject * obj2 = 0 ;
24040 PyObject * obj3 = 0 ;
24041 char * kwnames[] = {
24042 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24043 };
24044
24045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24049 }
24050 arg1 = reinterpret_cast< wxDC * >(argp1);
24051 arg2 = obj1;
24052 arg3 = obj2;
24053 arg4 = obj3;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = result;
24061 return resultobj;
24062fail:
24063 return NULL;
24064}
24065
24066
24067SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj = 0;
24069 wxDC *arg1 = (wxDC *) 0 ;
24070 PyObject *arg2 = (PyObject *) 0 ;
24071 PyObject *arg3 = (PyObject *) 0 ;
24072 PyObject *arg4 = (PyObject *) 0 ;
24073 PyObject *result = 0 ;
24074 void *argp1 = 0 ;
24075 int res1 = 0 ;
24076 PyObject * obj0 = 0 ;
24077 PyObject * obj1 = 0 ;
24078 PyObject * obj2 = 0 ;
24079 PyObject * obj3 = 0 ;
24080 char * kwnames[] = {
24081 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24082 };
24083
24084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24086 if (!SWIG_IsOK(res1)) {
24087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24088 }
24089 arg1 = reinterpret_cast< wxDC * >(argp1);
24090 arg2 = obj1;
24091 arg3 = obj2;
24092 arg4 = obj3;
24093 {
24094 PyThreadState* __tstate = wxPyBeginAllowThreads();
24095 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24096 wxPyEndAllowThreads(__tstate);
24097 if (PyErr_Occurred()) SWIG_fail;
24098 }
24099 resultobj = result;
24100 return resultobj;
24101fail:
24102 return NULL;
24103}
24104
24105
24106SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24107 PyObject *resultobj = 0;
24108 wxDC *arg1 = (wxDC *) 0 ;
24109 PyObject *arg2 = (PyObject *) 0 ;
24110 PyObject *arg3 = (PyObject *) 0 ;
24111 PyObject *arg4 = (PyObject *) 0 ;
24112 PyObject *result = 0 ;
24113 void *argp1 = 0 ;
24114 int res1 = 0 ;
24115 PyObject * obj0 = 0 ;
24116 PyObject * obj1 = 0 ;
24117 PyObject * obj2 = 0 ;
24118 PyObject * obj3 = 0 ;
24119 char * kwnames[] = {
24120 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24121 };
24122
24123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24125 if (!SWIG_IsOK(res1)) {
24126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24127 }
24128 arg1 = reinterpret_cast< wxDC * >(argp1);
24129 arg2 = obj1;
24130 arg3 = obj2;
24131 arg4 = obj3;
24132 {
24133 PyThreadState* __tstate = wxPyBeginAllowThreads();
24134 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24135 wxPyEndAllowThreads(__tstate);
24136 if (PyErr_Occurred()) SWIG_fail;
24137 }
24138 resultobj = result;
24139 return resultobj;
24140fail:
24141 return NULL;
24142}
24143
24144
24145SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24146 PyObject *resultobj = 0;
24147 wxDC *arg1 = (wxDC *) 0 ;
24148 PyObject *arg2 = (PyObject *) 0 ;
24149 PyObject *arg3 = (PyObject *) 0 ;
24150 PyObject *arg4 = (PyObject *) 0 ;
24151 PyObject *arg5 = (PyObject *) 0 ;
24152 PyObject *result = 0 ;
24153 void *argp1 = 0 ;
24154 int res1 = 0 ;
24155 PyObject * obj0 = 0 ;
24156 PyObject * obj1 = 0 ;
24157 PyObject * obj2 = 0 ;
24158 PyObject * obj3 = 0 ;
24159 PyObject * obj4 = 0 ;
24160 char * kwnames[] = {
24161 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24162 };
24163
24164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24166 if (!SWIG_IsOK(res1)) {
24167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24168 }
24169 arg1 = reinterpret_cast< wxDC * >(argp1);
24170 arg2 = obj1;
24171 arg3 = obj2;
24172 arg4 = obj3;
24173 arg5 = obj4;
24174 {
24175 PyThreadState* __tstate = wxPyBeginAllowThreads();
24176 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 resultobj = result;
24181 return resultobj;
24182fail:
24183 return NULL;
24184}
24185
24186
24187SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24188 PyObject *obj;
24189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24190 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24191 return SWIG_Py_Void();
24192}
24193
70d7cb34
RD
24194SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24195 PyObject *resultobj = 0;
24196 wxDC *arg1 = 0 ;
24197 wxColour *arg2 = 0 ;
24198 wxDCTextColourChanger *result = 0 ;
24199 void *argp1 = 0 ;
24200 int res1 = 0 ;
24201 wxColour temp2 ;
24202 PyObject * obj0 = 0 ;
24203 PyObject * obj1 = 0 ;
24204 char * kwnames[] = {
24205 (char *) "dc",(char *) "col", NULL
24206 };
24207
24208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24209 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24210 if (!SWIG_IsOK(res1)) {
24211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24212 }
24213 if (!argp1) {
24214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24215 }
24216 arg1 = reinterpret_cast< wxDC * >(argp1);
24217 {
24218 arg2 = &temp2;
24219 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24220 }
24221 {
24222 PyThreadState* __tstate = wxPyBeginAllowThreads();
24223 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24224 wxPyEndAllowThreads(__tstate);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 }
24227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24228 return resultobj;
24229fail:
24230 return NULL;
24231}
24232
24233
24234SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24235 PyObject *resultobj = 0;
24236 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 PyObject *swig_obj[1] ;
24240
24241 if (!args) SWIG_fail;
24242 swig_obj[0] = args;
24243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24246 }
24247 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 delete arg1;
24251
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 resultobj = SWIG_Py_Void();
24256 return resultobj;
24257fail:
24258 return NULL;
24259}
24260
24261
24262SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24263 PyObject *obj;
24264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24265 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24266 return SWIG_Py_Void();
24267}
24268
24269SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24270 return SWIG_Python_InitShadowInstance(args);
24271}
24272
24273SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24274 PyObject *resultobj = 0;
24275 wxDC *arg1 = 0 ;
24276 wxPen *arg2 = 0 ;
24277 wxDCPenChanger *result = 0 ;
24278 void *argp1 = 0 ;
24279 int res1 = 0 ;
24280 void *argp2 = 0 ;
24281 int res2 = 0 ;
24282 PyObject * obj0 = 0 ;
24283 PyObject * obj1 = 0 ;
24284 char * kwnames[] = {
24285 (char *) "dc",(char *) "pen", NULL
24286 };
24287
24288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24289 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24290 if (!SWIG_IsOK(res1)) {
24291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24292 }
24293 if (!argp1) {
24294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24295 }
24296 arg1 = reinterpret_cast< wxDC * >(argp1);
24297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24298 if (!SWIG_IsOK(res2)) {
24299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24300 }
24301 if (!argp2) {
24302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24303 }
24304 arg2 = reinterpret_cast< wxPen * >(argp2);
24305 {
24306 PyThreadState* __tstate = wxPyBeginAllowThreads();
24307 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24308 wxPyEndAllowThreads(__tstate);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 }
24311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24312 return resultobj;
24313fail:
24314 return NULL;
24315}
24316
24317
24318SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24319 PyObject *resultobj = 0;
24320 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 PyObject *swig_obj[1] ;
24324
24325 if (!args) SWIG_fail;
24326 swig_obj[0] = args;
24327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24330 }
24331 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 delete arg1;
24335
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_Py_Void();
24340 return resultobj;
24341fail:
24342 return NULL;
24343}
24344
24345
24346SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24347 PyObject *obj;
24348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24349 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24350 return SWIG_Py_Void();
24351}
24352
24353SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24354 return SWIG_Python_InitShadowInstance(args);
24355}
24356
24357SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24358 PyObject *resultobj = 0;
24359 wxDC *arg1 = 0 ;
24360 wxBrush *arg2 = 0 ;
24361 wxDCBrushChanger *result = 0 ;
24362 void *argp1 = 0 ;
24363 int res1 = 0 ;
24364 void *argp2 = 0 ;
24365 int res2 = 0 ;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368 char * kwnames[] = {
24369 (char *) "dc",(char *) "brush", NULL
24370 };
24371
24372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24373 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24374 if (!SWIG_IsOK(res1)) {
24375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24376 }
24377 if (!argp1) {
24378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24379 }
24380 arg1 = reinterpret_cast< wxDC * >(argp1);
24381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24382 if (!SWIG_IsOK(res2)) {
24383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24384 }
24385 if (!argp2) {
24386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24387 }
24388 arg2 = reinterpret_cast< wxBrush * >(argp2);
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24392 wxPyEndAllowThreads(__tstate);
24393 if (PyErr_Occurred()) SWIG_fail;
24394 }
24395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24396 return resultobj;
24397fail:
24398 return NULL;
24399}
24400
24401
24402SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24403 PyObject *resultobj = 0;
24404 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 PyObject *swig_obj[1] ;
24408
24409 if (!args) SWIG_fail;
24410 swig_obj[0] = args;
24411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24414 }
24415 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24416 {
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 delete arg1;
24419
24420 wxPyEndAllowThreads(__tstate);
24421 if (PyErr_Occurred()) SWIG_fail;
24422 }
24423 resultobj = SWIG_Py_Void();
24424 return resultobj;
24425fail:
24426 return NULL;
24427}
24428
24429
24430SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24431 PyObject *obj;
24432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24433 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24434 return SWIG_Py_Void();
24435}
24436
24437SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24438 return SWIG_Python_InitShadowInstance(args);
24439}
24440
24441SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24442 PyObject *resultobj = 0;
24443 wxDC *arg1 = 0 ;
24444 wxRegion *arg2 = 0 ;
24445 wxDCClipper *result = 0 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 void *argp2 = 0 ;
24449 int res2 = 0 ;
24450
24451 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24453 if (!SWIG_IsOK(res1)) {
24454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24455 }
24456 if (!argp1) {
24457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24458 }
24459 arg1 = reinterpret_cast< wxDC * >(argp1);
24460 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24461 if (!SWIG_IsOK(res2)) {
24462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24463 }
24464 if (!argp2) {
24465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24466 }
24467 arg2 = reinterpret_cast< wxRegion * >(argp2);
24468 {
24469 PyThreadState* __tstate = wxPyBeginAllowThreads();
24470 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24471 wxPyEndAllowThreads(__tstate);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 }
24474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24475 return resultobj;
24476fail:
24477 return NULL;
24478}
24479
24480
24481SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24482 PyObject *resultobj = 0;
24483 wxDC *arg1 = 0 ;
24484 wxRect *arg2 = 0 ;
24485 wxDCClipper *result = 0 ;
24486 void *argp1 = 0 ;
24487 int res1 = 0 ;
24488 wxRect temp2 ;
24489
24490 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24492 if (!SWIG_IsOK(res1)) {
24493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24494 }
24495 if (!argp1) {
24496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24497 }
24498 arg1 = reinterpret_cast< wxDC * >(argp1);
24499 {
24500 arg2 = &temp2;
24501 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24502 }
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24510 return resultobj;
24511fail:
24512 return NULL;
24513}
24514
24515
24516SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24517 PyObject *resultobj = 0;
24518 wxDC *arg1 = 0 ;
24519 int arg2 ;
24520 int arg3 ;
24521 int arg4 ;
24522 int arg5 ;
24523 wxDCClipper *result = 0 ;
24524 void *argp1 = 0 ;
24525 int res1 = 0 ;
24526 int val2 ;
24527 int ecode2 = 0 ;
24528 int val3 ;
24529 int ecode3 = 0 ;
24530 int val4 ;
24531 int ecode4 = 0 ;
24532 int val5 ;
24533 int ecode5 = 0 ;
24534
24535 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24537 if (!SWIG_IsOK(res1)) {
24538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24539 }
24540 if (!argp1) {
24541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24542 }
24543 arg1 = reinterpret_cast< wxDC * >(argp1);
24544 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24545 if (!SWIG_IsOK(ecode2)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24547 }
24548 arg2 = static_cast< int >(val2);
24549 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24550 if (!SWIG_IsOK(ecode3)) {
24551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24552 }
24553 arg3 = static_cast< int >(val3);
24554 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24555 if (!SWIG_IsOK(ecode4)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24557 }
24558 arg4 = static_cast< int >(val4);
24559 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24560 if (!SWIG_IsOK(ecode5)) {
24561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24562 }
24563 arg5 = static_cast< int >(val5);
24564 {
24565 PyThreadState* __tstate = wxPyBeginAllowThreads();
24566 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24571 return resultobj;
24572fail:
24573 return NULL;
24574}
24575
24576
24577SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24578 int argc;
24579 PyObject *argv[6];
24580
24581 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24582 --argc;
24583 if (argc == 2) {
24584 int _v = 0;
24585 {
24586 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24587 _v = SWIG_CheckState(res);
24588 }
24589 if (!_v) goto check_1;
24590 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24591 }
24592check_1:
24593
24594 if (argc == 2) {
24595 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24596 }
24597 if (argc == 5) {
24598 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24599 }
24600
24601fail:
24602 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24603 return NULL;
24604}
24605
24606
24607SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24608 PyObject *resultobj = 0;
24609 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24610 void *argp1 = 0 ;
24611 int res1 = 0 ;
24612 PyObject *swig_obj[1] ;
24613
24614 if (!args) SWIG_fail;
24615 swig_obj[0] = args;
24616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24617 if (!SWIG_IsOK(res1)) {
24618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24619 }
24620 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 delete arg1;
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 resultobj = SWIG_Py_Void();
24629 return resultobj;
24630fail:
24631 return NULL;
24632}
24633
24634
24635SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24636 PyObject *obj;
24637 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24638 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24639 return SWIG_Py_Void();
24640}
24641
24642SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24643 return SWIG_Python_InitShadowInstance(args);
24644}
24645
24f6c4e8
RD
24646SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24647 PyObject *resultobj = 0;
24648 wxScreenDC *result = 0 ;
24649
24650 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24651 {
24652 if (!wxPyCheckForApp()) SWIG_fail;
24653 PyThreadState* __tstate = wxPyBeginAllowThreads();
24654 result = (wxScreenDC *)new wxScreenDC();
24655 wxPyEndAllowThreads(__tstate);
24656 if (PyErr_Occurred()) SWIG_fail;
24657 }
24658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24659 return resultobj;
24660fail:
24661 return NULL;
24662}
24663
24664
24665SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24666 PyObject *resultobj = 0;
24667 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24668 wxWindow *arg2 = (wxWindow *) 0 ;
24669 bool result;
24670 void *argp1 = 0 ;
24671 int res1 = 0 ;
24672 void *argp2 = 0 ;
24673 int res2 = 0 ;
24674 PyObject * obj0 = 0 ;
24675 PyObject * obj1 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "self",(char *) "window", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24682 if (!SWIG_IsOK(res1)) {
24683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24684 }
24685 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24687 if (!SWIG_IsOK(res2)) {
24688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24689 }
24690 arg2 = reinterpret_cast< wxWindow * >(argp2);
24691 {
24692 PyThreadState* __tstate = wxPyBeginAllowThreads();
24693 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 {
24698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24699 }
24700 return resultobj;
24701fail:
24702 return NULL;
24703}
24704
24705
24706SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24707 PyObject *resultobj = 0;
24708 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24709 wxRect *arg2 = (wxRect *) NULL ;
24710 bool result;
24711 void *argp1 = 0 ;
24712 int res1 = 0 ;
24713 void *argp2 = 0 ;
24714 int res2 = 0 ;
24715 PyObject * obj0 = 0 ;
24716 PyObject * obj1 = 0 ;
24717 char * kwnames[] = {
24718 (char *) "self",(char *) "rect", NULL
24719 };
24720
24721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24723 if (!SWIG_IsOK(res1)) {
24724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24725 }
24726 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24727 if (obj1) {
24728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24729 if (!SWIG_IsOK(res2)) {
24730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24731 }
24732 arg2 = reinterpret_cast< wxRect * >(argp2);
24733 }
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24737 wxPyEndAllowThreads(__tstate);
24738 if (PyErr_Occurred()) SWIG_fail;
24739 }
24740 {
24741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24742 }
24743 return resultobj;
24744fail:
24745 return NULL;
24746}
24747
24748
24749SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24750 PyObject *resultobj = 0;
24751 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24752 bool result;
24753 void *argp1 = 0 ;
24754 int res1 = 0 ;
24755 PyObject *swig_obj[1] ;
24756
24757 if (!args) SWIG_fail;
24758 swig_obj[0] = args;
24759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24760 if (!SWIG_IsOK(res1)) {
24761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24762 }
24763 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24764 {
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 result = (bool)(arg1)->EndDrawingOnTop();
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 {
24771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24772 }
24773 return resultobj;
24774fail:
24775 return NULL;
24776}
24777
24778
24779SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24780 PyObject *obj;
24781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24782 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24783 return SWIG_Py_Void();
24784}
24785
24786SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24787 return SWIG_Python_InitShadowInstance(args);
24788}
24789
24790SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj = 0;
24792 wxWindow *arg1 = (wxWindow *) 0 ;
24793 wxWindowDC *result = 0 ;
24794 void *argp1 = 0 ;
24795 int res1 = 0 ;
24796 PyObject * obj0 = 0 ;
24797 char * kwnames[] = {
24798 (char *) "win", NULL
24799 };
24800
24801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24803 if (!SWIG_IsOK(res1)) {
24804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24805 }
24806 arg1 = reinterpret_cast< wxWindow * >(argp1);
24807 {
24808 if (!wxPyCheckForApp()) SWIG_fail;
24809 PyThreadState* __tstate = wxPyBeginAllowThreads();
24810 result = (wxWindowDC *)new wxWindowDC(arg1);
24811 wxPyEndAllowThreads(__tstate);
24812 if (PyErr_Occurred()) SWIG_fail;
24813 }
24814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24815 return resultobj;
24816fail:
24817 return NULL;
24818}
24819
24820
24821SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24822 PyObject *obj;
24823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24824 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24825 return SWIG_Py_Void();
24826}
24827
24828SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 return SWIG_Python_InitShadowInstance(args);
24830}
24831
24832SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj = 0;
24834 wxWindow *arg1 = (wxWindow *) 0 ;
24835 wxClientDC *result = 0 ;
24836 void *argp1 = 0 ;
24837 int res1 = 0 ;
24838 PyObject * obj0 = 0 ;
24839 char * kwnames[] = {
24840 (char *) "win", NULL
24841 };
24842
24843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24847 }
24848 arg1 = reinterpret_cast< wxWindow * >(argp1);
24849 {
24850 if (!wxPyCheckForApp()) SWIG_fail;
24851 PyThreadState* __tstate = wxPyBeginAllowThreads();
24852 result = (wxClientDC *)new wxClientDC(arg1);
24853 wxPyEndAllowThreads(__tstate);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 }
24856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24857 return resultobj;
24858fail:
24859 return NULL;
24860}
24861
24862
24863SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24864 PyObject *obj;
24865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24866 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24867 return SWIG_Py_Void();
24868}
24869
24870SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24871 return SWIG_Python_InitShadowInstance(args);
24872}
24873
24874SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24875 PyObject *resultobj = 0;
24876 wxWindow *arg1 = (wxWindow *) 0 ;
24877 wxPaintDC *result = 0 ;
24878 void *argp1 = 0 ;
24879 int res1 = 0 ;
24880 PyObject * obj0 = 0 ;
24881 char * kwnames[] = {
24882 (char *) "win", NULL
24883 };
24884
24885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24887 if (!SWIG_IsOK(res1)) {
24888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24889 }
24890 arg1 = reinterpret_cast< wxWindow * >(argp1);
24891 {
24892 if (!wxPyCheckForApp()) SWIG_fail;
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 result = (wxPaintDC *)new wxPaintDC(arg1);
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24899 return resultobj;
24900fail:
24901 return NULL;
24902}
24903
24904
24905SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24906 PyObject *obj;
24907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24908 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24909 return SWIG_Py_Void();
24910}
24911
24912SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24913 return SWIG_Python_InitShadowInstance(args);
24914}
24915
26c4d26f
RD
24916SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj = 0;
24918 wxBitmap &arg1_defvalue = wxNullBitmap ;
24919 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24920 wxMemoryDC *result = 0 ;
24921 void *argp1 = 0 ;
24922 int res1 = 0 ;
24923 PyObject * obj0 = 0 ;
24924 char * kwnames[] = {
24925 (char *) "bitmap", NULL
24926 };
24927
24928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24929 if (obj0) {
24930 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24931 if (!SWIG_IsOK(res1)) {
24932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24933 }
24934 if (!argp1) {
24935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24936 }
24937 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24938 }
24939 {
24940 if (!wxPyCheckForApp()) SWIG_fail;
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24947 return resultobj;
24948fail:
24949 return NULL;
24950}
24951
24952
24953SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj = 0;
24955 wxDC *arg1 = (wxDC *) 0 ;
24956 wxMemoryDC *result = 0 ;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 PyObject * obj0 = 0 ;
24960 char * kwnames[] = {
24961 (char *) "oldDC", NULL
24962 };
24963
24964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24966 if (!SWIG_IsOK(res1)) {
24967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24968 }
24969 arg1 = reinterpret_cast< wxDC * >(argp1);
24970 {
24971 if (!wxPyCheckForApp()) SWIG_fail;
24972 PyThreadState* __tstate = wxPyBeginAllowThreads();
24973 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24974 wxPyEndAllowThreads(__tstate);
24975 if (PyErr_Occurred()) SWIG_fail;
24976 }
24977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24978 return resultobj;
24979fail:
24980 return NULL;
24981}
24982
24983
24984SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24985 PyObject *resultobj = 0;
24986 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24987 wxBitmap *arg2 = 0 ;
24988 void *argp1 = 0 ;
24989 int res1 = 0 ;
24990 void *argp2 = 0 ;
24991 int res2 = 0 ;
24992 PyObject * obj0 = 0 ;
24993 PyObject * obj1 = 0 ;
24994 char * kwnames[] = {
24995 (char *) "self",(char *) "bitmap", NULL
24996 };
24997
24998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25000 if (!SWIG_IsOK(res1)) {
25001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25002 }
25003 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25005 if (!SWIG_IsOK(res2)) {
25006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25007 }
25008 if (!argp2) {
25009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25010 }
25011 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 (arg1)->SelectObject(*arg2);
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_Py_Void();
25019 return resultobj;
25020fail:
25021 return NULL;
25022}
25023
25024
25025SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25026 PyObject *resultobj = 0;
25027 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25028 wxBitmap *arg2 = 0 ;
25029 void *argp1 = 0 ;
25030 int res1 = 0 ;
25031 void *argp2 = 0 ;
25032 int res2 = 0 ;
25033 PyObject * obj0 = 0 ;
25034 PyObject * obj1 = 0 ;
25035 char * kwnames[] = {
25036 (char *) "self",(char *) "bmp", NULL
25037 };
25038
25039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25043 }
25044 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25046 if (!SWIG_IsOK(res2)) {
25047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25048 }
25049 if (!argp2) {
25050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25051 }
25052 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 resultobj = SWIG_Py_Void();
25060 return resultobj;
25061fail:
25062 return NULL;
25063}
25064
25065
25066SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25067 PyObject *obj;
25068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25069 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25070 return SWIG_Py_Void();
25071}
25072
25073SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25074 return SWIG_Python_InitShadowInstance(args);
25075}
25076
554f62e9
RD
25077SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25078 PyObject *resultobj = 0;
25079 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 25080 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25081 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25082 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25083 wxBufferedDC *result = 0 ;
25084 void *argp1 = 0 ;
25085 int res1 = 0 ;
25086 void *argp2 = 0 ;
25087 int res2 = 0 ;
25088 int val3 ;
25089 int ecode3 = 0 ;
25090
25091 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25093 if (!SWIG_IsOK(res1)) {
25094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25095 }
25096 arg1 = reinterpret_cast< wxDC * >(argp1);
25097 if (swig_obj[1]) {
b6df5cf9 25098 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25099 if (!SWIG_IsOK(res2)) {
b6df5cf9 25100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25101 }
554f62e9 25102 if (!argp2) {
b6df5cf9 25103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25104 }
554f62e9
RD
25105 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25106 }
25107 if (swig_obj[2]) {
25108 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25109 if (!SWIG_IsOK(ecode3)) {
25110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25111 }
25112 arg3 = static_cast< int >(val3);
25113 }
25114 {
25115 if (!wxPyCheckForApp()) SWIG_fail;
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25117 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
554f62e9
RD
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25122 return resultobj;
25123fail:
25124 return NULL;
25125}
25126
25127
25128SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25129 PyObject *resultobj = 0;
25130 wxDC *arg1 = (wxDC *) 0 ;
25131 wxSize *arg2 = 0 ;
25132 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25133 wxBufferedDC *result = 0 ;
25134 void *argp1 = 0 ;
25135 int res1 = 0 ;
25136 wxSize temp2 ;
25137 int val3 ;
25138 int ecode3 = 0 ;
25139
25140 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25142 if (!SWIG_IsOK(res1)) {
25143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25144 }
25145 arg1 = reinterpret_cast< wxDC * >(argp1);
25146 {
25147 arg2 = &temp2;
25148 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25149 }
25150 if (swig_obj[2]) {
25151 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25152 if (!SWIG_IsOK(ecode3)) {
25153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25154 }
25155 arg3 = static_cast< int >(val3);
25156 }
25157 {
25158 if (!wxPyCheckForApp()) SWIG_fail;
25159 PyThreadState* __tstate = wxPyBeginAllowThreads();
25160 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25161 wxPyEndAllowThreads(__tstate);
25162 if (PyErr_Occurred()) SWIG_fail;
25163 }
25164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25165 return resultobj;
25166fail:
25167 return NULL;
25168}
25169
25170
25171SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25172 int argc;
8e99bda9 25173 PyObject *argv[4];
554f62e9 25174
8e99bda9 25175 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
25176 --argc;
25177 if ((argc >= 1) && (argc <= 3)) {
25178 int _v = 0;
25179 if (argc > 1) {
25180 {
b6df5cf9
RD
25181 void *vptr = 0;
25182 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
554f62e9
RD
25183 _v = SWIG_CheckState(res);
25184 }
25185 if (!_v) goto check_1;
093d3ff1 25186 }
554f62e9
RD
25187 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25188 }
25189check_1:
25190
25191 if ((argc >= 2) && (argc <= 3)) {
25192 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25193 }
25194
25195fail:
25196 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25197 return NULL;
25198}
25199
25200
25201SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25202 PyObject *resultobj = 0;
25203 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25204 void *argp1 = 0 ;
25205 int res1 = 0 ;
25206 PyObject *swig_obj[1] ;
25207
25208 if (!args) SWIG_fail;
25209 swig_obj[0] = args;
25210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25211 if (!SWIG_IsOK(res1)) {
25212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25213 }
25214 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 delete arg1;
25218
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 resultobj = SWIG_Py_Void();
25223 return resultobj;
25224fail:
25225 return NULL;
25226}
25227
25228
25229SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25230 PyObject *resultobj = 0;
25231 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 PyObject *swig_obj[1] ;
25235
25236 if (!args) SWIG_fail;
25237 swig_obj[0] = args;
25238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25239 if (!SWIG_IsOK(res1)) {
25240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25241 }
25242 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25243 {
25244 PyThreadState* __tstate = wxPyBeginAllowThreads();
25245 (arg1)->UnMask();
25246 wxPyEndAllowThreads(__tstate);
25247 if (PyErr_Occurred()) SWIG_fail;
25248 }
25249 resultobj = SWIG_Py_Void();
25250 return resultobj;
25251fail:
25252 return NULL;
25253}
25254
25255
b6df5cf9
RD
25256SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25257 PyObject *resultobj = 0;
25258 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25259 int arg2 ;
25260 void *argp1 = 0 ;
25261 int res1 = 0 ;
25262 int val2 ;
25263 int ecode2 = 0 ;
25264 PyObject * obj0 = 0 ;
25265 PyObject * obj1 = 0 ;
25266 char * kwnames[] = {
25267 (char *) "self",(char *) "style", NULL
25268 };
25269
25270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25272 if (!SWIG_IsOK(res1)) {
25273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25274 }
25275 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25276 ecode2 = SWIG_AsVal_int(obj1, &val2);
25277 if (!SWIG_IsOK(ecode2)) {
25278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25279 }
25280 arg2 = static_cast< int >(val2);
25281 {
25282 PyThreadState* __tstate = wxPyBeginAllowThreads();
25283 (arg1)->SetStyle(arg2);
25284 wxPyEndAllowThreads(__tstate);
25285 if (PyErr_Occurred()) SWIG_fail;
25286 }
25287 resultobj = SWIG_Py_Void();
25288 return resultobj;
25289fail:
25290 return NULL;
25291}
25292
25293
25294SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25295 PyObject *resultobj = 0;
25296 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25297 int result;
25298 void *argp1 = 0 ;
25299 int res1 = 0 ;
25300 PyObject *swig_obj[1] ;
25301
25302 if (!args) SWIG_fail;
25303 swig_obj[0] = args;
25304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25307 }
25308 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25309 {
25310 PyThreadState* __tstate = wxPyBeginAllowThreads();
25311 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25312 wxPyEndAllowThreads(__tstate);
25313 if (PyErr_Occurred()) SWIG_fail;
25314 }
25315 resultobj = SWIG_From_int(static_cast< int >(result));
25316 return resultobj;
25317fail:
25318 return NULL;
25319}
25320
25321
554f62e9
RD
25322SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25323 PyObject *obj;
25324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25325 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25326 return SWIG_Py_Void();
25327}
25328
25329SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25330 return SWIG_Python_InitShadowInstance(args);
25331}
25332
25333SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj = 0;
25335 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 25336 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25337 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25338 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25339 wxBufferedPaintDC *result = 0 ;
25340 void *argp1 = 0 ;
25341 int res1 = 0 ;
25342 void *argp2 = 0 ;
25343 int res2 = 0 ;
25344 int val3 ;
25345 int ecode3 = 0 ;
25346 PyObject * obj0 = 0 ;
25347 PyObject * obj1 = 0 ;
25348 PyObject * obj2 = 0 ;
25349 char * kwnames[] = {
25350 (char *) "window",(char *) "buffer",(char *) "style", NULL
25351 };
25352
25353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25355 if (!SWIG_IsOK(res1)) {
25356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25357 }
25358 arg1 = reinterpret_cast< wxWindow * >(argp1);
25359 if (obj1) {
b6df5cf9 25360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25361 if (!SWIG_IsOK(res2)) {
b6df5cf9 25362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25363 }
554f62e9 25364 if (!argp2) {
b6df5cf9 25365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25366 }
554f62e9
RD
25367 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25368 }
25369 if (obj2) {
25370 ecode3 = SWIG_AsVal_int(obj2, &val3);
25371 if (!SWIG_IsOK(ecode3)) {
25372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25373 }
25374 arg3 = static_cast< int >(val3);
25375 }
25376 {
25377 if (!wxPyCheckForApp()) SWIG_fail;
25378 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25379 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
554f62e9
RD
25380 wxPyEndAllowThreads(__tstate);
25381 if (PyErr_Occurred()) SWIG_fail;
25382 }
25383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25384 return resultobj;
25385fail:
25386 return NULL;
25387}
25388
25389
25390SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25391 PyObject *obj;
25392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25393 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25394 return SWIG_Py_Void();
25395}
25396
25397SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398 return SWIG_Python_InitShadowInstance(args);
25399}
25400
24f6c4e8 25401SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25402 PyObject *resultobj = 0;
25403 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25404 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25405 void *argp1 = 0 ;
25406 int res1 = 0 ;
25407 PyObject * obj0 = 0 ;
25408 char * kwnames[] = {
25409 (char *) "win", NULL
25410 };
25411
24f6c4e8 25412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25414 if (!SWIG_IsOK(res1)) {
24f6c4e8 25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25416 }
25417 arg1 = reinterpret_cast< wxWindow * >(argp1);
25418 {
554f62e9 25419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25420 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
24f6c4e8 25424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25425 return resultobj;
25426fail:
25427 return NULL;
25428}
25429
25430
24f6c4e8 25431SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25432 PyObject *obj;
25433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25434 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25435 return SWIG_Py_Void();
25436}
25437
24f6c4e8 25438SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25439 return SWIG_Python_InitShadowInstance(args);
25440}
25441
8e99bda9
RD
25442SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25443 PyObject *resultobj = 0;
25444 wxWindow *arg1 = (wxWindow *) 0 ;
25445 wxDC *result = 0 ;
25446 void *argp1 = 0 ;
25447 int res1 = 0 ;
25448 PyObject * obj0 = 0 ;
25449 char * kwnames[] = {
25450 (char *) "window", NULL
25451 };
25452
25453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25455 if (!SWIG_IsOK(res1)) {
25456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25457 }
25458 arg1 = reinterpret_cast< wxWindow * >(argp1);
25459 {
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 {
25466 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25467 }
25468 return resultobj;
25469fail:
25470 return NULL;
25471}
25472
25473
554f62e9
RD
25474SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25475 PyObject *resultobj = 0;
25476 wxDC *arg1 = 0 ;
25477 bool arg2 ;
25478 wxMirrorDC *result = 0 ;
25479 void *argp1 = 0 ;
25480 int res1 = 0 ;
25481 bool val2 ;
25482 int ecode2 = 0 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "dc",(char *) "mirror", NULL
25487 };
25488
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25493 }
25494 if (!argp1) {
25495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25496 }
25497 arg1 = reinterpret_cast< wxDC * >(argp1);
25498 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25499 if (!SWIG_IsOK(ecode2)) {
25500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25501 }
25502 arg2 = static_cast< bool >(val2);
25503 {
25504 if (!wxPyCheckForApp()) SWIG_fail;
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25511 return resultobj;
25512fail:
25513 return NULL;
25514}
25515
25516
25517SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25518 PyObject *obj;
25519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25520 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25521 return SWIG_Py_Void();
25522}
25523
25524SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 return SWIG_Python_InitShadowInstance(args);
25526}
25527
25528SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25529 PyObject *resultobj = 0;
25530 wxPrintData *arg1 = 0 ;
25531 wxPostScriptDC *result = 0 ;
25532 void *argp1 = 0 ;
25533 int res1 = 0 ;
25534 PyObject * obj0 = 0 ;
25535 char * kwnames[] = {
25536 (char *) "printData", NULL
25537 };
25538
25539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25540 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25541 if (!SWIG_IsOK(res1)) {
25542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25543 }
25544 if (!argp1) {
25545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25546 }
25547 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25548 {
25549 if (!wxPyCheckForApp()) SWIG_fail;
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25552 wxPyEndAllowThreads(__tstate);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25556 return resultobj;
25557fail:
25558 return NULL;
25559}
25560
25561
25562SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25563 PyObject *resultobj = 0;
25564 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25565 wxPrintData *result = 0 ;
25566 void *argp1 = 0 ;
25567 int res1 = 0 ;
25568 PyObject *swig_obj[1] ;
25569
25570 if (!args) SWIG_fail;
25571 swig_obj[0] = args;
25572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25573 if (!SWIG_IsOK(res1)) {
25574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25575 }
25576 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25577 {
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25579 {
554f62e9
RD
25580 wxPrintData &_result_ref = (arg1)->GetPrintData();
25581 result = (wxPrintData *) &_result_ref;
093d3ff1 25582 }
554f62e9
RD
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25587 return resultobj;
25588fail:
25589 return NULL;
25590}
25591
25592
25593SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25596 wxPrintData *arg2 = 0 ;
25597 void *argp1 = 0 ;
25598 int res1 = 0 ;
25599 void *argp2 = 0 ;
25600 int res2 = 0 ;
25601 PyObject * obj0 = 0 ;
25602 PyObject * obj1 = 0 ;
25603 char * kwnames[] = {
25604 (char *) "self",(char *) "data", NULL
25605 };
25606
25607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25609 if (!SWIG_IsOK(res1)) {
25610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25611 }
25612 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25614 if (!SWIG_IsOK(res2)) {
25615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25616 }
25617 if (!argp2) {
25618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25619 }
25620 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25621 {
25622 PyThreadState* __tstate = wxPyBeginAllowThreads();
25623 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_Py_Void();
25628 return resultobj;
25629fail:
25630 return NULL;
25631}
25632
25633
25634SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25635 PyObject *resultobj = 0;
25636 int arg1 ;
25637 int val1 ;
25638 int ecode1 = 0 ;
25639 PyObject * obj0 = 0 ;
25640 char * kwnames[] = {
25641 (char *) "ppi", NULL
25642 };
25643
25644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25645 ecode1 = SWIG_AsVal_int(obj0, &val1);
25646 if (!SWIG_IsOK(ecode1)) {
25647 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25648 }
25649 arg1 = static_cast< int >(val1);
25650 {
25651 PyThreadState* __tstate = wxPyBeginAllowThreads();
25652 wxPostScriptDC::SetResolution(arg1);
25653 wxPyEndAllowThreads(__tstate);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 resultobj = SWIG_Py_Void();
25657 return resultobj;
25658fail:
25659 return NULL;
25660}
25661
25662
25663SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25664 PyObject *resultobj = 0;
25665 int result;
25666
25667 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 result = (int)wxPostScriptDC::GetResolution();
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_From_int(static_cast< int >(result));
25675 return resultobj;
25676fail:
25677 return NULL;
25678}
25679
25680
25681SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25682 PyObject *obj;
25683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25684 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25685 return SWIG_Py_Void();
25686}
25687
25688SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25689 return SWIG_Python_InitShadowInstance(args);
25690}
25691
25692SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25693 PyObject *resultobj = 0;
25694 wxString const &arg1_defvalue = wxPyEmptyString ;
25695 wxString *arg1 = (wxString *) &arg1_defvalue ;
25696 wxMetaFile *result = 0 ;
25697 bool temp1 = false ;
25698 PyObject * obj0 = 0 ;
25699 char * kwnames[] = {
25700 (char *) "filename", NULL
25701 };
25702
25703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25704 if (obj0) {
093d3ff1 25705 {
554f62e9
RD
25706 arg1 = wxString_in_helper(obj0);
25707 if (arg1 == NULL) SWIG_fail;
25708 temp1 = true;
093d3ff1 25709 }
554f62e9
RD
25710 }
25711 {
25712 if (!wxPyCheckForApp()) SWIG_fail;
25713 PyThreadState* __tstate = wxPyBeginAllowThreads();
25714 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25715 wxPyEndAllowThreads(__tstate);
25716 if (PyErr_Occurred()) SWIG_fail;
25717 }
25718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25719 {
25720 if (temp1)
25721 delete arg1;
25722 }
25723 return resultobj;
25724fail:
25725 {
25726 if (temp1)
25727 delete arg1;
25728 }
25729 return NULL;
25730}
25731
25732
25733SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *resultobj = 0;
25735 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25736 void *argp1 = 0 ;
25737 int res1 = 0 ;
25738 PyObject *swig_obj[1] ;
25739
25740 if (!args) SWIG_fail;
25741 swig_obj[0] = args;
25742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25743 if (!SWIG_IsOK(res1)) {
25744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25745 }
25746 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25747 {
25748 PyThreadState* __tstate = wxPyBeginAllowThreads();
25749 delete arg1;
25750
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_Py_Void();
25755 return resultobj;
25756fail:
25757 return NULL;
25758}
25759
25760
b39fe951 25761SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25762 PyObject *resultobj = 0;
25763 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25764 bool result;
25765 void *argp1 = 0 ;
25766 int res1 = 0 ;
25767 PyObject *swig_obj[1] ;
25768
25769 if (!args) SWIG_fail;
25770 swig_obj[0] = args;
25771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25772 if (!SWIG_IsOK(res1)) {
b39fe951 25773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
25774 }
25775 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25776 {
25777 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25778 result = (bool)(arg1)->IsOk();
554f62e9
RD
25779 wxPyEndAllowThreads(__tstate);
25780 if (PyErr_Occurred()) SWIG_fail;
25781 }
25782 {
25783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25784 }
25785 return resultobj;
25786fail:
25787 return NULL;
25788}
25789
25790
25791SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25792 PyObject *resultobj = 0;
25793 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25794 int arg2 = (int) 0 ;
25795 int arg3 = (int) 0 ;
25796 bool result;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 int val2 ;
25800 int ecode2 = 0 ;
25801 int val3 ;
25802 int ecode3 = 0 ;
25803 PyObject * obj0 = 0 ;
25804 PyObject * obj1 = 0 ;
25805 PyObject * obj2 = 0 ;
25806 char * kwnames[] = {
25807 (char *) "self",(char *) "width",(char *) "height", NULL
25808 };
25809
25810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25814 }
25815 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25816 if (obj1) {
25817 ecode2 = SWIG_AsVal_int(obj1, &val2);
25818 if (!SWIG_IsOK(ecode2)) {
25819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25820 }
25821 arg2 = static_cast< int >(val2);
25822 }
25823 if (obj2) {
25824 ecode3 = SWIG_AsVal_int(obj2, &val3);
25825 if (!SWIG_IsOK(ecode3)) {
25826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25827 }
25828 arg3 = static_cast< int >(val3);
25829 }
25830 {
25831 PyThreadState* __tstate = wxPyBeginAllowThreads();
25832 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25833 wxPyEndAllowThreads(__tstate);
25834 if (PyErr_Occurred()) SWIG_fail;
25835 }
25836 {
25837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25838 }
25839 return resultobj;
25840fail:
25841 return NULL;
25842}
25843
25844
25845SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25846 PyObject *resultobj = 0;
25847 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25848 wxSize result;
25849 void *argp1 = 0 ;
25850 int res1 = 0 ;
25851 PyObject *swig_obj[1] ;
25852
25853 if (!args) SWIG_fail;
25854 swig_obj[0] = args;
25855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25856 if (!SWIG_IsOK(res1)) {
25857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25858 }
25859 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25860 {
25861 PyThreadState* __tstate = wxPyBeginAllowThreads();
25862 result = (arg1)->GetSize();
25863 wxPyEndAllowThreads(__tstate);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 }
25866 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25867 return resultobj;
25868fail:
25869 return NULL;
25870}
25871
25872
25873SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25874 PyObject *resultobj = 0;
25875 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25876 int result;
25877 void *argp1 = 0 ;
25878 int res1 = 0 ;
25879 PyObject *swig_obj[1] ;
25880
25881 if (!args) SWIG_fail;
25882 swig_obj[0] = args;
25883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25884 if (!SWIG_IsOK(res1)) {
25885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25886 }
25887 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25888 {
25889 PyThreadState* __tstate = wxPyBeginAllowThreads();
25890 result = (int)(arg1)->GetWidth();
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = SWIG_From_int(static_cast< int >(result));
25895 return resultobj;
25896fail:
25897 return NULL;
25898}
25899
25900
25901SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25902 PyObject *resultobj = 0;
25903 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25904 int result;
25905 void *argp1 = 0 ;
25906 int res1 = 0 ;
25907 PyObject *swig_obj[1] ;
25908
25909 if (!args) SWIG_fail;
25910 swig_obj[0] = args;
25911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25912 if (!SWIG_IsOK(res1)) {
25913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25914 }
25915 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25916 {
25917 PyThreadState* __tstate = wxPyBeginAllowThreads();
25918 result = (int)(arg1)->GetHeight();
25919 wxPyEndAllowThreads(__tstate);
25920 if (PyErr_Occurred()) SWIG_fail;
25921 }
25922 resultobj = SWIG_From_int(static_cast< int >(result));
25923 return resultobj;
25924fail:
25925 return NULL;
25926}
25927
25928
25929SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25930 PyObject *resultobj = 0;
25931 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25932 wxString *result = 0 ;
25933 void *argp1 = 0 ;
25934 int res1 = 0 ;
25935 PyObject *swig_obj[1] ;
25936
25937 if (!args) SWIG_fail;
25938 swig_obj[0] = args;
25939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25942 }
25943 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25946 {
554f62e9
RD
25947 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25948 result = (wxString *) &_result_ref;
e2950dbb 25949 }
554f62e9
RD
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 {
25954#if wxUSE_UNICODE
25955 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25956#else
25957 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25958#endif
25959 }
25960 return resultobj;
25961fail:
25962 return NULL;
25963}
25964
25965
25966SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25967 PyObject *obj;
25968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25969 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25970 return SWIG_Py_Void();
25971}
25972
25973SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25974 return SWIG_Python_InitShadowInstance(args);
25975}
25976
25977SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25978 PyObject *resultobj = 0;
25979 wxString const &arg1_defvalue = wxPyEmptyString ;
25980 wxString *arg1 = (wxString *) &arg1_defvalue ;
25981 int arg2 = (int) 0 ;
25982 int arg3 = (int) 0 ;
25983 wxString const &arg4_defvalue = wxPyEmptyString ;
25984 wxString *arg4 = (wxString *) &arg4_defvalue ;
25985 wxMetaFileDC *result = 0 ;
25986 bool temp1 = false ;
25987 int val2 ;
25988 int ecode2 = 0 ;
25989 int val3 ;
25990 int ecode3 = 0 ;
25991 bool temp4 = false ;
25992 PyObject * obj0 = 0 ;
25993 PyObject * obj1 = 0 ;
25994 PyObject * obj2 = 0 ;
25995 PyObject * obj3 = 0 ;
25996 char * kwnames[] = {
25997 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25998 };
25999
26000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26001 if (obj0) {
e2950dbb 26002 {
554f62e9
RD
26003 arg1 = wxString_in_helper(obj0);
26004 if (arg1 == NULL) SWIG_fail;
26005 temp1 = true;
e2950dbb 26006 }
554f62e9
RD
26007 }
26008 if (obj1) {
26009 ecode2 = SWIG_AsVal_int(obj1, &val2);
26010 if (!SWIG_IsOK(ecode2)) {
26011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26012 }
26013 arg2 = static_cast< int >(val2);
26014 }
26015 if (obj2) {
26016 ecode3 = SWIG_AsVal_int(obj2, &val3);
26017 if (!SWIG_IsOK(ecode3)) {
26018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26019 }
26020 arg3 = static_cast< int >(val3);
26021 }
26022 if (obj3) {
093d3ff1 26023 {
554f62e9
RD
26024 arg4 = wxString_in_helper(obj3);
26025 if (arg4 == NULL) SWIG_fail;
26026 temp4 = true;
093d3ff1 26027 }
554f62e9
RD
26028 }
26029 {
26030 if (!wxPyCheckForApp()) SWIG_fail;
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26033 wxPyEndAllowThreads(__tstate);
26034 if (PyErr_Occurred()) SWIG_fail;
26035 }
26036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26037 {
26038 if (temp1)
26039 delete arg1;
26040 }
26041 {
26042 if (temp4)
26043 delete arg4;
26044 }
26045 return resultobj;
26046fail:
26047 {
26048 if (temp1)
26049 delete arg1;
26050 }
26051 {
26052 if (temp4)
26053 delete arg4;
26054 }
26055 return NULL;
26056}
26057
26058
26059SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26060 PyObject *resultobj = 0;
26061 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26062 wxMetaFile *result = 0 ;
26063 void *argp1 = 0 ;
26064 int res1 = 0 ;
26065 PyObject *swig_obj[1] ;
26066
26067 if (!args) SWIG_fail;
26068 swig_obj[0] = args;
26069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26070 if (!SWIG_IsOK(res1)) {
26071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26072 }
26073 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 result = (wxMetaFile *)(arg1)->Close();
26077 wxPyEndAllowThreads(__tstate);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26081 return resultobj;
26082fail:
26083 return NULL;
26084}
26085
26086
26087SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26088 PyObject *obj;
26089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26090 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26091 return SWIG_Py_Void();
26092}
26093
26094SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26095 return SWIG_Python_InitShadowInstance(args);
26096}
26097
26098SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26099 PyObject *resultobj = 0;
26100 wxPrintData *arg1 = 0 ;
26101 wxPrinterDC *result = 0 ;
26102 void *argp1 = 0 ;
26103 int res1 = 0 ;
26104 PyObject * obj0 = 0 ;
26105 char * kwnames[] = {
26106 (char *) "printData", NULL
26107 };
26108
26109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26110 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26111 if (!SWIG_IsOK(res1)) {
26112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26113 }
26114 if (!argp1) {
26115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26116 }
26117 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26118 {
26119 if (!wxPyCheckForApp()) SWIG_fail;
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
26121 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26122 wxPyEndAllowThreads(__tstate);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26126 return resultobj;
26127fail:
26128 return NULL;
26129}
26130
26131
26132SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26133 PyObject *obj;
26134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26135 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26136 return SWIG_Py_Void();
26137}
26138
26139SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26140 return SWIG_Python_InitShadowInstance(args);
26141}
26142
70d7cb34
RD
26143SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26146 wxGraphicsObject *result = 0 ;
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 PyObject * obj0 = 0 ;
26150 char * kwnames[] = {
26151 (char *) "renderer", NULL
26152 };
26153
26154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26155 if (obj0) {
26156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26157 if (!SWIG_IsOK(res1)) {
26158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26159 }
26160 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26161 }
26162 {
26163 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26167 return resultobj;
26168fail:
26169 return NULL;
26170}
26171
26172
26173SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26174 PyObject *resultobj = 0;
26175 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 PyObject *swig_obj[1] ;
26179
26180 if (!args) SWIG_fail;
26181 swig_obj[0] = args;
26182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26183 if (!SWIG_IsOK(res1)) {
26184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26185 }
26186 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26187 {
26188 delete arg1;
26189
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_Py_Void();
26193 return resultobj;
26194fail:
26195 return NULL;
26196}
26197
26198
26199SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26200 PyObject *resultobj = 0;
26201 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26202 bool result;
26203 void *argp1 = 0 ;
26204 int res1 = 0 ;
26205 PyObject *swig_obj[1] ;
26206
26207 if (!args) SWIG_fail;
26208 swig_obj[0] = args;
26209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26210 if (!SWIG_IsOK(res1)) {
26211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26212 }
26213 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26214 {
26215 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 {
26219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26220 }
26221 return resultobj;
26222fail:
26223 return NULL;
26224}
26225
26226
26227SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26228 PyObject *resultobj = 0;
26229 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26230 wxGraphicsRenderer *result = 0 ;
26231 void *argp1 = 0 ;
26232 int res1 = 0 ;
26233 PyObject *swig_obj[1] ;
26234
26235 if (!args) SWIG_fail;
26236 swig_obj[0] = args;
26237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26238 if (!SWIG_IsOK(res1)) {
26239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26240 }
26241 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26242 {
26243 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26244 if (PyErr_Occurred()) SWIG_fail;
26245 }
26246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26247 return resultobj;
26248fail:
26249 return NULL;
26250}
26251
26252
26253SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26254 PyObject *obj;
26255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26256 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26257 return SWIG_Py_Void();
26258}
26259
26260SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26261 return SWIG_Python_InitShadowInstance(args);
26262}
26263
26264SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26265 PyObject *resultobj = 0;
26266 wxGraphicsPen *result = 0 ;
26267
26268 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26269 {
26270 result = (wxGraphicsPen *)new wxGraphicsPen();
26271 if (PyErr_Occurred()) SWIG_fail;
26272 }
26273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26274 return resultobj;
26275fail:
26276 return NULL;
26277}
26278
26279
26280SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26281 PyObject *resultobj = 0;
26282 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26283 void *argp1 = 0 ;
26284 int res1 = 0 ;
26285 PyObject *swig_obj[1] ;
26286
26287 if (!args) SWIG_fail;
26288 swig_obj[0] = args;
26289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26290 if (!SWIG_IsOK(res1)) {
26291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26292 }
26293 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26294 {
26295 delete arg1;
26296
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 resultobj = SWIG_Py_Void();
26300 return resultobj;
26301fail:
26302 return NULL;
26303}
26304
26305
26306SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26307 PyObject *obj;
26308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26309 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26310 return SWIG_Py_Void();
26311}
26312
26313SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26314 return SWIG_Python_InitShadowInstance(args);
26315}
26316
26317SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26318 PyObject *resultobj = 0;
26319 wxGraphicsBrush *result = 0 ;
26320
26321 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26322 {
26323 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26327 return resultobj;
26328fail:
26329 return NULL;
26330}
26331
26332
26333SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26334 PyObject *resultobj = 0;
26335 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26336 void *argp1 = 0 ;
26337 int res1 = 0 ;
26338 PyObject *swig_obj[1] ;
26339
26340 if (!args) SWIG_fail;
26341 swig_obj[0] = args;
26342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26345 }
26346 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26347 {
26348 delete arg1;
26349
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 resultobj = SWIG_Py_Void();
26353 return resultobj;
26354fail:
26355 return NULL;
26356}
26357
26358
26359SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26360 PyObject *obj;
26361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26362 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26363 return SWIG_Py_Void();
26364}
26365
26366SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26367 return SWIG_Python_InitShadowInstance(args);
26368}
26369
26370SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26371 PyObject *resultobj = 0;
26372 wxGraphicsFont *result = 0 ;
26373
26374 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26375 {
26376 result = (wxGraphicsFont *)new wxGraphicsFont();
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26380 return resultobj;
26381fail:
26382 return NULL;
26383}
26384
26385
26386SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26387 PyObject *resultobj = 0;
26388 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26389 void *argp1 = 0 ;
26390 int res1 = 0 ;
26391 PyObject *swig_obj[1] ;
26392
26393 if (!args) SWIG_fail;
26394 swig_obj[0] = args;
26395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26396 if (!SWIG_IsOK(res1)) {
26397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26398 }
26399 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26400 {
26401 delete arg1;
26402
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407fail:
26408 return NULL;
26409}
26410
26411
26412SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26413 PyObject *obj;
26414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26415 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26416 return SWIG_Py_Void();
26417}
26418
26419SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26420 return SWIG_Python_InitShadowInstance(args);
26421}
26422
5c8c7dd3 26423SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26424 PyObject *resultobj = 0;
5c8c7dd3 26425 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26426 void *argp1 = 0 ;
26427 int res1 = 0 ;
26428 PyObject *swig_obj[1] ;
26429
26430 if (!args) SWIG_fail;
26431 swig_obj[0] = args;
5c8c7dd3 26432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
554f62e9 26433 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26435 }
5c8c7dd3 26436 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26437 {
554f62e9
RD
26438 delete arg1;
26439
554f62e9
RD
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_Py_Void();
26443 return resultobj;
26444fail:
26445 return NULL;
26446}
26447
26448
5c8c7dd3 26449SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26450 PyObject *resultobj = 0;
5c8c7dd3
RD
26451 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26452 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26453 void *argp1 = 0 ;
26454 int res1 = 0 ;
5c8c7dd3
RD
26455 void *argp2 = 0 ;
26456 int res2 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 char * kwnames[] = {
26460 (char *) "self",(char *) "t", NULL
26461 };
70d7cb34 26462
5c8c7dd3
RD
26463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26465 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26467 }
5c8c7dd3
RD
26468 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26470 if (!SWIG_IsOK(res2)) {
26471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26472 }
26473 if (!argp2) {
26474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26475 }
26476 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26477 {
5c8c7dd3 26478 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
5c8c7dd3 26481 resultobj = SWIG_Py_Void();
70d7cb34
RD
26482 return resultobj;
26483fail:
26484 return NULL;
26485}
26486
26487
5c8c7dd3 26488SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26489 PyObject *resultobj = 0;
5c8c7dd3
RD
26490 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26491 wxDouble arg2 = (wxDouble) 1.0 ;
26492 wxDouble arg3 = (wxDouble) 0.0 ;
26493 wxDouble arg4 = (wxDouble) 0.0 ;
26494 wxDouble arg5 = (wxDouble) 1.0 ;
26495 wxDouble arg6 = (wxDouble) 0.0 ;
26496 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26497 void *argp1 = 0 ;
26498 int res1 = 0 ;
5c8c7dd3
RD
26499 double val2 ;
26500 int ecode2 = 0 ;
26501 double val3 ;
26502 int ecode3 = 0 ;
26503 double val4 ;
26504 int ecode4 = 0 ;
26505 double val5 ;
26506 int ecode5 = 0 ;
26507 double val6 ;
26508 int ecode6 = 0 ;
26509 double val7 ;
26510 int ecode7 = 0 ;
26511 PyObject * obj0 = 0 ;
26512 PyObject * obj1 = 0 ;
26513 PyObject * obj2 = 0 ;
26514 PyObject * obj3 = 0 ;
26515 PyObject * obj4 = 0 ;
26516 PyObject * obj5 = 0 ;
26517 PyObject * obj6 = 0 ;
26518 char * kwnames[] = {
26519 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26520 };
70d7cb34 26521
5c8c7dd3
RD
26522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26524 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26526 }
5c8c7dd3
RD
26527 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26528 if (obj1) {
26529 ecode2 = SWIG_AsVal_double(obj1, &val2);
26530 if (!SWIG_IsOK(ecode2)) {
26531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26532 }
26533 arg2 = static_cast< wxDouble >(val2);
26534 }
26535 if (obj2) {
26536 ecode3 = SWIG_AsVal_double(obj2, &val3);
26537 if (!SWIG_IsOK(ecode3)) {
26538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26539 }
26540 arg3 = static_cast< wxDouble >(val3);
26541 }
26542 if (obj3) {
26543 ecode4 = SWIG_AsVal_double(obj3, &val4);
26544 if (!SWIG_IsOK(ecode4)) {
26545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26546 }
26547 arg4 = static_cast< wxDouble >(val4);
26548 }
26549 if (obj4) {
26550 ecode5 = SWIG_AsVal_double(obj4, &val5);
26551 if (!SWIG_IsOK(ecode5)) {
26552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26553 }
26554 arg5 = static_cast< wxDouble >(val5);
26555 }
26556 if (obj5) {
26557 ecode6 = SWIG_AsVal_double(obj5, &val6);
26558 if (!SWIG_IsOK(ecode6)) {
26559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26560 }
26561 arg6 = static_cast< wxDouble >(val6);
26562 }
26563 if (obj6) {
26564 ecode7 = SWIG_AsVal_double(obj6, &val7);
26565 if (!SWIG_IsOK(ecode7)) {
26566 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26567 }
26568 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26569 }
26570 {
5c8c7dd3 26571 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26572 if (PyErr_Occurred()) SWIG_fail;
26573 }
26574 resultobj = SWIG_Py_Void();
26575 return resultobj;
26576fail:
26577 return NULL;
26578}
26579
26580
248802d0
RD
26581SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26582 PyObject *resultobj = 0;
26583 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26584 wxDouble *arg2 = (wxDouble *) 0 ;
26585 wxDouble *arg3 = (wxDouble *) 0 ;
26586 wxDouble *arg4 = (wxDouble *) 0 ;
26587 wxDouble *arg5 = (wxDouble *) 0 ;
26588 wxDouble *arg6 = (wxDouble *) 0 ;
26589 wxDouble *arg7 = (wxDouble *) 0 ;
26590 void *argp1 = 0 ;
26591 int res1 = 0 ;
26592 wxDouble temp2 ;
26593 int res2 = SWIG_TMPOBJ ;
26594 wxDouble temp3 ;
26595 int res3 = SWIG_TMPOBJ ;
26596 wxDouble temp4 ;
26597 int res4 = SWIG_TMPOBJ ;
26598 wxDouble temp5 ;
26599 int res5 = SWIG_TMPOBJ ;
26600 wxDouble temp6 ;
26601 int res6 = SWIG_TMPOBJ ;
26602 wxDouble temp7 ;
26603 int res7 = SWIG_TMPOBJ ;
26604 PyObject *swig_obj[1] ;
26605
26606 arg2 = &temp2;
26607 arg3 = &temp3;
26608 arg4 = &temp4;
26609 arg5 = &temp5;
26610 arg6 = &temp6;
26611 arg7 = &temp7;
26612 if (!args) SWIG_fail;
26613 swig_obj[0] = args;
26614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26615 if (!SWIG_IsOK(res1)) {
26616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26617 }
26618 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26619 {
26620 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 resultobj = SWIG_Py_Void();
26624 if (SWIG_IsTmpObj(res2)) {
26625 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26626 } else {
26627 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26629 }
26630 if (SWIG_IsTmpObj(res3)) {
26631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26632 } else {
26633 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26635 }
26636 if (SWIG_IsTmpObj(res4)) {
26637 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26638 } else {
26639 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26641 }
26642 if (SWIG_IsTmpObj(res5)) {
26643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26644 } else {
26645 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26647 }
26648 if (SWIG_IsTmpObj(res6)) {
26649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26650 } else {
26651 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26653 }
26654 if (SWIG_IsTmpObj(res7)) {
26655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26656 } else {
26657 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26659 }
26660 return resultobj;
26661fail:
26662 return NULL;
26663}
26664
26665
5c8c7dd3 26666SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26667 PyObject *resultobj = 0;
5c8c7dd3 26668 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26669 void *argp1 = 0 ;
26670 int res1 = 0 ;
5c8c7dd3 26671 PyObject *swig_obj[1] ;
554f62e9 26672
5c8c7dd3
RD
26673 if (!args) SWIG_fail;
26674 swig_obj[0] = args;
26675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26676 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26678 }
5c8c7dd3 26679 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26680 {
5c8c7dd3 26681 (arg1)->Invert();
554f62e9
RD
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
72ef6efb 26684 resultobj = SWIG_Py_Void();
554f62e9
RD
26685 return resultobj;
26686fail:
26687 return NULL;
26688}
26689
26690
5c8c7dd3 26691SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26692 PyObject *resultobj = 0;
5c8c7dd3
RD
26693 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26694 wxGraphicsMatrix *arg2 = 0 ;
26695 bool result;
70d7cb34
RD
26696 void *argp1 = 0 ;
26697 int res1 = 0 ;
5c8c7dd3
RD
26698 void *argp2 = 0 ;
26699 int res2 = 0 ;
26700 PyObject * obj0 = 0 ;
26701 PyObject * obj1 = 0 ;
26702 char * kwnames[] = {
26703 (char *) "self",(char *) "t", NULL
26704 };
70d7cb34 26705
5c8c7dd3
RD
26706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26708 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26710 }
5c8c7dd3
RD
26711 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26713 if (!SWIG_IsOK(res2)) {
26714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26715 }
26716 if (!argp2) {
26717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26718 }
5c8c7dd3 26719 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26720 {
5c8c7dd3 26721 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26722 if (PyErr_Occurred()) SWIG_fail;
26723 }
5c8c7dd3
RD
26724 {
26725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26726 }
70d7cb34
RD
26727 return resultobj;
26728fail:
26729 return NULL;
26730}
26731
26732
5c8c7dd3
RD
26733SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26734 PyObject *resultobj = 0;
26735 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26736 bool result;
26737 void *argp1 = 0 ;
26738 int res1 = 0 ;
26739 PyObject *swig_obj[1] ;
70d7cb34 26740
5c8c7dd3
RD
26741 if (!args) SWIG_fail;
26742 swig_obj[0] = args;
26743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26744 if (!SWIG_IsOK(res1)) {
8f514ab4 26745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26746 }
5c8c7dd3
RD
26747 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26748 {
8f514ab4 26749 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26750 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26751 }
5c8c7dd3
RD
26752 {
26753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26754 }
26755 return resultobj;
70d7cb34 26756fail:
70d7cb34
RD
26757 return NULL;
26758}
26759
26760
5c8c7dd3 26761SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26762 PyObject *resultobj = 0;
5c8c7dd3 26763 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26764 wxDouble arg2 ;
26765 wxDouble arg3 ;
554f62e9
RD
26766 void *argp1 = 0 ;
26767 int res1 = 0 ;
72ef6efb
RD
26768 double val2 ;
26769 int ecode2 = 0 ;
26770 double val3 ;
26771 int ecode3 = 0 ;
5c8c7dd3
RD
26772 PyObject * obj0 = 0 ;
26773 PyObject * obj1 = 0 ;
26774 PyObject * obj2 = 0 ;
26775 char * kwnames[] = {
26776 (char *) "self",(char *) "dx",(char *) "dy", NULL
26777 };
72ef6efb 26778
5c8c7dd3
RD
26779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26781 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26783 }
5c8c7dd3
RD
26784 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26785 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26786 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26788 }
26789 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26790 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26791 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26793 }
26794 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26795 {
5c8c7dd3 26796 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 resultobj = SWIG_Py_Void();
26800 return resultobj;
26801fail:
26802 return NULL;
26803}
26804
26805
5c8c7dd3 26806SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26807 PyObject *resultobj = 0;
5c8c7dd3
RD
26808 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26809 wxDouble arg2 ;
26810 wxDouble arg3 ;
70d7cb34
RD
26811 void *argp1 = 0 ;
26812 int res1 = 0 ;
5c8c7dd3
RD
26813 double val2 ;
26814 int ecode2 = 0 ;
26815 double val3 ;
26816 int ecode3 = 0 ;
26817 PyObject * obj0 = 0 ;
26818 PyObject * obj1 = 0 ;
26819 PyObject * obj2 = 0 ;
26820 char * kwnames[] = {
26821 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26822 };
70d7cb34 26823
5c8c7dd3
RD
26824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26826 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26828 }
5c8c7dd3
RD
26829 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26830 ecode2 = SWIG_AsVal_double(obj1, &val2);
26831 if (!SWIG_IsOK(ecode2)) {
26832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26833 }
26834 arg2 = static_cast< wxDouble >(val2);
26835 ecode3 = SWIG_AsVal_double(obj2, &val3);
26836 if (!SWIG_IsOK(ecode3)) {
26837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26838 }
26839 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26840 {
5c8c7dd3 26841 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26842 if (PyErr_Occurred()) SWIG_fail;
26843 }
26844 resultobj = SWIG_Py_Void();
26845 return resultobj;
26846fail:
26847 return NULL;
26848}
26849
26850
5c8c7dd3 26851SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26852 PyObject *resultobj = 0;
5c8c7dd3
RD
26853 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26854 wxDouble arg2 ;
70d7cb34
RD
26855 void *argp1 = 0 ;
26856 int res1 = 0 ;
5c8c7dd3
RD
26857 double val2 ;
26858 int ecode2 = 0 ;
70d7cb34
RD
26859 PyObject * obj0 = 0 ;
26860 PyObject * obj1 = 0 ;
26861 char * kwnames[] = {
5c8c7dd3 26862 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26863 };
26864
5c8c7dd3
RD
26865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26867 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26869 }
5c8c7dd3
RD
26870 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26871 ecode2 = SWIG_AsVal_double(obj1, &val2);
26872 if (!SWIG_IsOK(ecode2)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26874 }
26875 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26876 {
5c8c7dd3 26877 (arg1)->Rotate(arg2);
70d7cb34
RD
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 resultobj = SWIG_Py_Void();
26881 return resultobj;
26882fail:
26883 return NULL;
26884}
26885
26886
5c8c7dd3 26887SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26888 PyObject *resultobj = 0;
5c8c7dd3
RD
26889 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26890 wxDouble *arg2 = (wxDouble *) 0 ;
26891 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26892 void *argp1 = 0 ;
26893 int res1 = 0 ;
5c8c7dd3
RD
26894 wxDouble temp2 ;
26895 int res2 = 0 ;
26896 wxDouble temp3 ;
26897 int res3 = 0 ;
26898 PyObject * obj0 = 0 ;
26899 PyObject * obj1 = 0 ;
26900 PyObject * obj2 = 0 ;
26901 char * kwnames[] = {
26902 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26903 };
72ef6efb 26904
5c8c7dd3
RD
26905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26907 if (!SWIG_IsOK(res1)) {
8f514ab4 26908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26909 }
5c8c7dd3
RD
26910 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26911 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26912 double val;
26913 int ecode = SWIG_AsVal_double(obj1, &val);
26914 if (!SWIG_IsOK(ecode)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26916 }
26917 temp2 = static_cast< wxDouble >(val);
26918 arg2 = &temp2;
26919 res2 = SWIG_AddTmpMask(ecode);
26920 }
26921 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26922 double val;
26923 int ecode = SWIG_AsVal_double(obj2, &val);
26924 if (!SWIG_IsOK(ecode)) {
26925 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26926 }
26927 temp3 = static_cast< wxDouble >(val);
26928 arg3 = &temp3;
26929 res3 = SWIG_AddTmpMask(ecode);
26930 }
26931 {
8f514ab4 26932 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26933 if (PyErr_Occurred()) SWIG_fail;
26934 }
26935 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26936 if (SWIG_IsTmpObj(res2)) {
26937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26938 } else {
26939 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26941 }
26942 if (SWIG_IsTmpObj(res3)) {
26943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26944 } else {
26945 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26947 }
72ef6efb
RD
26948 return resultobj;
26949fail:
26950 return NULL;
26951}
26952
26953
5c8c7dd3
RD
26954SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26955 PyObject *resultobj = 0;
26956 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26957 wxDouble *arg2 = (wxDouble *) 0 ;
26958 wxDouble *arg3 = (wxDouble *) 0 ;
26959 void *argp1 = 0 ;
26960 int res1 = 0 ;
26961 wxDouble temp2 ;
26962 int res2 = 0 ;
26963 wxDouble temp3 ;
26964 int res3 = 0 ;
26965 PyObject * obj0 = 0 ;
26966 PyObject * obj1 = 0 ;
26967 PyObject * obj2 = 0 ;
26968 char * kwnames[] = {
26969 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26970 };
26971
26972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26974 if (!SWIG_IsOK(res1)) {
8f514ab4 26975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26976 }
26977 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26978 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26979 double val;
26980 int ecode = SWIG_AsVal_double(obj1, &val);
26981 if (!SWIG_IsOK(ecode)) {
26982 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26983 }
26984 temp2 = static_cast< wxDouble >(val);
26985 arg2 = &temp2;
26986 res2 = SWIG_AddTmpMask(ecode);
26987 }
26988 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26989 double val;
26990 int ecode = SWIG_AsVal_double(obj2, &val);
26991 if (!SWIG_IsOK(ecode)) {
26992 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26993 }
26994 temp3 = static_cast< wxDouble >(val);
26995 arg3 = &temp3;
26996 res3 = SWIG_AddTmpMask(ecode);
26997 }
26998 {
8f514ab4 26999 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 if (SWIG_IsTmpObj(res2)) {
27004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27005 } else {
27006 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27008 }
27009 if (SWIG_IsTmpObj(res3)) {
27010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27011 } else {
27012 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27014 }
27015 return resultobj;
27016fail:
27017 return NULL;
27018}
27019
27020
27021SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27022 PyObject *resultobj = 0;
27023 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27024 void *result = 0 ;
27025 void *argp1 = 0 ;
27026 int res1 = 0 ;
27027 PyObject *swig_obj[1] ;
27028
27029 if (!args) SWIG_fail;
27030 swig_obj[0] = args;
27031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27032 if (!SWIG_IsOK(res1)) {
27033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27034 }
27035 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27036 {
27037 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27038 if (PyErr_Occurred()) SWIG_fail;
27039 }
27040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27041 return resultobj;
27042fail:
27043 return NULL;
27044}
27045
27046
27047SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27048 PyObject *obj;
27049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27050 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27051 return SWIG_Py_Void();
27052}
27053
27054SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
27055 PyObject *resultobj = 0;
27056 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
27057 void *argp1 = 0 ;
27058 int res1 = 0 ;
27059 PyObject *swig_obj[1] ;
27060
27061 if (!args) SWIG_fail;
27062 swig_obj[0] = args;
5c8c7dd3 27063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 27064 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
27066 }
27067 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27068 {
5c8c7dd3
RD
27069 delete arg1;
27070
72ef6efb
RD
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
5c8c7dd3 27073 resultobj = SWIG_Py_Void();
70d7cb34
RD
27074 return resultobj;
27075fail:
27076 return NULL;
27077}
27078
27079
5c8c7dd3 27080SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27081 PyObject *resultobj = 0;
27082 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27083 wxDouble arg2 ;
27084 wxDouble arg3 ;
70d7cb34
RD
27085 void *argp1 = 0 ;
27086 int res1 = 0 ;
27087 double val2 ;
27088 int ecode2 = 0 ;
27089 double val3 ;
27090 int ecode3 = 0 ;
70d7cb34 27091
5c8c7dd3 27092 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
27093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27096 }
27097 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27098 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27099 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27101 }
27102 arg2 = static_cast< wxDouble >(val2);
27103 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27104 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27106 }
27107 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27108 {
5c8c7dd3 27109 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_Py_Void();
27113 return resultobj;
27114fail:
27115 return NULL;
27116}
27117
27118
5c8c7dd3 27119SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27120 PyObject *resultobj = 0;
27121 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27122 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 wxPoint2D temp2 ;
70d7cb34 27126
5c8c7dd3 27127 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
27128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27129 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27131 }
27132 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27133 {
27134 arg2 = &temp2;
27135 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27136 }
70d7cb34 27137 {
5c8c7dd3 27138 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27139 if (PyErr_Occurred()) SWIG_fail;
27140 }
27141 resultobj = SWIG_Py_Void();
27142 return resultobj;
27143fail:
27144 return NULL;
27145}
27146
27147
5c8c7dd3 27148SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 27149 int argc;
5c8c7dd3 27150 PyObject *argv[4];
70d7cb34 27151
5c8c7dd3 27152 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 27153 --argc;
5c8c7dd3
RD
27154 if (argc == 2) {
27155 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27156 }
5c8c7dd3
RD
27157 if (argc == 3) {
27158 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
27159 }
27160
27161fail:
5c8c7dd3 27162 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
27163 return NULL;
27164}
27165
27166
5c8c7dd3 27167SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27168 PyObject *resultobj = 0;
27169 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27170 wxDouble arg2 ;
27171 wxDouble arg3 ;
70d7cb34
RD
27172 void *argp1 = 0 ;
27173 int res1 = 0 ;
27174 double val2 ;
27175 int ecode2 = 0 ;
27176 double val3 ;
27177 int ecode3 = 0 ;
70d7cb34 27178
5c8c7dd3
RD
27179 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27181 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27183 }
27184 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27185 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27186 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27188 }
27189 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27190 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27191 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27193 }
27194 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27195 {
5c8c7dd3 27196 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
27197 if (PyErr_Occurred()) SWIG_fail;
27198 }
27199 resultobj = SWIG_Py_Void();
27200 return resultobj;
27201fail:
27202 return NULL;
27203}
27204
27205
5c8c7dd3 27206SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27207 PyObject *resultobj = 0;
27208 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27209 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27210 void *argp1 = 0 ;
27211 int res1 = 0 ;
5c8c7dd3 27212 wxPoint2D temp2 ;
70d7cb34 27213
5c8c7dd3
RD
27214 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27216 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27218 }
27219 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27220 {
5c8c7dd3
RD
27221 arg2 = &temp2;
27222 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27223 }
27224 {
27225 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27226 if (PyErr_Occurred()) SWIG_fail;
27227 }
27228 resultobj = SWIG_Py_Void();
27229 return resultobj;
27230fail:
27231 return NULL;
27232}
27233
27234
5c8c7dd3
RD
27235SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27236 int argc;
27237 PyObject *argv[4];
70d7cb34 27238
5c8c7dd3
RD
27239 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27240 --argc;
27241 if (argc == 2) {
27242 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 27243 }
5c8c7dd3
RD
27244 if (argc == 3) {
27245 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 27246 }
5c8c7dd3 27247
70d7cb34 27248fail:
5c8c7dd3 27249 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
27250 return NULL;
27251}
27252
27253
5c8c7dd3 27254SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27255 PyObject *resultobj = 0;
27256 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27257 wxDouble arg2 ;
27258 wxDouble arg3 ;
27259 wxDouble arg4 ;
27260 wxDouble arg5 ;
27261 wxDouble arg6 ;
5c8c7dd3 27262 wxDouble arg7 ;
70d7cb34
RD
27263 void *argp1 = 0 ;
27264 int res1 = 0 ;
27265 double val2 ;
27266 int ecode2 = 0 ;
27267 double val3 ;
27268 int ecode3 = 0 ;
27269 double val4 ;
27270 int ecode4 = 0 ;
27271 double val5 ;
27272 int ecode5 = 0 ;
27273 double val6 ;
27274 int ecode6 = 0 ;
5c8c7dd3
RD
27275 double val7 ;
27276 int ecode7 = 0 ;
70d7cb34 27277
5c8c7dd3
RD
27278 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27280 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27282 }
27283 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27284 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27285 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27287 }
27288 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27289 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27290 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27292 }
27293 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 27294 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 27295 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 27296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
27297 }
27298 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 27299 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 27300 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 27301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
27302 }
27303 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 27304 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 27305 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 27306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
27307 }
27308 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
27309 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27310 if (!SWIG_IsOK(ecode7)) {
27311 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27312 }
27313 arg7 = static_cast< wxDouble >(val7);
70d7cb34 27314 {
5c8c7dd3 27315 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27316 if (PyErr_Occurred()) SWIG_fail;
27317 }
27318 resultobj = SWIG_Py_Void();
27319 return resultobj;
27320fail:
27321 return NULL;
27322}
27323
27324
5c8c7dd3 27325SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27326 PyObject *resultobj = 0;
27327 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27328 wxPoint2D *arg2 = 0 ;
27329 wxPoint2D *arg3 = 0 ;
27330 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
27331 void *argp1 = 0 ;
27332 int res1 = 0 ;
5c8c7dd3
RD
27333 wxPoint2D temp2 ;
27334 wxPoint2D temp3 ;
27335 wxPoint2D temp4 ;
70d7cb34 27336
5c8c7dd3
RD
27337 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27339 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27341 }
27342 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27343 {
5c8c7dd3
RD
27344 arg2 = &temp2;
27345 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27346 }
5c8c7dd3
RD
27347 {
27348 arg3 = &temp3;
27349 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 27350 }
70d7cb34 27351 {
5c8c7dd3
RD
27352 arg4 = &temp4;
27353 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27354 }
27355 {
27356 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
27357 if (PyErr_Occurred()) SWIG_fail;
27358 }
27359 resultobj = SWIG_Py_Void();
27360 return resultobj;
27361fail:
27362 return NULL;
27363}
27364
27365
5c8c7dd3
RD
27366SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27367 int argc;
27368 PyObject *argv[8];
70d7cb34 27369
5c8c7dd3
RD
27370 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27371 --argc;
27372 if (argc == 4) {
27373 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27374 }
5c8c7dd3
RD
27375 if (argc == 7) {
27376 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27377 }
5c8c7dd3 27378
70d7cb34 27379fail:
5c8c7dd3 27380 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27381 return NULL;
27382}
27383
27384
5c8c7dd3 27385SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27386 PyObject *resultobj = 0;
27387 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27388 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27389 void *argp1 = 0 ;
27390 int res1 = 0 ;
5c8c7dd3
RD
27391 void *argp2 = 0 ;
27392 int res2 = 0 ;
70d7cb34
RD
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char * kwnames[] = {
5c8c7dd3 27396 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27397 };
27398
5c8c7dd3 27399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27403 }
27404 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27406 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27408 }
27409 if (!argp2) {
27410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27411 }
5c8c7dd3 27412 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27413 {
5c8c7dd3 27414 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_Py_Void();
27418 return resultobj;
27419fail:
27420 return NULL;
27421}
27422
27423
5c8c7dd3 27424SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27425 PyObject *resultobj = 0;
27426 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27427 void *argp1 = 0 ;
27428 int res1 = 0 ;
5c8c7dd3 27429 PyObject *swig_obj[1] ;
70d7cb34 27430
5c8c7dd3
RD
27431 if (!args) SWIG_fail;
27432 swig_obj[0] = args;
27433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27434 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27436 }
27437 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27438 {
5c8c7dd3 27439 (arg1)->CloseSubpath();
70d7cb34
RD
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 resultobj = SWIG_Py_Void();
27443 return resultobj;
27444fail:
27445 return NULL;
27446}
27447
27448
5c8c7dd3 27449SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27450 PyObject *resultobj = 0;
27451 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27452 wxPoint2D result;
70d7cb34
RD
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 PyObject *swig_obj[1] ;
27456
27457 if (!args) SWIG_fail;
27458 swig_obj[0] = args;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
8f514ab4 27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27462 }
27463 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27464 {
8f514ab4 27465 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
5c8c7dd3 27468 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27469 return resultobj;
27470fail:
27471 return NULL;
27472}
27473
27474
5c8c7dd3 27475SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27476 PyObject *resultobj = 0;
27477 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27478 wxDouble arg2 ;
27479 wxDouble arg3 ;
5c8c7dd3
RD
27480 wxDouble arg4 ;
27481 wxDouble arg5 ;
27482 wxDouble arg6 ;
89d1e2ee 27483 bool arg7 = (bool) true ;
70d7cb34
RD
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 double val2 ;
27487 int ecode2 = 0 ;
27488 double val3 ;
27489 int ecode3 = 0 ;
5c8c7dd3 27490 double val4 ;
70d7cb34 27491 int ecode4 = 0 ;
5c8c7dd3
RD
27492 double val5 ;
27493 int ecode5 = 0 ;
27494 double val6 ;
27495 int ecode6 = 0 ;
27496 bool val7 ;
27497 int ecode7 = 0 ;
70d7cb34 27498
89d1e2ee 27499 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27501 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27503 }
27504 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27505 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27506 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27508 }
27509 arg2 = static_cast< wxDouble >(val2);
27510 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27511 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27513 }
27514 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27515 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27516 if (!SWIG_IsOK(ecode4)) {
27517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27518 }
27519 arg4 = static_cast< wxDouble >(val4);
27520 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27521 if (!SWIG_IsOK(ecode5)) {
27522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27523 }
27524 arg5 = static_cast< wxDouble >(val5);
27525 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27526 if (!SWIG_IsOK(ecode6)) {
27527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27528 }
27529 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
27530 if (swig_obj[6]) {
27531 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27532 if (!SWIG_IsOK(ecode7)) {
27533 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27534 }
27535 arg7 = static_cast< bool >(val7);
27536 }
70d7cb34 27537 {
5c8c7dd3 27538 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27539 if (PyErr_Occurred()) SWIG_fail;
27540 }
5c8c7dd3 27541 resultobj = SWIG_Py_Void();
70d7cb34
RD
27542 return resultobj;
27543fail:
27544 return NULL;
27545}
27546
27547
5c8c7dd3 27548SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27549 PyObject *resultobj = 0;
27550 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27551 wxPoint2D *arg2 = 0 ;
27552 wxDouble arg3 ;
27553 wxDouble arg4 ;
27554 wxDouble arg5 ;
89d1e2ee 27555 bool arg6 = (bool) true ;
70d7cb34
RD
27556 void *argp1 = 0 ;
27557 int res1 = 0 ;
5c8c7dd3
RD
27558 wxPoint2D temp2 ;
27559 double val3 ;
70d7cb34 27560 int ecode3 = 0 ;
5c8c7dd3
RD
27561 double val4 ;
27562 int ecode4 = 0 ;
27563 double val5 ;
27564 int ecode5 = 0 ;
27565 bool val6 ;
27566 int ecode6 = 0 ;
70d7cb34 27567
89d1e2ee 27568 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27570 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27572 }
27573 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27574 {
5c8c7dd3
RD
27575 arg2 = &temp2;
27576 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27577 }
5c8c7dd3
RD
27578 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27579 if (!SWIG_IsOK(ecode3)) {
27580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27581 }
27582 arg3 = static_cast< wxDouble >(val3);
27583 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27584 if (!SWIG_IsOK(ecode4)) {
27585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27586 }
27587 arg4 = static_cast< wxDouble >(val4);
27588 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27589 if (!SWIG_IsOK(ecode5)) {
27590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27591 }
27592 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
27593 if (swig_obj[5]) {
27594 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27595 if (!SWIG_IsOK(ecode6)) {
27596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27597 }
27598 arg6 = static_cast< bool >(val6);
27599 }
70d7cb34 27600 {
5c8c7dd3
RD
27601 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27602 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27603 }
5c8c7dd3 27604 resultobj = SWIG_Py_Void();
70d7cb34
RD
27605 return resultobj;
27606fail:
27607 return NULL;
27608}
27609
27610
5c8c7dd3 27611SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27612 int argc;
5c8c7dd3 27613 PyObject *argv[8];
70d7cb34 27614
5c8c7dd3 27615 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27616 --argc;
89d1e2ee
RD
27617 if ((argc >= 5) && (argc <= 6)) {
27618 int _v = 0;
27619 {
27620 {
27621 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27622 }
27623 }
27624 if (!_v) goto check_1;
27625 if (argc > 5) {
27626 {
27627 {
27628 int res = SWIG_AsVal_bool(argv[5], NULL);
27629 _v = SWIG_CheckState(res);
27630 }
27631 }
27632 if (!_v) goto check_1;
27633 }
5c8c7dd3 27634 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27635 }
89d1e2ee
RD
27636check_1:
27637
27638 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 27639 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27640 }
27641
27642fail:
5c8c7dd3 27643 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27644 return NULL;
27645}
27646
27647
5c8c7dd3 27648SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27649 PyObject *resultobj = 0;
5c8c7dd3
RD
27650 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27651 wxDouble arg2 ;
27652 wxDouble arg3 ;
27653 wxDouble arg4 ;
27654 wxDouble arg5 ;
70d7cb34
RD
27655 void *argp1 = 0 ;
27656 int res1 = 0 ;
5c8c7dd3
RD
27657 double val2 ;
27658 int ecode2 = 0 ;
27659 double val3 ;
27660 int ecode3 = 0 ;
27661 double val4 ;
27662 int ecode4 = 0 ;
27663 double val5 ;
27664 int ecode5 = 0 ;
27665 PyObject * obj0 = 0 ;
27666 PyObject * obj1 = 0 ;
27667 PyObject * obj2 = 0 ;
27668 PyObject * obj3 = 0 ;
27669 PyObject * obj4 = 0 ;
27670 char * kwnames[] = {
27671 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27672 };
70d7cb34 27673
5c8c7dd3
RD
27674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27676 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27678 }
5c8c7dd3
RD
27679 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27680 ecode2 = SWIG_AsVal_double(obj1, &val2);
27681 if (!SWIG_IsOK(ecode2)) {
27682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27683 }
27684 arg2 = static_cast< wxDouble >(val2);
27685 ecode3 = SWIG_AsVal_double(obj2, &val3);
27686 if (!SWIG_IsOK(ecode3)) {
27687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27688 }
27689 arg3 = static_cast< wxDouble >(val3);
27690 ecode4 = SWIG_AsVal_double(obj3, &val4);
27691 if (!SWIG_IsOK(ecode4)) {
27692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27693 }
27694 arg4 = static_cast< wxDouble >(val4);
27695 ecode5 = SWIG_AsVal_double(obj4, &val5);
27696 if (!SWIG_IsOK(ecode5)) {
27697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27698 }
27699 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27700 {
5c8c7dd3 27701 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27702 if (PyErr_Occurred()) SWIG_fail;
27703 }
27704 resultobj = SWIG_Py_Void();
27705 return resultobj;
27706fail:
27707 return NULL;
27708}
27709
27710
5c8c7dd3 27711SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27712 PyObject *resultobj = 0;
5c8c7dd3
RD
27713 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27714 wxDouble arg2 ;
27715 wxDouble arg3 ;
27716 wxDouble arg4 ;
27717 wxDouble arg5 ;
70d7cb34
RD
27718 void *argp1 = 0 ;
27719 int res1 = 0 ;
5c8c7dd3
RD
27720 double val2 ;
27721 int ecode2 = 0 ;
27722 double val3 ;
27723 int ecode3 = 0 ;
27724 double val4 ;
27725 int ecode4 = 0 ;
27726 double val5 ;
27727 int ecode5 = 0 ;
70d7cb34
RD
27728 PyObject * obj0 = 0 ;
27729 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27730 PyObject * obj2 = 0 ;
27731 PyObject * obj3 = 0 ;
27732 PyObject * obj4 = 0 ;
70d7cb34 27733 char * kwnames[] = {
5c8c7dd3 27734 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27735 };
27736
5c8c7dd3
RD
27737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27739 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27741 }
5c8c7dd3
RD
27742 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27743 ecode2 = SWIG_AsVal_double(obj1, &val2);
27744 if (!SWIG_IsOK(ecode2)) {
27745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27746 }
27747 arg2 = static_cast< wxDouble >(val2);
27748 ecode3 = SWIG_AsVal_double(obj2, &val3);
27749 if (!SWIG_IsOK(ecode3)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27751 }
27752 arg3 = static_cast< wxDouble >(val3);
27753 ecode4 = SWIG_AsVal_double(obj3, &val4);
27754 if (!SWIG_IsOK(ecode4)) {
27755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27756 }
27757 arg4 = static_cast< wxDouble >(val4);
27758 ecode5 = SWIG_AsVal_double(obj4, &val5);
27759 if (!SWIG_IsOK(ecode5)) {
27760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27761 }
27762 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27763 {
5c8c7dd3 27764 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27765 if (PyErr_Occurred()) SWIG_fail;
27766 }
27767 resultobj = SWIG_Py_Void();
27768 return resultobj;
27769fail:
27770 return NULL;
27771}
27772
27773
5c8c7dd3 27774SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27775 PyObject *resultobj = 0;
5c8c7dd3
RD
27776 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27777 wxDouble arg2 ;
27778 wxDouble arg3 ;
27779 wxDouble arg4 ;
70d7cb34
RD
27780 void *argp1 = 0 ;
27781 int res1 = 0 ;
5c8c7dd3
RD
27782 double val2 ;
27783 int ecode2 = 0 ;
27784 double val3 ;
27785 int ecode3 = 0 ;
27786 double val4 ;
27787 int ecode4 = 0 ;
70d7cb34
RD
27788 PyObject * obj0 = 0 ;
27789 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27790 PyObject * obj2 = 0 ;
27791 PyObject * obj3 = 0 ;
70d7cb34 27792 char * kwnames[] = {
5c8c7dd3 27793 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27794 };
27795
5c8c7dd3
RD
27796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27798 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27800 }
5c8c7dd3
RD
27801 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27802 ecode2 = SWIG_AsVal_double(obj1, &val2);
27803 if (!SWIG_IsOK(ecode2)) {
27804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27805 }
27806 arg2 = static_cast< wxDouble >(val2);
27807 ecode3 = SWIG_AsVal_double(obj2, &val3);
27808 if (!SWIG_IsOK(ecode3)) {
27809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27810 }
27811 arg3 = static_cast< wxDouble >(val3);
27812 ecode4 = SWIG_AsVal_double(obj3, &val4);
27813 if (!SWIG_IsOK(ecode4)) {
27814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27815 }
27816 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27817 {
5c8c7dd3 27818 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823fail:
27824 return NULL;
27825}
27826
27827
5c8c7dd3 27828SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27829 PyObject *resultobj = 0;
5c8c7dd3
RD
27830 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27831 wxDouble arg2 ;
27832 wxDouble arg3 ;
27833 wxDouble arg4 ;
27834 wxDouble arg5 ;
27835 wxDouble arg6 ;
70d7cb34
RD
27836 void *argp1 = 0 ;
27837 int res1 = 0 ;
27838 double val2 ;
27839 int ecode2 = 0 ;
27840 double val3 ;
27841 int ecode3 = 0 ;
27842 double val4 ;
27843 int ecode4 = 0 ;
27844 double val5 ;
27845 int ecode5 = 0 ;
27846 double val6 ;
27847 int ecode6 = 0 ;
70d7cb34
RD
27848 PyObject * obj0 = 0 ;
27849 PyObject * obj1 = 0 ;
27850 PyObject * obj2 = 0 ;
27851 PyObject * obj3 = 0 ;
27852 PyObject * obj4 = 0 ;
27853 PyObject * obj5 = 0 ;
70d7cb34 27854 char * kwnames[] = {
5c8c7dd3 27855 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27856 };
27857
5c8c7dd3
RD
27858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27860 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27862 }
5c8c7dd3
RD
27863 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27864 ecode2 = SWIG_AsVal_double(obj1, &val2);
27865 if (!SWIG_IsOK(ecode2)) {
27866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27867 }
27868 arg2 = static_cast< wxDouble >(val2);
27869 ecode3 = SWIG_AsVal_double(obj2, &val3);
27870 if (!SWIG_IsOK(ecode3)) {
27871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27872 }
27873 arg3 = static_cast< wxDouble >(val3);
27874 ecode4 = SWIG_AsVal_double(obj3, &val4);
27875 if (!SWIG_IsOK(ecode4)) {
27876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27877 }
27878 arg4 = static_cast< wxDouble >(val4);
27879 ecode5 = SWIG_AsVal_double(obj4, &val5);
27880 if (!SWIG_IsOK(ecode5)) {
27881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27882 }
27883 arg5 = static_cast< wxDouble >(val5);
27884 ecode6 = SWIG_AsVal_double(obj5, &val6);
27885 if (!SWIG_IsOK(ecode6)) {
27886 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27887 }
27888 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27889 {
5c8c7dd3 27890 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 resultobj = SWIG_Py_Void();
27894 return resultobj;
27895fail:
27896 return NULL;
27897}
27898
27899
5c8c7dd3 27900SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27901 PyObject *resultobj = 0;
5c8c7dd3
RD
27902 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27903 wxDouble arg2 ;
27904 wxDouble arg3 ;
27905 wxDouble arg4 ;
27906 wxDouble arg5 ;
70d7cb34
RD
27907 void *argp1 = 0 ;
27908 int res1 = 0 ;
5c8c7dd3
RD
27909 double val2 ;
27910 int ecode2 = 0 ;
27911 double val3 ;
27912 int ecode3 = 0 ;
27913 double val4 ;
27914 int ecode4 = 0 ;
27915 double val5 ;
27916 int ecode5 = 0 ;
27917 PyObject * obj0 = 0 ;
27918 PyObject * obj1 = 0 ;
27919 PyObject * obj2 = 0 ;
27920 PyObject * obj3 = 0 ;
27921 PyObject * obj4 = 0 ;
27922 char * kwnames[] = {
27923 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27924 };
70d7cb34 27925
5c8c7dd3
RD
27926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27928 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27930 }
5c8c7dd3
RD
27931 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27932 ecode2 = SWIG_AsVal_double(obj1, &val2);
27933 if (!SWIG_IsOK(ecode2)) {
27934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27935 }
27936 arg2 = static_cast< wxDouble >(val2);
27937 ecode3 = SWIG_AsVal_double(obj2, &val3);
27938 if (!SWIG_IsOK(ecode3)) {
27939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27940 }
27941 arg3 = static_cast< wxDouble >(val3);
27942 ecode4 = SWIG_AsVal_double(obj3, &val4);
27943 if (!SWIG_IsOK(ecode4)) {
27944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27945 }
27946 arg4 = static_cast< wxDouble >(val4);
27947 ecode5 = SWIG_AsVal_double(obj4, &val5);
27948 if (!SWIG_IsOK(ecode5)) {
27949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27950 }
27951 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27952 {
5c8c7dd3 27953 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 resultobj = SWIG_Py_Void();
27957 return resultobj;
27958fail:
27959 return NULL;
27960}
27961
27962
5c8c7dd3 27963SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27964 PyObject *resultobj = 0;
5c8c7dd3
RD
27965 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27966 wxDouble arg2 ;
27967 wxDouble arg3 ;
27968 wxDouble arg4 ;
27969 wxDouble arg5 ;
27970 wxDouble arg6 ;
70d7cb34
RD
27971 void *argp1 = 0 ;
27972 int res1 = 0 ;
5c8c7dd3
RD
27973 double val2 ;
27974 int ecode2 = 0 ;
27975 double val3 ;
27976 int ecode3 = 0 ;
27977 double val4 ;
27978 int ecode4 = 0 ;
27979 double val5 ;
27980 int ecode5 = 0 ;
27981 double val6 ;
27982 int ecode6 = 0 ;
70d7cb34
RD
27983 PyObject * obj0 = 0 ;
27984 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27985 PyObject * obj2 = 0 ;
27986 PyObject * obj3 = 0 ;
27987 PyObject * obj4 = 0 ;
27988 PyObject * obj5 = 0 ;
70d7cb34 27989 char * kwnames[] = {
5c8c7dd3 27990 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27991 };
27992
5c8c7dd3
RD
27993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27995 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27997 }
5c8c7dd3
RD
27998 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27999 ecode2 = SWIG_AsVal_double(obj1, &val2);
28000 if (!SWIG_IsOK(ecode2)) {
28001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28002 }
28003 arg2 = static_cast< wxDouble >(val2);
28004 ecode3 = SWIG_AsVal_double(obj2, &val3);
28005 if (!SWIG_IsOK(ecode3)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28007 }
28008 arg3 = static_cast< wxDouble >(val3);
28009 ecode4 = SWIG_AsVal_double(obj3, &val4);
28010 if (!SWIG_IsOK(ecode4)) {
28011 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28012 }
28013 arg4 = static_cast< wxDouble >(val4);
28014 ecode5 = SWIG_AsVal_double(obj4, &val5);
28015 if (!SWIG_IsOK(ecode5)) {
28016 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28017 }
28018 arg5 = static_cast< wxDouble >(val5);
28019 ecode6 = SWIG_AsVal_double(obj5, &val6);
28020 if (!SWIG_IsOK(ecode6)) {
28021 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28022 }
28023 arg6 = static_cast< wxDouble >(val6);
70d7cb34 28024 {
5c8c7dd3 28025 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
28026 if (PyErr_Occurred()) SWIG_fail;
28027 }
5c8c7dd3 28028 resultobj = SWIG_Py_Void();
70d7cb34
RD
28029 return resultobj;
28030fail:
28031 return NULL;
28032}
28033
28034
5c8c7dd3 28035SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 28036 PyObject *resultobj = 0;
5c8c7dd3
RD
28037 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28038 void *result = 0 ;
70d7cb34
RD
28039 void *argp1 = 0 ;
28040 int res1 = 0 ;
28041 PyObject *swig_obj[1] ;
28042
28043 if (!args) SWIG_fail;
28044 swig_obj[0] = args;
5c8c7dd3 28045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28046 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28048 }
5c8c7dd3 28049 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28050 {
5c8c7dd3 28051 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
5c8c7dd3 28054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
28055 return resultobj;
28056fail:
28057 return NULL;
28058}
28059
28060
5c8c7dd3 28061SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28062 PyObject *resultobj = 0;
5c8c7dd3
RD
28063 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28064 void *arg2 = (void *) 0 ;
70d7cb34
RD
28065 void *argp1 = 0 ;
28066 int res1 = 0 ;
5c8c7dd3 28067 int res2 ;
70d7cb34
RD
28068 PyObject * obj0 = 0 ;
28069 PyObject * obj1 = 0 ;
70d7cb34 28070 char * kwnames[] = {
5c8c7dd3 28071 (char *) "self",(char *) "p", NULL
70d7cb34
RD
28072 };
28073
5c8c7dd3
RD
28074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28076 if (!SWIG_IsOK(res1)) {
8f514ab4 28077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
28078 }
28079 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28080 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28081 if (!SWIG_IsOK(res2)) {
28082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 28083 }
70d7cb34 28084 {
8f514ab4 28085 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 resultobj = SWIG_Py_Void();
28089 return resultobj;
28090fail:
28091 return NULL;
28092}
28093
28094
5c8c7dd3 28095SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28096 PyObject *resultobj = 0;
5c8c7dd3
RD
28097 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28098 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
5c8c7dd3
RD
28101 void *argp2 = 0 ;
28102 int res2 = 0 ;
70d7cb34
RD
28103 PyObject * obj0 = 0 ;
28104 PyObject * obj1 = 0 ;
70d7cb34 28105 char * kwnames[] = {
5c8c7dd3 28106 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
28107 };
28108
5c8c7dd3
RD
28109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28111 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28113 }
5c8c7dd3
RD
28114 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28116 if (!SWIG_IsOK(res2)) {
28117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28118 }
28119 if (!argp2) {
28120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28121 }
28122 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 28123 {
5c8c7dd3 28124 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
28125 if (PyErr_Occurred()) SWIG_fail;
28126 }
28127 resultobj = SWIG_Py_Void();
28128 return resultobj;
28129fail:
28130 return NULL;
28131}
28132
28133
5c8c7dd3 28134SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 28135 PyObject *resultobj = 0;
5c8c7dd3 28136 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 28137 wxRect2D result;
70d7cb34
RD
28138 void *argp1 = 0 ;
28139 int res1 = 0 ;
5c8c7dd3 28140 PyObject *swig_obj[1] ;
70d7cb34 28141
5c8c7dd3
RD
28142 if (!args) SWIG_fail;
28143 swig_obj[0] = args;
28144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28145 if (!SWIG_IsOK(res1)) {
8f514ab4 28146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28147 }
5c8c7dd3 28148 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28149 {
8f514ab4 28150 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
4fe9ce47 28153 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
28154 return resultobj;
28155fail:
28156 return NULL;
28157}
28158
28159
5c8c7dd3 28160SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28161 PyObject *resultobj = 0;
5c8c7dd3
RD
28162 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28163 wxDouble arg2 ;
28164 wxDouble arg3 ;
8f514ab4 28165 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28166 bool result;
70d7cb34
RD
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
5c8c7dd3
RD
28169 double val2 ;
28170 int ecode2 = 0 ;
28171 double val3 ;
28172 int ecode3 = 0 ;
28173 int val4 ;
28174 int ecode4 = 0 ;
70d7cb34 28175
5c8c7dd3
RD
28176 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28178 if (!SWIG_IsOK(res1)) {
8f514ab4 28179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28180 }
5c8c7dd3
RD
28181 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28182 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28183 if (!SWIG_IsOK(ecode2)) {
28184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28185 }
28186 arg2 = static_cast< wxDouble >(val2);
28187 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28188 if (!SWIG_IsOK(ecode3)) {
28189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28190 }
28191 arg3 = static_cast< wxDouble >(val3);
28192 if (swig_obj[3]) {
28193 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28194 if (!SWIG_IsOK(ecode4)) {
28195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28196 }
28197 arg4 = static_cast< int >(val4);
70d7cb34
RD
28198 }
28199 {
8f514ab4 28200 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
5c8c7dd3
RD
28203 {
28204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28205 }
28206 return resultobj;
28207fail:
28208 return NULL;
28209}
28210
28211
5c8c7dd3 28212SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28213 PyObject *resultobj = 0;
5c8c7dd3 28214 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 28215 wxPoint2D *arg2 = 0 ;
8f514ab4 28216 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28217 bool result;
70d7cb34
RD
28218 void *argp1 = 0 ;
28219 int res1 = 0 ;
4fe9ce47 28220 wxPoint2D temp2 ;
5c8c7dd3
RD
28221 int val3 ;
28222 int ecode3 = 0 ;
70d7cb34 28223
5c8c7dd3
RD
28224 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28226 if (!SWIG_IsOK(res1)) {
8f514ab4 28227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28228 }
5c8c7dd3 28229 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
28230 {
28231 arg2 = &temp2;
28232 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 28233 }
5c8c7dd3
RD
28234 if (swig_obj[2]) {
28235 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28236 if (!SWIG_IsOK(ecode3)) {
28237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28238 }
28239 arg3 = static_cast< int >(val3);
70d7cb34
RD
28240 }
28241 {
4fe9ce47 28242 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
28243 if (PyErr_Occurred()) SWIG_fail;
28244 }
5c8c7dd3
RD
28245 {
28246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28247 }
28248 return resultobj;
28249fail:
28250 return NULL;
28251}
28252
28253
5c8c7dd3
RD
28254SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28255 int argc;
28256 PyObject *argv[5];
70d7cb34 28257
5c8c7dd3
RD
28258 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28259 --argc;
28260 if ((argc >= 2) && (argc <= 3)) {
28261 int _v = 0;
28262 {
4fe9ce47
RD
28263 {
28264 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28265 }
5c8c7dd3
RD
28266 }
28267 if (!_v) goto check_1;
28268 if (argc > 2) {
28269 {
28270 {
28271 int res = SWIG_AsVal_int(argv[2], NULL);
28272 _v = SWIG_CheckState(res);
28273 }
28274 }
28275 if (!_v) goto check_1;
28276 }
28277 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 28278 }
5c8c7dd3
RD
28279check_1:
28280
28281 if ((argc >= 3) && (argc <= 4)) {
28282 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 28283 }
5c8c7dd3 28284
70d7cb34 28285fail:
5c8c7dd3 28286 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
28287 return NULL;
28288}
28289
28290
5c8c7dd3 28291SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
28292 PyObject *obj;
28293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 28294 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
28295 return SWIG_Py_Void();
28296}
28297
5c8c7dd3
RD
28298SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28299 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28300 return 1;
28301}
28302
28303
28304SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28305 PyObject *pyobj = 0;
28306
28307 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28308 return pyobj;
28309}
28310
28311
28312SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28313 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28314 return 1;
28315}
28316
28317
28318SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28319 PyObject *pyobj = 0;
28320
28321 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28322 return pyobj;
28323}
28324
28325
28326SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28327 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28328 return 1;
28329}
28330
28331
28332SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28333 PyObject *pyobj = 0;
28334
28335 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28336 return pyobj;
28337}
28338
28339
28340SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28341 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28342 return 1;
28343}
28344
28345
28346SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28347 PyObject *pyobj = 0;
28348
28349 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28350 return pyobj;
28351}
28352
28353
28354SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28355 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28356 return 1;
28357}
28358
28359
28360SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28361 PyObject *pyobj = 0;
28362
28363 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28364 return pyobj;
28365}
28366
28367
70d7cb34
RD
28368SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28369 PyObject *resultobj = 0;
28370 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28371 void *argp1 = 0 ;
28372 int res1 = 0 ;
28373 PyObject *swig_obj[1] ;
28374
28375 if (!args) SWIG_fail;
28376 swig_obj[0] = args;
28377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28378 if (!SWIG_IsOK(res1)) {
28379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28380 }
28381 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28382 {
28383 delete arg1;
28384
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_Py_Void();
28388 return resultobj;
28389fail:
28390 return NULL;
28391}
28392
28393
28394SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28395 PyObject *resultobj = 0;
28396 wxWindowDC *arg1 = 0 ;
28397 wxGraphicsContext *result = 0 ;
28398 void *argp1 = 0 ;
28399 int res1 = 0 ;
28400
28401 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28403 if (!SWIG_IsOK(res1)) {
28404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28405 }
28406 if (!argp1) {
28407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28408 }
28409 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28410 {
28411 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28415 return resultobj;
28416fail:
28417 return NULL;
28418}
28419
28420
28421SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28422 PyObject *resultobj = 0;
28423 wxWindow *arg1 = (wxWindow *) 0 ;
28424 wxGraphicsContext *result = 0 ;
28425 void *argp1 = 0 ;
28426 int res1 = 0 ;
28427
28428 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28430 if (!SWIG_IsOK(res1)) {
28431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28432 }
28433 arg1 = reinterpret_cast< wxWindow * >(argp1);
28434 {
28435 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28439 return resultobj;
28440fail:
28441 return NULL;
28442}
28443
28444
28445SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28446 int argc;
28447 PyObject *argv[2];
28448
28449 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28450 --argc;
28451 if (argc == 1) {
28452 int _v = 0;
28453 {
28454 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28455 _v = SWIG_CheckState(res);
28456 }
28457 if (!_v) goto check_1;
28458 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28459 }
28460check_1:
28461
28462 if (argc == 1) {
28463 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28464 }
28465
28466fail:
28467 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28468 return NULL;
28469}
28470
28471
f89238b9
RD
28472SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28473 PyObject *resultobj = 0;
28474 wxGraphicsContext *result = 0 ;
28475
28476 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28477 {
28478 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
28481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28482 return resultobj;
28483fail:
28484 return NULL;
28485}
28486
28487
70d7cb34
RD
28488SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj = 0;
28490 void *arg1 = (void *) 0 ;
28491 wxGraphicsContext *result = 0 ;
28492 int res1 ;
28493 PyObject * obj0 = 0 ;
28494 char * kwnames[] = {
28495 (char *) "context", NULL
28496 };
28497
28498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28499 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28500 if (!SWIG_IsOK(res1)) {
28501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28502 }
28503 {
28504 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28508 return resultobj;
28509fail:
28510 return NULL;
28511}
28512
28513
28514SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28515 PyObject *resultobj = 0;
28516 void *arg1 = (void *) 0 ;
28517 wxGraphicsContext *result = 0 ;
28518 int res1 ;
28519 PyObject * obj0 = 0 ;
28520 char * kwnames[] = {
28521 (char *) "window", NULL
28522 };
28523
28524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28525 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28528 }
28529 {
28530 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28534 return resultobj;
28535fail:
28536 return NULL;
28537}
28538
28539
28540SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28541 PyObject *resultobj = 0;
28542 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28543 wxGraphicsPath result;
70d7cb34
RD
28544 void *argp1 = 0 ;
28545 int res1 = 0 ;
28546 PyObject *swig_obj[1] ;
28547
28548 if (!args) SWIG_fail;
28549 swig_obj[0] = args;
28550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28551 if (!SWIG_IsOK(res1)) {
28552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28553 }
28554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28555 {
5c8c7dd3 28556 result = (arg1)->CreatePath();
70d7cb34
RD
28557 if (PyErr_Occurred()) SWIG_fail;
28558 }
5c8c7dd3 28559 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28560 return resultobj;
28561fail:
28562 return NULL;
28563}
28564
28565
70d7cb34 28566SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28567 PyObject *resultobj = 0;
70d7cb34
RD
28568 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28569 wxPen *arg2 = 0 ;
28570 wxGraphicsPen result;
72ef6efb
RD
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
70d7cb34
RD
28573 void *argp2 = 0 ;
28574 int res2 = 0 ;
72ef6efb
RD
28575 PyObject * obj0 = 0 ;
28576 PyObject * obj1 = 0 ;
72ef6efb 28577 char * kwnames[] = {
70d7cb34 28578 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28579 };
28580
70d7cb34
RD
28581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28583 if (!SWIG_IsOK(res1)) {
70d7cb34 28584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28585 }
70d7cb34
RD
28586 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28588 if (!SWIG_IsOK(res2)) {
28589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28590 }
28591 if (!argp2) {
28592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28593 }
28594 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28595 {
70d7cb34 28596 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28597 if (PyErr_Occurred()) SWIG_fail;
28598 }
70d7cb34 28599 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28600 return resultobj;
28601fail:
28602 return NULL;
28603}
28604
28605
70d7cb34 28606SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28607 PyObject *resultobj = 0;
70d7cb34
RD
28608 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28609 wxBrush *arg2 = 0 ;
28610 wxGraphicsBrush result;
72ef6efb
RD
28611 void *argp1 = 0 ;
28612 int res1 = 0 ;
70d7cb34
RD
28613 void *argp2 = 0 ;
28614 int res2 = 0 ;
72ef6efb
RD
28615 PyObject * obj0 = 0 ;
28616 PyObject * obj1 = 0 ;
72ef6efb 28617 char * kwnames[] = {
70d7cb34 28618 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28619 };
28620
70d7cb34
RD
28621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28623 if (!SWIG_IsOK(res1)) {
70d7cb34 28624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28625 }
70d7cb34
RD
28626 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28628 if (!SWIG_IsOK(res2)) {
28629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28630 }
28631 if (!argp2) {
28632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28633 }
28634 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28635 {
70d7cb34 28636 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28637 if (PyErr_Occurred()) SWIG_fail;
28638 }
70d7cb34 28639 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28640 return resultobj;
28641fail:
28642 return NULL;
28643}
28644
28645
70d7cb34 28646SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28647 PyObject *resultobj = 0;
70d7cb34 28648 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28649 wxDouble arg2 ;
28650 wxDouble arg3 ;
28651 wxDouble arg4 ;
28652 wxDouble arg5 ;
70d7cb34
RD
28653 wxColour *arg6 = 0 ;
28654 wxColour *arg7 = 0 ;
28655 wxGraphicsBrush result;
72ef6efb
RD
28656 void *argp1 = 0 ;
28657 int res1 = 0 ;
28658 double val2 ;
28659 int ecode2 = 0 ;
28660 double val3 ;
28661 int ecode3 = 0 ;
28662 double val4 ;
28663 int ecode4 = 0 ;
28664 double val5 ;
28665 int ecode5 = 0 ;
70d7cb34
RD
28666 wxColour temp6 ;
28667 wxColour temp7 ;
72ef6efb
RD
28668 PyObject * obj0 = 0 ;
28669 PyObject * obj1 = 0 ;
28670 PyObject * obj2 = 0 ;
28671 PyObject * obj3 = 0 ;
28672 PyObject * obj4 = 0 ;
70d7cb34
RD
28673 PyObject * obj5 = 0 ;
28674 PyObject * obj6 = 0 ;
72ef6efb 28675 char * kwnames[] = {
70d7cb34 28676 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28677 };
28678
70d7cb34
RD
28679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28681 if (!SWIG_IsOK(res1)) {
70d7cb34 28682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28683 }
70d7cb34 28684 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28685 ecode2 = SWIG_AsVal_double(obj1, &val2);
28686 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28688 }
28689 arg2 = static_cast< wxDouble >(val2);
28690 ecode3 = SWIG_AsVal_double(obj2, &val3);
28691 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28693 }
28694 arg3 = static_cast< wxDouble >(val3);
28695 ecode4 = SWIG_AsVal_double(obj3, &val4);
28696 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28698 }
28699 arg4 = static_cast< wxDouble >(val4);
28700 ecode5 = SWIG_AsVal_double(obj4, &val5);
28701 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28703 }
28704 arg5 = static_cast< wxDouble >(val5);
28705 {
70d7cb34
RD
28706 arg6 = &temp6;
28707 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28708 }
70d7cb34
RD
28709 {
28710 arg7 = &temp7;
28711 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28712 }
72ef6efb 28713 {
70d7cb34 28714 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28715 if (PyErr_Occurred()) SWIG_fail;
28716 }
70d7cb34 28717 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28718 return resultobj;
28719fail:
28720 return NULL;
28721}
28722
28723
70d7cb34 28724SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28725 PyObject *resultobj = 0;
70d7cb34 28726 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28727 wxDouble arg2 ;
28728 wxDouble arg3 ;
28729 wxDouble arg4 ;
28730 wxDouble arg5 ;
28731 wxDouble arg6 ;
70d7cb34
RD
28732 wxColour *arg7 = 0 ;
28733 wxColour *arg8 = 0 ;
28734 wxGraphicsBrush result;
72ef6efb
RD
28735 void *argp1 = 0 ;
28736 int res1 = 0 ;
28737 double val2 ;
28738 int ecode2 = 0 ;
28739 double val3 ;
28740 int ecode3 = 0 ;
28741 double val4 ;
28742 int ecode4 = 0 ;
28743 double val5 ;
28744 int ecode5 = 0 ;
28745 double val6 ;
28746 int ecode6 = 0 ;
70d7cb34
RD
28747 wxColour temp7 ;
28748 wxColour temp8 ;
72ef6efb
RD
28749 PyObject * obj0 = 0 ;
28750 PyObject * obj1 = 0 ;
28751 PyObject * obj2 = 0 ;
28752 PyObject * obj3 = 0 ;
28753 PyObject * obj4 = 0 ;
28754 PyObject * obj5 = 0 ;
70d7cb34
RD
28755 PyObject * obj6 = 0 ;
28756 PyObject * obj7 = 0 ;
72ef6efb 28757 char * kwnames[] = {
70d7cb34 28758 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28759 };
28760
70d7cb34
RD
28761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28763 if (!SWIG_IsOK(res1)) {
70d7cb34 28764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28765 }
70d7cb34 28766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28767 ecode2 = SWIG_AsVal_double(obj1, &val2);
28768 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28770 }
28771 arg2 = static_cast< wxDouble >(val2);
28772 ecode3 = SWIG_AsVal_double(obj2, &val3);
28773 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28775 }
28776 arg3 = static_cast< wxDouble >(val3);
28777 ecode4 = SWIG_AsVal_double(obj3, &val4);
28778 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28780 }
28781 arg4 = static_cast< wxDouble >(val4);
28782 ecode5 = SWIG_AsVal_double(obj4, &val5);
28783 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28785 }
28786 arg5 = static_cast< wxDouble >(val5);
28787 ecode6 = SWIG_AsVal_double(obj5, &val6);
28788 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28789 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28790 }
28791 arg6 = static_cast< wxDouble >(val6);
28792 {
70d7cb34
RD
28793 arg7 = &temp7;
28794 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28795 }
28796 {
28797 arg8 = &temp8;
28798 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28799 }
28800 {
28801 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28802 if (PyErr_Occurred()) SWIG_fail;
28803 }
70d7cb34 28804 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28805 return resultobj;
28806fail:
28807 return NULL;
28808}
28809
28810
70d7cb34 28811SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28812 PyObject *resultobj = 0;
28813 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28814 wxFont *arg2 = 0 ;
28815 wxColour const &arg3_defvalue = *wxBLACK ;
28816 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28817 wxGraphicsFont result;
72ef6efb
RD
28818 void *argp1 = 0 ;
28819 int res1 = 0 ;
70d7cb34
RD
28820 void *argp2 = 0 ;
28821 int res2 = 0 ;
28822 wxColour temp3 ;
28823 PyObject * obj0 = 0 ;
28824 PyObject * obj1 = 0 ;
28825 PyObject * obj2 = 0 ;
28826 char * kwnames[] = {
28827 (char *) "self",(char *) "font",(char *) "col", NULL
28828 };
72ef6efb 28829
70d7cb34
RD
28830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28832 if (!SWIG_IsOK(res1)) {
70d7cb34 28833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28834 }
28835 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28837 if (!SWIG_IsOK(res2)) {
28838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28839 }
70d7cb34
RD
28840 if (!argp2) {
28841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28842 }
70d7cb34
RD
28843 arg2 = reinterpret_cast< wxFont * >(argp2);
28844 if (obj2) {
28845 {
28846 arg3 = &temp3;
28847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28848 }
72ef6efb 28849 }
72ef6efb 28850 {
70d7cb34 28851 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
70d7cb34 28854 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28855 return resultobj;
28856fail:
28857 return NULL;
28858}
28859
28860
70d7cb34 28861SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28862 PyObject *resultobj = 0;
70d7cb34
RD
28863 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28864 wxDouble arg2 = (wxDouble) 1.0 ;
28865 wxDouble arg3 = (wxDouble) 0.0 ;
28866 wxDouble arg4 = (wxDouble) 0.0 ;
28867 wxDouble arg5 = (wxDouble) 1.0 ;
28868 wxDouble arg6 = (wxDouble) 0.0 ;
28869 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28870 wxGraphicsMatrix result;
0a27f394
RD
28871 void *argp1 = 0 ;
28872 int res1 = 0 ;
70d7cb34
RD
28873 double val2 ;
28874 int ecode2 = 0 ;
28875 double val3 ;
28876 int ecode3 = 0 ;
28877 double val4 ;
28878 int ecode4 = 0 ;
28879 double val5 ;
28880 int ecode5 = 0 ;
28881 double val6 ;
28882 int ecode6 = 0 ;
28883 double val7 ;
28884 int ecode7 = 0 ;
28885 PyObject * obj0 = 0 ;
28886 PyObject * obj1 = 0 ;
28887 PyObject * obj2 = 0 ;
28888 PyObject * obj3 = 0 ;
28889 PyObject * obj4 = 0 ;
28890 PyObject * obj5 = 0 ;
28891 PyObject * obj6 = 0 ;
28892 char * kwnames[] = {
28893 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28894 };
0a27f394 28895
70d7cb34
RD
28896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28898 if (!SWIG_IsOK(res1)) {
70d7cb34 28899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28900 }
70d7cb34
RD
28901 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28902 if (obj1) {
28903 ecode2 = SWIG_AsVal_double(obj1, &val2);
28904 if (!SWIG_IsOK(ecode2)) {
28905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28906 }
28907 arg2 = static_cast< wxDouble >(val2);
0a27f394 28908 }
70d7cb34
RD
28909 if (obj2) {
28910 ecode3 = SWIG_AsVal_double(obj2, &val3);
28911 if (!SWIG_IsOK(ecode3)) {
28912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28913 }
28914 arg3 = static_cast< wxDouble >(val3);
0a27f394 28915 }
70d7cb34
RD
28916 if (obj3) {
28917 ecode4 = SWIG_AsVal_double(obj3, &val4);
28918 if (!SWIG_IsOK(ecode4)) {
28919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28920 }
28921 arg4 = static_cast< wxDouble >(val4);
0a27f394 28922 }
70d7cb34
RD
28923 if (obj4) {
28924 ecode5 = SWIG_AsVal_double(obj4, &val5);
28925 if (!SWIG_IsOK(ecode5)) {
28926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28927 }
28928 arg5 = static_cast< wxDouble >(val5);
0a27f394 28929 }
70d7cb34
RD
28930 if (obj5) {
28931 ecode6 = SWIG_AsVal_double(obj5, &val6);
28932 if (!SWIG_IsOK(ecode6)) {
28933 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28934 }
28935 arg6 = static_cast< wxDouble >(val6);
0a27f394 28936 }
70d7cb34
RD
28937 if (obj6) {
28938 ecode7 = SWIG_AsVal_double(obj6, &val7);
28939 if (!SWIG_IsOK(ecode7)) {
28940 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28941 }
28942 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28943 }
72ef6efb 28944 {
5c8c7dd3 28945 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28946 if (PyErr_Occurred()) SWIG_fail;
28947 }
5c8c7dd3 28948 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28949 return resultobj;
28950fail:
28951 return NULL;
28952}
28953
28954
28955SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28956 PyObject *resultobj = 0;
28957 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 PyObject *swig_obj[1] ;
28961
28962 if (!args) SWIG_fail;
28963 swig_obj[0] = args;
28964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28965 if (!SWIG_IsOK(res1)) {
28966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28967 }
28968 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28969 {
72ef6efb 28970 (arg1)->PushState();
72ef6efb
RD
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 resultobj = SWIG_Py_Void();
28974 return resultobj;
28975fail:
28976 return NULL;
28977}
28978
28979
28980SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28981 PyObject *resultobj = 0;
28982 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28983 void *argp1 = 0 ;
28984 int res1 = 0 ;
28985 PyObject *swig_obj[1] ;
28986
28987 if (!args) SWIG_fail;
28988 swig_obj[0] = args;
28989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28990 if (!SWIG_IsOK(res1)) {
28991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28992 }
28993 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28994 {
72ef6efb 28995 (arg1)->PopState();
72ef6efb
RD
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 resultobj = SWIG_Py_Void();
28999 return resultobj;
29000fail:
29001 return NULL;
29002}
29003
29004
0a27f394 29005SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29006 PyObject *resultobj = 0;
29007 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29008 wxRegion *arg2 = 0 ;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 void *argp2 = 0 ;
29012 int res2 = 0 ;
29013 PyObject * obj0 = 0 ;
29014 PyObject * obj1 = 0 ;
29015 char * kwnames[] = {
29016 (char *) "self",(char *) "region", NULL
29017 };
29018
0a27f394 29019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29021 if (!SWIG_IsOK(res1)) {
0a27f394 29022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29023 }
29024 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29026 if (!SWIG_IsOK(res2)) {
0a27f394 29027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
29028 }
29029 if (!argp2) {
0a27f394 29030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
29031 }
29032 arg2 = reinterpret_cast< wxRegion * >(argp2);
29033 {
72ef6efb 29034 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
29035 if (PyErr_Occurred()) SWIG_fail;
29036 }
29037 resultobj = SWIG_Py_Void();
29038 return resultobj;
29039fail:
29040 return NULL;
29041}
29042
29043
0a27f394
RD
29044SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29045 PyObject *resultobj = 0;
29046 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29047 wxDouble arg2 ;
29048 wxDouble arg3 ;
29049 wxDouble arg4 ;
29050 wxDouble arg5 ;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 double val2 ;
29054 int ecode2 = 0 ;
29055 double val3 ;
29056 int ecode3 = 0 ;
29057 double val4 ;
29058 int ecode4 = 0 ;
29059 double val5 ;
29060 int ecode5 = 0 ;
29061 PyObject * obj0 = 0 ;
29062 PyObject * obj1 = 0 ;
29063 PyObject * obj2 = 0 ;
29064 PyObject * obj3 = 0 ;
29065 PyObject * obj4 = 0 ;
29066 char * kwnames[] = {
29067 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29068 };
29069
29070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29072 if (!SWIG_IsOK(res1)) {
29073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29074 }
29075 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29076 ecode2 = SWIG_AsVal_double(obj1, &val2);
29077 if (!SWIG_IsOK(ecode2)) {
29078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29079 }
29080 arg2 = static_cast< wxDouble >(val2);
29081 ecode3 = SWIG_AsVal_double(obj2, &val3);
29082 if (!SWIG_IsOK(ecode3)) {
29083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29084 }
29085 arg3 = static_cast< wxDouble >(val3);
29086 ecode4 = SWIG_AsVal_double(obj3, &val4);
29087 if (!SWIG_IsOK(ecode4)) {
29088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29089 }
29090 arg4 = static_cast< wxDouble >(val4);
29091 ecode5 = SWIG_AsVal_double(obj4, &val5);
29092 if (!SWIG_IsOK(ecode5)) {
29093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29094 }
29095 arg5 = static_cast< wxDouble >(val5);
29096 {
29097 (arg1)->Clip(arg2,arg3,arg4,arg5);
29098 if (PyErr_Occurred()) SWIG_fail;
29099 }
29100 resultobj = SWIG_Py_Void();
29101 return resultobj;
29102fail:
29103 return NULL;
29104}
29105
29106
29107SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29108 PyObject *resultobj = 0;
29109 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29110 void *argp1 = 0 ;
29111 int res1 = 0 ;
29112 PyObject *swig_obj[1] ;
29113
29114 if (!args) SWIG_fail;
29115 swig_obj[0] = args;
29116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29117 if (!SWIG_IsOK(res1)) {
29118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29119 }
29120 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29121 {
29122 (arg1)->ResetClip();
29123 if (PyErr_Occurred()) SWIG_fail;
29124 }
29125 resultobj = SWIG_Py_Void();
29126 return resultobj;
29127fail:
29128 return NULL;
29129}
29130
29131
29132SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29133 PyObject *resultobj = 0;
29134 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29135 void *result = 0 ;
29136 void *argp1 = 0 ;
29137 int res1 = 0 ;
29138 PyObject *swig_obj[1] ;
29139
29140 if (!args) SWIG_fail;
29141 swig_obj[0] = args;
29142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29143 if (!SWIG_IsOK(res1)) {
29144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29145 }
29146 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29147 {
29148 result = (void *)(arg1)->GetNativeContext();
29149 if (PyErr_Occurred()) SWIG_fail;
29150 }
29151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29152 return resultobj;
29153fail:
29154 return NULL;
29155}
29156
29157
c8aaaf9e
RD
29158SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29159 PyObject *resultobj = 0;
29160 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29161 int result;
29162 void *argp1 = 0 ;
29163 int res1 = 0 ;
29164 PyObject *swig_obj[1] ;
29165
29166 if (!args) SWIG_fail;
29167 swig_obj[0] = args;
29168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29169 if (!SWIG_IsOK(res1)) {
29170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29171 }
29172 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29173 {
29174 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29175 if (PyErr_Occurred()) SWIG_fail;
29176 }
29177 resultobj = SWIG_From_int(static_cast< int >(result));
29178 return resultobj;
29179fail:
29180 return NULL;
29181}
29182
29183
29184SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29185 PyObject *resultobj = 0;
29186 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29187 int arg2 ;
29188 bool result;
29189 void *argp1 = 0 ;
29190 int res1 = 0 ;
29191 int val2 ;
29192 int ecode2 = 0 ;
29193 PyObject * obj0 = 0 ;
29194 PyObject * obj1 = 0 ;
29195 char * kwnames[] = {
29196 (char *) "self",(char *) "function", NULL
29197 };
29198
29199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29201 if (!SWIG_IsOK(res1)) {
29202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29203 }
29204 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29205 ecode2 = SWIG_AsVal_int(obj1, &val2);
29206 if (!SWIG_IsOK(ecode2)) {
29207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29208 }
29209 arg2 = static_cast< int >(val2);
29210 {
29211 result = (bool)(arg1)->SetLogicalFunction(arg2);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 }
29214 {
29215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29216 }
29217 return resultobj;
29218fail:
29219 return NULL;
29220}
29221
29222
72ef6efb
RD
29223SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29224 PyObject *resultobj = 0;
29225 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29226 wxDouble arg2 ;
29227 wxDouble arg3 ;
29228 void *argp1 = 0 ;
29229 int res1 = 0 ;
29230 double val2 ;
29231 int ecode2 = 0 ;
29232 double val3 ;
29233 int ecode3 = 0 ;
29234 PyObject * obj0 = 0 ;
29235 PyObject * obj1 = 0 ;
29236 PyObject * obj2 = 0 ;
29237 char * kwnames[] = {
29238 (char *) "self",(char *) "dx",(char *) "dy", NULL
29239 };
29240
29241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29245 }
29246 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29247 ecode2 = SWIG_AsVal_double(obj1, &val2);
29248 if (!SWIG_IsOK(ecode2)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29250 }
29251 arg2 = static_cast< wxDouble >(val2);
29252 ecode3 = SWIG_AsVal_double(obj2, &val3);
29253 if (!SWIG_IsOK(ecode3)) {
29254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29255 }
29256 arg3 = static_cast< wxDouble >(val3);
29257 {
72ef6efb 29258 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 resultobj = SWIG_Py_Void();
29262 return resultobj;
29263fail:
29264 return NULL;
29265}
29266
29267
29268SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29269 PyObject *resultobj = 0;
29270 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29271 wxDouble arg2 ;
29272 wxDouble arg3 ;
29273 void *argp1 = 0 ;
29274 int res1 = 0 ;
29275 double val2 ;
29276 int ecode2 = 0 ;
29277 double val3 ;
29278 int ecode3 = 0 ;
29279 PyObject * obj0 = 0 ;
29280 PyObject * obj1 = 0 ;
29281 PyObject * obj2 = 0 ;
29282 char * kwnames[] = {
29283 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29284 };
29285
29286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29288 if (!SWIG_IsOK(res1)) {
29289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29290 }
29291 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29292 ecode2 = SWIG_AsVal_double(obj1, &val2);
29293 if (!SWIG_IsOK(ecode2)) {
29294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29295 }
29296 arg2 = static_cast< wxDouble >(val2);
29297 ecode3 = SWIG_AsVal_double(obj2, &val3);
29298 if (!SWIG_IsOK(ecode3)) {
29299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29300 }
29301 arg3 = static_cast< wxDouble >(val3);
29302 {
72ef6efb 29303 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
29304 if (PyErr_Occurred()) SWIG_fail;
29305 }
29306 resultobj = SWIG_Py_Void();
29307 return resultobj;
29308fail:
29309 return NULL;
29310}
29311
29312
29313SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29314 PyObject *resultobj = 0;
29315 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29316 wxDouble arg2 ;
29317 void *argp1 = 0 ;
29318 int res1 = 0 ;
29319 double val2 ;
29320 int ecode2 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323 char * kwnames[] = {
29324 (char *) "self",(char *) "angle", NULL
29325 };
29326
29327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29329 if (!SWIG_IsOK(res1)) {
29330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29331 }
29332 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29333 ecode2 = SWIG_AsVal_double(obj1, &val2);
29334 if (!SWIG_IsOK(ecode2)) {
29335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29336 }
29337 arg2 = static_cast< wxDouble >(val2);
29338 {
72ef6efb 29339 (arg1)->Rotate(arg2);
72ef6efb
RD
29340 if (PyErr_Occurred()) SWIG_fail;
29341 }
29342 resultobj = SWIG_Py_Void();
29343 return resultobj;
29344fail:
29345 return NULL;
29346}
29347
29348
5c8c7dd3
RD
29349SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29350 PyObject *resultobj = 0;
29351 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29352 wxGraphicsMatrix *arg2 = 0 ;
29353 void *argp1 = 0 ;
29354 int res1 = 0 ;
29355 void *argp2 = 0 ;
29356 int res2 = 0 ;
29357 PyObject * obj0 = 0 ;
29358 PyObject * obj1 = 0 ;
29359 char * kwnames[] = {
29360 (char *) "self",(char *) "matrix", NULL
29361 };
29362
29363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29365 if (!SWIG_IsOK(res1)) {
29366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29367 }
29368 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29370 if (!SWIG_IsOK(res2)) {
29371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29372 }
29373 if (!argp2) {
29374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29375 }
29376 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29377 {
29378 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 resultobj = SWIG_Py_Void();
29382 return resultobj;
29383fail:
29384 return NULL;
29385}
29386
29387
29388SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29389 PyObject *resultobj = 0;
29390 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29391 wxGraphicsMatrix *arg2 = 0 ;
29392 void *argp1 = 0 ;
29393 int res1 = 0 ;
29394 void *argp2 = 0 ;
29395 int res2 = 0 ;
29396 PyObject * obj0 = 0 ;
29397 PyObject * obj1 = 0 ;
29398 char * kwnames[] = {
29399 (char *) "self",(char *) "matrix", NULL
29400 };
29401
29402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29404 if (!SWIG_IsOK(res1)) {
29405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29406 }
29407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29409 if (!SWIG_IsOK(res2)) {
29410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29411 }
29412 if (!argp2) {
29413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29414 }
29415 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29416 {
29417 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29418 if (PyErr_Occurred()) SWIG_fail;
29419 }
29420 resultobj = SWIG_Py_Void();
29421 return resultobj;
29422fail:
29423 return NULL;
29424}
29425
29426
29427SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29428 PyObject *resultobj = 0;
29429 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29430 wxGraphicsMatrix result;
29431 void *argp1 = 0 ;
29432 int res1 = 0 ;
29433 PyObject *swig_obj[1] ;
29434
29435 if (!args) SWIG_fail;
29436 swig_obj[0] = args;
29437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29438 if (!SWIG_IsOK(res1)) {
29439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29440 }
29441 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29442 {
29443 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29447 return resultobj;
29448fail:
29449 return NULL;
29450}
29451
29452
70d7cb34
RD
29453SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29454 PyObject *resultobj = 0;
29455 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29456 wxGraphicsPen *arg2 = 0 ;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 void *argp2 = 0 ;
29460 int res2 = 0 ;
29461
29462 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29464 if (!SWIG_IsOK(res1)) {
29465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29466 }
29467 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29468 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29469 if (!SWIG_IsOK(res2)) {
29470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29471 }
29472 if (!argp2) {
29473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29474 }
29475 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29476 {
29477 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 resultobj = SWIG_Py_Void();
29481 return resultobj;
29482fail:
29483 return NULL;
29484}
29485
29486
29487SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29488 PyObject *resultobj = 0;
29489 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29490 wxPen *arg2 = 0 ;
29491 void *argp1 = 0 ;
29492 int res1 = 0 ;
29493 void *argp2 = 0 ;
29494 int res2 = 0 ;
72ef6efb 29495
70d7cb34
RD
29496 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29498 if (!SWIG_IsOK(res1)) {
29499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29500 }
29501 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29502 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29503 if (!SWIG_IsOK(res2)) {
29504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29505 }
29506 if (!argp2) {
29507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29508 }
29509 arg2 = reinterpret_cast< wxPen * >(argp2);
29510 {
72ef6efb 29511 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29512 if (PyErr_Occurred()) SWIG_fail;
29513 }
29514 resultobj = SWIG_Py_Void();
29515 return resultobj;
29516fail:
29517 return NULL;
29518}
29519
29520
70d7cb34
RD
29521SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29522 int argc;
29523 PyObject *argv[3];
29524
29525 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29526 --argc;
29527 if (argc == 2) {
29528 int _v = 0;
29529 {
29530 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29531 _v = SWIG_CheckState(res);
29532 }
29533 if (!_v) goto check_1;
29534 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29535 }
29536check_1:
29537
29538 if (argc == 2) {
29539 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29540 }
29541
29542fail:
29543 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29544 return NULL;
29545}
29546
29547
29548SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29549 PyObject *resultobj = 0;
29550 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29551 wxGraphicsBrush *arg2 = 0 ;
29552 void *argp1 = 0 ;
29553 int res1 = 0 ;
29554 void *argp2 = 0 ;
29555 int res2 = 0 ;
29556
29557 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29559 if (!SWIG_IsOK(res1)) {
29560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29561 }
29562 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29563 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29564 if (!SWIG_IsOK(res2)) {
29565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29566 }
29567 if (!argp2) {
29568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29569 }
29570 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29571 {
29572 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29573 if (PyErr_Occurred()) SWIG_fail;
29574 }
29575 resultobj = SWIG_Py_Void();
29576 return resultobj;
29577fail:
29578 return NULL;
29579}
29580
29581
29582SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29583 PyObject *resultobj = 0;
29584 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29585 wxBrush *arg2 = 0 ;
29586 void *argp1 = 0 ;
29587 int res1 = 0 ;
29588 void *argp2 = 0 ;
29589 int res2 = 0 ;
72ef6efb 29590
70d7cb34
RD
29591 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29595 }
29596 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29597 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29598 if (!SWIG_IsOK(res2)) {
29599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29600 }
29601 if (!argp2) {
29602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29603 }
29604 arg2 = reinterpret_cast< wxBrush * >(argp2);
29605 {
72ef6efb 29606 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 resultobj = SWIG_Py_Void();
29610 return resultobj;
29611fail:
29612 return NULL;
29613}
29614
29615
70d7cb34
RD
29616SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29617 int argc;
29618 PyObject *argv[3];
72ef6efb 29619
70d7cb34
RD
29620 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29621 --argc;
29622 if (argc == 2) {
29623 int _v = 0;
29624 {
29625 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29626 _v = SWIG_CheckState(res);
29627 }
29628 if (!_v) goto check_1;
29629 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29630 }
70d7cb34
RD
29631check_1:
29632
29633 if (argc == 2) {
29634 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29635 }
70d7cb34 29636
72ef6efb 29637fail:
70d7cb34 29638 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29639 return NULL;
29640}
29641
29642
70d7cb34 29643SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29644 PyObject *resultobj = 0;
29645 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29646 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29647 void *argp1 = 0 ;
29648 int res1 = 0 ;
70d7cb34
RD
29649 void *argp2 = 0 ;
29650 int res2 = 0 ;
72ef6efb 29651
70d7cb34
RD
29652 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29654 if (!SWIG_IsOK(res1)) {
70d7cb34 29655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29656 }
29657 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29658 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29659 if (!SWIG_IsOK(res2)) {
29660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29661 }
70d7cb34
RD
29662 if (!argp2) {
29663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29664 }
70d7cb34 29665 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29666 {
70d7cb34 29667 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
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_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29678 PyObject *resultobj = 0;
29679 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29680 wxFont *arg2 = 0 ;
70d7cb34
RD
29681 wxColour const &arg3_defvalue = *wxBLACK ;
29682 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 void *argp2 = 0 ;
29686 int res2 = 0 ;
70d7cb34 29687 wxColour temp3 ;
72ef6efb 29688
70d7cb34
RD
29689 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29691 if (!SWIG_IsOK(res1)) {
29692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29693 }
29694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29695 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29696 if (!SWIG_IsOK(res2)) {
29697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29698 }
29699 if (!argp2) {
29700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29701 }
29702 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29703 if (swig_obj[2]) {
29704 {
29705 arg3 = &temp3;
29706 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29707 }
29708 }
72ef6efb 29709 {
70d7cb34 29710 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29711 if (PyErr_Occurred()) SWIG_fail;
29712 }
29713 resultobj = SWIG_Py_Void();
29714 return resultobj;
29715fail:
29716 return NULL;
29717}
29718
29719
70d7cb34
RD
29720SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29721 int argc;
29722 PyObject *argv[4];
72ef6efb 29723
70d7cb34
RD
29724 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29725 --argc;
29726 if (argc == 2) {
29727 int _v = 0;
29728 {
29729 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29730 _v = SWIG_CheckState(res);
29731 }
29732 if (!_v) goto check_1;
29733 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29734 }
70d7cb34
RD
29735check_1:
29736
29737 if ((argc >= 2) && (argc <= 3)) {
29738 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29739 }
70d7cb34 29740
72ef6efb 29741fail:
70d7cb34 29742 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29743 return NULL;
29744}
29745
29746
29747SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj = 0;
29749 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29750 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29751 void *argp1 = 0 ;
29752 int res1 = 0 ;
29753 void *argp2 = 0 ;
29754 int res2 = 0 ;
29755 PyObject * obj0 = 0 ;
29756 PyObject * obj1 = 0 ;
29757 char * kwnames[] = {
29758 (char *) "self",(char *) "path", NULL
29759 };
29760
29761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29763 if (!SWIG_IsOK(res1)) {
29764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29765 }
29766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29768 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29770 }
29771 if (!argp2) {
29772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29773 }
29774 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29775 {
5c8c7dd3 29776 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_Py_Void();
29780 return resultobj;
29781fail:
29782 return NULL;
29783}
29784
29785
29786SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29789 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29790 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 void *argp2 = 0 ;
29794 int res2 = 0 ;
29795 int val3 ;
29796 int ecode3 = 0 ;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 PyObject * obj2 = 0 ;
29800 char * kwnames[] = {
29801 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29802 };
29803
29804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29806 if (!SWIG_IsOK(res1)) {
29807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29808 }
29809 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29811 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29813 }
29814 if (!argp2) {
29815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29816 }
29817 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29818 if (obj2) {
29819 ecode3 = SWIG_AsVal_int(obj2, &val3);
29820 if (!SWIG_IsOK(ecode3)) {
29821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29822 }
29823 arg3 = static_cast< int >(val3);
29824 }
29825 {
5c8c7dd3 29826 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_Py_Void();
29830 return resultobj;
29831fail:
29832 return NULL;
29833}
29834
29835
29836SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29837 PyObject *resultobj = 0;
29838 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29839 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29840 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29841 void *argp1 = 0 ;
29842 int res1 = 0 ;
29843 void *argp2 = 0 ;
29844 int res2 = 0 ;
29845 int val3 ;
29846 int ecode3 = 0 ;
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
29849 PyObject * obj2 = 0 ;
29850 char * kwnames[] = {
29851 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29852 };
29853
29854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29856 if (!SWIG_IsOK(res1)) {
29857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29858 }
29859 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29861 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29863 }
29864 if (!argp2) {
29865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29866 }
29867 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29868 if (obj2) {
29869 ecode3 = SWIG_AsVal_int(obj2, &val3);
29870 if (!SWIG_IsOK(ecode3)) {
29871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29872 }
29873 arg3 = static_cast< int >(val3);
29874 }
29875 {
5c8c7dd3 29876 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29877 if (PyErr_Occurred()) SWIG_fail;
29878 }
29879 resultobj = SWIG_Py_Void();
29880 return resultobj;
29881fail:
29882 return NULL;
29883}
29884
29885
b39fe951 29886SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29887 PyObject *resultobj = 0;
29888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29889 wxString *arg2 = 0 ;
29890 wxDouble arg3 ;
29891 wxDouble arg4 ;
f89238b9
RD
29892 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29893 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29894 void *argp1 = 0 ;
29895 int res1 = 0 ;
29896 bool temp2 = false ;
29897 double val3 ;
29898 int ecode3 = 0 ;
29899 double val4 ;
29900 int ecode4 = 0 ;
f89238b9
RD
29901 void *argp5 = 0 ;
29902 int res5 = 0 ;
b39fe951
RD
29903 PyObject * obj0 = 0 ;
29904 PyObject * obj1 = 0 ;
29905 PyObject * obj2 = 0 ;
29906 PyObject * obj3 = 0 ;
f89238b9 29907 PyObject * obj4 = 0 ;
b39fe951 29908 char * kwnames[] = {
f89238b9 29909 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29910 };
72ef6efb 29911
f89238b9 29912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29914 if (!SWIG_IsOK(res1)) {
29915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29916 }
29917 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29918 {
b39fe951 29919 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29920 if (arg2 == NULL) SWIG_fail;
29921 temp2 = true;
29922 }
b39fe951 29923 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29924 if (!SWIG_IsOK(ecode3)) {
29925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29926 }
29927 arg3 = static_cast< wxDouble >(val3);
b39fe951 29928 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29929 if (!SWIG_IsOK(ecode4)) {
29930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29931 }
29932 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29933 if (obj4) {
29934 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29935 if (!SWIG_IsOK(res5)) {
29936 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29937 }
29938 if (!argp5) {
29939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29940 }
29941 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29942 }
72ef6efb 29943 {
f89238b9 29944 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 resultobj = SWIG_Py_Void();
29948 {
29949 if (temp2)
29950 delete arg2;
29951 }
29952 return resultobj;
29953fail:
29954 {
29955 if (temp2)
29956 delete arg2;
29957 }
29958 return NULL;
29959}
29960
29961
b39fe951 29962SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29963 PyObject *resultobj = 0;
29964 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29965 wxString *arg2 = 0 ;
29966 wxDouble arg3 ;
29967 wxDouble arg4 ;
29968 wxDouble arg5 ;
f89238b9
RD
29969 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29970 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29971 void *argp1 = 0 ;
29972 int res1 = 0 ;
29973 bool temp2 = false ;
29974 double val3 ;
29975 int ecode3 = 0 ;
29976 double val4 ;
29977 int ecode4 = 0 ;
29978 double val5 ;
29979 int ecode5 = 0 ;
f89238b9
RD
29980 void *argp6 = 0 ;
29981 int res6 = 0 ;
b39fe951
RD
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 PyObject * obj2 = 0 ;
29985 PyObject * obj3 = 0 ;
29986 PyObject * obj4 = 0 ;
f89238b9 29987 PyObject * obj5 = 0 ;
b39fe951 29988 char * kwnames[] = {
f89238b9 29989 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29990 };
72ef6efb 29991
f89238b9 29992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29994 if (!SWIG_IsOK(res1)) {
b39fe951 29995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29996 }
29997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29998 {
b39fe951 29999 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
30000 if (arg2 == NULL) SWIG_fail;
30001 temp2 = true;
30002 }
b39fe951 30003 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 30004 if (!SWIG_IsOK(ecode3)) {
b39fe951 30005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30006 }
30007 arg3 = static_cast< wxDouble >(val3);
b39fe951 30008 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 30009 if (!SWIG_IsOK(ecode4)) {
b39fe951 30010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30011 }
30012 arg4 = static_cast< wxDouble >(val4);
b39fe951 30013 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 30014 if (!SWIG_IsOK(ecode5)) {
b39fe951 30015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30016 }
30017 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
30018 if (obj5) {
30019 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30020 if (!SWIG_IsOK(res6)) {
30021 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30022 }
30023 if (!argp6) {
30024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30025 }
30026 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30027 }
72ef6efb 30028 {
f89238b9 30029 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 resultobj = SWIG_Py_Void();
30033 {
30034 if (temp2)
30035 delete arg2;
30036 }
30037 return resultobj;
30038fail:
30039 {
30040 if (temp2)
30041 delete arg2;
30042 }
30043 return NULL;
30044}
30045
30046
be68621e 30047SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30048 PyObject *resultobj = 0;
30049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30050 wxString *arg2 = 0 ;
30051 wxDouble *arg3 = (wxDouble *) 0 ;
30052 wxDouble *arg4 = (wxDouble *) 0 ;
30053 wxDouble *arg5 = (wxDouble *) 0 ;
30054 wxDouble *arg6 = (wxDouble *) 0 ;
30055 void *argp1 = 0 ;
30056 int res1 = 0 ;
30057 bool temp2 = false ;
30058 wxDouble temp3 ;
30059 int res3 = SWIG_TMPOBJ ;
30060 wxDouble temp4 ;
30061 int res4 = SWIG_TMPOBJ ;
30062 wxDouble temp5 ;
30063 int res5 = SWIG_TMPOBJ ;
30064 wxDouble temp6 ;
30065 int res6 = SWIG_TMPOBJ ;
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30068 char * kwnames[] = {
30069 (char *) "self",(char *) "text", NULL
30070 };
30071
30072 arg3 = &temp3;
30073 arg4 = &temp4;
30074 arg5 = &temp5;
30075 arg6 = &temp6;
be68621e 30076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
30077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30078 if (!SWIG_IsOK(res1)) {
be68621e 30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30080 }
30081 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30082 {
30083 arg2 = wxString_in_helper(obj1);
30084 if (arg2 == NULL) SWIG_fail;
30085 temp2 = true;
30086 }
30087 {
72ef6efb 30088 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 resultobj = SWIG_Py_Void();
30092 if (SWIG_IsTmpObj(res3)) {
30093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30094 } else {
30095 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30097 }
30098 if (SWIG_IsTmpObj(res4)) {
30099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30100 } else {
30101 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30103 }
30104 if (SWIG_IsTmpObj(res5)) {
30105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30106 } else {
30107 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30109 }
30110 if (SWIG_IsTmpObj(res6)) {
30111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30112 } else {
30113 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30115 }
30116 {
30117 if (temp2)
30118 delete arg2;
30119 }
30120 return resultobj;
30121fail:
30122 {
30123 if (temp2)
30124 delete arg2;
30125 }
30126 return NULL;
30127}
30128
30129
be68621e
RD
30130SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30131 PyObject *resultobj = 0;
30132 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30133 wxString *arg2 = 0 ;
30134 PyObject *result = 0 ;
30135 void *argp1 = 0 ;
30136 int res1 = 0 ;
30137 bool temp2 = false ;
30138 PyObject * obj0 = 0 ;
30139 PyObject * obj1 = 0 ;
30140 char * kwnames[] = {
30141 (char *) "self",(char *) "text", NULL
30142 };
30143
30144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30146 if (!SWIG_IsOK(res1)) {
30147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30148 }
30149 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30150 {
30151 arg2 = wxString_in_helper(obj1);
30152 if (arg2 == NULL) SWIG_fail;
30153 temp2 = true;
30154 }
30155 {
30156 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30157 if (PyErr_Occurred()) SWIG_fail;
30158 }
30159 resultobj = result;
30160 {
30161 if (temp2)
30162 delete arg2;
30163 }
30164 return resultobj;
30165fail:
30166 {
30167 if (temp2)
30168 delete arg2;
30169 }
30170 return NULL;
30171}
30172
30173
72ef6efb
RD
30174SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30175 PyObject *resultobj = 0;
30176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30177 wxString *arg2 = 0 ;
b39fe951 30178 wxArrayDouble result;
72ef6efb
RD
30179 void *argp1 = 0 ;
30180 int res1 = 0 ;
30181 bool temp2 = false ;
72ef6efb
RD
30182 PyObject * obj0 = 0 ;
30183 PyObject * obj1 = 0 ;
72ef6efb 30184 char * kwnames[] = {
b39fe951 30185 (char *) "self",(char *) "text", NULL
72ef6efb
RD
30186 };
30187
b39fe951 30188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
30189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30190 if (!SWIG_IsOK(res1)) {
b39fe951 30191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30192 }
30193 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30194 {
30195 arg2 = wxString_in_helper(obj1);
30196 if (arg2 == NULL) SWIG_fail;
30197 temp2 = true;
30198 }
72ef6efb 30199 {
b39fe951 30200 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
b39fe951
RD
30203 {
30204 resultobj = wxArrayDouble2PyList_helper(result);
30205 }
72ef6efb
RD
30206 {
30207 if (temp2)
30208 delete arg2;
30209 }
30210 return resultobj;
30211fail:
30212 {
30213 if (temp2)
30214 delete arg2;
30215 }
30216 return NULL;
30217}
30218
30219
30220SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj = 0;
30222 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30223 wxBitmap *arg2 = 0 ;
30224 wxDouble arg3 ;
30225 wxDouble arg4 ;
30226 wxDouble arg5 ;
30227 wxDouble arg6 ;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 void *argp2 = 0 ;
30231 int res2 = 0 ;
30232 double val3 ;
30233 int ecode3 = 0 ;
30234 double val4 ;
30235 int ecode4 = 0 ;
30236 double val5 ;
30237 int ecode5 = 0 ;
30238 double val6 ;
30239 int ecode6 = 0 ;
30240 PyObject * obj0 = 0 ;
30241 PyObject * obj1 = 0 ;
30242 PyObject * obj2 = 0 ;
30243 PyObject * obj3 = 0 ;
30244 PyObject * obj4 = 0 ;
30245 PyObject * obj5 = 0 ;
30246 char * kwnames[] = {
30247 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30248 };
30249
30250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30252 if (!SWIG_IsOK(res1)) {
30253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30254 }
30255 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30257 if (!SWIG_IsOK(res2)) {
30258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30259 }
30260 if (!argp2) {
30261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30262 }
30263 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30264 ecode3 = SWIG_AsVal_double(obj2, &val3);
30265 if (!SWIG_IsOK(ecode3)) {
30266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30267 }
30268 arg3 = static_cast< wxDouble >(val3);
30269 ecode4 = SWIG_AsVal_double(obj3, &val4);
30270 if (!SWIG_IsOK(ecode4)) {
30271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30272 }
30273 arg4 = static_cast< wxDouble >(val4);
30274 ecode5 = SWIG_AsVal_double(obj4, &val5);
30275 if (!SWIG_IsOK(ecode5)) {
30276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30277 }
30278 arg5 = static_cast< wxDouble >(val5);
30279 ecode6 = SWIG_AsVal_double(obj5, &val6);
30280 if (!SWIG_IsOK(ecode6)) {
30281 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30282 }
30283 arg6 = static_cast< wxDouble >(val6);
30284 {
72ef6efb 30285 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30286 if (PyErr_Occurred()) SWIG_fail;
30287 }
30288 resultobj = SWIG_Py_Void();
30289 return resultobj;
30290fail:
30291 return NULL;
30292}
30293
30294
30295SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30296 PyObject *resultobj = 0;
30297 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30298 wxIcon *arg2 = 0 ;
30299 wxDouble arg3 ;
30300 wxDouble arg4 ;
30301 wxDouble arg5 ;
30302 wxDouble arg6 ;
30303 void *argp1 = 0 ;
30304 int res1 = 0 ;
30305 void *argp2 = 0 ;
30306 int res2 = 0 ;
30307 double val3 ;
30308 int ecode3 = 0 ;
30309 double val4 ;
30310 int ecode4 = 0 ;
30311 double val5 ;
30312 int ecode5 = 0 ;
70d7cb34
RD
30313 double val6 ;
30314 int ecode6 = 0 ;
30315 PyObject * obj0 = 0 ;
30316 PyObject * obj1 = 0 ;
30317 PyObject * obj2 = 0 ;
30318 PyObject * obj3 = 0 ;
30319 PyObject * obj4 = 0 ;
30320 PyObject * obj5 = 0 ;
30321 char * kwnames[] = {
30322 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30323 };
30324
30325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30327 if (!SWIG_IsOK(res1)) {
30328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30329 }
30330 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30332 if (!SWIG_IsOK(res2)) {
30333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30334 }
30335 if (!argp2) {
30336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30337 }
30338 arg2 = reinterpret_cast< wxIcon * >(argp2);
30339 ecode3 = SWIG_AsVal_double(obj2, &val3);
30340 if (!SWIG_IsOK(ecode3)) {
30341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30342 }
30343 arg3 = static_cast< wxDouble >(val3);
30344 ecode4 = SWIG_AsVal_double(obj3, &val4);
30345 if (!SWIG_IsOK(ecode4)) {
30346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30347 }
30348 arg4 = static_cast< wxDouble >(val4);
30349 ecode5 = SWIG_AsVal_double(obj4, &val5);
30350 if (!SWIG_IsOK(ecode5)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30352 }
30353 arg5 = static_cast< wxDouble >(val5);
30354 ecode6 = SWIG_AsVal_double(obj5, &val6);
30355 if (!SWIG_IsOK(ecode6)) {
30356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30357 }
30358 arg6 = static_cast< wxDouble >(val6);
30359 {
30360 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30361 if (PyErr_Occurred()) SWIG_fail;
30362 }
30363 resultobj = SWIG_Py_Void();
30364 return resultobj;
30365fail:
30366 return NULL;
30367}
30368
30369
30370SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30371 PyObject *resultobj = 0;
30372 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30373 wxDouble arg2 ;
30374 wxDouble arg3 ;
30375 wxDouble arg4 ;
30376 wxDouble arg5 ;
30377 void *argp1 = 0 ;
30378 int res1 = 0 ;
30379 double val2 ;
30380 int ecode2 = 0 ;
30381 double val3 ;
30382 int ecode3 = 0 ;
30383 double val4 ;
30384 int ecode4 = 0 ;
30385 double val5 ;
30386 int ecode5 = 0 ;
30387 PyObject * obj0 = 0 ;
30388 PyObject * obj1 = 0 ;
30389 PyObject * obj2 = 0 ;
30390 PyObject * obj3 = 0 ;
30391 PyObject * obj4 = 0 ;
30392 char * kwnames[] = {
30393 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30394 };
30395
30396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30398 if (!SWIG_IsOK(res1)) {
30399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30400 }
30401 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30402 ecode2 = SWIG_AsVal_double(obj1, &val2);
30403 if (!SWIG_IsOK(ecode2)) {
30404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30405 }
30406 arg2 = static_cast< wxDouble >(val2);
30407 ecode3 = SWIG_AsVal_double(obj2, &val3);
30408 if (!SWIG_IsOK(ecode3)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30410 }
30411 arg3 = static_cast< wxDouble >(val3);
30412 ecode4 = SWIG_AsVal_double(obj3, &val4);
30413 if (!SWIG_IsOK(ecode4)) {
30414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30415 }
30416 arg4 = static_cast< wxDouble >(val4);
30417 ecode5 = SWIG_AsVal_double(obj4, &val5);
30418 if (!SWIG_IsOK(ecode5)) {
30419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30420 }
30421 arg5 = static_cast< wxDouble >(val5);
30422 {
30423 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_Py_Void();
30427 return resultobj;
30428fail:
30429 return NULL;
30430}
30431
30432
30433SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30434 PyObject *resultobj = 0;
30435 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30436 size_t arg2 ;
30437 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30438 void *argp1 = 0 ;
30439 int res1 = 0 ;
30440 PyObject * obj0 = 0 ;
30441 PyObject * obj1 = 0 ;
30442 char * kwnames[] = {
30443 (char *) "self",(char *) "points", NULL
30444 };
30445
30446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30448 if (!SWIG_IsOK(res1)) {
30449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30450 }
30451 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30452 {
30453 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30454 if (arg3 == NULL) SWIG_fail;
30455 }
30456 {
30457 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30458 if (PyErr_Occurred()) SWIG_fail;
30459 }
30460 resultobj = SWIG_Py_Void();
30461 {
30462 if (arg3) delete [] arg3;
30463 }
30464 return resultobj;
30465fail:
30466 {
30467 if (arg3) delete [] arg3;
30468 }
30469 return NULL;
30470}
30471
30472
30473SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30474 PyObject *resultobj = 0;
30475 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30476 PyObject *arg2 = (PyObject *) 0 ;
30477 PyObject *arg3 = (PyObject *) 0 ;
30478 void *argp1 = 0 ;
30479 int res1 = 0 ;
30480 PyObject * obj0 = 0 ;
30481 PyObject * obj1 = 0 ;
30482 PyObject * obj2 = 0 ;
30483 char * kwnames[] = {
30484 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30485 };
30486
30487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30489 if (!SWIG_IsOK(res1)) {
30490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30491 }
30492 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30493 arg2 = obj1;
30494 arg3 = obj2;
30495 {
30496 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 resultobj = SWIG_Py_Void();
30500 return resultobj;
30501fail:
30502 return NULL;
30503}
30504
30505
30506SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30507 PyObject *resultobj = 0;
30508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30509 size_t arg2 ;
30510 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30511 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30512 void *argp1 = 0 ;
30513 int res1 = 0 ;
30514 int val4 ;
30515 int ecode4 = 0 ;
30516 PyObject * obj0 = 0 ;
30517 PyObject * obj1 = 0 ;
30518 PyObject * obj2 = 0 ;
30519 char * kwnames[] = {
30520 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30521 };
30522
30523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30525 if (!SWIG_IsOK(res1)) {
30526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30527 }
30528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30529 {
30530 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30531 if (arg3 == NULL) SWIG_fail;
30532 }
30533 if (obj2) {
30534 ecode4 = SWIG_AsVal_int(obj2, &val4);
30535 if (!SWIG_IsOK(ecode4)) {
30536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30537 }
30538 arg4 = static_cast< int >(val4);
30539 }
30540 {
30541 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 resultobj = SWIG_Py_Void();
30545 {
30546 if (arg3) delete [] arg3;
30547 }
30548 return resultobj;
30549fail:
30550 {
30551 if (arg3) delete [] arg3;
30552 }
30553 return NULL;
30554}
30555
30556
30557SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30558 PyObject *resultobj = 0;
30559 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30560 wxDouble arg2 ;
30561 wxDouble arg3 ;
30562 wxDouble arg4 ;
30563 wxDouble arg5 ;
30564 void *argp1 = 0 ;
30565 int res1 = 0 ;
30566 double val2 ;
30567 int ecode2 = 0 ;
30568 double val3 ;
30569 int ecode3 = 0 ;
30570 double val4 ;
30571 int ecode4 = 0 ;
30572 double val5 ;
30573 int ecode5 = 0 ;
30574 PyObject * obj0 = 0 ;
30575 PyObject * obj1 = 0 ;
30576 PyObject * obj2 = 0 ;
30577 PyObject * obj3 = 0 ;
30578 PyObject * obj4 = 0 ;
30579 char * kwnames[] = {
30580 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30581 };
30582
30583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30585 if (!SWIG_IsOK(res1)) {
30586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30587 }
30588 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30589 ecode2 = SWIG_AsVal_double(obj1, &val2);
30590 if (!SWIG_IsOK(ecode2)) {
30591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30592 }
30593 arg2 = static_cast< wxDouble >(val2);
30594 ecode3 = SWIG_AsVal_double(obj2, &val3);
30595 if (!SWIG_IsOK(ecode3)) {
30596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30597 }
30598 arg3 = static_cast< wxDouble >(val3);
30599 ecode4 = SWIG_AsVal_double(obj3, &val4);
30600 if (!SWIG_IsOK(ecode4)) {
30601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30602 }
30603 arg4 = static_cast< wxDouble >(val4);
30604 ecode5 = SWIG_AsVal_double(obj4, &val5);
30605 if (!SWIG_IsOK(ecode5)) {
30606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30607 }
30608 arg5 = static_cast< wxDouble >(val5);
30609 {
30610 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30611 if (PyErr_Occurred()) SWIG_fail;
30612 }
30613 resultobj = SWIG_Py_Void();
30614 return resultobj;
30615fail:
30616 return NULL;
30617}
30618
30619
30620SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30621 PyObject *resultobj = 0;
30622 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30623 wxDouble arg2 ;
30624 wxDouble arg3 ;
30625 wxDouble arg4 ;
30626 wxDouble arg5 ;
30627 void *argp1 = 0 ;
30628 int res1 = 0 ;
30629 double val2 ;
30630 int ecode2 = 0 ;
30631 double val3 ;
30632 int ecode3 = 0 ;
30633 double val4 ;
30634 int ecode4 = 0 ;
30635 double val5 ;
30636 int ecode5 = 0 ;
72ef6efb
RD
30637 PyObject * obj0 = 0 ;
30638 PyObject * obj1 = 0 ;
30639 PyObject * obj2 = 0 ;
30640 PyObject * obj3 = 0 ;
30641 PyObject * obj4 = 0 ;
72ef6efb 30642 char * kwnames[] = {
70d7cb34 30643 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30644 };
30645
70d7cb34 30646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30648 if (!SWIG_IsOK(res1)) {
70d7cb34 30649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30650 }
30651 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30652 ecode2 = SWIG_AsVal_double(obj1, &val2);
30653 if (!SWIG_IsOK(ecode2)) {
30654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30655 }
30656 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30657 ecode3 = SWIG_AsVal_double(obj2, &val3);
30658 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30660 }
30661 arg3 = static_cast< wxDouble >(val3);
30662 ecode4 = SWIG_AsVal_double(obj3, &val4);
30663 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30665 }
30666 arg4 = static_cast< wxDouble >(val4);
30667 ecode5 = SWIG_AsVal_double(obj4, &val5);
30668 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30670 }
30671 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30672 {
70d7cb34 30673 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30674 if (PyErr_Occurred()) SWIG_fail;
30675 }
30676 resultobj = SWIG_Py_Void();
30677 return resultobj;
30678fail:
30679 return NULL;
30680}
30681
30682
70d7cb34 30683SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30684 PyObject *resultobj = 0;
30685 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30686 wxDouble arg2 ;
30687 wxDouble arg3 ;
30688 wxDouble arg4 ;
30689 wxDouble arg5 ;
70d7cb34 30690 wxDouble arg6 ;
72ef6efb
RD
30691 void *argp1 = 0 ;
30692 int res1 = 0 ;
30693 double val2 ;
30694 int ecode2 = 0 ;
30695 double val3 ;
30696 int ecode3 = 0 ;
30697 double val4 ;
30698 int ecode4 = 0 ;
30699 double val5 ;
30700 int ecode5 = 0 ;
70d7cb34
RD
30701 double val6 ;
30702 int ecode6 = 0 ;
72ef6efb
RD
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 PyObject * obj2 = 0 ;
30706 PyObject * obj3 = 0 ;
30707 PyObject * obj4 = 0 ;
70d7cb34 30708 PyObject * obj5 = 0 ;
72ef6efb 30709 char * kwnames[] = {
70d7cb34 30710 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30711 };
30712
70d7cb34 30713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30715 if (!SWIG_IsOK(res1)) {
70d7cb34 30716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30717 }
30718 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30719 ecode2 = SWIG_AsVal_double(obj1, &val2);
30720 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30722 }
30723 arg2 = static_cast< wxDouble >(val2);
30724 ecode3 = SWIG_AsVal_double(obj2, &val3);
30725 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30727 }
30728 arg3 = static_cast< wxDouble >(val3);
30729 ecode4 = SWIG_AsVal_double(obj3, &val4);
30730 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30732 }
30733 arg4 = static_cast< wxDouble >(val4);
30734 ecode5 = SWIG_AsVal_double(obj4, &val5);
30735 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30736 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30737 }
30738 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30739 ecode6 = SWIG_AsVal_double(obj5, &val6);
30740 if (!SWIG_IsOK(ecode6)) {
30741 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30742 }
30743 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30744 {
70d7cb34 30745 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30746 if (PyErr_Occurred()) SWIG_fail;
30747 }
30748 resultobj = SWIG_Py_Void();
30749 return resultobj;
30750fail:
30751 return NULL;
30752}
30753
30754
70d7cb34 30755SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30756 PyObject *resultobj = 0;
30757 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30758 bool result;
72ef6efb
RD
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
70d7cb34 30761 PyObject *swig_obj[1] ;
72ef6efb 30762
70d7cb34
RD
30763 if (!args) SWIG_fail;
30764 swig_obj[0] = args;
30765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30766 if (!SWIG_IsOK(res1)) {
70d7cb34 30767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30768 }
30769 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30770 {
70d7cb34
RD
30771 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30772 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30773 }
72ef6efb 30774 {
70d7cb34
RD
30775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30776 }
30777 return resultobj;
30778fail:
30779 return NULL;
30780}
30781
30782
30783SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30784 PyObject *obj;
30785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30786 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30787 return SWIG_Py_Void();
30788}
30789
30790SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30791 PyObject *resultobj = 0;
30792 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 PyObject *swig_obj[1] ;
30796
30797 if (!args) SWIG_fail;
30798 swig_obj[0] = args;
30799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30800 if (!SWIG_IsOK(res1)) {
30801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30802 }
30803 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30804 {
30805 delete arg1;
30806
72ef6efb
RD
30807 if (PyErr_Occurred()) SWIG_fail;
30808 }
30809 resultobj = SWIG_Py_Void();
70d7cb34
RD
30810 return resultobj;
30811fail:
30812 return NULL;
30813}
30814
30815
30816SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30817 PyObject *resultobj = 0;
30818 wxGraphicsRenderer *result = 0 ;
30819
30820 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30821 {
70d7cb34
RD
30822 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30823 if (PyErr_Occurred()) SWIG_fail;
30824 }
30825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30826 return resultobj;
30827fail:
30828 return NULL;
30829}
30830
30831
30832SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30833 PyObject *resultobj = 0;
30834 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30835 wxWindowDC *arg2 = 0 ;
30836 wxGraphicsContext *result = 0 ;
30837 void *argp1 = 0 ;
30838 int res1 = 0 ;
30839 void *argp2 = 0 ;
30840 int res2 = 0 ;
30841
30842 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30844 if (!SWIG_IsOK(res1)) {
30845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30846 }
30847 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30848 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30849 if (!SWIG_IsOK(res2)) {
30850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30851 }
30852 if (!argp2) {
30853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30854 }
30855 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30856 {
30857 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30858 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30859 }
70d7cb34 30860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30861 return resultobj;
30862fail:
70d7cb34
RD
30863 return NULL;
30864}
30865
30866
30867SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30868 PyObject *resultobj = 0;
30869 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30870 wxWindow *arg2 = (wxWindow *) 0 ;
30871 wxGraphicsContext *result = 0 ;
30872 void *argp1 = 0 ;
30873 int res1 = 0 ;
30874 void *argp2 = 0 ;
30875 int res2 = 0 ;
30876
30877 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30879 if (!SWIG_IsOK(res1)) {
30880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30881 }
30882 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30883 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30884 if (!SWIG_IsOK(res2)) {
30885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30886 }
30887 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30888 {
70d7cb34
RD
30889 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30890 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30891 }
70d7cb34
RD
30892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30893 return resultobj;
30894fail:
72ef6efb
RD
30895 return NULL;
30896}
30897
30898
70d7cb34
RD
30899SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30900 int argc;
30901 PyObject *argv[3];
30902
30903 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30904 --argc;
30905 if (argc == 2) {
30906 int _v = 0;
30907 {
30908 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30909 _v = SWIG_CheckState(res);
30910 }
30911 if (!_v) goto check_1;
30912 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30913 }
30914check_1:
30915
30916 if (argc == 2) {
30917 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30918 }
30919
30920fail:
30921 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30922 return NULL;
30923}
30924
30925
f89238b9
RD
30926SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30927 PyObject *resultobj = 0;
30928 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30929 wxGraphicsContext *result = 0 ;
30930 void *argp1 = 0 ;
30931 int res1 = 0 ;
30932 PyObject *swig_obj[1] ;
30933
30934 if (!args) SWIG_fail;
30935 swig_obj[0] = args;
30936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30937 if (!SWIG_IsOK(res1)) {
30938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30939 }
30940 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30941 {
30942 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30943 if (PyErr_Occurred()) SWIG_fail;
30944 }
30945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30946 return resultobj;
30947fail:
30948 return NULL;
30949}
30950
30951
70d7cb34 30952SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30953 PyObject *resultobj = 0;
70d7cb34
RD
30954 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30955 void *arg2 = (void *) 0 ;
30956 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30957 void *argp1 = 0 ;
30958 int res1 = 0 ;
70d7cb34 30959 int res2 ;
b39fe951
RD
30960 PyObject * obj0 = 0 ;
30961 PyObject * obj1 = 0 ;
b39fe951 30962 char * kwnames[] = {
70d7cb34 30963 (char *) "self",(char *) "context", NULL
b39fe951 30964 };
72ef6efb 30965
70d7cb34
RD
30966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30968 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30970 }
30971 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30972 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30973 if (!SWIG_IsOK(res2)) {
30974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30975 }
72ef6efb 30976 {
70d7cb34 30977 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
70d7cb34 30980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30981 return resultobj;
30982fail:
30983 return NULL;
30984}
30985
30986
70d7cb34 30987SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30988 PyObject *resultobj = 0;
70d7cb34
RD
30989 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30990 void *arg2 = (void *) 0 ;
30991 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30992 void *argp1 = 0 ;
30993 int res1 = 0 ;
70d7cb34 30994 int res2 ;
72ef6efb
RD
30995 PyObject * obj0 = 0 ;
30996 PyObject * obj1 = 0 ;
72ef6efb 30997 char * kwnames[] = {
70d7cb34 30998 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30999 };
31000
70d7cb34
RD
31001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31003 if (!SWIG_IsOK(res1)) {
70d7cb34 31004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31005 }
70d7cb34
RD
31006 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31007 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31008 if (!SWIG_IsOK(res2)) {
31009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
31010 }
31011 {
70d7cb34 31012 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
70d7cb34 31015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31016 return resultobj;
31017fail:
70d7cb34
RD
31018 return NULL;
31019}
31020
31021
31022SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31023 PyObject *resultobj = 0;
31024 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 31025 wxGraphicsPath result;
70d7cb34
RD
31026 void *argp1 = 0 ;
31027 int res1 = 0 ;
31028 PyObject *swig_obj[1] ;
31029
31030 if (!args) SWIG_fail;
31031 swig_obj[0] = args;
31032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31035 }
31036 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 31037 {
5c8c7dd3 31038 result = (arg1)->CreatePath();
70d7cb34 31039 if (PyErr_Occurred()) SWIG_fail;
b39fe951 31040 }
5c8c7dd3 31041 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
31042 return resultobj;
31043fail:
72ef6efb
RD
31044 return NULL;
31045}
31046
31047
70d7cb34 31048SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31049 PyObject *resultobj = 0;
70d7cb34
RD
31050 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31051 wxDouble arg2 = (wxDouble) 1.0 ;
31052 wxDouble arg3 = (wxDouble) 0.0 ;
31053 wxDouble arg4 = (wxDouble) 0.0 ;
31054 wxDouble arg5 = (wxDouble) 1.0 ;
31055 wxDouble arg6 = (wxDouble) 0.0 ;
31056 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 31057 wxGraphicsMatrix result;
72ef6efb
RD
31058 void *argp1 = 0 ;
31059 int res1 = 0 ;
31060 double val2 ;
31061 int ecode2 = 0 ;
31062 double val3 ;
31063 int ecode3 = 0 ;
31064 double val4 ;
31065 int ecode4 = 0 ;
31066 double val5 ;
31067 int ecode5 = 0 ;
70d7cb34
RD
31068 double val6 ;
31069 int ecode6 = 0 ;
31070 double val7 ;
31071 int ecode7 = 0 ;
72ef6efb
RD
31072 PyObject * obj0 = 0 ;
31073 PyObject * obj1 = 0 ;
31074 PyObject * obj2 = 0 ;
31075 PyObject * obj3 = 0 ;
31076 PyObject * obj4 = 0 ;
70d7cb34
RD
31077 PyObject * obj5 = 0 ;
31078 PyObject * obj6 = 0 ;
72ef6efb 31079 char * kwnames[] = {
70d7cb34 31080 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
31081 };
31082
70d7cb34
RD
31083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31085 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
31086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31087 }
31088 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31089 if (obj1) {
31090 ecode2 = SWIG_AsVal_double(obj1, &val2);
31091 if (!SWIG_IsOK(ecode2)) {
31092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31093 }
31094 arg2 = static_cast< wxDouble >(val2);
31095 }
31096 if (obj2) {
31097 ecode3 = SWIG_AsVal_double(obj2, &val3);
31098 if (!SWIG_IsOK(ecode3)) {
31099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31100 }
31101 arg3 = static_cast< wxDouble >(val3);
31102 }
31103 if (obj3) {
31104 ecode4 = SWIG_AsVal_double(obj3, &val4);
31105 if (!SWIG_IsOK(ecode4)) {
31106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31107 }
31108 arg4 = static_cast< wxDouble >(val4);
31109 }
31110 if (obj4) {
31111 ecode5 = SWIG_AsVal_double(obj4, &val5);
31112 if (!SWIG_IsOK(ecode5)) {
31113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31114 }
31115 arg5 = static_cast< wxDouble >(val5);
31116 }
31117 if (obj5) {
31118 ecode6 = SWIG_AsVal_double(obj5, &val6);
31119 if (!SWIG_IsOK(ecode6)) {
31120 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31121 }
31122 arg6 = static_cast< wxDouble >(val6);
31123 }
31124 if (obj6) {
31125 ecode7 = SWIG_AsVal_double(obj6, &val7);
31126 if (!SWIG_IsOK(ecode7)) {
31127 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31128 }
31129 arg7 = static_cast< wxDouble >(val7);
72ef6efb 31130 }
72ef6efb 31131 {
5c8c7dd3 31132 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
5c8c7dd3 31135 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31136 return resultobj;
31137fail:
31138 return NULL;
31139}
31140
31141
70d7cb34 31142SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31143 PyObject *resultobj = 0;
70d7cb34
RD
31144 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31145 wxPen *arg2 = 0 ;
31146 wxGraphicsPen result;
31147 void *argp1 = 0 ;
31148 int res1 = 0 ;
31149 void *argp2 = 0 ;
31150 int res2 = 0 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 char * kwnames[] = {
31154 (char *) "self",(char *) "pen", NULL
31155 };
31156
31157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31159 if (!SWIG_IsOK(res1)) {
31160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31161 }
31162 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31164 if (!SWIG_IsOK(res2)) {
31165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31166 }
31167 if (!argp2) {
31168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31169 }
31170 arg2 = reinterpret_cast< wxPen * >(argp2);
31171 {
31172 result = (arg1)->CreatePen((wxPen const &)*arg2);
31173 if (PyErr_Occurred()) SWIG_fail;
31174 }
31175 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31176 return resultobj;
31177fail:
31178 return NULL;
31179}
31180
31181
31182SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31183 PyObject *resultobj = 0;
31184 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31185 wxBrush *arg2 = 0 ;
31186 wxGraphicsBrush result;
31187 void *argp1 = 0 ;
31188 int res1 = 0 ;
31189 void *argp2 = 0 ;
31190 int res2 = 0 ;
31191 PyObject * obj0 = 0 ;
31192 PyObject * obj1 = 0 ;
31193 char * kwnames[] = {
31194 (char *) "self",(char *) "brush", NULL
31195 };
31196
31197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31199 if (!SWIG_IsOK(res1)) {
31200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31201 }
31202 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31204 if (!SWIG_IsOK(res2)) {
31205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31206 }
31207 if (!argp2) {
31208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31209 }
31210 arg2 = reinterpret_cast< wxBrush * >(argp2);
31211 {
31212 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31213 if (PyErr_Occurred()) SWIG_fail;
31214 }
31215 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31216 return resultobj;
31217fail:
31218 return NULL;
31219}
31220
31221
31222SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31223 PyObject *resultobj = 0;
31224 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31225 wxDouble arg2 ;
31226 wxDouble arg3 ;
31227 wxDouble arg4 ;
31228 wxDouble arg5 ;
70d7cb34
RD
31229 wxColour *arg6 = 0 ;
31230 wxColour *arg7 = 0 ;
31231 wxGraphicsBrush result;
72ef6efb
RD
31232 void *argp1 = 0 ;
31233 int res1 = 0 ;
31234 double val2 ;
31235 int ecode2 = 0 ;
31236 double val3 ;
31237 int ecode3 = 0 ;
31238 double val4 ;
31239 int ecode4 = 0 ;
31240 double val5 ;
31241 int ecode5 = 0 ;
70d7cb34
RD
31242 wxColour temp6 ;
31243 wxColour temp7 ;
72ef6efb
RD
31244 PyObject * obj0 = 0 ;
31245 PyObject * obj1 = 0 ;
31246 PyObject * obj2 = 0 ;
31247 PyObject * obj3 = 0 ;
31248 PyObject * obj4 = 0 ;
70d7cb34
RD
31249 PyObject * obj5 = 0 ;
31250 PyObject * obj6 = 0 ;
72ef6efb 31251 char * kwnames[] = {
70d7cb34 31252 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
31253 };
31254
70d7cb34
RD
31255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31257 if (!SWIG_IsOK(res1)) {
70d7cb34 31258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31259 }
70d7cb34 31260 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31261 ecode2 = SWIG_AsVal_double(obj1, &val2);
31262 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31264 }
31265 arg2 = static_cast< wxDouble >(val2);
31266 ecode3 = SWIG_AsVal_double(obj2, &val3);
31267 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31269 }
31270 arg3 = static_cast< wxDouble >(val3);
31271 ecode4 = SWIG_AsVal_double(obj3, &val4);
31272 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31274 }
31275 arg4 = static_cast< wxDouble >(val4);
31276 ecode5 = SWIG_AsVal_double(obj4, &val5);
31277 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31279 }
31280 arg5 = static_cast< wxDouble >(val5);
31281 {
70d7cb34
RD
31282 arg6 = &temp6;
31283 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31284 }
31285 {
31286 arg7 = &temp7;
31287 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31288 }
31289 {
31290 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
70d7cb34 31293 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31294 return resultobj;
31295fail:
31296 return NULL;
31297}
31298
31299
70d7cb34 31300SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31301 PyObject *resultobj = 0;
70d7cb34 31302 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31303 wxDouble arg2 ;
31304 wxDouble arg3 ;
31305 wxDouble arg4 ;
31306 wxDouble arg5 ;
31307 wxDouble arg6 ;
70d7cb34
RD
31308 wxColour *arg7 = 0 ;
31309 wxColour *arg8 = 0 ;
31310 wxGraphicsBrush result;
72ef6efb
RD
31311 void *argp1 = 0 ;
31312 int res1 = 0 ;
31313 double val2 ;
31314 int ecode2 = 0 ;
31315 double val3 ;
31316 int ecode3 = 0 ;
31317 double val4 ;
31318 int ecode4 = 0 ;
31319 double val5 ;
31320 int ecode5 = 0 ;
31321 double val6 ;
31322 int ecode6 = 0 ;
70d7cb34
RD
31323 wxColour temp7 ;
31324 wxColour temp8 ;
72ef6efb
RD
31325 PyObject * obj0 = 0 ;
31326 PyObject * obj1 = 0 ;
31327 PyObject * obj2 = 0 ;
31328 PyObject * obj3 = 0 ;
31329 PyObject * obj4 = 0 ;
31330 PyObject * obj5 = 0 ;
70d7cb34
RD
31331 PyObject * obj6 = 0 ;
31332 PyObject * obj7 = 0 ;
72ef6efb 31333 char * kwnames[] = {
70d7cb34 31334 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
31335 };
31336
70d7cb34
RD
31337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31339 if (!SWIG_IsOK(res1)) {
70d7cb34 31340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31341 }
70d7cb34 31342 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31343 ecode2 = SWIG_AsVal_double(obj1, &val2);
31344 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31346 }
31347 arg2 = static_cast< wxDouble >(val2);
31348 ecode3 = SWIG_AsVal_double(obj2, &val3);
31349 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31351 }
31352 arg3 = static_cast< wxDouble >(val3);
31353 ecode4 = SWIG_AsVal_double(obj3, &val4);
31354 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31356 }
31357 arg4 = static_cast< wxDouble >(val4);
31358 ecode5 = SWIG_AsVal_double(obj4, &val5);
31359 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31361 }
31362 arg5 = static_cast< wxDouble >(val5);
31363 ecode6 = SWIG_AsVal_double(obj5, &val6);
31364 if (!SWIG_IsOK(ecode6)) {
70d7cb34 31365 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
31366 }
31367 arg6 = static_cast< wxDouble >(val6);
31368 {
70d7cb34
RD
31369 arg7 = &temp7;
31370 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31371 }
31372 {
31373 arg8 = &temp8;
31374 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31375 }
31376 {
31377 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
31378 if (PyErr_Occurred()) SWIG_fail;
31379 }
70d7cb34 31380 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31381 return resultobj;
31382fail:
31383 return NULL;
31384}
31385
31386
70d7cb34
RD
31387SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31388 PyObject *resultobj = 0;
31389 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31390 wxFont *arg2 = 0 ;
31391 wxColour const &arg3_defvalue = *wxBLACK ;
31392 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31393 wxGraphicsFont result;
31394 void *argp1 = 0 ;
31395 int res1 = 0 ;
31396 void *argp2 = 0 ;
31397 int res2 = 0 ;
31398 wxColour temp3 ;
31399 PyObject * obj0 = 0 ;
31400 PyObject * obj1 = 0 ;
31401 PyObject * obj2 = 0 ;
31402 char * kwnames[] = {
31403 (char *) "self",(char *) "font",(char *) "col", NULL
31404 };
31405
31406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31408 if (!SWIG_IsOK(res1)) {
31409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31410 }
31411 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31413 if (!SWIG_IsOK(res2)) {
31414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31415 }
31416 if (!argp2) {
31417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31418 }
31419 arg2 = reinterpret_cast< wxFont * >(argp2);
31420 if (obj2) {
31421 {
31422 arg3 = &temp3;
31423 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31424 }
31425 }
31426 {
31427 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31428 if (PyErr_Occurred()) SWIG_fail;
31429 }
31430 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31431 return resultobj;
31432fail:
31433 return NULL;
31434}
31435
31436
31437SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31438 PyObject *obj;
31439 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31440 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31441 return SWIG_Py_Void();
31442}
31443
48a0c021 31444SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
31445 PyObject *resultobj = 0;
31446 wxWindowDC *arg1 = 0 ;
31447 wxGCDC *result = 0 ;
31448 void *argp1 = 0 ;
31449 int res1 = 0 ;
72ef6efb 31450
48a0c021
RD
31451 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
31453 if (!SWIG_IsOK(res1)) {
31454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31455 }
31456 if (!argp1) {
31457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31458 }
31459 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31460 {
31461 if (!wxPyCheckForApp()) SWIG_fail;
31462 PyThreadState* __tstate = wxPyBeginAllowThreads();
31463 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31464 wxPyEndAllowThreads(__tstate);
31465 if (PyErr_Occurred()) SWIG_fail;
31466 }
31467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31468 return resultobj;
31469fail:
31470 return NULL;
31471}
31472
31473
48a0c021
RD
31474SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31475 PyObject *resultobj = 0;
31476 wxWindow *arg1 = (wxWindow *) 0 ;
31477 wxGCDC *result = 0 ;
31478 void *argp1 = 0 ;
31479 int res1 = 0 ;
31480
31481 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31483 if (!SWIG_IsOK(res1)) {
31484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31485 }
31486 arg1 = reinterpret_cast< wxWindow * >(argp1);
31487 {
31488 if (!wxPyCheckForApp()) SWIG_fail;
31489 PyThreadState* __tstate = wxPyBeginAllowThreads();
31490 result = (wxGCDC *)new wxGCDC(arg1);
31491 wxPyEndAllowThreads(__tstate);
31492 if (PyErr_Occurred()) SWIG_fail;
31493 }
31494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31495 return resultobj;
31496fail:
31497 return NULL;
31498}
31499
31500
31501SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31502 int argc;
31503 PyObject *argv[2];
31504
31505 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31506 --argc;
31507 if (argc == 1) {
31508 int _v = 0;
31509 {
31510 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31511 _v = SWIG_CheckState(res);
31512 }
31513 if (!_v) goto check_1;
31514 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31515 }
31516check_1:
31517
31518 if (argc == 1) {
31519 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31520 }
31521
31522fail:
31523 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31524 return NULL;
31525}
31526
31527
72ef6efb
RD
31528SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31529 PyObject *resultobj = 0;
31530 wxGCDC *arg1 = (wxGCDC *) 0 ;
31531 void *argp1 = 0 ;
31532 int res1 = 0 ;
31533 PyObject *swig_obj[1] ;
31534
31535 if (!args) SWIG_fail;
31536 swig_obj[0] = args;
31537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31538 if (!SWIG_IsOK(res1)) {
31539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31540 }
31541 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31542 {
72ef6efb
RD
31543 delete arg1;
31544
72ef6efb
RD
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_Py_Void();
31548 return resultobj;
31549fail:
31550 return NULL;
31551}
31552
31553
0a27f394 31554SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31555 PyObject *resultobj = 0;
31556 wxGCDC *arg1 = (wxGCDC *) 0 ;
31557 wxGraphicsContext *result = 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 PyObject *swig_obj[1] ;
31561
31562 if (!args) SWIG_fail;
31563 swig_obj[0] = args;
31564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31565 if (!SWIG_IsOK(res1)) {
0a27f394 31566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31567 }
31568 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31569 {
0a27f394 31570 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31571 if (PyErr_Occurred()) SWIG_fail;
31572 }
31573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31574 return resultobj;
31575fail:
31576 return NULL;
31577}
31578
31579
0a27f394
RD
31580SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31581 PyObject *resultobj = 0;
31582 wxGCDC *arg1 = (wxGCDC *) 0 ;
31583 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31584 void *argp1 = 0 ;
31585 int res1 = 0 ;
31586 void *argp2 = 0 ;
31587 int res2 = 0 ;
31588 PyObject * obj0 = 0 ;
31589 PyObject * obj1 = 0 ;
31590 char * kwnames[] = {
31591 (char *) "self",(char *) "ctx", NULL
31592 };
31593
31594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31596 if (!SWIG_IsOK(res1)) {
31597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31598 }
31599 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31601 if (!SWIG_IsOK(res2)) {
31602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31603 }
31604 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31605 {
31606 (arg1)->SetGraphicsContext(arg2);
31607 if (PyErr_Occurred()) SWIG_fail;
31608 }
31609 resultobj = SWIG_Py_Void();
31610 return resultobj;
31611fail:
31612 return NULL;
31613}
31614
31615
72ef6efb
RD
31616SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31617 PyObject *obj;
31618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31619 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31620 return SWIG_Py_Void();
31621}
31622
31623SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31624 return SWIG_Python_InitShadowInstance(args);
31625}
31626
b39fe951
RD
31627SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31628 PyObject *resultobj = 0;
31629 wxOverlay *result = 0 ;
31630
31631 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31632 {
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 result = (wxOverlay *)new wxOverlay();
31635 wxPyEndAllowThreads(__tstate);
31636 if (PyErr_Occurred()) SWIG_fail;
31637 }
31638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31639 return resultobj;
31640fail:
31641 return NULL;
31642}
31643
31644
31645SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31646 PyObject *resultobj = 0;
31647 wxOverlay *arg1 = (wxOverlay *) 0 ;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 PyObject *swig_obj[1] ;
31651
31652 if (!args) SWIG_fail;
31653 swig_obj[0] = args;
31654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31655 if (!SWIG_IsOK(res1)) {
31656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31657 }
31658 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 delete arg1;
31662
31663 wxPyEndAllowThreads(__tstate);
31664 if (PyErr_Occurred()) SWIG_fail;
31665 }
31666 resultobj = SWIG_Py_Void();
31667 return resultobj;
31668fail:
31669 return NULL;
31670}
31671
31672
31673SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31674 PyObject *resultobj = 0;
31675 wxOverlay *arg1 = (wxOverlay *) 0 ;
31676 void *argp1 = 0 ;
31677 int res1 = 0 ;
31678 PyObject *swig_obj[1] ;
31679
31680 if (!args) SWIG_fail;
31681 swig_obj[0] = args;
31682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31685 }
31686 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31687 {
31688 PyThreadState* __tstate = wxPyBeginAllowThreads();
31689 (arg1)->Reset();
31690 wxPyEndAllowThreads(__tstate);
31691 if (PyErr_Occurred()) SWIG_fail;
31692 }
31693 resultobj = SWIG_Py_Void();
31694 return resultobj;
31695fail:
31696 return NULL;
31697}
31698
31699
31700SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31701 PyObject *obj;
31702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31703 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31704 return SWIG_Py_Void();
31705}
31706
31707SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31708 return SWIG_Python_InitShadowInstance(args);
31709}
31710
31711SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31712 PyObject *resultobj = 0;
31713 wxOverlay *arg1 = 0 ;
31714 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31715 int arg3 ;
31716 int arg4 ;
31717 int arg5 ;
31718 int arg6 ;
31719 wxDCOverlay *result = 0 ;
31720 void *argp1 = 0 ;
31721 int res1 = 0 ;
31722 void *argp2 = 0 ;
31723 int res2 = 0 ;
31724 int val3 ;
31725 int ecode3 = 0 ;
31726 int val4 ;
31727 int ecode4 = 0 ;
31728 int val5 ;
31729 int ecode5 = 0 ;
31730 int val6 ;
31731 int ecode6 = 0 ;
31732
31733 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31735 if (!SWIG_IsOK(res1)) {
31736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31737 }
31738 if (!argp1) {
31739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31740 }
31741 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31743 if (!SWIG_IsOK(res2)) {
31744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31745 }
31746 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31747 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31748 if (!SWIG_IsOK(ecode3)) {
31749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31750 }
31751 arg3 = static_cast< int >(val3);
31752 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31753 if (!SWIG_IsOK(ecode4)) {
31754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31755 }
31756 arg4 = static_cast< int >(val4);
31757 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31758 if (!SWIG_IsOK(ecode5)) {
31759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31760 }
31761 arg5 = static_cast< int >(val5);
31762 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31763 if (!SWIG_IsOK(ecode6)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31765 }
31766 arg6 = static_cast< int >(val6);
31767 {
31768 PyThreadState* __tstate = wxPyBeginAllowThreads();
31769 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31770 wxPyEndAllowThreads(__tstate);
31771 if (PyErr_Occurred()) SWIG_fail;
31772 }
31773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31774 return resultobj;
31775fail:
31776 return NULL;
31777}
31778
31779
31780SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31781 PyObject *resultobj = 0;
31782 wxOverlay *arg1 = 0 ;
31783 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31784 wxDCOverlay *result = 0 ;
31785 void *argp1 = 0 ;
31786 int res1 = 0 ;
31787 void *argp2 = 0 ;
31788 int res2 = 0 ;
31789
31790 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31792 if (!SWIG_IsOK(res1)) {
31793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31794 }
31795 if (!argp1) {
31796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31797 }
31798 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31799 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31800 if (!SWIG_IsOK(res2)) {
31801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31802 }
31803 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31804 {
31805 PyThreadState* __tstate = wxPyBeginAllowThreads();
31806 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31807 wxPyEndAllowThreads(__tstate);
31808 if (PyErr_Occurred()) SWIG_fail;
31809 }
31810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31811 return resultobj;
31812fail:
31813 return NULL;
31814}
31815
31816
31817SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31818 int argc;
31819 PyObject *argv[7];
31820
31821 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31822 --argc;
31823 if (argc == 2) {
31824 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31825 }
31826 if (argc == 6) {
31827 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31828 }
31829
31830fail:
31831 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31832 return NULL;
31833}
31834
31835
31836SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31837 PyObject *resultobj = 0;
31838 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31839 void *argp1 = 0 ;
31840 int res1 = 0 ;
31841 PyObject *swig_obj[1] ;
31842
31843 if (!args) SWIG_fail;
31844 swig_obj[0] = args;
31845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31846 if (!SWIG_IsOK(res1)) {
31847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31848 }
31849 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31850 {
31851 PyThreadState* __tstate = wxPyBeginAllowThreads();
31852 delete arg1;
31853
31854 wxPyEndAllowThreads(__tstate);
31855 if (PyErr_Occurred()) SWIG_fail;
31856 }
31857 resultobj = SWIG_Py_Void();
31858 return resultobj;
31859fail:
31860 return NULL;
31861}
31862
31863
31864SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31865 PyObject *resultobj = 0;
31866 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31867 void *argp1 = 0 ;
31868 int res1 = 0 ;
31869 PyObject *swig_obj[1] ;
31870
31871 if (!args) SWIG_fail;
31872 swig_obj[0] = args;
31873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31874 if (!SWIG_IsOK(res1)) {
31875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31876 }
31877 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31878 {
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 (arg1)->Clear();
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_Py_Void();
31885 return resultobj;
31886fail:
31887 return NULL;
31888}
31889
31890
31891SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31892 PyObject *obj;
31893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31894 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31895 return SWIG_Py_Void();
31896}
31897
31898SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31899 return SWIG_Python_InitShadowInstance(args);
31900}
31901
72ef6efb
RD
31902SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31903 PyObject *resultobj = 0;
31904 int arg1 ;
31905 int arg2 ;
31906 int arg3 = (int) true ;
31907 int arg4 = (int) 1 ;
31908 wxImageList *result = 0 ;
31909 int val1 ;
31910 int ecode1 = 0 ;
31911 int val2 ;
31912 int ecode2 = 0 ;
31913 int val3 ;
31914 int ecode3 = 0 ;
31915 int val4 ;
31916 int ecode4 = 0 ;
31917 PyObject * obj0 = 0 ;
31918 PyObject * obj1 = 0 ;
31919 PyObject * obj2 = 0 ;
31920 PyObject * obj3 = 0 ;
31921 char * kwnames[] = {
31922 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31923 };
31924
31925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31926 ecode1 = SWIG_AsVal_int(obj0, &val1);
31927 if (!SWIG_IsOK(ecode1)) {
31928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31929 }
31930 arg1 = static_cast< int >(val1);
31931 ecode2 = SWIG_AsVal_int(obj1, &val2);
31932 if (!SWIG_IsOK(ecode2)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31934 }
31935 arg2 = static_cast< int >(val2);
31936 if (obj2) {
31937 ecode3 = SWIG_AsVal_int(obj2, &val3);
31938 if (!SWIG_IsOK(ecode3)) {
31939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31940 }
31941 arg3 = static_cast< int >(val3);
31942 }
31943 if (obj3) {
31944 ecode4 = SWIG_AsVal_int(obj3, &val4);
31945 if (!SWIG_IsOK(ecode4)) {
31946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31947 }
31948 arg4 = static_cast< int >(val4);
31949 }
31950 {
31951 if (!wxPyCheckForApp()) SWIG_fail;
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
31953 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
e02c0a13 31957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31958 return resultobj;
31959fail:
31960 return NULL;
31961}
31962
31963
31964SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31965 PyObject *resultobj = 0;
31966 wxImageList *arg1 = (wxImageList *) 0 ;
31967 void *argp1 = 0 ;
31968 int res1 = 0 ;
31969 PyObject *swig_obj[1] ;
31970
31971 if (!args) SWIG_fail;
31972 swig_obj[0] = args;
31973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31974 if (!SWIG_IsOK(res1)) {
31975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31976 }
31977 arg1 = reinterpret_cast< wxImageList * >(argp1);
31978 {
31979 PyThreadState* __tstate = wxPyBeginAllowThreads();
31980 delete arg1;
31981
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 resultobj = SWIG_Py_Void();
31986 return resultobj;
31987fail:
31988 return NULL;
31989}
31990
31991
31992SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31993 PyObject *resultobj = 0;
31994 wxImageList *arg1 = (wxImageList *) 0 ;
31995 wxBitmap *arg2 = 0 ;
31996 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31997 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31998 int result;
31999 void *argp1 = 0 ;
32000 int res1 = 0 ;
32001 void *argp2 = 0 ;
32002 int res2 = 0 ;
32003 void *argp3 = 0 ;
32004 int res3 = 0 ;
32005 PyObject * obj0 = 0 ;
32006 PyObject * obj1 = 0 ;
32007 PyObject * obj2 = 0 ;
32008 char * kwnames[] = {
32009 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32010 };
32011
32012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32014 if (!SWIG_IsOK(res1)) {
32015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32016 }
32017 arg1 = reinterpret_cast< wxImageList * >(argp1);
32018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32019 if (!SWIG_IsOK(res2)) {
32020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32021 }
32022 if (!argp2) {
32023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32024 }
32025 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32026 if (obj2) {
32027 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32028 if (!SWIG_IsOK(res3)) {
32029 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32030 }
32031 if (!argp3) {
32032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32033 }
32034 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32035 }
32036 {
32037 PyThreadState* __tstate = wxPyBeginAllowThreads();
32038 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32039 wxPyEndAllowThreads(__tstate);
32040 if (PyErr_Occurred()) SWIG_fail;
32041 }
32042 resultobj = SWIG_From_int(static_cast< int >(result));
32043 return resultobj;
32044fail:
32045 return NULL;
32046}
32047
32048
32049SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32050 PyObject *resultobj = 0;
32051 wxImageList *arg1 = (wxImageList *) 0 ;
32052 wxBitmap *arg2 = 0 ;
32053 wxColour *arg3 = 0 ;
32054 int result;
32055 void *argp1 = 0 ;
32056 int res1 = 0 ;
32057 void *argp2 = 0 ;
32058 int res2 = 0 ;
32059 wxColour temp3 ;
32060 PyObject * obj0 = 0 ;
32061 PyObject * obj1 = 0 ;
32062 PyObject * obj2 = 0 ;
32063 char * kwnames[] = {
32064 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32065 };
32066
32067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32069 if (!SWIG_IsOK(res1)) {
32070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32071 }
32072 arg1 = reinterpret_cast< wxImageList * >(argp1);
32073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32074 if (!SWIG_IsOK(res2)) {
32075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32076 }
32077 if (!argp2) {
32078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32079 }
32080 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32081 {
32082 arg3 = &temp3;
32083 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32084 }
32085 {
32086 PyThreadState* __tstate = wxPyBeginAllowThreads();
32087 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32088 wxPyEndAllowThreads(__tstate);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 resultobj = SWIG_From_int(static_cast< int >(result));
32092 return resultobj;
32093fail:
32094 return NULL;
32095}
32096
32097
32098SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32099 PyObject *resultobj = 0;
32100 wxImageList *arg1 = (wxImageList *) 0 ;
32101 wxIcon *arg2 = 0 ;
32102 int result;
32103 void *argp1 = 0 ;
32104 int res1 = 0 ;
32105 void *argp2 = 0 ;
32106 int res2 = 0 ;
32107 PyObject * obj0 = 0 ;
32108 PyObject * obj1 = 0 ;
32109 char * kwnames[] = {
32110 (char *) "self",(char *) "icon", NULL
32111 };
32112
32113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32115 if (!SWIG_IsOK(res1)) {
32116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32117 }
554f62e9
RD
32118 arg1 = reinterpret_cast< wxImageList * >(argp1);
32119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32120 if (!SWIG_IsOK(res2)) {
32121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32122 }
32123 if (!argp2) {
32124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32125 }
32126 arg2 = reinterpret_cast< wxIcon * >(argp2);
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_From_int(static_cast< int >(result));
32134 return resultobj;
32135fail:
32136 return NULL;
32137}
32138
32139
32140SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj = 0;
32142 wxImageList *arg1 = (wxImageList *) 0 ;
32143 int arg2 ;
32144 SwigValueWrapper<wxBitmap > result;
32145 void *argp1 = 0 ;
32146 int res1 = 0 ;
32147 int val2 ;
32148 int ecode2 = 0 ;
32149 PyObject * obj0 = 0 ;
32150 PyObject * obj1 = 0 ;
32151 char * kwnames[] = {
32152 (char *) "self",(char *) "index", NULL
32153 };
32154
32155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32157 if (!SWIG_IsOK(res1)) {
32158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32159 }
32160 arg1 = reinterpret_cast< wxImageList * >(argp1);
32161 ecode2 = SWIG_AsVal_int(obj1, &val2);
32162 if (!SWIG_IsOK(ecode2)) {
32163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32164 }
32165 arg2 = static_cast< int >(val2);
32166 {
32167 PyThreadState* __tstate = wxPyBeginAllowThreads();
32168 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32169 wxPyEndAllowThreads(__tstate);
32170 if (PyErr_Occurred()) SWIG_fail;
32171 }
32172 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32173 return resultobj;
32174fail:
32175 return NULL;
32176}
32177
32178
32179SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32180 PyObject *resultobj = 0;
32181 wxImageList *arg1 = (wxImageList *) 0 ;
32182 int arg2 ;
32183 wxIcon result;
32184 void *argp1 = 0 ;
32185 int res1 = 0 ;
32186 int val2 ;
32187 int ecode2 = 0 ;
32188 PyObject * obj0 = 0 ;
32189 PyObject * obj1 = 0 ;
32190 char * kwnames[] = {
32191 (char *) "self",(char *) "index", NULL
32192 };
32193
32194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32196 if (!SWIG_IsOK(res1)) {
32197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32198 }
32199 arg1 = reinterpret_cast< wxImageList * >(argp1);
32200 ecode2 = SWIG_AsVal_int(obj1, &val2);
32201 if (!SWIG_IsOK(ecode2)) {
32202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32203 }
32204 arg2 = static_cast< int >(val2);
32205 {
32206 PyThreadState* __tstate = wxPyBeginAllowThreads();
32207 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32212 return resultobj;
32213fail:
32214 return NULL;
32215}
32216
32217
32218SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32219 PyObject *resultobj = 0;
32220 wxImageList *arg1 = (wxImageList *) 0 ;
32221 int arg2 ;
32222 wxBitmap *arg3 = 0 ;
32223 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32224 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32225 bool result;
32226 void *argp1 = 0 ;
32227 int res1 = 0 ;
32228 int val2 ;
32229 int ecode2 = 0 ;
32230 void *argp3 = 0 ;
32231 int res3 = 0 ;
32232 void *argp4 = 0 ;
32233 int res4 = 0 ;
32234 PyObject * obj0 = 0 ;
32235 PyObject * obj1 = 0 ;
32236 PyObject * obj2 = 0 ;
32237 PyObject * obj3 = 0 ;
32238 char * kwnames[] = {
32239 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32240 };
32241
32242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32244 if (!SWIG_IsOK(res1)) {
32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32246 }
32247 arg1 = reinterpret_cast< wxImageList * >(argp1);
32248 ecode2 = SWIG_AsVal_int(obj1, &val2);
32249 if (!SWIG_IsOK(ecode2)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32251 }
32252 arg2 = static_cast< int >(val2);
32253 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32254 if (!SWIG_IsOK(res3)) {
32255 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32256 }
32257 if (!argp3) {
32258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32259 }
32260 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32261 if (obj3) {
32262 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32263 if (!SWIG_IsOK(res4)) {
32264 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32265 }
554f62e9
RD
32266 if (!argp4) {
32267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32268 }
554f62e9
RD
32269 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32270 }
32271 {
32272 PyThreadState* __tstate = wxPyBeginAllowThreads();
32273 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32274 wxPyEndAllowThreads(__tstate);
32275 if (PyErr_Occurred()) SWIG_fail;
32276 }
32277 {
32278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32279 }
32280 return resultobj;
32281fail:
32282 return NULL;
32283}
32284
32285
32286SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32287 PyObject *resultobj = 0;
32288 wxImageList *arg1 = (wxImageList *) 0 ;
32289 int arg2 ;
32290 wxDC *arg3 = 0 ;
32291 int arg4 ;
32292 int arg5 ;
32293 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32294 bool arg7 = (bool) (bool)false ;
32295 bool result;
32296 void *argp1 = 0 ;
32297 int res1 = 0 ;
32298 int val2 ;
32299 int ecode2 = 0 ;
32300 void *argp3 = 0 ;
32301 int res3 = 0 ;
32302 int val4 ;
32303 int ecode4 = 0 ;
32304 int val5 ;
32305 int ecode5 = 0 ;
32306 int val6 ;
32307 int ecode6 = 0 ;
32308 bool val7 ;
32309 int ecode7 = 0 ;
32310 PyObject * obj0 = 0 ;
32311 PyObject * obj1 = 0 ;
32312 PyObject * obj2 = 0 ;
32313 PyObject * obj3 = 0 ;
32314 PyObject * obj4 = 0 ;
32315 PyObject * obj5 = 0 ;
32316 PyObject * obj6 = 0 ;
32317 char * kwnames[] = {
32318 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32319 };
32320
32321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32325 }
32326 arg1 = reinterpret_cast< wxImageList * >(argp1);
32327 ecode2 = SWIG_AsVal_int(obj1, &val2);
32328 if (!SWIG_IsOK(ecode2)) {
32329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32330 }
32331 arg2 = static_cast< int >(val2);
32332 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32333 if (!SWIG_IsOK(res3)) {
32334 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32335 }
32336 if (!argp3) {
32337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32338 }
32339 arg3 = reinterpret_cast< wxDC * >(argp3);
32340 ecode4 = SWIG_AsVal_int(obj3, &val4);
32341 if (!SWIG_IsOK(ecode4)) {
32342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32343 }
32344 arg4 = static_cast< int >(val4);
32345 ecode5 = SWIG_AsVal_int(obj4, &val5);
32346 if (!SWIG_IsOK(ecode5)) {
32347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32348 }
32349 arg5 = static_cast< int >(val5);
32350 if (obj5) {
32351 ecode6 = SWIG_AsVal_int(obj5, &val6);
32352 if (!SWIG_IsOK(ecode6)) {
32353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32354 }
32355 arg6 = static_cast< int >(val6);
32356 }
32357 if (obj6) {
32358 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32359 if (!SWIG_IsOK(ecode7)) {
32360 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32361 }
32362 arg7 = static_cast< bool >(val7);
32363 }
32364 {
32365 PyThreadState* __tstate = wxPyBeginAllowThreads();
32366 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32367 wxPyEndAllowThreads(__tstate);
32368 if (PyErr_Occurred()) SWIG_fail;
32369 }
32370 {
32371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32372 }
32373 return resultobj;
32374fail:
32375 return NULL;
32376}
32377
32378
32379SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32380 PyObject *resultobj = 0;
32381 wxImageList *arg1 = (wxImageList *) 0 ;
32382 int result;
32383 void *argp1 = 0 ;
32384 int res1 = 0 ;
32385 PyObject *swig_obj[1] ;
32386
32387 if (!args) SWIG_fail;
32388 swig_obj[0] = args;
32389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32390 if (!SWIG_IsOK(res1)) {
32391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32392 }
32393 arg1 = reinterpret_cast< wxImageList * >(argp1);
32394 {
32395 PyThreadState* __tstate = wxPyBeginAllowThreads();
32396 result = (int)(arg1)->GetImageCount();
32397 wxPyEndAllowThreads(__tstate);
32398 if (PyErr_Occurred()) SWIG_fail;
32399 }
32400 resultobj = SWIG_From_int(static_cast< int >(result));
32401 return resultobj;
32402fail:
32403 return NULL;
32404}
32405
32406
32407SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32408 PyObject *resultobj = 0;
32409 wxImageList *arg1 = (wxImageList *) 0 ;
32410 int arg2 ;
32411 bool result;
32412 void *argp1 = 0 ;
32413 int res1 = 0 ;
32414 int val2 ;
32415 int ecode2 = 0 ;
32416 PyObject * obj0 = 0 ;
32417 PyObject * obj1 = 0 ;
32418 char * kwnames[] = {
32419 (char *) "self",(char *) "index", NULL
32420 };
32421
32422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32424 if (!SWIG_IsOK(res1)) {
32425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32426 }
32427 arg1 = reinterpret_cast< wxImageList * >(argp1);
32428 ecode2 = SWIG_AsVal_int(obj1, &val2);
32429 if (!SWIG_IsOK(ecode2)) {
32430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32431 }
32432 arg2 = static_cast< int >(val2);
32433 {
32434 PyThreadState* __tstate = wxPyBeginAllowThreads();
32435 result = (bool)(arg1)->Remove(arg2);
32436 wxPyEndAllowThreads(__tstate);
32437 if (PyErr_Occurred()) SWIG_fail;
32438 }
32439 {
32440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32441 }
32442 return resultobj;
32443fail:
32444 return NULL;
32445}
32446
32447
32448SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32449 PyObject *resultobj = 0;
32450 wxImageList *arg1 = (wxImageList *) 0 ;
32451 bool result;
32452 void *argp1 = 0 ;
32453 int res1 = 0 ;
32454 PyObject *swig_obj[1] ;
32455
32456 if (!args) SWIG_fail;
32457 swig_obj[0] = args;
32458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32459 if (!SWIG_IsOK(res1)) {
32460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32461 }
32462 arg1 = reinterpret_cast< wxImageList * >(argp1);
32463 {
32464 PyThreadState* __tstate = wxPyBeginAllowThreads();
32465 result = (bool)(arg1)->RemoveAll();
32466 wxPyEndAllowThreads(__tstate);
32467 if (PyErr_Occurred()) SWIG_fail;
32468 }
32469 {
32470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32471 }
32472 return resultobj;
32473fail:
32474 return NULL;
32475}
32476
32477
32478SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32479 PyObject *resultobj = 0;
32480 wxImageList *arg1 = (wxImageList *) 0 ;
32481 int arg2 ;
32482 int *arg3 = 0 ;
32483 int *arg4 = 0 ;
32484 void *argp1 = 0 ;
32485 int res1 = 0 ;
32486 int val2 ;
32487 int ecode2 = 0 ;
32488 int temp3 ;
32489 int res3 = SWIG_TMPOBJ ;
32490 int temp4 ;
32491 int res4 = SWIG_TMPOBJ ;
32492 PyObject * obj0 = 0 ;
32493 PyObject * obj1 = 0 ;
32494 char * kwnames[] = {
32495 (char *) "self",(char *) "index", NULL
32496 };
32497
32498 arg3 = &temp3;
32499 arg4 = &temp4;
32500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32502 if (!SWIG_IsOK(res1)) {
32503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32504 }
32505 arg1 = reinterpret_cast< wxImageList * >(argp1);
32506 ecode2 = SWIG_AsVal_int(obj1, &val2);
32507 if (!SWIG_IsOK(ecode2)) {
32508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32509 }
32510 arg2 = static_cast< int >(val2);
32511 {
32512 PyThreadState* __tstate = wxPyBeginAllowThreads();
32513 (arg1)->GetSize(arg2,*arg3,*arg4);
32514 wxPyEndAllowThreads(__tstate);
32515 if (PyErr_Occurred()) SWIG_fail;
32516 }
32517 resultobj = SWIG_Py_Void();
32518 if (SWIG_IsTmpObj(res3)) {
32519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32520 } else {
32521 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32523 }
32524 if (SWIG_IsTmpObj(res4)) {
32525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32526 } else {
32527 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32529 }
32530 return resultobj;
32531fail:
32532 return NULL;
32533}
32534
32535
32536SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32537 PyObject *obj;
32538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32539 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32540 return SWIG_Py_Void();
32541}
32542
32543SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32544 return SWIG_Python_InitShadowInstance(args);
32545}
32546
50efceee
RD
32547SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32548 PyObject *resultobj = 0;
32549 wxStockGDI *result = 0 ;
554f62e9 32550
50efceee
RD
32551 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32552 {
32553 PyThreadState* __tstate = wxPyBeginAllowThreads();
32554 result = (wxStockGDI *)new wxStockGDI();
32555 wxPyEndAllowThreads(__tstate);
32556 if (PyErr_Occurred()) SWIG_fail;
32557 }
32558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32559 return resultobj;
32560fail:
32561 return NULL;
554f62e9
RD
32562}
32563
32564
50efceee
RD
32565SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32566 PyObject *resultobj = 0;
32567 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32568 void *argp1 = 0 ;
32569 int res1 = 0 ;
32570 PyObject *swig_obj[1] ;
554f62e9 32571
50efceee
RD
32572 if (!args) SWIG_fail;
32573 swig_obj[0] = args;
32574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32575 if (!SWIG_IsOK(res1)) {
32576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32577 }
32578 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 delete arg1;
32582
32583 wxPyEndAllowThreads(__tstate);
32584 if (PyErr_Occurred()) SWIG_fail;
32585 }
32586 resultobj = SWIG_Py_Void();
32587 return resultobj;
32588fail:
32589 return NULL;
554f62e9
RD
32590}
32591
32592
50efceee
RD
32593SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32594 PyObject *resultobj = 0;
554f62e9 32595
50efceee
RD
32596 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32597 {
32598 PyThreadState* __tstate = wxPyBeginAllowThreads();
32599 wxStockGDI::DeleteAll();
32600 wxPyEndAllowThreads(__tstate);
32601 if (PyErr_Occurred()) SWIG_fail;
32602 }
32603 resultobj = SWIG_Py_Void();
32604 return resultobj;
32605fail:
32606 return NULL;
554f62e9
RD
32607}
32608
32609
50efceee
RD
32610SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32611 PyObject *resultobj = 0;
32612 wxStockGDI *result = 0 ;
554f62e9 32613
50efceee
RD
32614 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32615 {
32616 PyThreadState* __tstate = wxPyBeginAllowThreads();
32617 {
32618 wxStockGDI &_result_ref = wxStockGDI::instance();
32619 result = (wxStockGDI *) &_result_ref;
32620 }
32621 wxPyEndAllowThreads(__tstate);
32622 if (PyErr_Occurred()) SWIG_fail;
32623 }
32624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32625 return resultobj;
32626fail:
32627 return NULL;
554f62e9
RD
32628}
32629
32630
50efceee
RD
32631SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32632 PyObject *resultobj = 0;
32633 wxStockGDI::Item arg1 ;
32634 wxBrush *result = 0 ;
32635 int val1 ;
32636 int ecode1 = 0 ;
32637 PyObject * obj0 = 0 ;
32638 char * kwnames[] = {
32639 (char *) "item", NULL
32640 };
32641
32642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32643 ecode1 = SWIG_AsVal_int(obj0, &val1);
32644 if (!SWIG_IsOK(ecode1)) {
32645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32646 }
32647 arg1 = static_cast< wxStockGDI::Item >(val1);
32648 {
32649 PyThreadState* __tstate = wxPyBeginAllowThreads();
32650 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32655 return resultobj;
32656fail:
32657 return NULL;
554f62e9
RD
32658}
32659
32660
50efceee
RD
32661SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32662 PyObject *resultobj = 0;
32663 wxStockGDI::Item arg1 ;
32664 wxColour *result = 0 ;
32665 int val1 ;
32666 int ecode1 = 0 ;
32667 PyObject * obj0 = 0 ;
32668 char * kwnames[] = {
32669 (char *) "item", NULL
32670 };
554f62e9 32671
50efceee
RD
32672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32673 ecode1 = SWIG_AsVal_int(obj0, &val1);
32674 if (!SWIG_IsOK(ecode1)) {
32675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32676 }
32677 arg1 = static_cast< wxStockGDI::Item >(val1);
32678 {
32679 PyThreadState* __tstate = wxPyBeginAllowThreads();
32680 result = (wxColour *)wxStockGDI::GetColour(arg1);
32681 wxPyEndAllowThreads(__tstate);
32682 if (PyErr_Occurred()) SWIG_fail;
32683 }
32684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32685 return resultobj;
32686fail:
32687 return NULL;
554f62e9
RD
32688}
32689
32690
50efceee
RD
32691SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32692 PyObject *resultobj = 0;
32693 wxStockGDI::Item arg1 ;
32694 wxCursor *result = 0 ;
32695 int val1 ;
32696 int ecode1 = 0 ;
32697 PyObject * obj0 = 0 ;
32698 char * kwnames[] = {
32699 (char *) "item", NULL
32700 };
32701
32702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32703 ecode1 = SWIG_AsVal_int(obj0, &val1);
32704 if (!SWIG_IsOK(ecode1)) {
32705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32706 }
32707 arg1 = static_cast< wxStockGDI::Item >(val1);
32708 {
32709 PyThreadState* __tstate = wxPyBeginAllowThreads();
32710 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32711 wxPyEndAllowThreads(__tstate);
32712 if (PyErr_Occurred()) SWIG_fail;
32713 }
32714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32715 return resultobj;
32716fail:
32717 return NULL;
554f62e9
RD
32718}
32719
32720
50efceee
RD
32721SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32722 PyObject *resultobj = 0;
32723 wxStockGDI::Item arg1 ;
32724 wxPen *result = 0 ;
32725 int val1 ;
32726 int ecode1 = 0 ;
32727 PyObject * obj0 = 0 ;
32728 char * kwnames[] = {
32729 (char *) "item", NULL
32730 };
32731
32732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32733 ecode1 = SWIG_AsVal_int(obj0, &val1);
32734 if (!SWIG_IsOK(ecode1)) {
32735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32736 }
32737 arg1 = static_cast< wxStockGDI::Item >(val1);
32738 {
32739 PyThreadState* __tstate = wxPyBeginAllowThreads();
32740 result = (wxPen *)wxStockGDI::GetPen(arg1);
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32745 return resultobj;
32746fail:
32747 return NULL;
554f62e9
RD
32748}
32749
32750
50efceee
RD
32751SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32752 PyObject *resultobj = 0;
32753 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32754 wxStockGDI::Item arg2 ;
32755 wxFont *result = 0 ;
32756 void *argp1 = 0 ;
32757 int res1 = 0 ;
32758 int val2 ;
32759 int ecode2 = 0 ;
32760 PyObject * obj0 = 0 ;
32761 PyObject * obj1 = 0 ;
32762 char * kwnames[] = {
32763 (char *) "self",(char *) "item", NULL
32764 };
554f62e9 32765
50efceee
RD
32766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32768 if (!SWIG_IsOK(res1)) {
32769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32770 }
32771 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32772 ecode2 = SWIG_AsVal_int(obj1, &val2);
32773 if (!SWIG_IsOK(ecode2)) {
32774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32775 }
32776 arg2 = static_cast< wxStockGDI::Item >(val2);
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 result = (wxFont *)(arg1)->GetFont(arg2);
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32784 return resultobj;
32785fail:
32786 return NULL;
554f62e9
RD
32787}
32788
32789
50efceee
RD
32790SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32791 PyObject *obj;
32792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32793 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32794 return SWIG_Py_Void();
554f62e9
RD
32795}
32796
50efceee
RD
32797SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32798 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
32799}
32800
554f62e9
RD
32801SWIGINTERN int NullBitmap_set(PyObject *) {
32802 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32803 return 1;
32804}
32805
32806
32807SWIGINTERN PyObject *NullBitmap_get(void) {
32808 PyObject *pyobj = 0;
32809
32810 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32811 return pyobj;
32812}
32813
32814
32815SWIGINTERN int NullIcon_set(PyObject *) {
32816 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32817 return 1;
32818}
32819
32820
32821SWIGINTERN PyObject *NullIcon_get(void) {
32822 PyObject *pyobj = 0;
32823
32824 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32825 return pyobj;
32826}
32827
32828
32829SWIGINTERN int NullCursor_set(PyObject *) {
32830 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32831 return 1;
32832}
32833
32834
32835SWIGINTERN PyObject *NullCursor_get(void) {
32836 PyObject *pyobj = 0;
32837
32838 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32839 return pyobj;
32840}
32841
32842
32843SWIGINTERN int NullPen_set(PyObject *) {
32844 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32845 return 1;
32846}
32847
32848
32849SWIGINTERN PyObject *NullPen_get(void) {
32850 PyObject *pyobj = 0;
32851
32852 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32853 return pyobj;
32854}
32855
32856
32857SWIGINTERN int NullBrush_set(PyObject *) {
32858 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32859 return 1;
32860}
32861
32862
32863SWIGINTERN PyObject *NullBrush_get(void) {
32864 PyObject *pyobj = 0;
32865
32866 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32867 return pyobj;
32868}
32869
32870
32871SWIGINTERN int NullPalette_set(PyObject *) {
32872 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32873 return 1;
32874}
32875
32876
32877SWIGINTERN PyObject *NullPalette_get(void) {
32878 PyObject *pyobj = 0;
32879
32880 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32881 return pyobj;
32882}
32883
32884
32885SWIGINTERN int NullFont_set(PyObject *) {
32886 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32887 return 1;
32888}
32889
32890
32891SWIGINTERN PyObject *NullFont_get(void) {
32892 PyObject *pyobj = 0;
32893
32894 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32895 return pyobj;
32896}
32897
32898
32899SWIGINTERN int NullColour_set(PyObject *) {
32900 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32901 return 1;
32902}
32903
32904
32905SWIGINTERN PyObject *NullColour_get(void) {
32906 PyObject *pyobj = 0;
32907
32908 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32909 return pyobj;
32910}
32911
32912
50efceee 32913SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 32914 PyObject *resultobj = 0;
50efceee
RD
32915 wxGDIObjListBase *result = 0 ;
32916
32917 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32918 {
32919 PyThreadState* __tstate = wxPyBeginAllowThreads();
32920 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32921 wxPyEndAllowThreads(__tstate);
32922 if (PyErr_Occurred()) SWIG_fail;
32923 }
32924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32925 return resultobj;
32926fail:
32927 return NULL;
32928}
32929
32930
32931SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32932 PyObject *resultobj = 0;
32933 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
32934 void *argp1 = 0 ;
32935 int res1 = 0 ;
50efceee 32936 PyObject *swig_obj[1] ;
554f62e9 32937
50efceee
RD
32938 if (!args) SWIG_fail;
32939 swig_obj[0] = args;
32940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 32941 if (!SWIG_IsOK(res1)) {
50efceee 32942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 32943 }
50efceee 32944 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32947 delete arg1;
32948
554f62e9
RD
32949 wxPyEndAllowThreads(__tstate);
32950 if (PyErr_Occurred()) SWIG_fail;
32951 }
32952 resultobj = SWIG_Py_Void();
32953 return resultobj;
32954fail:
32955 return NULL;
32956}
32957
32958
50efceee
RD
32959SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32960 PyObject *obj;
32961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32962 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32963 return SWIG_Py_Void();
32964}
32965
32966SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32967 return SWIG_Python_InitShadowInstance(args);
32968}
32969
554f62e9
RD
32970SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32971 PyObject *resultobj = 0;
32972 wxPenList *arg1 = (wxPenList *) 0 ;
32973 wxColour *arg2 = 0 ;
32974 int arg3 ;
32975 int arg4 ;
32976 wxPen *result = 0 ;
32977 void *argp1 = 0 ;
32978 int res1 = 0 ;
32979 wxColour temp2 ;
32980 int val3 ;
32981 int ecode3 = 0 ;
32982 int val4 ;
32983 int ecode4 = 0 ;
32984 PyObject * obj0 = 0 ;
32985 PyObject * obj1 = 0 ;
32986 PyObject * obj2 = 0 ;
32987 PyObject * obj3 = 0 ;
32988 char * kwnames[] = {
32989 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32990 };
32991
32992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32994 if (!SWIG_IsOK(res1)) {
32995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32996 }
32997 arg1 = reinterpret_cast< wxPenList * >(argp1);
32998 {
32999 arg2 = &temp2;
33000 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33001 }
33002 ecode3 = SWIG_AsVal_int(obj2, &val3);
33003 if (!SWIG_IsOK(ecode3)) {
33004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33005 }
33006 arg3 = static_cast< int >(val3);
33007 ecode4 = SWIG_AsVal_int(obj3, &val4);
33008 if (!SWIG_IsOK(ecode4)) {
33009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33010 }
33011 arg4 = static_cast< int >(val4);
33012 {
33013 PyThreadState* __tstate = wxPyBeginAllowThreads();
33014 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33015 wxPyEndAllowThreads(__tstate);
33016 if (PyErr_Occurred()) SWIG_fail;
33017 }
33018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33019 return resultobj;
33020fail:
33021 return NULL;
33022}
33023
33024
50efceee 33025SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
33026 PyObject *resultobj = 0;
33027 wxPenList *arg1 = (wxPenList *) 0 ;
33028 wxPen *arg2 = (wxPen *) 0 ;
33029 void *argp1 = 0 ;
33030 int res1 = 0 ;
33031 void *argp2 = 0 ;
33032 int res2 = 0 ;
33033 PyObject * obj0 = 0 ;
33034 PyObject * obj1 = 0 ;
33035 char * kwnames[] = {
33036 (char *) "self",(char *) "pen", NULL
33037 };
33038
50efceee 33039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
33040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33041 if (!SWIG_IsOK(res1)) {
50efceee 33042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
33043 }
33044 arg1 = reinterpret_cast< wxPenList * >(argp1);
33045 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33046 if (!SWIG_IsOK(res2)) {
50efceee 33047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
33048 }
33049 arg2 = reinterpret_cast< wxPen * >(argp2);
33050 {
33051 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33052 (arg1)->AddPen(arg2);
554f62e9
RD
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 resultobj = SWIG_Py_Void();
33057 return resultobj;
33058fail:
33059 return NULL;
33060}
33061
33062
50efceee 33063SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
33064 PyObject *resultobj = 0;
33065 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 33066 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
50efceee
RD
33069 void *argp2 = 0 ;
33070 int res2 = 0 ;
33071 PyObject * obj0 = 0 ;
33072 PyObject * obj1 = 0 ;
33073 char * kwnames[] = {
33074 (char *) "self",(char *) "pen", NULL
33075 };
554f62e9 33076
50efceee
RD
33077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
33078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 33079 if (!SWIG_IsOK(res1)) {
50efceee 33080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
33081 }
33082 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
33083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33084 if (!SWIG_IsOK(res2)) {
33085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
33086 }
33087 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
33088 {
33089 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33090 (arg1)->RemovePen(arg2);
554f62e9
RD
33091 wxPyEndAllowThreads(__tstate);
33092 if (PyErr_Occurred()) SWIG_fail;
33093 }
50efceee 33094 resultobj = SWIG_Py_Void();
554f62e9
RD
33095 return resultobj;
33096fail:
33097 return NULL;
33098}
33099
33100
33101SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33102 PyObject *obj;
33103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33104 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33105 return SWIG_Py_Void();
33106}
33107
50efceee
RD
33108SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33109 PyObject *resultobj = 0;
33110 wxBrushList *arg1 = (wxBrushList *) 0 ;
33111 wxColour *arg2 = 0 ;
33112 int arg3 = (int) wxSOLID ;
33113 wxBrush *result = 0 ;
33114 void *argp1 = 0 ;
33115 int res1 = 0 ;
33116 wxColour temp2 ;
33117 int val3 ;
33118 int ecode3 = 0 ;
33119 PyObject * obj0 = 0 ;
33120 PyObject * obj1 = 0 ;
33121 PyObject * obj2 = 0 ;
33122 char * kwnames[] = {
33123 (char *) "self",(char *) "colour",(char *) "style", NULL
33124 };
33125
33126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33128 if (!SWIG_IsOK(res1)) {
33129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33130 }
33131 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33132 {
33133 arg2 = &temp2;
33134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33135 }
33136 if (obj2) {
33137 ecode3 = SWIG_AsVal_int(obj2, &val3);
33138 if (!SWIG_IsOK(ecode3)) {
33139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33140 }
33141 arg3 = static_cast< int >(val3);
33142 }
33143 {
33144 PyThreadState* __tstate = wxPyBeginAllowThreads();
33145 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33146 wxPyEndAllowThreads(__tstate);
33147 if (PyErr_Occurred()) SWIG_fail;
33148 }
33149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33150 return resultobj;
33151fail:
33152 return NULL;
33153}
33154
33155
554f62e9
RD
33156SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33157 PyObject *resultobj = 0;
33158 wxBrushList *arg1 = (wxBrushList *) 0 ;
33159 wxBrush *arg2 = (wxBrush *) 0 ;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 void *argp2 = 0 ;
33163 int res2 = 0 ;
33164 PyObject * obj0 = 0 ;
33165 PyObject * obj1 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "self",(char *) "brush", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33174 }
33175 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33176 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33177 if (!SWIG_IsOK(res2)) {
33178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33179 }
33180 arg2 = reinterpret_cast< wxBrush * >(argp2);
33181 {
33182 PyThreadState* __tstate = wxPyBeginAllowThreads();
33183 (arg1)->AddBrush(arg2);
33184 wxPyEndAllowThreads(__tstate);
33185 if (PyErr_Occurred()) SWIG_fail;
33186 }
33187 resultobj = SWIG_Py_Void();
33188 return resultobj;
33189fail:
33190 return NULL;
33191}
33192
33193
50efceee 33194SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
33195 PyObject *resultobj = 0;
33196 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 33197 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
33198 void *argp1 = 0 ;
33199 int res1 = 0 ;
50efceee
RD
33200 void *argp2 = 0 ;
33201 int res2 = 0 ;
33202 PyObject * obj0 = 0 ;
33203 PyObject * obj1 = 0 ;
33204 char * kwnames[] = {
33205 (char *) "self",(char *) "brush", NULL
33206 };
33207
33208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33210 if (!SWIG_IsOK(res1)) {
33211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33212 }
33213 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33215 if (!SWIG_IsOK(res2)) {
33216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33217 }
33218 arg2 = reinterpret_cast< wxBrush * >(argp2);
33219 {
33220 PyThreadState* __tstate = wxPyBeginAllowThreads();
33221 (arg1)->RemoveBrush(arg2);
33222 wxPyEndAllowThreads(__tstate);
33223 if (PyErr_Occurred()) SWIG_fail;
33224 }
33225 resultobj = SWIG_Py_Void();
33226 return resultobj;
33227fail:
33228 return NULL;
33229}
33230
33231
33232SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33233 PyObject *obj;
33234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33235 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33236 return SWIG_Py_Void();
33237}
33238
33239SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33240 PyObject *resultobj = 0;
33241 wxFontList *arg1 = (wxFontList *) 0 ;
33242 int arg2 ;
33243 int arg3 ;
33244 int arg4 ;
33245 int arg5 ;
33246 bool arg6 = (bool) false ;
33247 wxString const &arg7_defvalue = wxPyEmptyString ;
33248 wxString *arg7 = (wxString *) &arg7_defvalue ;
33249 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33250 wxFont *result = 0 ;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 int val2 ;
33254 int ecode2 = 0 ;
554f62e9
RD
33255 int val3 ;
33256 int ecode3 = 0 ;
50efceee
RD
33257 int val4 ;
33258 int ecode4 = 0 ;
33259 int val5 ;
33260 int ecode5 = 0 ;
33261 bool val6 ;
33262 int ecode6 = 0 ;
33263 bool temp7 = false ;
33264 int val8 ;
33265 int ecode8 = 0 ;
554f62e9
RD
33266 PyObject * obj0 = 0 ;
33267 PyObject * obj1 = 0 ;
33268 PyObject * obj2 = 0 ;
50efceee
RD
33269 PyObject * obj3 = 0 ;
33270 PyObject * obj4 = 0 ;
33271 PyObject * obj5 = 0 ;
33272 PyObject * obj6 = 0 ;
33273 PyObject * obj7 = 0 ;
554f62e9 33274 char * kwnames[] = {
50efceee 33275 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
33276 };
33277
50efceee
RD
33278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33280 if (!SWIG_IsOK(res1)) {
50efceee 33281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33282 }
50efceee
RD
33283 arg1 = reinterpret_cast< wxFontList * >(argp1);
33284 ecode2 = SWIG_AsVal_int(obj1, &val2);
33285 if (!SWIG_IsOK(ecode2)) {
33286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33287 }
33288 arg2 = static_cast< int >(val2);
33289 ecode3 = SWIG_AsVal_int(obj2, &val3);
33290 if (!SWIG_IsOK(ecode3)) {
33291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33292 }
33293 arg3 = static_cast< int >(val3);
33294 ecode4 = SWIG_AsVal_int(obj3, &val4);
33295 if (!SWIG_IsOK(ecode4)) {
33296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33297 }
33298 arg4 = static_cast< int >(val4);
33299 ecode5 = SWIG_AsVal_int(obj4, &val5);
33300 if (!SWIG_IsOK(ecode5)) {
33301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33302 }
33303 arg5 = static_cast< int >(val5);
33304 if (obj5) {
33305 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33306 if (!SWIG_IsOK(ecode6)) {
33307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33308 }
33309 arg6 = static_cast< bool >(val6);
554f62e9 33310 }
50efceee
RD
33311 if (obj6) {
33312 {
33313 arg7 = wxString_in_helper(obj6);
33314 if (arg7 == NULL) SWIG_fail;
33315 temp7 = true;
33316 }
33317 }
33318 if (obj7) {
33319 ecode8 = SWIG_AsVal_int(obj7, &val8);
33320 if (!SWIG_IsOK(ecode8)) {
33321 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 33322 }
50efceee 33323 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
33324 }
33325 {
33326 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33327 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
33328 wxPyEndAllowThreads(__tstate);
33329 if (PyErr_Occurred()) SWIG_fail;
33330 }
50efceee
RD
33331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33332 {
33333 if (temp7)
33334 delete arg7;
33335 }
554f62e9
RD
33336 return resultobj;
33337fail:
50efceee
RD
33338 {
33339 if (temp7)
33340 delete arg7;
33341 }
554f62e9
RD
33342 return NULL;
33343}
33344
33345
50efceee 33346SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33347 PyObject *resultobj = 0;
50efceee
RD
33348 wxFontList *arg1 = (wxFontList *) 0 ;
33349 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33350 void *argp1 = 0 ;
33351 int res1 = 0 ;
33352 void *argp2 = 0 ;
33353 int res2 = 0 ;
33354 PyObject * obj0 = 0 ;
33355 PyObject * obj1 = 0 ;
33356 char * kwnames[] = {
50efceee 33357 (char *) "self",(char *) "font", NULL
554f62e9
RD
33358 };
33359
50efceee
RD
33360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33362 if (!SWIG_IsOK(res1)) {
50efceee 33363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33364 }
50efceee
RD
33365 arg1 = reinterpret_cast< wxFontList * >(argp1);
33366 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 33367 if (!SWIG_IsOK(res2)) {
50efceee 33368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 33369 }
50efceee 33370 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33373 (arg1)->AddFont(arg2);
554f62e9
RD
33374 wxPyEndAllowThreads(__tstate);
33375 if (PyErr_Occurred()) SWIG_fail;
33376 }
33377 resultobj = SWIG_Py_Void();
33378 return resultobj;
33379fail:
33380 return NULL;
33381}
33382
33383
50efceee 33384SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33385 PyObject *resultobj = 0;
50efceee
RD
33386 wxFontList *arg1 = (wxFontList *) 0 ;
33387 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33388 void *argp1 = 0 ;
33389 int res1 = 0 ;
50efceee
RD
33390 void *argp2 = 0 ;
33391 int res2 = 0 ;
33392 PyObject * obj0 = 0 ;
33393 PyObject * obj1 = 0 ;
33394 char * kwnames[] = {
33395 (char *) "self",(char *) "font", NULL
33396 };
554f62e9 33397
50efceee
RD
33398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33400 if (!SWIG_IsOK(res1)) {
50efceee 33401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33402 }
50efceee
RD
33403 arg1 = reinterpret_cast< wxFontList * >(argp1);
33404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33405 if (!SWIG_IsOK(res2)) {
33406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33407 }
33408 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33409 {
33410 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33411 (arg1)->RemoveFont(arg2);
554f62e9
RD
33412 wxPyEndAllowThreads(__tstate);
33413 if (PyErr_Occurred()) SWIG_fail;
33414 }
50efceee 33415 resultobj = SWIG_Py_Void();
554f62e9
RD
33416 return resultobj;
33417fail:
33418 return NULL;
33419}
33420
33421
50efceee 33422SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
33423 PyObject *obj;
33424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 33425 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
33426 return SWIG_Py_Void();
33427}
33428
33429SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33430 PyObject *resultobj = 0;
33431 wxColourDatabase *result = 0 ;
33432
33433 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33434 {
33435 if (!wxPyCheckForApp()) SWIG_fail;
33436 PyThreadState* __tstate = wxPyBeginAllowThreads();
33437 result = (wxColourDatabase *)new wxColourDatabase();
33438 wxPyEndAllowThreads(__tstate);
33439 if (PyErr_Occurred()) SWIG_fail;
33440 }
33441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33442 return resultobj;
33443fail:
33444 return NULL;
33445}
33446
33447
33448SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33449 PyObject *resultobj = 0;
33450 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33451 void *argp1 = 0 ;
33452 int res1 = 0 ;
33453 PyObject *swig_obj[1] ;
33454
33455 if (!args) SWIG_fail;
33456 swig_obj[0] = args;
33457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33458 if (!SWIG_IsOK(res1)) {
33459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33460 }
33461 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33462 {
33463 PyThreadState* __tstate = wxPyBeginAllowThreads();
33464 delete arg1;
33465
33466 wxPyEndAllowThreads(__tstate);
33467 if (PyErr_Occurred()) SWIG_fail;
33468 }
33469 resultobj = SWIG_Py_Void();
33470 return resultobj;
33471fail:
33472 return NULL;
33473}
33474
33475
33476SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33477 PyObject *resultobj = 0;
33478 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33479 wxString *arg2 = 0 ;
33480 wxColour result;
33481 void *argp1 = 0 ;
33482 int res1 = 0 ;
33483 bool temp2 = false ;
33484 PyObject * obj0 = 0 ;
33485 PyObject * obj1 = 0 ;
33486 char * kwnames[] = {
33487 (char *) "self",(char *) "name", NULL
33488 };
33489
33490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33492 if (!SWIG_IsOK(res1)) {
33493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33494 }
33495 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33496 {
33497 arg2 = wxString_in_helper(obj1);
33498 if (arg2 == NULL) SWIG_fail;
33499 temp2 = true;
33500 }
33501 {
33502 PyThreadState* __tstate = wxPyBeginAllowThreads();
33503 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33504 wxPyEndAllowThreads(__tstate);
33505 if (PyErr_Occurred()) SWIG_fail;
33506 }
33507 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33508 {
33509 if (temp2)
33510 delete arg2;
33511 }
33512 return resultobj;
33513fail:
33514 {
33515 if (temp2)
33516 delete arg2;
33517 }
33518 return NULL;
33519}
33520
33521
33522SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33523 PyObject *resultobj = 0;
33524 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33525 wxColour *arg2 = 0 ;
33526 wxString result;
33527 void *argp1 = 0 ;
33528 int res1 = 0 ;
33529 wxColour temp2 ;
33530 PyObject * obj0 = 0 ;
33531 PyObject * obj1 = 0 ;
33532 char * kwnames[] = {
33533 (char *) "self",(char *) "colour", NULL
33534 };
33535
33536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33538 if (!SWIG_IsOK(res1)) {
33539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33540 }
33541 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33542 {
33543 arg2 = &temp2;
33544 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33545 }
33546 {
33547 PyThreadState* __tstate = wxPyBeginAllowThreads();
33548 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33549 wxPyEndAllowThreads(__tstate);
33550 if (PyErr_Occurred()) SWIG_fail;
33551 }
33552 {
33553#if wxUSE_UNICODE
33554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33555#else
33556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33557#endif
33558 }
33559 return resultobj;
33560fail:
33561 return NULL;
33562}
33563
33564
33565SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33566 PyObject *resultobj = 0;
33567 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33568 wxString *arg2 = 0 ;
33569 wxColour *arg3 = 0 ;
33570 void *argp1 = 0 ;
33571 int res1 = 0 ;
33572 bool temp2 = false ;
33573 wxColour temp3 ;
33574 PyObject * obj0 = 0 ;
33575 PyObject * obj1 = 0 ;
33576 PyObject * obj2 = 0 ;
33577 char * kwnames[] = {
33578 (char *) "self",(char *) "name",(char *) "colour", NULL
33579 };
33580
33581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33583 if (!SWIG_IsOK(res1)) {
33584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33585 }
33586 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33587 {
33588 arg2 = wxString_in_helper(obj1);
33589 if (arg2 == NULL) SWIG_fail;
33590 temp2 = true;
33591 }
33592 {
33593 arg3 = &temp3;
33594 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33595 }
33596 {
33597 PyThreadState* __tstate = wxPyBeginAllowThreads();
33598 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33599 wxPyEndAllowThreads(__tstate);
33600 if (PyErr_Occurred()) SWIG_fail;
33601 }
33602 resultobj = SWIG_Py_Void();
33603 {
33604 if (temp2)
33605 delete arg2;
33606 }
33607 return resultobj;
33608fail:
33609 {
33610 if (temp2)
33611 delete arg2;
33612 }
33613 return NULL;
33614}
33615
33616
33617SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33618 PyObject *resultobj = 0;
33619 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33620 wxString *arg2 = 0 ;
33621 int arg3 ;
33622 int arg4 ;
33623 int arg5 ;
33624 void *argp1 = 0 ;
33625 int res1 = 0 ;
33626 bool temp2 = false ;
33627 int val3 ;
33628 int ecode3 = 0 ;
33629 int val4 ;
33630 int ecode4 = 0 ;
50efceee
RD
33631 int val5 ;
33632 int ecode5 = 0 ;
554f62e9
RD
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 PyObject * obj2 = 0 ;
33636 PyObject * obj3 = 0 ;
33637 PyObject * obj4 = 0 ;
554f62e9 33638 char * kwnames[] = {
50efceee 33639 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
33640 };
33641
50efceee
RD
33642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 33644 if (!SWIG_IsOK(res1)) {
50efceee
RD
33645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33646 }
33647 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33648 {
33649 arg2 = wxString_in_helper(obj1);
33650 if (arg2 == NULL) SWIG_fail;
33651 temp2 = true;
554f62e9 33652 }
554f62e9
RD
33653 ecode3 = SWIG_AsVal_int(obj2, &val3);
33654 if (!SWIG_IsOK(ecode3)) {
50efceee 33655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
33656 }
33657 arg3 = static_cast< int >(val3);
33658 ecode4 = SWIG_AsVal_int(obj3, &val4);
33659 if (!SWIG_IsOK(ecode4)) {
50efceee 33660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
33661 }
33662 arg4 = static_cast< int >(val4);
33663 ecode5 = SWIG_AsVal_int(obj4, &val5);
33664 if (!SWIG_IsOK(ecode5)) {
50efceee 33665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
33666 }
33667 arg5 = static_cast< int >(val5);
554f62e9
RD
33668 {
33669 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33670 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
33671 wxPyEndAllowThreads(__tstate);
33672 if (PyErr_Occurred()) SWIG_fail;
33673 }
50efceee 33674 resultobj = SWIG_Py_Void();
554f62e9 33675 {
50efceee
RD
33676 if (temp2)
33677 delete arg2;
554f62e9
RD
33678 }
33679 return resultobj;
33680fail:
33681 {
50efceee
RD
33682 if (temp2)
33683 delete arg2;
554f62e9
RD
33684 }
33685 return NULL;
33686}
33687
33688
50efceee
RD
33689SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33690 PyObject *obj;
33691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33692 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33693 return SWIG_Py_Void();
33694}
33695
33696SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33697 return SWIG_Python_InitShadowInstance(args);
33698}
33699
33700SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33701 PyObject *resultobj = 0;
50efceee 33702 wxFontList *result = 0 ;
554f62e9 33703
50efceee 33704 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33705 {
33706 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33707 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33708 wxPyEndAllowThreads(__tstate);
33709 if (PyErr_Occurred()) SWIG_fail;
33710 }
50efceee 33711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33712 return resultobj;
33713fail:
33714 return NULL;
33715}
33716
33717
50efceee 33718SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33719 PyObject *resultobj = 0;
50efceee 33720 wxPenList *result = 0 ;
554f62e9 33721
50efceee 33722 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33723 {
33724 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33725 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33726 wxPyEndAllowThreads(__tstate);
33727 if (PyErr_Occurred()) SWIG_fail;
33728 }
50efceee 33729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33730 return resultobj;
33731fail:
33732 return NULL;
33733}
33734
33735
50efceee
RD
33736SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33737 PyObject *resultobj = 0;
33738 wxBrushList *result = 0 ;
554f62e9 33739
50efceee
RD
33740 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33741 {
33742 PyThreadState* __tstate = wxPyBeginAllowThreads();
33743 result = (wxBrushList *)_wxPyInitTheBrushList();
33744 wxPyEndAllowThreads(__tstate);
33745 if (PyErr_Occurred()) SWIG_fail;
33746 }
33747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33748 return resultobj;
33749fail:
33750 return NULL;
554f62e9
RD
33751}
33752
33753
50efceee
RD
33754SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33755 PyObject *resultobj = 0;
33756 wxColourDatabase *result = 0 ;
554f62e9 33757
50efceee
RD
33758 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33759 {
33760 PyThreadState* __tstate = wxPyBeginAllowThreads();
33761 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33762 wxPyEndAllowThreads(__tstate);
33763 if (PyErr_Occurred()) SWIG_fail;
33764 }
33765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33766 return resultobj;
33767fail:
33768 return NULL;
554f62e9
RD
33769}
33770
33771
33772SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33773 PyObject *resultobj = 0;
33774 wxEffects *result = 0 ;
33775
33776 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33777 {
33778 PyThreadState* __tstate = wxPyBeginAllowThreads();
33779 result = (wxEffects *)new wxEffects();
33780 wxPyEndAllowThreads(__tstate);
33781 if (PyErr_Occurred()) SWIG_fail;
33782 }
33783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33784 return resultobj;
33785fail:
33786 return NULL;
33787}
33788
33789
33790SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33791 PyObject *resultobj = 0;
33792 wxEffects *arg1 = (wxEffects *) 0 ;
33793 wxColour result;
33794 void *argp1 = 0 ;
33795 int res1 = 0 ;
33796 PyObject *swig_obj[1] ;
33797
33798 if (!args) SWIG_fail;
33799 swig_obj[0] = args;
33800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33801 if (!SWIG_IsOK(res1)) {
33802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33803 }
33804 arg1 = reinterpret_cast< wxEffects * >(argp1);
33805 {
33806 PyThreadState* __tstate = wxPyBeginAllowThreads();
33807 result = ((wxEffects const *)arg1)->GetHighlightColour();
33808 wxPyEndAllowThreads(__tstate);
33809 if (PyErr_Occurred()) SWIG_fail;
33810 }
33811 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33812 return resultobj;
33813fail:
33814 return NULL;
33815}
33816
33817
33818SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33819 PyObject *resultobj = 0;
33820 wxEffects *arg1 = (wxEffects *) 0 ;
33821 wxColour result;
33822 void *argp1 = 0 ;
33823 int res1 = 0 ;
33824 PyObject *swig_obj[1] ;
33825
33826 if (!args) SWIG_fail;
33827 swig_obj[0] = args;
33828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33829 if (!SWIG_IsOK(res1)) {
33830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33831 }
33832 arg1 = reinterpret_cast< wxEffects * >(argp1);
33833 {
33834 PyThreadState* __tstate = wxPyBeginAllowThreads();
33835 result = ((wxEffects const *)arg1)->GetLightShadow();
33836 wxPyEndAllowThreads(__tstate);
33837 if (PyErr_Occurred()) SWIG_fail;
33838 }
33839 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33840 return resultobj;
33841fail:
33842 return NULL;
33843}
33844
33845
33846SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33847 PyObject *resultobj = 0;
33848 wxEffects *arg1 = (wxEffects *) 0 ;
33849 wxColour result;
33850 void *argp1 = 0 ;
33851 int res1 = 0 ;
33852 PyObject *swig_obj[1] ;
33853
33854 if (!args) SWIG_fail;
33855 swig_obj[0] = args;
33856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33857 if (!SWIG_IsOK(res1)) {
33858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33859 }
33860 arg1 = reinterpret_cast< wxEffects * >(argp1);
33861 {
33862 PyThreadState* __tstate = wxPyBeginAllowThreads();
33863 result = ((wxEffects const *)arg1)->GetFaceColour();
33864 wxPyEndAllowThreads(__tstate);
33865 if (PyErr_Occurred()) SWIG_fail;
33866 }
33867 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33868 return resultobj;
33869fail:
33870 return NULL;
33871}
33872
33873
33874SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33875 PyObject *resultobj = 0;
33876 wxEffects *arg1 = (wxEffects *) 0 ;
33877 wxColour result;
33878 void *argp1 = 0 ;
33879 int res1 = 0 ;
33880 PyObject *swig_obj[1] ;
33881
33882 if (!args) SWIG_fail;
33883 swig_obj[0] = args;
33884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33885 if (!SWIG_IsOK(res1)) {
33886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33887 }
33888 arg1 = reinterpret_cast< wxEffects * >(argp1);
33889 {
33890 PyThreadState* __tstate = wxPyBeginAllowThreads();
33891 result = ((wxEffects const *)arg1)->GetMediumShadow();
33892 wxPyEndAllowThreads(__tstate);
33893 if (PyErr_Occurred()) SWIG_fail;
33894 }
33895 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33896 return resultobj;
33897fail:
33898 return NULL;
33899}
33900
33901
33902SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33903 PyObject *resultobj = 0;
33904 wxEffects *arg1 = (wxEffects *) 0 ;
33905 wxColour result;
33906 void *argp1 = 0 ;
33907 int res1 = 0 ;
33908 PyObject *swig_obj[1] ;
33909
33910 if (!args) SWIG_fail;
33911 swig_obj[0] = args;
33912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33915 }
33916 arg1 = reinterpret_cast< wxEffects * >(argp1);
33917 {
33918 PyThreadState* __tstate = wxPyBeginAllowThreads();
33919 result = ((wxEffects const *)arg1)->GetDarkShadow();
33920 wxPyEndAllowThreads(__tstate);
33921 if (PyErr_Occurred()) SWIG_fail;
33922 }
33923 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33924 return resultobj;
33925fail:
33926 return NULL;
33927}
33928
33929
33930SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33931 PyObject *resultobj = 0;
33932 wxEffects *arg1 = (wxEffects *) 0 ;
33933 wxColour *arg2 = 0 ;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 wxColour temp2 ;
33937 PyObject * obj0 = 0 ;
33938 PyObject * obj1 = 0 ;
33939 char * kwnames[] = {
33940 (char *) "self",(char *) "c", NULL
33941 };
33942
33943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33945 if (!SWIG_IsOK(res1)) {
33946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33947 }
33948 arg1 = reinterpret_cast< wxEffects * >(argp1);
33949 {
33950 arg2 = &temp2;
33951 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33952 }
33953 {
33954 PyThreadState* __tstate = wxPyBeginAllowThreads();
33955 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33956 wxPyEndAllowThreads(__tstate);
33957 if (PyErr_Occurred()) SWIG_fail;
33958 }
33959 resultobj = SWIG_Py_Void();
33960 return resultobj;
33961fail:
33962 return NULL;
33963}
33964
33965
33966SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33967 PyObject *resultobj = 0;
33968 wxEffects *arg1 = (wxEffects *) 0 ;
33969 wxColour *arg2 = 0 ;
33970 void *argp1 = 0 ;
33971 int res1 = 0 ;
33972 wxColour temp2 ;
33973 PyObject * obj0 = 0 ;
33974 PyObject * obj1 = 0 ;
33975 char * kwnames[] = {
33976 (char *) "self",(char *) "c", NULL
33977 };
33978
33979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33981 if (!SWIG_IsOK(res1)) {
33982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33983 }
33984 arg1 = reinterpret_cast< wxEffects * >(argp1);
33985 {
33986 arg2 = &temp2;
33987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33988 }
33989 {
33990 PyThreadState* __tstate = wxPyBeginAllowThreads();
33991 (arg1)->SetLightShadow((wxColour const &)*arg2);
33992 wxPyEndAllowThreads(__tstate);
33993 if (PyErr_Occurred()) SWIG_fail;
33994 }
33995 resultobj = SWIG_Py_Void();
33996 return resultobj;
33997fail:
33998 return NULL;
33999}
34000
34001
34002SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34003 PyObject *resultobj = 0;
34004 wxEffects *arg1 = (wxEffects *) 0 ;
34005 wxColour *arg2 = 0 ;
34006 void *argp1 = 0 ;
34007 int res1 = 0 ;
34008 wxColour temp2 ;
34009 PyObject * obj0 = 0 ;
34010 PyObject * obj1 = 0 ;
34011 char * kwnames[] = {
34012 (char *) "self",(char *) "c", NULL
34013 };
34014
34015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34017 if (!SWIG_IsOK(res1)) {
34018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34019 }
34020 arg1 = reinterpret_cast< wxEffects * >(argp1);
34021 {
34022 arg2 = &temp2;
34023 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34024 }
34025 {
34026 PyThreadState* __tstate = wxPyBeginAllowThreads();
34027 (arg1)->SetFaceColour((wxColour const &)*arg2);
34028 wxPyEndAllowThreads(__tstate);
34029 if (PyErr_Occurred()) SWIG_fail;
34030 }
34031 resultobj = SWIG_Py_Void();
34032 return resultobj;
34033fail:
34034 return NULL;
34035}
34036
34037
34038SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34039 PyObject *resultobj = 0;
34040 wxEffects *arg1 = (wxEffects *) 0 ;
34041 wxColour *arg2 = 0 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 wxColour temp2 ;
34045 PyObject * obj0 = 0 ;
34046 PyObject * obj1 = 0 ;
34047 char * kwnames[] = {
34048 (char *) "self",(char *) "c", NULL
34049 };
34050
34051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34053 if (!SWIG_IsOK(res1)) {
34054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34055 }
34056 arg1 = reinterpret_cast< wxEffects * >(argp1);
34057 {
34058 arg2 = &temp2;
34059 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34060 }
34061 {
34062 PyThreadState* __tstate = wxPyBeginAllowThreads();
34063 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34064 wxPyEndAllowThreads(__tstate);
34065 if (PyErr_Occurred()) SWIG_fail;
34066 }
34067 resultobj = SWIG_Py_Void();
34068 return resultobj;
34069fail:
34070 return NULL;
34071}
34072
34073
34074SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34075 PyObject *resultobj = 0;
34076 wxEffects *arg1 = (wxEffects *) 0 ;
34077 wxColour *arg2 = 0 ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 wxColour temp2 ;
34081 PyObject * obj0 = 0 ;
34082 PyObject * obj1 = 0 ;
34083 char * kwnames[] = {
34084 (char *) "self",(char *) "c", NULL
34085 };
34086
34087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34089 if (!SWIG_IsOK(res1)) {
34090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34091 }
34092 arg1 = reinterpret_cast< wxEffects * >(argp1);
34093 {
34094 arg2 = &temp2;
34095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34096 }
34097 {
34098 PyThreadState* __tstate = wxPyBeginAllowThreads();
34099 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34100 wxPyEndAllowThreads(__tstate);
34101 if (PyErr_Occurred()) SWIG_fail;
34102 }
34103 resultobj = SWIG_Py_Void();
34104 return resultobj;
34105fail:
34106 return NULL;
34107}
34108
34109
34110SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34111 PyObject *resultobj = 0;
34112 wxEffects *arg1 = (wxEffects *) 0 ;
34113 wxColour *arg2 = 0 ;
34114 wxColour *arg3 = 0 ;
34115 wxColour *arg4 = 0 ;
34116 wxColour *arg5 = 0 ;
34117 wxColour *arg6 = 0 ;
34118 void *argp1 = 0 ;
34119 int res1 = 0 ;
34120 wxColour temp2 ;
34121 wxColour temp3 ;
34122 wxColour temp4 ;
34123 wxColour temp5 ;
34124 wxColour temp6 ;
34125 PyObject * obj0 = 0 ;
34126 PyObject * obj1 = 0 ;
34127 PyObject * obj2 = 0 ;
34128 PyObject * obj3 = 0 ;
34129 PyObject * obj4 = 0 ;
34130 PyObject * obj5 = 0 ;
34131 char * kwnames[] = {
34132 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34133 };
34134
34135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34137 if (!SWIG_IsOK(res1)) {
34138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34139 }
34140 arg1 = reinterpret_cast< wxEffects * >(argp1);
34141 {
34142 arg2 = &temp2;
34143 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34144 }
34145 {
34146 arg3 = &temp3;
34147 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34148 }
34149 {
34150 arg4 = &temp4;
34151 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34152 }
34153 {
34154 arg5 = &temp5;
34155 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34156 }
34157 {
34158 arg6 = &temp6;
34159 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34160 }
34161 {
34162 PyThreadState* __tstate = wxPyBeginAllowThreads();
34163 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34164 wxPyEndAllowThreads(__tstate);
34165 if (PyErr_Occurred()) SWIG_fail;
34166 }
34167 resultobj = SWIG_Py_Void();
34168 return resultobj;
34169fail:
34170 return NULL;
34171}
34172
34173
34174SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34175 PyObject *resultobj = 0;
34176 wxEffects *arg1 = (wxEffects *) 0 ;
34177 wxDC *arg2 = 0 ;
34178 wxRect *arg3 = 0 ;
34179 int arg4 = (int) 1 ;
34180 void *argp1 = 0 ;
34181 int res1 = 0 ;
34182 void *argp2 = 0 ;
34183 int res2 = 0 ;
34184 wxRect temp3 ;
34185 int val4 ;
34186 int ecode4 = 0 ;
34187 PyObject * obj0 = 0 ;
34188 PyObject * obj1 = 0 ;
34189 PyObject * obj2 = 0 ;
34190 PyObject * obj3 = 0 ;
34191 char * kwnames[] = {
34192 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34193 };
34194
34195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34197 if (!SWIG_IsOK(res1)) {
34198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34199 }
34200 arg1 = reinterpret_cast< wxEffects * >(argp1);
34201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34202 if (!SWIG_IsOK(res2)) {
34203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34204 }
34205 if (!argp2) {
34206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34207 }
34208 arg2 = reinterpret_cast< wxDC * >(argp2);
34209 {
34210 arg3 = &temp3;
34211 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34212 }
34213 if (obj3) {
34214 ecode4 = SWIG_AsVal_int(obj3, &val4);
34215 if (!SWIG_IsOK(ecode4)) {
34216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34217 }
34218 arg4 = static_cast< int >(val4);
34219 }
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_Py_Void();
34227 return resultobj;
34228fail:
34229 return NULL;
34230}
34231
34232
34233SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34234 PyObject *resultobj = 0;
34235 wxEffects *arg1 = (wxEffects *) 0 ;
34236 wxRect *arg2 = 0 ;
34237 wxDC *arg3 = 0 ;
34238 wxBitmap *arg4 = 0 ;
34239 bool result;
34240 void *argp1 = 0 ;
34241 int res1 = 0 ;
34242 wxRect temp2 ;
34243 void *argp3 = 0 ;
34244 int res3 = 0 ;
34245 void *argp4 = 0 ;
34246 int res4 = 0 ;
34247 PyObject * obj0 = 0 ;
34248 PyObject * obj1 = 0 ;
34249 PyObject * obj2 = 0 ;
34250 PyObject * obj3 = 0 ;
34251 char * kwnames[] = {
34252 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34253 };
34254
34255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34257 if (!SWIG_IsOK(res1)) {
34258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34259 }
34260 arg1 = reinterpret_cast< wxEffects * >(argp1);
34261 {
34262 arg2 = &temp2;
34263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34264 }
34265 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34266 if (!SWIG_IsOK(res3)) {
34267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34268 }
34269 if (!argp3) {
34270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34271 }
34272 arg3 = reinterpret_cast< wxDC * >(argp3);
34273 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34274 if (!SWIG_IsOK(res4)) {
34275 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34276 }
34277 if (!argp4) {
34278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34279 }
34280 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34281 {
34282 PyThreadState* __tstate = wxPyBeginAllowThreads();
34283 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 {
34288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34289 }
34290 return resultobj;
34291fail:
34292 return NULL;
34293}
34294
34295
34296SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34297 PyObject *obj;
34298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34299 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34300 return SWIG_Py_Void();
34301}
34302
34303SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34304 return SWIG_Python_InitShadowInstance(args);
34305}
34306
34307SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34308 PyObject *resultobj = 0;
34309 int arg1 ;
34310 int arg2 ;
34311 bool arg3 ;
34312 wxSplitterRenderParams *result = 0 ;
34313 int val1 ;
34314 int ecode1 = 0 ;
34315 int val2 ;
34316 int ecode2 = 0 ;
34317 bool val3 ;
34318 int ecode3 = 0 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 PyObject * obj2 = 0 ;
34322 char * kwnames[] = {
34323 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34324 };
34325
34326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34327 ecode1 = SWIG_AsVal_int(obj0, &val1);
34328 if (!SWIG_IsOK(ecode1)) {
34329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34330 }
34331 arg1 = static_cast< int >(val1);
34332 ecode2 = SWIG_AsVal_int(obj1, &val2);
34333 if (!SWIG_IsOK(ecode2)) {
34334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34335 }
34336 arg2 = static_cast< int >(val2);
34337 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34338 if (!SWIG_IsOK(ecode3)) {
34339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34340 }
34341 arg3 = static_cast< bool >(val3);
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
34344 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34345 wxPyEndAllowThreads(__tstate);
34346 if (PyErr_Occurred()) SWIG_fail;
34347 }
34348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34349 return resultobj;
34350fail:
34351 return NULL;
34352}
34353
34354
34355SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34356 PyObject *resultobj = 0;
34357 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 PyObject *swig_obj[1] ;
34361
34362 if (!args) SWIG_fail;
34363 swig_obj[0] = args;
34364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34367 }
34368 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 delete arg1;
34372
34373 wxPyEndAllowThreads(__tstate);
34374 if (PyErr_Occurred()) SWIG_fail;
34375 }
34376 resultobj = SWIG_Py_Void();
34377 return resultobj;
34378fail:
34379 return NULL;
34380}
34381
34382
34383SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34384 PyObject *resultobj = 0;
34385 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34386 int result;
34387 void *argp1 = 0 ;
34388 int res1 = 0 ;
34389 PyObject *swig_obj[1] ;
34390
34391 if (!args) SWIG_fail;
34392 swig_obj[0] = args;
34393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34394 if (!SWIG_IsOK(res1)) {
34395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34396 }
34397 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34398 result = (int)(int) ((arg1)->widthSash);
34399 resultobj = SWIG_From_int(static_cast< int >(result));
34400 return resultobj;
34401fail:
34402 return NULL;
34403}
34404
34405
34406SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34407 PyObject *resultobj = 0;
34408 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34409 int result;
34410 void *argp1 = 0 ;
34411 int res1 = 0 ;
34412 PyObject *swig_obj[1] ;
34413
34414 if (!args) SWIG_fail;
34415 swig_obj[0] = args;
34416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34417 if (!SWIG_IsOK(res1)) {
34418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34419 }
34420 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34421 result = (int)(int) ((arg1)->border);
34422 resultobj = SWIG_From_int(static_cast< int >(result));
34423 return resultobj;
34424fail:
34425 return NULL;
34426}
34427
34428
34429SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34430 PyObject *resultobj = 0;
34431 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34432 bool result;
34433 void *argp1 = 0 ;
34434 int res1 = 0 ;
34435 PyObject *swig_obj[1] ;
34436
34437 if (!args) SWIG_fail;
34438 swig_obj[0] = args;
34439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34442 }
34443 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34444 result = (bool)(bool) ((arg1)->isHotSensitive);
34445 resultobj = SWIG_From_bool(static_cast< bool >(result));
34446 return resultobj;
34447fail:
34448 return NULL;
34449}
34450
34451
34452SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34453 PyObject *obj;
34454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34455 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34456 return SWIG_Py_Void();
34457}
34458
34459SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34460 return SWIG_Python_InitShadowInstance(args);
34461}
34462
33d6fd3b
RD
34463SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34464 PyObject *resultobj = 0;
34465 wxHeaderButtonParams *result = 0 ;
34466
34467 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34468 {
34469 PyThreadState* __tstate = wxPyBeginAllowThreads();
34470 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34471 wxPyEndAllowThreads(__tstate);
34472 if (PyErr_Occurred()) SWIG_fail;
34473 }
34474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34475 return resultobj;
34476fail:
34477 return NULL;
34478}
34479
34480
34481SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34482 PyObject *resultobj = 0;
34483 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34484 void *argp1 = 0 ;
34485 int res1 = 0 ;
34486 PyObject *swig_obj[1] ;
34487
34488 if (!args) SWIG_fail;
34489 swig_obj[0] = args;
34490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34491 if (!SWIG_IsOK(res1)) {
34492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34493 }
34494 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34495 {
34496 PyThreadState* __tstate = wxPyBeginAllowThreads();
34497 delete arg1;
34498
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504fail:
34505 return NULL;
34506}
34507
34508
34509SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34510 PyObject *resultobj = 0;
34511 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34512 wxColour *arg2 = (wxColour *) 0 ;
34513 void *argp1 = 0 ;
34514 int res1 = 0 ;
34515 wxColour temp2 ;
34516 PyObject *swig_obj[2] ;
34517
34518 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34520 if (!SWIG_IsOK(res1)) {
34521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34522 }
34523 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34524 {
34525 arg2 = &temp2;
34526 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34527 }
34528 if (arg1) (arg1)->m_arrowColour = *arg2;
34529
34530 resultobj = SWIG_Py_Void();
34531 return resultobj;
34532fail:
34533 return NULL;
34534}
34535
34536
34537SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34538 PyObject *resultobj = 0;
34539 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34540 wxColour *result = 0 ;
34541 void *argp1 = 0 ;
34542 int res1 = 0 ;
34543 PyObject *swig_obj[1] ;
34544
34545 if (!args) SWIG_fail;
34546 swig_obj[0] = args;
34547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34548 if (!SWIG_IsOK(res1)) {
34549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34550 }
34551 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34552 result = (wxColour *)& ((arg1)->m_arrowColour);
34553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34554 return resultobj;
34555fail:
34556 return NULL;
34557}
34558
34559
34560SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34561 PyObject *resultobj = 0;
34562 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34563 wxColour *arg2 = (wxColour *) 0 ;
34564 void *argp1 = 0 ;
34565 int res1 = 0 ;
34566 wxColour temp2 ;
34567 PyObject *swig_obj[2] ;
34568
34569 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34571 if (!SWIG_IsOK(res1)) {
34572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34573 }
34574 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34575 {
34576 arg2 = &temp2;
34577 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34578 }
34579 if (arg1) (arg1)->m_selectionColour = *arg2;
34580
34581 resultobj = SWIG_Py_Void();
34582 return resultobj;
34583fail:
34584 return NULL;
34585}
34586
34587
34588SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34589 PyObject *resultobj = 0;
34590 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34591 wxColour *result = 0 ;
34592 void *argp1 = 0 ;
34593 int res1 = 0 ;
34594 PyObject *swig_obj[1] ;
34595
34596 if (!args) SWIG_fail;
34597 swig_obj[0] = args;
34598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34599 if (!SWIG_IsOK(res1)) {
34600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34601 }
34602 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34603 result = (wxColour *)& ((arg1)->m_selectionColour);
34604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34605 return resultobj;
34606fail:
34607 return NULL;
34608}
34609
34610
34611SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34612 PyObject *resultobj = 0;
34613 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34614 wxString *arg2 = (wxString *) 0 ;
34615 void *argp1 = 0 ;
34616 int res1 = 0 ;
34617 bool temp2 = false ;
34618 PyObject *swig_obj[2] ;
34619
34620 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34622 if (!SWIG_IsOK(res1)) {
34623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34624 }
34625 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34626 {
34627 arg2 = wxString_in_helper(swig_obj[1]);
34628 if (arg2 == NULL) SWIG_fail;
34629 temp2 = true;
34630 }
34631 if (arg1) (arg1)->m_labelText = *arg2;
34632
34633 resultobj = SWIG_Py_Void();
34634 {
34635 if (temp2)
34636 delete arg2;
34637 }
34638 return resultobj;
34639fail:
34640 {
34641 if (temp2)
34642 delete arg2;
34643 }
34644 return NULL;
34645}
34646
34647
34648SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34649 PyObject *resultobj = 0;
34650 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34651 wxString *result = 0 ;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 PyObject *swig_obj[1] ;
34655
34656 if (!args) SWIG_fail;
34657 swig_obj[0] = args;
34658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34659 if (!SWIG_IsOK(res1)) {
34660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34661 }
34662 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34663 result = (wxString *)& ((arg1)->m_labelText);
34664 {
34665#if wxUSE_UNICODE
34666 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34667#else
34668 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34669#endif
34670 }
34671 return resultobj;
34672fail:
34673 return NULL;
34674}
34675
34676
34677SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34678 PyObject *resultobj = 0;
34679 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34680 wxFont *arg2 = (wxFont *) 0 ;
34681 void *argp1 = 0 ;
34682 int res1 = 0 ;
34683 void *argp2 = 0 ;
34684 int res2 = 0 ;
34685 PyObject *swig_obj[2] ;
34686
34687 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34689 if (!SWIG_IsOK(res1)) {
34690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34691 }
34692 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34693 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34694 if (!SWIG_IsOK(res2)) {
34695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34696 }
34697 arg2 = reinterpret_cast< wxFont * >(argp2);
34698 if (arg1) (arg1)->m_labelFont = *arg2;
34699
34700 resultobj = SWIG_Py_Void();
34701 return resultobj;
34702fail:
34703 return NULL;
34704}
34705
34706
34707SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34708 PyObject *resultobj = 0;
34709 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34710 wxFont *result = 0 ;
34711 void *argp1 = 0 ;
34712 int res1 = 0 ;
34713 PyObject *swig_obj[1] ;
34714
34715 if (!args) SWIG_fail;
34716 swig_obj[0] = args;
34717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34720 }
34721 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34722 result = (wxFont *)& ((arg1)->m_labelFont);
34723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34724 return resultobj;
34725fail:
34726 return NULL;
34727}
34728
34729
34730SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34731 PyObject *resultobj = 0;
34732 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34733 wxColour *arg2 = (wxColour *) 0 ;
34734 void *argp1 = 0 ;
34735 int res1 = 0 ;
34736 wxColour temp2 ;
34737 PyObject *swig_obj[2] ;
34738
34739 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34741 if (!SWIG_IsOK(res1)) {
34742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34743 }
34744 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34745 {
34746 arg2 = &temp2;
34747 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34748 }
34749 if (arg1) (arg1)->m_labelColour = *arg2;
34750
34751 resultobj = SWIG_Py_Void();
34752 return resultobj;
34753fail:
34754 return NULL;
34755}
34756
34757
34758SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34759 PyObject *resultobj = 0;
34760 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34761 wxColour *result = 0 ;
34762 void *argp1 = 0 ;
34763 int res1 = 0 ;
34764 PyObject *swig_obj[1] ;
34765
34766 if (!args) SWIG_fail;
34767 swig_obj[0] = args;
34768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34769 if (!SWIG_IsOK(res1)) {
34770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34771 }
34772 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34773 result = (wxColour *)& ((arg1)->m_labelColour);
34774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34775 return resultobj;
34776fail:
34777 return NULL;
34778}
34779
34780
34781SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34782 PyObject *resultobj = 0;
34783 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34784 wxBitmap *arg2 = (wxBitmap *) 0 ;
34785 void *argp1 = 0 ;
34786 int res1 = 0 ;
34787 void *argp2 = 0 ;
34788 int res2 = 0 ;
34789 PyObject *swig_obj[2] ;
34790
34791 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34793 if (!SWIG_IsOK(res1)) {
34794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34795 }
34796 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34797 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34798 if (!SWIG_IsOK(res2)) {
34799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34800 }
34801 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34802 if (arg1) (arg1)->m_labelBitmap = *arg2;
34803
34804 resultobj = SWIG_Py_Void();
34805 return resultobj;
34806fail:
34807 return NULL;
34808}
34809
34810
34811SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34812 PyObject *resultobj = 0;
34813 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34814 wxBitmap *result = 0 ;
34815 void *argp1 = 0 ;
34816 int res1 = 0 ;
34817 PyObject *swig_obj[1] ;
34818
34819 if (!args) SWIG_fail;
34820 swig_obj[0] = args;
34821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34824 }
34825 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34826 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34828 return resultobj;
34829fail:
34830 return NULL;
34831}
34832
34833
34834SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34835 PyObject *resultobj = 0;
34836 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34837 int arg2 ;
34838 void *argp1 = 0 ;
34839 int res1 = 0 ;
34840 int val2 ;
34841 int ecode2 = 0 ;
34842 PyObject *swig_obj[2] ;
34843
34844 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34846 if (!SWIG_IsOK(res1)) {
34847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34848 }
34849 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34850 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34851 if (!SWIG_IsOK(ecode2)) {
34852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34853 }
34854 arg2 = static_cast< int >(val2);
34855 if (arg1) (arg1)->m_labelAlignment = arg2;
34856
34857 resultobj = SWIG_Py_Void();
34858 return resultobj;
34859fail:
34860 return NULL;
34861}
34862
34863
34864SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34865 PyObject *resultobj = 0;
34866 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34867 int result;
34868 void *argp1 = 0 ;
34869 int res1 = 0 ;
34870 PyObject *swig_obj[1] ;
34871
34872 if (!args) SWIG_fail;
34873 swig_obj[0] = args;
34874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34877 }
34878 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34879 result = (int) ((arg1)->m_labelAlignment);
34880 resultobj = SWIG_From_int(static_cast< int >(result));
34881 return resultobj;
34882fail:
34883 return NULL;
34884}
34885
34886
34887SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34888 PyObject *obj;
34889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34890 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34891 return SWIG_Py_Void();
34892}
34893
34894SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34895 return SWIG_Python_InitShadowInstance(args);
34896}
34897
554f62e9
RD
34898SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34899 PyObject *resultobj = 0;
34900 int arg1 ;
34901 int arg2 ;
34902 wxRendererVersion *result = 0 ;
34903 int val1 ;
34904 int ecode1 = 0 ;
34905 int val2 ;
34906 int ecode2 = 0 ;
34907 PyObject * obj0 = 0 ;
34908 PyObject * obj1 = 0 ;
34909 char * kwnames[] = {
34910 (char *) "version_",(char *) "age_", NULL
34911 };
34912
34913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34914 ecode1 = SWIG_AsVal_int(obj0, &val1);
34915 if (!SWIG_IsOK(ecode1)) {
34916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34917 }
34918 arg1 = static_cast< int >(val1);
34919 ecode2 = SWIG_AsVal_int(obj1, &val2);
34920 if (!SWIG_IsOK(ecode2)) {
34921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34922 }
34923 arg2 = static_cast< int >(val2);
34924 {
34925 PyThreadState* __tstate = wxPyBeginAllowThreads();
34926 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34927 wxPyEndAllowThreads(__tstate);
34928 if (PyErr_Occurred()) SWIG_fail;
34929 }
34930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34931 return resultobj;
34932fail:
34933 return NULL;
34934}
34935
34936
34937SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34938 PyObject *resultobj = 0;
34939 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34940 void *argp1 = 0 ;
34941 int res1 = 0 ;
34942 PyObject *swig_obj[1] ;
34943
34944 if (!args) SWIG_fail;
34945 swig_obj[0] = args;
34946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34947 if (!SWIG_IsOK(res1)) {
34948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34949 }
34950 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34951 {
34952 PyThreadState* __tstate = wxPyBeginAllowThreads();
34953 delete arg1;
34954
34955 wxPyEndAllowThreads(__tstate);
34956 if (PyErr_Occurred()) SWIG_fail;
34957 }
34958 resultobj = SWIG_Py_Void();
34959 return resultobj;
34960fail:
34961 return NULL;
34962}
34963
34964
34965SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34966 PyObject *resultobj = 0;
34967 wxRendererVersion *arg1 = 0 ;
34968 bool result;
34969 void *argp1 = 0 ;
34970 int res1 = 0 ;
34971 PyObject * obj0 = 0 ;
34972 char * kwnames[] = {
34973 (char *) "ver", NULL
34974 };
34975
34976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34977 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34978 if (!SWIG_IsOK(res1)) {
34979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34980 }
34981 if (!argp1) {
34982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34983 }
34984 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34985 {
34986 PyThreadState* __tstate = wxPyBeginAllowThreads();
34987 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34988 wxPyEndAllowThreads(__tstate);
34989 if (PyErr_Occurred()) SWIG_fail;
34990 }
34991 {
34992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34993 }
34994 return resultobj;
34995fail:
34996 return NULL;
34997}
34998
34999
35000SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35001 PyObject *resultobj = 0;
35002 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35003 int result;
35004 void *argp1 = 0 ;
35005 int res1 = 0 ;
35006 PyObject *swig_obj[1] ;
35007
35008 if (!args) SWIG_fail;
35009 swig_obj[0] = args;
35010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35011 if (!SWIG_IsOK(res1)) {
35012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35013 }
35014 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35015 result = (int)(int) ((arg1)->version);
35016 resultobj = SWIG_From_int(static_cast< int >(result));
35017 return resultobj;
35018fail:
35019 return NULL;
35020}
35021
35022
35023SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35024 PyObject *resultobj = 0;
35025 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35026 int result;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 PyObject *swig_obj[1] ;
35030
35031 if (!args) SWIG_fail;
35032 swig_obj[0] = args;
35033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35036 }
35037 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35038 result = (int)(int) ((arg1)->age);
35039 resultobj = SWIG_From_int(static_cast< int >(result));
35040 return resultobj;
35041fail:
35042 return NULL;
35043}
35044
35045
35046SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35047 PyObject *obj;
35048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35049 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35050 return SWIG_Py_Void();
35051}
35052
35053SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35054 return SWIG_Python_InitShadowInstance(args);
35055}
35056
35057SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35058 PyObject *resultobj = 0;
35059 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35060 wxWindow *arg2 = (wxWindow *) 0 ;
35061 wxDC *arg3 = 0 ;
35062 wxRect *arg4 = 0 ;
35063 int arg5 = (int) 0 ;
33d6fd3b
RD
35064 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35065 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 35066 int result;
554f62e9
RD
35067 void *argp1 = 0 ;
35068 int res1 = 0 ;
35069 void *argp2 = 0 ;
35070 int res2 = 0 ;
35071 void *argp3 = 0 ;
35072 int res3 = 0 ;
35073 wxRect temp4 ;
35074 int val5 ;
35075 int ecode5 = 0 ;
33d6fd3b
RD
35076 int val6 ;
35077 int ecode6 = 0 ;
35078 void *argp7 = 0 ;
35079 int res7 = 0 ;
554f62e9
RD
35080 PyObject * obj0 = 0 ;
35081 PyObject * obj1 = 0 ;
35082 PyObject * obj2 = 0 ;
35083 PyObject * obj3 = 0 ;
35084 PyObject * obj4 = 0 ;
33d6fd3b
RD
35085 PyObject * obj5 = 0 ;
35086 PyObject * obj6 = 0 ;
554f62e9 35087 char * kwnames[] = {
33d6fd3b 35088 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
35089 };
35090
33d6fd3b 35091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
35092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35093 if (!SWIG_IsOK(res1)) {
35094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35095 }
35096 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35098 if (!SWIG_IsOK(res2)) {
35099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35100 }
35101 arg2 = reinterpret_cast< wxWindow * >(argp2);
35102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35103 if (!SWIG_IsOK(res3)) {
35104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35105 }
35106 if (!argp3) {
35107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35108 }
35109 arg3 = reinterpret_cast< wxDC * >(argp3);
35110 {
35111 arg4 = &temp4;
35112 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35113 }
35114 if (obj4) {
35115 ecode5 = SWIG_AsVal_int(obj4, &val5);
35116 if (!SWIG_IsOK(ecode5)) {
35117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35118 }
35119 arg5 = static_cast< int >(val5);
35120 }
33d6fd3b
RD
35121 if (obj5) {
35122 ecode6 = SWIG_AsVal_int(obj5, &val6);
35123 if (!SWIG_IsOK(ecode6)) {
35124 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35125 }
35126 arg6 = static_cast< wxHeaderSortIconType >(val6);
35127 }
35128 if (obj6) {
35129 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35130 if (!SWIG_IsOK(res7)) {
35131 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35132 }
35133 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35134 }
35135 {
35136 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 35137 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
35138 wxPyEndAllowThreads(__tstate);
35139 if (PyErr_Occurred()) SWIG_fail;
35140 }
723282b6 35141 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
35142 return resultobj;
35143fail:
35144 return NULL;
35145}
35146
35147
35148SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35149 PyObject *resultobj = 0;
35150 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35151 wxWindow *arg2 = (wxWindow *) 0 ;
35152 wxDC *arg3 = 0 ;
35153 wxRect *arg4 = 0 ;
35154 int arg5 = (int) 0 ;
35155 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35156 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 35157 int result;
33d6fd3b
RD
35158 void *argp1 = 0 ;
35159 int res1 = 0 ;
35160 void *argp2 = 0 ;
35161 int res2 = 0 ;
35162 void *argp3 = 0 ;
35163 int res3 = 0 ;
35164 wxRect temp4 ;
35165 int val5 ;
35166 int ecode5 = 0 ;
35167 int val6 ;
35168 int ecode6 = 0 ;
35169 void *argp7 = 0 ;
35170 int res7 = 0 ;
35171 PyObject * obj0 = 0 ;
35172 PyObject * obj1 = 0 ;
35173 PyObject * obj2 = 0 ;
35174 PyObject * obj3 = 0 ;
35175 PyObject * obj4 = 0 ;
35176 PyObject * obj5 = 0 ;
35177 PyObject * obj6 = 0 ;
35178 char * kwnames[] = {
35179 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35180 };
35181
35182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35184 if (!SWIG_IsOK(res1)) {
35185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35186 }
35187 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35189 if (!SWIG_IsOK(res2)) {
35190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35191 }
35192 arg2 = reinterpret_cast< wxWindow * >(argp2);
35193 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35194 if (!SWIG_IsOK(res3)) {
35195 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35196 }
35197 if (!argp3) {
35198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35199 }
35200 arg3 = reinterpret_cast< wxDC * >(argp3);
35201 {
35202 arg4 = &temp4;
35203 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35204 }
35205 if (obj4) {
35206 ecode5 = SWIG_AsVal_int(obj4, &val5);
35207 if (!SWIG_IsOK(ecode5)) {
35208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35209 }
35210 arg5 = static_cast< int >(val5);
35211 }
35212 if (obj5) {
35213 ecode6 = SWIG_AsVal_int(obj5, &val6);
35214 if (!SWIG_IsOK(ecode6)) {
35215 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35216 }
35217 arg6 = static_cast< wxHeaderSortIconType >(val6);
35218 }
35219 if (obj6) {
35220 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35221 if (!SWIG_IsOK(res7)) {
35222 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35223 }
35224 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35225 }
554f62e9
RD
35226 {
35227 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 35228 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
723282b6 35232 resultobj = SWIG_From_int(static_cast< int >(result));
554f62e9
RD
35233 return resultobj;
35234fail:
35235 return NULL;
35236}
35237
35238
33d6fd3b
RD
35239SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35240 PyObject *resultobj = 0;
35241 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35242 wxWindow *arg2 = (wxWindow *) 0 ;
35243 int result;
35244 void *argp1 = 0 ;
35245 int res1 = 0 ;
35246 void *argp2 = 0 ;
35247 int res2 = 0 ;
35248 PyObject * obj0 = 0 ;
35249 PyObject * obj1 = 0 ;
35250 char * kwnames[] = {
35251 (char *) "self",(char *) "win", NULL
35252 };
35253
35254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35258 }
35259 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35261 if (!SWIG_IsOK(res2)) {
35262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35263 }
35264 arg2 = reinterpret_cast< wxWindow * >(argp2);
35265 {
35266 PyThreadState* __tstate = wxPyBeginAllowThreads();
35267 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35268 wxPyEndAllowThreads(__tstate);
35269 if (PyErr_Occurred()) SWIG_fail;
35270 }
35271 resultobj = SWIG_From_int(static_cast< int >(result));
35272 return resultobj;
35273fail:
35274 return NULL;
35275}
35276
35277
554f62e9
RD
35278SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35279 PyObject *resultobj = 0;
35280 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35281 wxWindow *arg2 = (wxWindow *) 0 ;
35282 wxDC *arg3 = 0 ;
35283 wxRect *arg4 = 0 ;
35284 int arg5 = (int) 0 ;
35285 void *argp1 = 0 ;
35286 int res1 = 0 ;
35287 void *argp2 = 0 ;
35288 int res2 = 0 ;
35289 void *argp3 = 0 ;
35290 int res3 = 0 ;
35291 wxRect temp4 ;
35292 int val5 ;
35293 int ecode5 = 0 ;
35294 PyObject * obj0 = 0 ;
35295 PyObject * obj1 = 0 ;
35296 PyObject * obj2 = 0 ;
35297 PyObject * obj3 = 0 ;
35298 PyObject * obj4 = 0 ;
35299 char * kwnames[] = {
35300 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35301 };
35302
35303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35305 if (!SWIG_IsOK(res1)) {
35306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35307 }
35308 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35310 if (!SWIG_IsOK(res2)) {
35311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35312 }
35313 arg2 = reinterpret_cast< wxWindow * >(argp2);
35314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35315 if (!SWIG_IsOK(res3)) {
35316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35317 }
35318 if (!argp3) {
35319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35320 }
35321 arg3 = reinterpret_cast< wxDC * >(argp3);
35322 {
35323 arg4 = &temp4;
35324 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35325 }
35326 if (obj4) {
35327 ecode5 = SWIG_AsVal_int(obj4, &val5);
35328 if (!SWIG_IsOK(ecode5)) {
35329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35330 }
35331 arg5 = static_cast< int >(val5);
35332 }
35333 {
35334 PyThreadState* __tstate = wxPyBeginAllowThreads();
35335 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35336 wxPyEndAllowThreads(__tstate);
35337 if (PyErr_Occurred()) SWIG_fail;
35338 }
35339 resultobj = SWIG_Py_Void();
35340 return resultobj;
35341fail:
35342 return NULL;
35343}
35344
35345
35346SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35347 PyObject *resultobj = 0;
35348 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35349 wxWindow *arg2 = (wxWindow *) 0 ;
35350 wxDC *arg3 = 0 ;
35351 wxRect *arg4 = 0 ;
35352 int arg5 = (int) 0 ;
35353 void *argp1 = 0 ;
35354 int res1 = 0 ;
35355 void *argp2 = 0 ;
35356 int res2 = 0 ;
35357 void *argp3 = 0 ;
35358 int res3 = 0 ;
35359 wxRect temp4 ;
35360 int val5 ;
35361 int ecode5 = 0 ;
35362 PyObject * obj0 = 0 ;
35363 PyObject * obj1 = 0 ;
35364 PyObject * obj2 = 0 ;
35365 PyObject * obj3 = 0 ;
35366 PyObject * obj4 = 0 ;
35367 char * kwnames[] = {
35368 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35369 };
35370
35371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35373 if (!SWIG_IsOK(res1)) {
35374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35375 }
35376 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35378 if (!SWIG_IsOK(res2)) {
35379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35380 }
35381 arg2 = reinterpret_cast< wxWindow * >(argp2);
35382 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35383 if (!SWIG_IsOK(res3)) {
35384 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35385 }
35386 if (!argp3) {
35387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35388 }
35389 arg3 = reinterpret_cast< wxDC * >(argp3);
35390 {
35391 arg4 = &temp4;
35392 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35393 }
35394 if (obj4) {
35395 ecode5 = SWIG_AsVal_int(obj4, &val5);
35396 if (!SWIG_IsOK(ecode5)) {
35397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35398 }
35399 arg5 = static_cast< int >(val5);
35400 }
35401 {
35402 PyThreadState* __tstate = wxPyBeginAllowThreads();
35403 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35404 wxPyEndAllowThreads(__tstate);
35405 if (PyErr_Occurred()) SWIG_fail;
35406 }
35407 resultobj = SWIG_Py_Void();
35408 return resultobj;
35409fail:
35410 return NULL;
35411}
35412
35413
35414SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35415 PyObject *resultobj = 0;
35416 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35417 wxWindow *arg2 = (wxWindow *) 0 ;
35418 wxDC *arg3 = 0 ;
35419 wxSize *arg4 = 0 ;
35420 int arg5 ;
35421 wxOrientation arg6 ;
35422 int arg7 = (int) 0 ;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 void *argp2 = 0 ;
35426 int res2 = 0 ;
35427 void *argp3 = 0 ;
35428 int res3 = 0 ;
35429 wxSize temp4 ;
35430 int val5 ;
35431 int ecode5 = 0 ;
35432 int val6 ;
35433 int ecode6 = 0 ;
35434 int val7 ;
35435 int ecode7 = 0 ;
35436 PyObject * obj0 = 0 ;
35437 PyObject * obj1 = 0 ;
35438 PyObject * obj2 = 0 ;
35439 PyObject * obj3 = 0 ;
35440 PyObject * obj4 = 0 ;
35441 PyObject * obj5 = 0 ;
35442 PyObject * obj6 = 0 ;
35443 char * kwnames[] = {
35444 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35445 };
35446
35447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35449 if (!SWIG_IsOK(res1)) {
35450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35451 }
35452 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35454 if (!SWIG_IsOK(res2)) {
35455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35456 }
35457 arg2 = reinterpret_cast< wxWindow * >(argp2);
35458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35459 if (!SWIG_IsOK(res3)) {
35460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35461 }
35462 if (!argp3) {
35463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35464 }
35465 arg3 = reinterpret_cast< wxDC * >(argp3);
35466 {
35467 arg4 = &temp4;
35468 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35469 }
35470 ecode5 = SWIG_AsVal_int(obj4, &val5);
35471 if (!SWIG_IsOK(ecode5)) {
35472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35473 }
35474 arg5 = static_cast< int >(val5);
35475 ecode6 = SWIG_AsVal_int(obj5, &val6);
35476 if (!SWIG_IsOK(ecode6)) {
35477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35478 }
35479 arg6 = static_cast< wxOrientation >(val6);
35480 if (obj6) {
35481 ecode7 = SWIG_AsVal_int(obj6, &val7);
35482 if (!SWIG_IsOK(ecode7)) {
35483 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35484 }
35485 arg7 = static_cast< int >(val7);
35486 }
35487 {
35488 PyThreadState* __tstate = wxPyBeginAllowThreads();
35489 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35490 wxPyEndAllowThreads(__tstate);
35491 if (PyErr_Occurred()) SWIG_fail;
35492 }
35493 resultobj = SWIG_Py_Void();
35494 return resultobj;
35495fail:
35496 return NULL;
35497}
35498
35499
35500SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35501 PyObject *resultobj = 0;
35502 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35503 wxWindow *arg2 = (wxWindow *) 0 ;
35504 wxDC *arg3 = 0 ;
35505 wxRect *arg4 = 0 ;
35506 int arg5 = (int) 0 ;
35507 void *argp1 = 0 ;
35508 int res1 = 0 ;
35509 void *argp2 = 0 ;
35510 int res2 = 0 ;
35511 void *argp3 = 0 ;
35512 int res3 = 0 ;
35513 wxRect temp4 ;
35514 int val5 ;
35515 int ecode5 = 0 ;
35516 PyObject * obj0 = 0 ;
35517 PyObject * obj1 = 0 ;
35518 PyObject * obj2 = 0 ;
35519 PyObject * obj3 = 0 ;
35520 PyObject * obj4 = 0 ;
35521 char * kwnames[] = {
35522 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35523 };
35524
35525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35527 if (!SWIG_IsOK(res1)) {
35528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35529 }
35530 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35532 if (!SWIG_IsOK(res2)) {
35533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35534 }
35535 arg2 = reinterpret_cast< wxWindow * >(argp2);
35536 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35537 if (!SWIG_IsOK(res3)) {
35538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35539 }
35540 if (!argp3) {
35541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35542 }
35543 arg3 = reinterpret_cast< wxDC * >(argp3);
35544 {
35545 arg4 = &temp4;
35546 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35547 }
35548 if (obj4) {
35549 ecode5 = SWIG_AsVal_int(obj4, &val5);
35550 if (!SWIG_IsOK(ecode5)) {
35551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35552 }
35553 arg5 = static_cast< int >(val5);
35554 }
35555 {
35556 PyThreadState* __tstate = wxPyBeginAllowThreads();
35557 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35558 wxPyEndAllowThreads(__tstate);
35559 if (PyErr_Occurred()) SWIG_fail;
35560 }
35561 resultobj = SWIG_Py_Void();
35562 return resultobj;
35563fail:
35564 return NULL;
35565}
35566
35567
35568SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35569 PyObject *resultobj = 0;
35570 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35571 wxWindow *arg2 = (wxWindow *) 0 ;
35572 wxDC *arg3 = 0 ;
35573 wxRect *arg4 = 0 ;
35574 int arg5 = (int) 0 ;
35575 void *argp1 = 0 ;
35576 int res1 = 0 ;
35577 void *argp2 = 0 ;
35578 int res2 = 0 ;
35579 void *argp3 = 0 ;
35580 int res3 = 0 ;
35581 wxRect temp4 ;
35582 int val5 ;
35583 int ecode5 = 0 ;
35584 PyObject * obj0 = 0 ;
35585 PyObject * obj1 = 0 ;
35586 PyObject * obj2 = 0 ;
35587 PyObject * obj3 = 0 ;
35588 PyObject * obj4 = 0 ;
35589 char * kwnames[] = {
35590 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35591 };
35592
35593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35595 if (!SWIG_IsOK(res1)) {
35596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35597 }
35598 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35600 if (!SWIG_IsOK(res2)) {
35601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35602 }
35603 arg2 = reinterpret_cast< wxWindow * >(argp2);
35604 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35605 if (!SWIG_IsOK(res3)) {
35606 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35607 }
35608 if (!argp3) {
35609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35610 }
35611 arg3 = reinterpret_cast< wxDC * >(argp3);
35612 {
35613 arg4 = &temp4;
35614 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35615 }
35616 if (obj4) {
35617 ecode5 = SWIG_AsVal_int(obj4, &val5);
35618 if (!SWIG_IsOK(ecode5)) {
35619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35620 }
35621 arg5 = static_cast< int >(val5);
35622 }
35623 {
35624 PyThreadState* __tstate = wxPyBeginAllowThreads();
35625 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35626 wxPyEndAllowThreads(__tstate);
35627 if (PyErr_Occurred()) SWIG_fail;
35628 }
35629 resultobj = SWIG_Py_Void();
35630 return resultobj;
35631fail:
35632 return NULL;
35633}
35634
35635
f460c29d
RD
35636SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35637 PyObject *resultobj = 0;
35638 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35639 wxWindow *arg2 = (wxWindow *) 0 ;
35640 wxDC *arg3 = 0 ;
35641 wxRect *arg4 = 0 ;
35642 int arg5 = (int) 0 ;
35643 void *argp1 = 0 ;
35644 int res1 = 0 ;
35645 void *argp2 = 0 ;
35646 int res2 = 0 ;
35647 void *argp3 = 0 ;
35648 int res3 = 0 ;
35649 wxRect temp4 ;
35650 int val5 ;
35651 int ecode5 = 0 ;
35652 PyObject * obj0 = 0 ;
35653 PyObject * obj1 = 0 ;
35654 PyObject * obj2 = 0 ;
35655 PyObject * obj3 = 0 ;
35656 PyObject * obj4 = 0 ;
35657 char * kwnames[] = {
35658 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35659 };
35660
35661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35663 if (!SWIG_IsOK(res1)) {
35664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35665 }
35666 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35668 if (!SWIG_IsOK(res2)) {
35669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35670 }
35671 arg2 = reinterpret_cast< wxWindow * >(argp2);
35672 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35673 if (!SWIG_IsOK(res3)) {
35674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35675 }
35676 if (!argp3) {
35677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35678 }
35679 arg3 = reinterpret_cast< wxDC * >(argp3);
35680 {
35681 arg4 = &temp4;
35682 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35683 }
35684 if (obj4) {
35685 ecode5 = SWIG_AsVal_int(obj4, &val5);
35686 if (!SWIG_IsOK(ecode5)) {
35687 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35688 }
35689 arg5 = static_cast< int >(val5);
35690 }
35691 {
35692 PyThreadState* __tstate = wxPyBeginAllowThreads();
35693 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35694 wxPyEndAllowThreads(__tstate);
35695 if (PyErr_Occurred()) SWIG_fail;
35696 }
35697 resultobj = SWIG_Py_Void();
35698 return resultobj;
35699fail:
35700 return NULL;
35701}
35702
35703
35704SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35705 PyObject *resultobj = 0;
35706 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35707 wxWindow *arg2 = (wxWindow *) 0 ;
35708 wxDC *arg3 = 0 ;
35709 wxRect *arg4 = 0 ;
35710 int arg5 = (int) 0 ;
35711 void *argp1 = 0 ;
35712 int res1 = 0 ;
35713 void *argp2 = 0 ;
35714 int res2 = 0 ;
35715 void *argp3 = 0 ;
35716 int res3 = 0 ;
35717 wxRect temp4 ;
35718 int val5 ;
35719 int ecode5 = 0 ;
35720 PyObject * obj0 = 0 ;
35721 PyObject * obj1 = 0 ;
35722 PyObject * obj2 = 0 ;
35723 PyObject * obj3 = 0 ;
35724 PyObject * obj4 = 0 ;
35725 char * kwnames[] = {
35726 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35727 };
35728
35729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35733 }
35734 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35736 if (!SWIG_IsOK(res2)) {
35737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35738 }
35739 arg2 = reinterpret_cast< wxWindow * >(argp2);
35740 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35741 if (!SWIG_IsOK(res3)) {
35742 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35743 }
35744 if (!argp3) {
35745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35746 }
35747 arg3 = reinterpret_cast< wxDC * >(argp3);
35748 {
35749 arg4 = &temp4;
35750 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35751 }
35752 if (obj4) {
35753 ecode5 = SWIG_AsVal_int(obj4, &val5);
35754 if (!SWIG_IsOK(ecode5)) {
35755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35756 }
35757 arg5 = static_cast< int >(val5);
35758 }
35759 {
35760 PyThreadState* __tstate = wxPyBeginAllowThreads();
35761 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35762 wxPyEndAllowThreads(__tstate);
35763 if (PyErr_Occurred()) SWIG_fail;
35764 }
35765 resultobj = SWIG_Py_Void();
35766 return resultobj;
35767fail:
35768 return NULL;
35769}
35770
35771
35772SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35773 PyObject *resultobj = 0;
35774 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35775 wxWindow *arg2 = (wxWindow *) 0 ;
35776 wxDC *arg3 = 0 ;
35777 wxRect *arg4 = 0 ;
35778 int arg5 = (int) 0 ;
35779 void *argp1 = 0 ;
35780 int res1 = 0 ;
35781 void *argp2 = 0 ;
35782 int res2 = 0 ;
35783 void *argp3 = 0 ;
35784 int res3 = 0 ;
35785 wxRect temp4 ;
35786 int val5 ;
35787 int ecode5 = 0 ;
35788 PyObject * obj0 = 0 ;
35789 PyObject * obj1 = 0 ;
35790 PyObject * obj2 = 0 ;
35791 PyObject * obj3 = 0 ;
35792 PyObject * obj4 = 0 ;
35793 char * kwnames[] = {
35794 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35795 };
35796
f460c29d 35797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35799 if (!SWIG_IsOK(res1)) {
f460c29d 35800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35801 }
35802 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35804 if (!SWIG_IsOK(res2)) {
f460c29d 35805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35806 }
35807 arg2 = reinterpret_cast< wxWindow * >(argp2);
35808 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35809 if (!SWIG_IsOK(res3)) {
f460c29d 35810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35811 }
35812 if (!argp3) {
f460c29d 35813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35814 }
35815 arg3 = reinterpret_cast< wxDC * >(argp3);
35816 {
35817 arg4 = &temp4;
35818 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35819 }
35820 if (obj4) {
35821 ecode5 = SWIG_AsVal_int(obj4, &val5);
35822 if (!SWIG_IsOK(ecode5)) {
f460c29d 35823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35824 }
35825 arg5 = static_cast< int >(val5);
35826 }
35827 {
35828 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35829 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35830 wxPyEndAllowThreads(__tstate);
35831 if (PyErr_Occurred()) SWIG_fail;
35832 }
35833 resultobj = SWIG_Py_Void();
35834 return resultobj;
35835fail:
35836 return NULL;
35837}
35838
35839
554f62e9
RD
35840SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35841 PyObject *resultobj = 0;
35842 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35843 wxWindow *arg2 = (wxWindow *) 0 ;
35844 SwigValueWrapper<wxSplitterRenderParams > result;
35845 void *argp1 = 0 ;
35846 int res1 = 0 ;
35847 void *argp2 = 0 ;
35848 int res2 = 0 ;
35849 PyObject * obj0 = 0 ;
35850 PyObject * obj1 = 0 ;
35851 char * kwnames[] = {
35852 (char *) "self",(char *) "win", NULL
35853 };
35854
35855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35857 if (!SWIG_IsOK(res1)) {
35858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35859 }
35860 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35862 if (!SWIG_IsOK(res2)) {
35863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35864 }
35865 arg2 = reinterpret_cast< wxWindow * >(argp2);
35866 {
35867 PyThreadState* __tstate = wxPyBeginAllowThreads();
35868 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35869 wxPyEndAllowThreads(__tstate);
35870 if (PyErr_Occurred()) SWIG_fail;
35871 }
35872 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35873 return resultobj;
35874fail:
35875 return NULL;
35876}
35877
35878
35879SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35880 PyObject *resultobj = 0;
35881 wxRendererNative *result = 0 ;
35882
35883 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35884 {
704eda0c 35885 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35886 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35887 {
554f62e9
RD
35888 wxRendererNative &_result_ref = wxRendererNative::Get();
35889 result = (wxRendererNative *) &_result_ref;
093d3ff1 35890 }
554f62e9
RD
35891 wxPyEndAllowThreads(__tstate);
35892 if (PyErr_Occurred()) SWIG_fail;
35893 }
35894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35895 return resultobj;
35896fail:
35897 return NULL;
35898}
35899
35900
35901SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35902 PyObject *resultobj = 0;
35903 wxRendererNative *result = 0 ;
35904
35905 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35906 {
704eda0c 35907 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35908 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35909 {
554f62e9
RD
35910 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35911 result = (wxRendererNative *) &_result_ref;
be9b1dca 35912 }
554f62e9
RD
35913 wxPyEndAllowThreads(__tstate);
35914 if (PyErr_Occurred()) SWIG_fail;
35915 }
35916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35917 return resultobj;
35918fail:
35919 return NULL;
35920}
35921
35922
35923SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35924 PyObject *resultobj = 0;
35925 wxRendererNative *result = 0 ;
35926
35927 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35928 {
704eda0c 35929 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35930 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35931 {
554f62e9
RD
35932 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35933 result = (wxRendererNative *) &_result_ref;
be9b1dca 35934 }
554f62e9
RD
35935 wxPyEndAllowThreads(__tstate);
35936 if (PyErr_Occurred()) SWIG_fail;
35937 }
35938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35939 return resultobj;
35940fail:
35941 return NULL;
35942}
35943
35944
35945SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35946 PyObject *resultobj = 0;
35947 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35948 wxRendererNative *result = 0 ;
35949 void *argp1 = 0 ;
35950 int res1 = 0 ;
35951 PyObject * obj0 = 0 ;
35952 char * kwnames[] = {
35953 (char *) "renderer", NULL
35954 };
35955
35956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35958 if (!SWIG_IsOK(res1)) {
35959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35960 }
35961 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35962 {
704eda0c 35963 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
35964 PyThreadState* __tstate = wxPyBeginAllowThreads();
35965 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35966 wxPyEndAllowThreads(__tstate);
35967 if (PyErr_Occurred()) SWIG_fail;
35968 }
35969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35970 return resultobj;
35971fail:
35972 return NULL;
35973}
35974
35975
35976SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35977 PyObject *resultobj = 0;
35978 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35979 SwigValueWrapper<wxRendererVersion > result;
35980 void *argp1 = 0 ;
35981 int res1 = 0 ;
35982 PyObject *swig_obj[1] ;
35983
35984 if (!args) SWIG_fail;
35985 swig_obj[0] = args;
35986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35987 if (!SWIG_IsOK(res1)) {
35988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35989 }
35990 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35991 {
35992 PyThreadState* __tstate = wxPyBeginAllowThreads();
35993 result = ((wxRendererNative const *)arg1)->GetVersion();
35994 wxPyEndAllowThreads(__tstate);
35995 if (PyErr_Occurred()) SWIG_fail;
35996 }
35997 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35998 return resultobj;
35999fail:
36000 return NULL;
36001}
36002
36003
36004SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36005 PyObject *obj;
36006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36007 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36008 return SWIG_Py_Void();
36009}
36010
27e45892
RD
36011SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36012 PyObject *resultobj = 0;
36013 wxPseudoDC *result = 0 ;
36014
36015 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36016 {
36017 PyThreadState* __tstate = wxPyBeginAllowThreads();
36018 result = (wxPseudoDC *)new wxPseudoDC();
36019 wxPyEndAllowThreads(__tstate);
36020 if (PyErr_Occurred()) SWIG_fail;
36021 }
36022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36023 return resultobj;
36024fail:
36025 return NULL;
36026}
36027
36028
36029SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36030 PyObject *resultobj = 0;
36031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36032 void *argp1 = 0 ;
36033 int res1 = 0 ;
36034 PyObject *swig_obj[1] ;
36035
36036 if (!args) SWIG_fail;
36037 swig_obj[0] = args;
36038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36039 if (!SWIG_IsOK(res1)) {
36040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36041 }
36042 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36043 {
36044 PyThreadState* __tstate = wxPyBeginAllowThreads();
36045 (arg1)->BeginDrawing();
36046 wxPyEndAllowThreads(__tstate);
36047 if (PyErr_Occurred()) SWIG_fail;
36048 }
36049 resultobj = SWIG_Py_Void();
36050 return resultobj;
36051fail:
36052 return NULL;
36053}
36054
36055
36056SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36057 PyObject *resultobj = 0;
36058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36059 void *argp1 = 0 ;
36060 int res1 = 0 ;
36061 PyObject *swig_obj[1] ;
36062
36063 if (!args) SWIG_fail;
36064 swig_obj[0] = args;
36065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36066 if (!SWIG_IsOK(res1)) {
36067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36068 }
36069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36070 {
36071 PyThreadState* __tstate = wxPyBeginAllowThreads();
36072 (arg1)->EndDrawing();
36073 wxPyEndAllowThreads(__tstate);
36074 if (PyErr_Occurred()) SWIG_fail;
36075 }
36076 resultobj = SWIG_Py_Void();
36077 return resultobj;
36078fail:
36079 return NULL;
36080}
36081
36082
36083SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36084 PyObject *resultobj = 0;
36085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36086 void *argp1 = 0 ;
36087 int res1 = 0 ;
36088 PyObject *swig_obj[1] ;
36089
36090 if (!args) SWIG_fail;
36091 swig_obj[0] = args;
36092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36093 if (!SWIG_IsOK(res1)) {
36094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36095 }
36096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36097 {
36098 PyThreadState* __tstate = wxPyBeginAllowThreads();
36099 delete arg1;
36100
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_Py_Void();
36105 return resultobj;
36106fail:
36107 return NULL;
36108}
36109
36110
36111SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36112 PyObject *resultobj = 0;
36113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36114 void *argp1 = 0 ;
36115 int res1 = 0 ;
36116 PyObject *swig_obj[1] ;
36117
36118 if (!args) SWIG_fail;
36119 swig_obj[0] = args;
36120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 {
36126 PyThreadState* __tstate = wxPyBeginAllowThreads();
36127 (arg1)->RemoveAll();
36128 wxPyEndAllowThreads(__tstate);
36129 if (PyErr_Occurred()) SWIG_fail;
36130 }
36131 resultobj = SWIG_Py_Void();
36132 return resultobj;
36133fail:
36134 return NULL;
36135}
36136
36137
36138SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36139 PyObject *resultobj = 0;
36140 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36141 int result;
36142 void *argp1 = 0 ;
36143 int res1 = 0 ;
36144 PyObject *swig_obj[1] ;
36145
36146 if (!args) SWIG_fail;
36147 swig_obj[0] = args;
36148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36149 if (!SWIG_IsOK(res1)) {
36150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36151 }
36152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36153 {
36154 PyThreadState* __tstate = wxPyBeginAllowThreads();
36155 result = (int)(arg1)->GetLen();
36156 wxPyEndAllowThreads(__tstate);
36157 if (PyErr_Occurred()) SWIG_fail;
36158 }
36159 resultobj = SWIG_From_int(static_cast< int >(result));
36160 return resultobj;
36161fail:
36162 return NULL;
36163}
36164
36165
36166SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36167 PyObject *resultobj = 0;
36168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36169 int arg2 ;
36170 void *argp1 = 0 ;
36171 int res1 = 0 ;
36172 int val2 ;
36173 int ecode2 = 0 ;
36174 PyObject * obj0 = 0 ;
36175 PyObject * obj1 = 0 ;
36176 char * kwnames[] = {
36177 (char *) "self",(char *) "id", NULL
36178 };
36179
36180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36182 if (!SWIG_IsOK(res1)) {
36183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36184 }
36185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36186 ecode2 = SWIG_AsVal_int(obj1, &val2);
36187 if (!SWIG_IsOK(ecode2)) {
36188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36189 }
36190 arg2 = static_cast< int >(val2);
36191 {
36192 PyThreadState* __tstate = wxPyBeginAllowThreads();
36193 (arg1)->SetId(arg2);
36194 wxPyEndAllowThreads(__tstate);
36195 if (PyErr_Occurred()) SWIG_fail;
36196 }
36197 resultobj = SWIG_Py_Void();
36198 return resultobj;
36199fail:
36200 return NULL;
36201}
36202
36203
36204SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36205 PyObject *resultobj = 0;
36206 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36207 int arg2 ;
36208 void *argp1 = 0 ;
36209 int res1 = 0 ;
36210 int val2 ;
36211 int ecode2 = 0 ;
36212 PyObject * obj0 = 0 ;
36213 PyObject * obj1 = 0 ;
36214 char * kwnames[] = {
36215 (char *) "self",(char *) "id", NULL
36216 };
36217
36218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36224 ecode2 = SWIG_AsVal_int(obj1, &val2);
36225 if (!SWIG_IsOK(ecode2)) {
36226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36227 }
36228 arg2 = static_cast< int >(val2);
36229 {
36230 PyThreadState* __tstate = wxPyBeginAllowThreads();
36231 (arg1)->ClearId(arg2);
36232 wxPyEndAllowThreads(__tstate);
36233 if (PyErr_Occurred()) SWIG_fail;
36234 }
36235 resultobj = SWIG_Py_Void();
36236 return resultobj;
36237fail:
36238 return NULL;
36239}
36240
36241
36242SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36243 PyObject *resultobj = 0;
36244 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36245 int arg2 ;
36246 void *argp1 = 0 ;
36247 int res1 = 0 ;
36248 int val2 ;
36249 int ecode2 = 0 ;
36250 PyObject * obj0 = 0 ;
36251 PyObject * obj1 = 0 ;
36252 char * kwnames[] = {
36253 (char *) "self",(char *) "id", NULL
36254 };
36255
36256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36258 if (!SWIG_IsOK(res1)) {
36259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36260 }
36261 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36262 ecode2 = SWIG_AsVal_int(obj1, &val2);
36263 if (!SWIG_IsOK(ecode2)) {
36264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36265 }
36266 arg2 = static_cast< int >(val2);
36267 {
36268 PyThreadState* __tstate = wxPyBeginAllowThreads();
36269 (arg1)->RemoveId(arg2);
36270 wxPyEndAllowThreads(__tstate);
36271 if (PyErr_Occurred()) SWIG_fail;
36272 }
36273 resultobj = SWIG_Py_Void();
36274 return resultobj;
36275fail:
36276 return NULL;
36277}
36278
36279
36280SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36281 PyObject *resultobj = 0;
36282 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36283 int arg2 ;
36284 int arg3 ;
36285 int arg4 ;
36286 void *argp1 = 0 ;
36287 int res1 = 0 ;
36288 int val2 ;
36289 int ecode2 = 0 ;
36290 int val3 ;
36291 int ecode3 = 0 ;
36292 int val4 ;
36293 int ecode4 = 0 ;
36294 PyObject * obj0 = 0 ;
36295 PyObject * obj1 = 0 ;
36296 PyObject * obj2 = 0 ;
36297 PyObject * obj3 = 0 ;
36298 char * kwnames[] = {
36299 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36300 };
36301
36302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36304 if (!SWIG_IsOK(res1)) {
36305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36306 }
36307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36308 ecode2 = SWIG_AsVal_int(obj1, &val2);
36309 if (!SWIG_IsOK(ecode2)) {
36310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36311 }
36312 arg2 = static_cast< int >(val2);
36313 ecode3 = SWIG_AsVal_int(obj2, &val3);
36314 if (!SWIG_IsOK(ecode3)) {
36315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36316 }
36317 arg3 = static_cast< int >(val3);
36318 ecode4 = SWIG_AsVal_int(obj3, &val4);
36319 if (!SWIG_IsOK(ecode4)) {
36320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36321 }
36322 arg4 = static_cast< int >(val4);
36323 {
36324 PyThreadState* __tstate = wxPyBeginAllowThreads();
36325 (arg1)->TranslateId(arg2,arg3,arg4);
36326 wxPyEndAllowThreads(__tstate);
36327 if (PyErr_Occurred()) SWIG_fail;
36328 }
36329 resultobj = SWIG_Py_Void();
36330 return resultobj;
36331fail:
36332 return NULL;
36333}
36334
36335
72ef6efb
RD
36336SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36337 PyObject *resultobj = 0;
36338 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36339 int arg2 ;
36340 bool arg3 = (bool) true ;
36341 void *argp1 = 0 ;
36342 int res1 = 0 ;
36343 int val2 ;
36344 int ecode2 = 0 ;
36345 bool val3 ;
36346 int ecode3 = 0 ;
36347 PyObject * obj0 = 0 ;
36348 PyObject * obj1 = 0 ;
36349 PyObject * obj2 = 0 ;
36350 char * kwnames[] = {
36351 (char *) "self",(char *) "id",(char *) "greyout", NULL
36352 };
36353
36354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36356 if (!SWIG_IsOK(res1)) {
36357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36358 }
36359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36360 ecode2 = SWIG_AsVal_int(obj1, &val2);
36361 if (!SWIG_IsOK(ecode2)) {
36362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36363 }
36364 arg2 = static_cast< int >(val2);
36365 if (obj2) {
36366 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36367 if (!SWIG_IsOK(ecode3)) {
36368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36369 }
36370 arg3 = static_cast< bool >(val3);
36371 }
36372 {
36373 PyThreadState* __tstate = wxPyBeginAllowThreads();
36374 (arg1)->SetIdGreyedOut(arg2,arg3);
36375 wxPyEndAllowThreads(__tstate);
36376 if (PyErr_Occurred()) SWIG_fail;
36377 }
36378 resultobj = SWIG_Py_Void();
36379 return resultobj;
36380fail:
36381 return NULL;
36382}
36383
36384
36385SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36386 PyObject *resultobj = 0;
36387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36388 int arg2 ;
36389 bool result;
36390 void *argp1 = 0 ;
36391 int res1 = 0 ;
36392 int val2 ;
36393 int ecode2 = 0 ;
36394 PyObject * obj0 = 0 ;
36395 PyObject * obj1 = 0 ;
36396 char * kwnames[] = {
36397 (char *) "self",(char *) "id", NULL
36398 };
36399
36400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36402 if (!SWIG_IsOK(res1)) {
36403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36404 }
36405 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36406 ecode2 = SWIG_AsVal_int(obj1, &val2);
36407 if (!SWIG_IsOK(ecode2)) {
36408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36409 }
36410 arg2 = static_cast< int >(val2);
36411 {
36412 PyThreadState* __tstate = wxPyBeginAllowThreads();
36413 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36414 wxPyEndAllowThreads(__tstate);
36415 if (PyErr_Occurred()) SWIG_fail;
36416 }
36417 {
36418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36419 }
36420 return resultobj;
36421fail:
36422 return NULL;
36423}
36424
36425
36426SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36427 PyObject *resultobj = 0;
36428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36429 int arg2 ;
36430 int arg3 ;
36431 int arg4 = (int) 1 ;
59ccbf7f
RD
36432 wxColour const &arg5_defvalue = *wxWHITE ;
36433 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
36434 PyObject *result = 0 ;
36435 void *argp1 = 0 ;
36436 int res1 = 0 ;
36437 int val2 ;
36438 int ecode2 = 0 ;
36439 int val3 ;
36440 int ecode3 = 0 ;
36441 int val4 ;
36442 int ecode4 = 0 ;
59ccbf7f 36443 wxColour temp5 ;
72ef6efb
RD
36444 PyObject * obj0 = 0 ;
36445 PyObject * obj1 = 0 ;
36446 PyObject * obj2 = 0 ;
36447 PyObject * obj3 = 0 ;
36448 PyObject * obj4 = 0 ;
36449 char * kwnames[] = {
36450 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36451 };
36452
36453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36455 if (!SWIG_IsOK(res1)) {
36456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36457 }
36458 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36459 ecode2 = SWIG_AsVal_int(obj1, &val2);
36460 if (!SWIG_IsOK(ecode2)) {
36461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36462 }
36463 arg2 = static_cast< int >(val2);
36464 ecode3 = SWIG_AsVal_int(obj2, &val3);
36465 if (!SWIG_IsOK(ecode3)) {
36466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36467 }
36468 arg3 = static_cast< int >(val3);
36469 if (obj3) {
36470 ecode4 = SWIG_AsVal_int(obj3, &val4);
36471 if (!SWIG_IsOK(ecode4)) {
36472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36473 }
36474 arg4 = static_cast< int >(val4);
36475 }
36476 if (obj4) {
59ccbf7f
RD
36477 {
36478 arg5 = &temp5;
36479 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 36480 }
72ef6efb
RD
36481 }
36482 {
59ccbf7f 36483 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
36484 if (PyErr_Occurred()) SWIG_fail;
36485 }
36486 resultobj = result;
36487 return resultobj;
36488fail:
36489 return NULL;
36490}
36491
36492
36493SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36494 PyObject *resultobj = 0;
36495 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36496 int arg2 ;
36497 int arg3 ;
36498 PyObject *result = 0 ;
36499 void *argp1 = 0 ;
36500 int res1 = 0 ;
36501 int val2 ;
36502 int ecode2 = 0 ;
36503 int val3 ;
36504 int ecode3 = 0 ;
36505 PyObject * obj0 = 0 ;
36506 PyObject * obj1 = 0 ;
36507 PyObject * obj2 = 0 ;
36508 char * kwnames[] = {
36509 (char *) "self",(char *) "x",(char *) "y", NULL
36510 };
36511
36512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36514 if (!SWIG_IsOK(res1)) {
36515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36516 }
36517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36518 ecode2 = SWIG_AsVal_int(obj1, &val2);
36519 if (!SWIG_IsOK(ecode2)) {
36520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36521 }
36522 arg2 = static_cast< int >(val2);
36523 ecode3 = SWIG_AsVal_int(obj2, &val3);
36524 if (!SWIG_IsOK(ecode3)) {
36525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36526 }
36527 arg3 = static_cast< int >(val3);
36528 {
36529 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36530 if (PyErr_Occurred()) SWIG_fail;
36531 }
36532 resultobj = result;
36533 return resultobj;
36534fail:
36535 return NULL;
36536}
36537
36538
27e45892
RD
36539SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36540 PyObject *resultobj = 0;
36541 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36542 int arg2 ;
36543 wxDC *arg3 = (wxDC *) 0 ;
36544 void *argp1 = 0 ;
36545 int res1 = 0 ;
36546 int val2 ;
36547 int ecode2 = 0 ;
36548 void *argp3 = 0 ;
36549 int res3 = 0 ;
36550 PyObject * obj0 = 0 ;
36551 PyObject * obj1 = 0 ;
36552 PyObject * obj2 = 0 ;
36553 char * kwnames[] = {
36554 (char *) "self",(char *) "id",(char *) "dc", NULL
36555 };
36556
36557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36559 if (!SWIG_IsOK(res1)) {
36560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36561 }
36562 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36563 ecode2 = SWIG_AsVal_int(obj1, &val2);
36564 if (!SWIG_IsOK(ecode2)) {
36565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36566 }
36567 arg2 = static_cast< int >(val2);
36568 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36569 if (!SWIG_IsOK(res3)) {
36570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36571 }
36572 arg3 = reinterpret_cast< wxDC * >(argp3);
36573 {
36574 PyThreadState* __tstate = wxPyBeginAllowThreads();
36575 (arg1)->DrawIdToDC(arg2,arg3);
36576 wxPyEndAllowThreads(__tstate);
36577 if (PyErr_Occurred()) SWIG_fail;
36578 }
36579 resultobj = SWIG_Py_Void();
36580 return resultobj;
36581fail:
36582 return NULL;
36583}
36584
36585
36586SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36587 PyObject *resultobj = 0;
36588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36589 int arg2 ;
36590 wxRect *arg3 = 0 ;
36591 void *argp1 = 0 ;
36592 int res1 = 0 ;
36593 int val2 ;
36594 int ecode2 = 0 ;
36595 wxRect temp3 ;
36596 PyObject * obj0 = 0 ;
36597 PyObject * obj1 = 0 ;
36598 PyObject * obj2 = 0 ;
36599 char * kwnames[] = {
36600 (char *) "self",(char *) "id",(char *) "rect", NULL
36601 };
36602
36603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36605 if (!SWIG_IsOK(res1)) {
36606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36607 }
36608 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36609 ecode2 = SWIG_AsVal_int(obj1, &val2);
36610 if (!SWIG_IsOK(ecode2)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36612 }
36613 arg2 = static_cast< int >(val2);
36614 {
36615 arg3 = &temp3;
36616 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36617 }
36618 {
36619 PyThreadState* __tstate = wxPyBeginAllowThreads();
36620 (arg1)->SetIdBounds(arg2,*arg3);
36621 wxPyEndAllowThreads(__tstate);
36622 if (PyErr_Occurred()) SWIG_fail;
36623 }
36624 resultobj = SWIG_Py_Void();
36625 return resultobj;
36626fail:
36627 return NULL;
36628}
36629
36630
36631SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36632 PyObject *resultobj = 0;
36633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36634 int arg2 ;
36635 wxRect result;
36636 void *argp1 = 0 ;
36637 int res1 = 0 ;
36638 int val2 ;
36639 int ecode2 = 0 ;
36640 PyObject * obj0 = 0 ;
36641 PyObject * obj1 = 0 ;
36642 char * kwnames[] = {
36643 (char *) "self",(char *) "id", NULL
36644 };
36645
36646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36648 if (!SWIG_IsOK(res1)) {
36649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36650 }
36651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36652 ecode2 = SWIG_AsVal_int(obj1, &val2);
36653 if (!SWIG_IsOK(ecode2)) {
36654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36655 }
36656 arg2 = static_cast< int >(val2);
36657 {
36658 PyThreadState* __tstate = wxPyBeginAllowThreads();
36659 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36660 wxPyEndAllowThreads(__tstate);
36661 if (PyErr_Occurred()) SWIG_fail;
36662 }
36663 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36664 return resultobj;
36665fail:
36666 return NULL;
36667}
36668
36669
36670SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36671 PyObject *resultobj = 0;
36672 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36673 wxDC *arg2 = (wxDC *) 0 ;
36674 wxRect *arg3 = 0 ;
36675 void *argp1 = 0 ;
36676 int res1 = 0 ;
36677 void *argp2 = 0 ;
36678 int res2 = 0 ;
36679 wxRect temp3 ;
36680 PyObject * obj0 = 0 ;
36681 PyObject * obj1 = 0 ;
36682 PyObject * obj2 = 0 ;
36683 char * kwnames[] = {
36684 (char *) "self",(char *) "dc",(char *) "rect", NULL
36685 };
36686
36687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36689 if (!SWIG_IsOK(res1)) {
36690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36691 }
36692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36694 if (!SWIG_IsOK(res2)) {
36695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36696 }
36697 arg2 = reinterpret_cast< wxDC * >(argp2);
36698 {
36699 arg3 = &temp3;
36700 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36701 }
36702 {
36703 PyThreadState* __tstate = wxPyBeginAllowThreads();
36704 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36705 wxPyEndAllowThreads(__tstate);
36706 if (PyErr_Occurred()) SWIG_fail;
36707 }
36708 resultobj = SWIG_Py_Void();
36709 return resultobj;
36710fail:
36711 return NULL;
36712}
36713
36714
36715SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36716 PyObject *resultobj = 0;
36717 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36718 wxDC *arg2 = (wxDC *) 0 ;
36719 wxRegion *arg3 = 0 ;
36720 void *argp1 = 0 ;
36721 int res1 = 0 ;
36722 void *argp2 = 0 ;
36723 int res2 = 0 ;
36724 void *argp3 = 0 ;
36725 int res3 = 0 ;
36726 PyObject * obj0 = 0 ;
36727 PyObject * obj1 = 0 ;
36728 PyObject * obj2 = 0 ;
36729 char * kwnames[] = {
36730 (char *) "self",(char *) "dc",(char *) "region", NULL
36731 };
36732
36733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36735 if (!SWIG_IsOK(res1)) {
36736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36737 }
36738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36740 if (!SWIG_IsOK(res2)) {
36741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36742 }
36743 arg2 = reinterpret_cast< wxDC * >(argp2);
36744 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36745 if (!SWIG_IsOK(res3)) {
36746 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36747 }
36748 if (!argp3) {
36749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36750 }
36751 arg3 = reinterpret_cast< wxRegion * >(argp3);
36752 {
36753 PyThreadState* __tstate = wxPyBeginAllowThreads();
36754 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36755 wxPyEndAllowThreads(__tstate);
36756 if (PyErr_Occurred()) SWIG_fail;
36757 }
36758 resultobj = SWIG_Py_Void();
36759 return resultobj;
36760fail:
36761 return NULL;
36762}
36763
36764
36765SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36766 PyObject *resultobj = 0;
36767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36768 wxDC *arg2 = (wxDC *) 0 ;
36769 void *argp1 = 0 ;
36770 int res1 = 0 ;
36771 void *argp2 = 0 ;
36772 int res2 = 0 ;
36773 PyObject * obj0 = 0 ;
36774 PyObject * obj1 = 0 ;
36775 char * kwnames[] = {
36776 (char *) "self",(char *) "dc", NULL
36777 };
36778
36779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36781 if (!SWIG_IsOK(res1)) {
36782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36783 }
36784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36786 if (!SWIG_IsOK(res2)) {
36787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36788 }
36789 arg2 = reinterpret_cast< wxDC * >(argp2);
36790 {
36791 PyThreadState* __tstate = wxPyBeginAllowThreads();
36792 (arg1)->DrawToDC(arg2);
36793 wxPyEndAllowThreads(__tstate);
36794 if (PyErr_Occurred()) SWIG_fail;
36795 }
36796 resultobj = SWIG_Py_Void();
36797 return resultobj;
36798fail:
36799 return NULL;
36800}
36801
36802
36803SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36804 PyObject *resultobj = 0;
36805 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36806 int arg2 ;
36807 int arg3 ;
36808 wxColour *arg4 = 0 ;
36809 int arg5 = (int) wxFLOOD_SURFACE ;
36810 void *argp1 = 0 ;
36811 int res1 = 0 ;
36812 int val2 ;
36813 int ecode2 = 0 ;
36814 int val3 ;
36815 int ecode3 = 0 ;
36816 wxColour temp4 ;
36817 int val5 ;
36818 int ecode5 = 0 ;
36819 PyObject * obj0 = 0 ;
36820 PyObject * obj1 = 0 ;
36821 PyObject * obj2 = 0 ;
36822 PyObject * obj3 = 0 ;
36823 PyObject * obj4 = 0 ;
36824 char * kwnames[] = {
36825 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36826 };
36827
36828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36830 if (!SWIG_IsOK(res1)) {
36831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36832 }
36833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36834 ecode2 = SWIG_AsVal_int(obj1, &val2);
36835 if (!SWIG_IsOK(ecode2)) {
36836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36837 }
36838 arg2 = static_cast< int >(val2);
36839 ecode3 = SWIG_AsVal_int(obj2, &val3);
36840 if (!SWIG_IsOK(ecode3)) {
36841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36842 }
36843 arg3 = static_cast< int >(val3);
36844 {
36845 arg4 = &temp4;
36846 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36847 }
36848 if (obj4) {
36849 ecode5 = SWIG_AsVal_int(obj4, &val5);
36850 if (!SWIG_IsOK(ecode5)) {
36851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36852 }
36853 arg5 = static_cast< int >(val5);
36854 }
36855 {
36856 PyThreadState* __tstate = wxPyBeginAllowThreads();
36857 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36858 wxPyEndAllowThreads(__tstate);
36859 if (PyErr_Occurred()) SWIG_fail;
36860 }
36861 resultobj = SWIG_Py_Void();
36862 return resultobj;
36863fail:
36864 return NULL;
36865}
36866
36867
36868SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36869 PyObject *resultobj = 0;
36870 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36871 wxPoint *arg2 = 0 ;
36872 wxColour *arg3 = 0 ;
36873 int arg4 = (int) wxFLOOD_SURFACE ;
36874 void *argp1 = 0 ;
36875 int res1 = 0 ;
36876 wxPoint temp2 ;
36877 wxColour temp3 ;
36878 int val4 ;
36879 int ecode4 = 0 ;
36880 PyObject * obj0 = 0 ;
36881 PyObject * obj1 = 0 ;
36882 PyObject * obj2 = 0 ;
36883 PyObject * obj3 = 0 ;
36884 char * kwnames[] = {
36885 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36886 };
36887
36888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36890 if (!SWIG_IsOK(res1)) {
36891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36892 }
36893 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36894 {
36895 arg2 = &temp2;
36896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36897 }
36898 {
36899 arg3 = &temp3;
36900 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36901 }
36902 if (obj3) {
36903 ecode4 = SWIG_AsVal_int(obj3, &val4);
36904 if (!SWIG_IsOK(ecode4)) {
36905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36906 }
36907 arg4 = static_cast< int >(val4);
36908 }
36909 {
36910 PyThreadState* __tstate = wxPyBeginAllowThreads();
36911 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36912 wxPyEndAllowThreads(__tstate);
36913 if (PyErr_Occurred()) SWIG_fail;
36914 }
36915 resultobj = SWIG_Py_Void();
36916 return resultobj;
36917fail:
36918 return NULL;
36919}
36920
36921
36922SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36923 PyObject *resultobj = 0;
36924 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36925 int arg2 ;
36926 int arg3 ;
36927 int arg4 ;
36928 int arg5 ;
36929 void *argp1 = 0 ;
36930 int res1 = 0 ;
36931 int val2 ;
36932 int ecode2 = 0 ;
36933 int val3 ;
36934 int ecode3 = 0 ;
36935 int val4 ;
36936 int ecode4 = 0 ;
36937 int val5 ;
36938 int ecode5 = 0 ;
36939 PyObject * obj0 = 0 ;
36940 PyObject * obj1 = 0 ;
36941 PyObject * obj2 = 0 ;
36942 PyObject * obj3 = 0 ;
36943 PyObject * obj4 = 0 ;
36944 char * kwnames[] = {
36945 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36946 };
36947
36948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36950 if (!SWIG_IsOK(res1)) {
36951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36952 }
36953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36954 ecode2 = SWIG_AsVal_int(obj1, &val2);
36955 if (!SWIG_IsOK(ecode2)) {
36956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36957 }
36958 arg2 = static_cast< int >(val2);
36959 ecode3 = SWIG_AsVal_int(obj2, &val3);
36960 if (!SWIG_IsOK(ecode3)) {
36961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36962 }
36963 arg3 = static_cast< int >(val3);
36964 ecode4 = SWIG_AsVal_int(obj3, &val4);
36965 if (!SWIG_IsOK(ecode4)) {
36966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36967 }
36968 arg4 = static_cast< int >(val4);
36969 ecode5 = SWIG_AsVal_int(obj4, &val5);
36970 if (!SWIG_IsOK(ecode5)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36972 }
36973 arg5 = static_cast< int >(val5);
36974 {
36975 PyThreadState* __tstate = wxPyBeginAllowThreads();
36976 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36977 wxPyEndAllowThreads(__tstate);
36978 if (PyErr_Occurred()) SWIG_fail;
36979 }
36980 resultobj = SWIG_Py_Void();
36981 return resultobj;
36982fail:
36983 return NULL;
36984}
36985
36986
36987SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36988 PyObject *resultobj = 0;
36989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36990 wxPoint *arg2 = 0 ;
36991 wxPoint *arg3 = 0 ;
36992 void *argp1 = 0 ;
36993 int res1 = 0 ;
36994 wxPoint temp2 ;
36995 wxPoint temp3 ;
36996 PyObject * obj0 = 0 ;
36997 PyObject * obj1 = 0 ;
36998 PyObject * obj2 = 0 ;
36999 char * kwnames[] = {
37000 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37001 };
37002
37003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37005 if (!SWIG_IsOK(res1)) {
37006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37007 }
37008 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37009 {
37010 arg2 = &temp2;
37011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37012 }
37013 {
37014 arg3 = &temp3;
37015 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37016 }
37017 {
37018 PyThreadState* __tstate = wxPyBeginAllowThreads();
37019 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37020 wxPyEndAllowThreads(__tstate);
37021 if (PyErr_Occurred()) SWIG_fail;
37022 }
37023 resultobj = SWIG_Py_Void();
37024 return resultobj;
37025fail:
37026 return NULL;
37027}
37028
37029
37030SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37031 PyObject *resultobj = 0;
37032 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37033 int arg2 ;
37034 int arg3 ;
37035 void *argp1 = 0 ;
37036 int res1 = 0 ;
37037 int val2 ;
37038 int ecode2 = 0 ;
37039 int val3 ;
37040 int ecode3 = 0 ;
37041 PyObject * obj0 = 0 ;
37042 PyObject * obj1 = 0 ;
37043 PyObject * obj2 = 0 ;
37044 char * kwnames[] = {
37045 (char *) "self",(char *) "x",(char *) "y", NULL
37046 };
37047
37048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37050 if (!SWIG_IsOK(res1)) {
37051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37052 }
37053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37054 ecode2 = SWIG_AsVal_int(obj1, &val2);
37055 if (!SWIG_IsOK(ecode2)) {
37056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37057 }
37058 arg2 = static_cast< int >(val2);
37059 ecode3 = SWIG_AsVal_int(obj2, &val3);
37060 if (!SWIG_IsOK(ecode3)) {
37061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37062 }
37063 arg3 = static_cast< int >(val3);
37064 {
37065 PyThreadState* __tstate = wxPyBeginAllowThreads();
37066 (arg1)->CrossHair(arg2,arg3);
37067 wxPyEndAllowThreads(__tstate);
37068 if (PyErr_Occurred()) SWIG_fail;
37069 }
37070 resultobj = SWIG_Py_Void();
37071 return resultobj;
37072fail:
37073 return NULL;
37074}
37075
37076
37077SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37078 PyObject *resultobj = 0;
37079 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37080 wxPoint *arg2 = 0 ;
37081 void *argp1 = 0 ;
37082 int res1 = 0 ;
37083 wxPoint temp2 ;
37084 PyObject * obj0 = 0 ;
37085 PyObject * obj1 = 0 ;
37086 char * kwnames[] = {
37087 (char *) "self",(char *) "pt", NULL
37088 };
37089
37090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37092 if (!SWIG_IsOK(res1)) {
37093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37094 }
37095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37096 {
37097 arg2 = &temp2;
37098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37099 }
37100 {
37101 PyThreadState* __tstate = wxPyBeginAllowThreads();
37102 (arg1)->CrossHair((wxPoint const &)*arg2);
37103 wxPyEndAllowThreads(__tstate);
37104 if (PyErr_Occurred()) SWIG_fail;
37105 }
37106 resultobj = SWIG_Py_Void();
37107 return resultobj;
37108fail:
37109 return NULL;
37110}
37111
37112
37113SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37114 PyObject *resultobj = 0;
37115 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37116 int arg2 ;
37117 int arg3 ;
37118 int arg4 ;
37119 int arg5 ;
37120 int arg6 ;
37121 int arg7 ;
37122 void *argp1 = 0 ;
37123 int res1 = 0 ;
37124 int val2 ;
37125 int ecode2 = 0 ;
37126 int val3 ;
37127 int ecode3 = 0 ;
37128 int val4 ;
37129 int ecode4 = 0 ;
37130 int val5 ;
37131 int ecode5 = 0 ;
37132 int val6 ;
37133 int ecode6 = 0 ;
37134 int val7 ;
37135 int ecode7 = 0 ;
37136 PyObject * obj0 = 0 ;
37137 PyObject * obj1 = 0 ;
37138 PyObject * obj2 = 0 ;
37139 PyObject * obj3 = 0 ;
37140 PyObject * obj4 = 0 ;
37141 PyObject * obj5 = 0 ;
37142 PyObject * obj6 = 0 ;
37143 char * kwnames[] = {
37144 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37145 };
37146
37147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37149 if (!SWIG_IsOK(res1)) {
37150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37151 }
37152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37153 ecode2 = SWIG_AsVal_int(obj1, &val2);
37154 if (!SWIG_IsOK(ecode2)) {
37155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37156 }
37157 arg2 = static_cast< int >(val2);
37158 ecode3 = SWIG_AsVal_int(obj2, &val3);
37159 if (!SWIG_IsOK(ecode3)) {
37160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37161 }
37162 arg3 = static_cast< int >(val3);
37163 ecode4 = SWIG_AsVal_int(obj3, &val4);
37164 if (!SWIG_IsOK(ecode4)) {
37165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37166 }
37167 arg4 = static_cast< int >(val4);
37168 ecode5 = SWIG_AsVal_int(obj4, &val5);
37169 if (!SWIG_IsOK(ecode5)) {
37170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37171 }
37172 arg5 = static_cast< int >(val5);
37173 ecode6 = SWIG_AsVal_int(obj5, &val6);
37174 if (!SWIG_IsOK(ecode6)) {
37175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37176 }
37177 arg6 = static_cast< int >(val6);
37178 ecode7 = SWIG_AsVal_int(obj6, &val7);
37179 if (!SWIG_IsOK(ecode7)) {
37180 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37181 }
37182 arg7 = static_cast< int >(val7);
37183 {
37184 PyThreadState* __tstate = wxPyBeginAllowThreads();
37185 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 resultobj = SWIG_Py_Void();
37190 return resultobj;
37191fail:
37192 return NULL;
37193}
37194
37195
37196SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37197 PyObject *resultobj = 0;
37198 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37199 wxPoint *arg2 = 0 ;
37200 wxPoint *arg3 = 0 ;
37201 wxPoint *arg4 = 0 ;
37202 void *argp1 = 0 ;
37203 int res1 = 0 ;
37204 wxPoint temp2 ;
37205 wxPoint temp3 ;
37206 wxPoint temp4 ;
37207 PyObject * obj0 = 0 ;
37208 PyObject * obj1 = 0 ;
37209 PyObject * obj2 = 0 ;
37210 PyObject * obj3 = 0 ;
37211 char * kwnames[] = {
37212 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37213 };
37214
37215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37217 if (!SWIG_IsOK(res1)) {
37218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37219 }
37220 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37221 {
37222 arg2 = &temp2;
37223 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37224 }
37225 {
37226 arg3 = &temp3;
37227 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37228 }
37229 {
37230 arg4 = &temp4;
37231 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37232 }
37233 {
37234 PyThreadState* __tstate = wxPyBeginAllowThreads();
37235 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37236 wxPyEndAllowThreads(__tstate);
37237 if (PyErr_Occurred()) SWIG_fail;
37238 }
37239 resultobj = SWIG_Py_Void();
37240 return resultobj;
37241fail:
37242 return NULL;
37243}
37244
37245
37246SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37247 PyObject *resultobj = 0;
37248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37249 int arg2 ;
37250 int arg3 ;
37251 int arg4 ;
37252 int arg5 ;
37253 void *argp1 = 0 ;
37254 int res1 = 0 ;
37255 int val2 ;
37256 int ecode2 = 0 ;
37257 int val3 ;
37258 int ecode3 = 0 ;
37259 int val4 ;
37260 int ecode4 = 0 ;
37261 int val5 ;
37262 int ecode5 = 0 ;
37263 PyObject * obj0 = 0 ;
37264 PyObject * obj1 = 0 ;
37265 PyObject * obj2 = 0 ;
37266 PyObject * obj3 = 0 ;
37267 PyObject * obj4 = 0 ;
37268 char * kwnames[] = {
37269 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37270 };
37271
37272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37274 if (!SWIG_IsOK(res1)) {
37275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37276 }
37277 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37278 ecode2 = SWIG_AsVal_int(obj1, &val2);
37279 if (!SWIG_IsOK(ecode2)) {
37280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37281 }
37282 arg2 = static_cast< int >(val2);
37283 ecode3 = SWIG_AsVal_int(obj2, &val3);
37284 if (!SWIG_IsOK(ecode3)) {
37285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37286 }
37287 arg3 = static_cast< int >(val3);
37288 ecode4 = SWIG_AsVal_int(obj3, &val4);
37289 if (!SWIG_IsOK(ecode4)) {
37290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37291 }
37292 arg4 = static_cast< int >(val4);
37293 ecode5 = SWIG_AsVal_int(obj4, &val5);
37294 if (!SWIG_IsOK(ecode5)) {
37295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37296 }
37297 arg5 = static_cast< int >(val5);
37298 {
37299 PyThreadState* __tstate = wxPyBeginAllowThreads();
37300 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37301 wxPyEndAllowThreads(__tstate);
37302 if (PyErr_Occurred()) SWIG_fail;
37303 }
37304 resultobj = SWIG_Py_Void();
37305 return resultobj;
37306fail:
37307 return NULL;
37308}
37309
37310
37311SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37312 PyObject *resultobj = 0;
37313 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37314 wxRect *arg2 = 0 ;
37315 void *argp1 = 0 ;
37316 int res1 = 0 ;
37317 wxRect temp2 ;
37318 PyObject * obj0 = 0 ;
37319 PyObject * obj1 = 0 ;
37320 char * kwnames[] = {
37321 (char *) "self",(char *) "rect", NULL
37322 };
37323
37324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37326 if (!SWIG_IsOK(res1)) {
37327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37328 }
37329 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37330 {
37331 arg2 = &temp2;
37332 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37333 }
37334 {
37335 PyThreadState* __tstate = wxPyBeginAllowThreads();
37336 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37337 wxPyEndAllowThreads(__tstate);
37338 if (PyErr_Occurred()) SWIG_fail;
37339 }
37340 resultobj = SWIG_Py_Void();
37341 return resultobj;
37342fail:
37343 return NULL;
37344}
37345
37346
37347SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37348 PyObject *resultobj = 0;
37349 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37350 int arg2 ;
37351 int arg3 ;
37352 int arg4 ;
37353 int arg5 ;
37354 double arg6 ;
37355 double arg7 ;
37356 void *argp1 = 0 ;
37357 int res1 = 0 ;
37358 int val2 ;
37359 int ecode2 = 0 ;
37360 int val3 ;
37361 int ecode3 = 0 ;
37362 int val4 ;
37363 int ecode4 = 0 ;
37364 int val5 ;
37365 int ecode5 = 0 ;
37366 double val6 ;
37367 int ecode6 = 0 ;
37368 double val7 ;
37369 int ecode7 = 0 ;
37370 PyObject * obj0 = 0 ;
37371 PyObject * obj1 = 0 ;
37372 PyObject * obj2 = 0 ;
37373 PyObject * obj3 = 0 ;
37374 PyObject * obj4 = 0 ;
37375 PyObject * obj5 = 0 ;
37376 PyObject * obj6 = 0 ;
37377 char * kwnames[] = {
37378 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37379 };
37380
37381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37383 if (!SWIG_IsOK(res1)) {
37384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37385 }
37386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37387 ecode2 = SWIG_AsVal_int(obj1, &val2);
37388 if (!SWIG_IsOK(ecode2)) {
37389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37390 }
37391 arg2 = static_cast< int >(val2);
37392 ecode3 = SWIG_AsVal_int(obj2, &val3);
37393 if (!SWIG_IsOK(ecode3)) {
37394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37395 }
37396 arg3 = static_cast< int >(val3);
37397 ecode4 = SWIG_AsVal_int(obj3, &val4);
37398 if (!SWIG_IsOK(ecode4)) {
37399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37400 }
37401 arg4 = static_cast< int >(val4);
37402 ecode5 = SWIG_AsVal_int(obj4, &val5);
37403 if (!SWIG_IsOK(ecode5)) {
37404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37405 }
37406 arg5 = static_cast< int >(val5);
37407 ecode6 = SWIG_AsVal_double(obj5, &val6);
37408 if (!SWIG_IsOK(ecode6)) {
37409 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37410 }
37411 arg6 = static_cast< double >(val6);
37412 ecode7 = SWIG_AsVal_double(obj6, &val7);
37413 if (!SWIG_IsOK(ecode7)) {
37414 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37415 }
37416 arg7 = static_cast< double >(val7);
37417 {
37418 PyThreadState* __tstate = wxPyBeginAllowThreads();
37419 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37420 wxPyEndAllowThreads(__tstate);
37421 if (PyErr_Occurred()) SWIG_fail;
37422 }
37423 resultobj = SWIG_Py_Void();
37424 return resultobj;
37425fail:
37426 return NULL;
37427}
37428
37429
37430SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37431 PyObject *resultobj = 0;
37432 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37433 wxPoint *arg2 = 0 ;
37434 wxSize *arg3 = 0 ;
37435 double arg4 ;
37436 double arg5 ;
37437 void *argp1 = 0 ;
37438 int res1 = 0 ;
37439 wxPoint temp2 ;
37440 wxSize temp3 ;
37441 double val4 ;
37442 int ecode4 = 0 ;
37443 double val5 ;
37444 int ecode5 = 0 ;
37445 PyObject * obj0 = 0 ;
37446 PyObject * obj1 = 0 ;
37447 PyObject * obj2 = 0 ;
37448 PyObject * obj3 = 0 ;
37449 PyObject * obj4 = 0 ;
37450 char * kwnames[] = {
37451 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37452 };
37453
37454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37456 if (!SWIG_IsOK(res1)) {
37457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37458 }
37459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37460 {
37461 arg2 = &temp2;
37462 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37463 }
37464 {
37465 arg3 = &temp3;
37466 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37467 }
37468 ecode4 = SWIG_AsVal_double(obj3, &val4);
37469 if (!SWIG_IsOK(ecode4)) {
37470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37471 }
37472 arg4 = static_cast< double >(val4);
37473 ecode5 = SWIG_AsVal_double(obj4, &val5);
37474 if (!SWIG_IsOK(ecode5)) {
37475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37476 }
37477 arg5 = static_cast< double >(val5);
37478 {
37479 PyThreadState* __tstate = wxPyBeginAllowThreads();
37480 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37481 wxPyEndAllowThreads(__tstate);
37482 if (PyErr_Occurred()) SWIG_fail;
37483 }
37484 resultobj = SWIG_Py_Void();
37485 return resultobj;
37486fail:
37487 return NULL;
37488}
37489
37490
37491SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37492 PyObject *resultobj = 0;
37493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37494 int arg2 ;
37495 int arg3 ;
37496 void *argp1 = 0 ;
37497 int res1 = 0 ;
37498 int val2 ;
37499 int ecode2 = 0 ;
37500 int val3 ;
37501 int ecode3 = 0 ;
37502 PyObject * obj0 = 0 ;
37503 PyObject * obj1 = 0 ;
37504 PyObject * obj2 = 0 ;
37505 char * kwnames[] = {
37506 (char *) "self",(char *) "x",(char *) "y", NULL
37507 };
37508
37509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37511 if (!SWIG_IsOK(res1)) {
37512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37513 }
37514 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37515 ecode2 = SWIG_AsVal_int(obj1, &val2);
37516 if (!SWIG_IsOK(ecode2)) {
37517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37518 }
37519 arg2 = static_cast< int >(val2);
37520 ecode3 = SWIG_AsVal_int(obj2, &val3);
37521 if (!SWIG_IsOK(ecode3)) {
37522 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37523 }
37524 arg3 = static_cast< int >(val3);
37525 {
37526 PyThreadState* __tstate = wxPyBeginAllowThreads();
37527 (arg1)->DrawPoint(arg2,arg3);
37528 wxPyEndAllowThreads(__tstate);
37529 if (PyErr_Occurred()) SWIG_fail;
37530 }
37531 resultobj = SWIG_Py_Void();
37532 return resultobj;
37533fail:
37534 return NULL;
37535}
37536
37537
37538SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37539 PyObject *resultobj = 0;
37540 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37541 wxPoint *arg2 = 0 ;
37542 void *argp1 = 0 ;
37543 int res1 = 0 ;
37544 wxPoint temp2 ;
37545 PyObject * obj0 = 0 ;
37546 PyObject * obj1 = 0 ;
37547 char * kwnames[] = {
37548 (char *) "self",(char *) "pt", NULL
37549 };
37550
37551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37553 if (!SWIG_IsOK(res1)) {
37554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37555 }
37556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37557 {
37558 arg2 = &temp2;
37559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37560 }
37561 {
37562 PyThreadState* __tstate = wxPyBeginAllowThreads();
37563 (arg1)->DrawPoint((wxPoint const &)*arg2);
37564 wxPyEndAllowThreads(__tstate);
37565 if (PyErr_Occurred()) SWIG_fail;
37566 }
37567 resultobj = SWIG_Py_Void();
37568 return resultobj;
37569fail:
37570 return NULL;
37571}
37572
37573
37574SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37575 PyObject *resultobj = 0;
37576 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37577 int arg2 ;
37578 int arg3 ;
37579 int arg4 ;
37580 int arg5 ;
37581 void *argp1 = 0 ;
37582 int res1 = 0 ;
37583 int val2 ;
37584 int ecode2 = 0 ;
37585 int val3 ;
37586 int ecode3 = 0 ;
37587 int val4 ;
37588 int ecode4 = 0 ;
37589 int val5 ;
37590 int ecode5 = 0 ;
37591 PyObject * obj0 = 0 ;
37592 PyObject * obj1 = 0 ;
37593 PyObject * obj2 = 0 ;
37594 PyObject * obj3 = 0 ;
37595 PyObject * obj4 = 0 ;
37596 char * kwnames[] = {
37597 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37598 };
37599
37600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37602 if (!SWIG_IsOK(res1)) {
37603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37604 }
37605 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37606 ecode2 = SWIG_AsVal_int(obj1, &val2);
37607 if (!SWIG_IsOK(ecode2)) {
37608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37609 }
37610 arg2 = static_cast< int >(val2);
37611 ecode3 = SWIG_AsVal_int(obj2, &val3);
37612 if (!SWIG_IsOK(ecode3)) {
37613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37614 }
37615 arg3 = static_cast< int >(val3);
37616 ecode4 = SWIG_AsVal_int(obj3, &val4);
37617 if (!SWIG_IsOK(ecode4)) {
37618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37619 }
37620 arg4 = static_cast< int >(val4);
37621 ecode5 = SWIG_AsVal_int(obj4, &val5);
37622 if (!SWIG_IsOK(ecode5)) {
37623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37624 }
37625 arg5 = static_cast< int >(val5);
37626 {
37627 PyThreadState* __tstate = wxPyBeginAllowThreads();
37628 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37629 wxPyEndAllowThreads(__tstate);
37630 if (PyErr_Occurred()) SWIG_fail;
37631 }
37632 resultobj = SWIG_Py_Void();
37633 return resultobj;
37634fail:
37635 return NULL;
37636}
37637
37638
37639SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37640 PyObject *resultobj = 0;
37641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37642 wxRect *arg2 = 0 ;
37643 void *argp1 = 0 ;
37644 int res1 = 0 ;
37645 wxRect temp2 ;
37646 PyObject * obj0 = 0 ;
37647 PyObject * obj1 = 0 ;
37648 char * kwnames[] = {
37649 (char *) "self",(char *) "rect", NULL
37650 };
37651
37652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37654 if (!SWIG_IsOK(res1)) {
37655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37656 }
37657 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37658 {
37659 arg2 = &temp2;
37660 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37661 }
37662 {
37663 PyThreadState* __tstate = wxPyBeginAllowThreads();
37664 (arg1)->DrawRectangle((wxRect const &)*arg2);
37665 wxPyEndAllowThreads(__tstate);
37666 if (PyErr_Occurred()) SWIG_fail;
37667 }
37668 resultobj = SWIG_Py_Void();
37669 return resultobj;
37670fail:
37671 return NULL;
37672}
37673
37674
37675SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37676 PyObject *resultobj = 0;
37677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37678 wxPoint *arg2 = 0 ;
37679 wxSize *arg3 = 0 ;
37680 void *argp1 = 0 ;
37681 int res1 = 0 ;
37682 wxPoint temp2 ;
37683 wxSize temp3 ;
37684 PyObject * obj0 = 0 ;
37685 PyObject * obj1 = 0 ;
37686 PyObject * obj2 = 0 ;
37687 char * kwnames[] = {
37688 (char *) "self",(char *) "pt",(char *) "sz", NULL
37689 };
37690
37691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37693 if (!SWIG_IsOK(res1)) {
37694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37695 }
37696 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37697 {
37698 arg2 = &temp2;
37699 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37700 }
37701 {
37702 arg3 = &temp3;
37703 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37704 }
37705 {
37706 PyThreadState* __tstate = wxPyBeginAllowThreads();
37707 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37708 wxPyEndAllowThreads(__tstate);
37709 if (PyErr_Occurred()) SWIG_fail;
37710 }
37711 resultobj = SWIG_Py_Void();
37712 return resultobj;
37713fail:
37714 return NULL;
37715}
37716
37717
37718SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37719 PyObject *resultobj = 0;
37720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37721 int arg2 ;
37722 int arg3 ;
37723 int arg4 ;
37724 int arg5 ;
37725 double arg6 ;
37726 void *argp1 = 0 ;
37727 int res1 = 0 ;
37728 int val2 ;
37729 int ecode2 = 0 ;
37730 int val3 ;
37731 int ecode3 = 0 ;
37732 int val4 ;
37733 int ecode4 = 0 ;
37734 int val5 ;
37735 int ecode5 = 0 ;
37736 double val6 ;
37737 int ecode6 = 0 ;
37738 PyObject * obj0 = 0 ;
37739 PyObject * obj1 = 0 ;
37740 PyObject * obj2 = 0 ;
37741 PyObject * obj3 = 0 ;
37742 PyObject * obj4 = 0 ;
37743 PyObject * obj5 = 0 ;
37744 char * kwnames[] = {
37745 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37746 };
37747
37748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37750 if (!SWIG_IsOK(res1)) {
37751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37752 }
37753 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37754 ecode2 = SWIG_AsVal_int(obj1, &val2);
37755 if (!SWIG_IsOK(ecode2)) {
37756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37757 }
37758 arg2 = static_cast< int >(val2);
37759 ecode3 = SWIG_AsVal_int(obj2, &val3);
37760 if (!SWIG_IsOK(ecode3)) {
37761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37762 }
37763 arg3 = static_cast< int >(val3);
37764 ecode4 = SWIG_AsVal_int(obj3, &val4);
37765 if (!SWIG_IsOK(ecode4)) {
37766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37767 }
37768 arg4 = static_cast< int >(val4);
37769 ecode5 = SWIG_AsVal_int(obj4, &val5);
37770 if (!SWIG_IsOK(ecode5)) {
37771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37772 }
37773 arg5 = static_cast< int >(val5);
37774 ecode6 = SWIG_AsVal_double(obj5, &val6);
37775 if (!SWIG_IsOK(ecode6)) {
37776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37777 }
37778 arg6 = static_cast< double >(val6);
37779 {
37780 PyThreadState* __tstate = wxPyBeginAllowThreads();
37781 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37782 wxPyEndAllowThreads(__tstate);
37783 if (PyErr_Occurred()) SWIG_fail;
37784 }
37785 resultobj = SWIG_Py_Void();
37786 return resultobj;
37787fail:
37788 return NULL;
37789}
37790
37791
37792SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37793 PyObject *resultobj = 0;
37794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37795 wxRect *arg2 = 0 ;
37796 double arg3 ;
37797 void *argp1 = 0 ;
37798 int res1 = 0 ;
37799 wxRect temp2 ;
37800 double val3 ;
37801 int ecode3 = 0 ;
37802 PyObject * obj0 = 0 ;
37803 PyObject * obj1 = 0 ;
37804 PyObject * obj2 = 0 ;
37805 char * kwnames[] = {
37806 (char *) "self",(char *) "r",(char *) "radius", NULL
37807 };
37808
37809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37811 if (!SWIG_IsOK(res1)) {
37812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37813 }
37814 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37815 {
37816 arg2 = &temp2;
37817 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37818 }
37819 ecode3 = SWIG_AsVal_double(obj2, &val3);
37820 if (!SWIG_IsOK(ecode3)) {
37821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37822 }
37823 arg3 = static_cast< double >(val3);
37824 {
37825 PyThreadState* __tstate = wxPyBeginAllowThreads();
37826 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37827 wxPyEndAllowThreads(__tstate);
37828 if (PyErr_Occurred()) SWIG_fail;
37829 }
37830 resultobj = SWIG_Py_Void();
37831 return resultobj;
37832fail:
37833 return NULL;
37834}
37835
37836
37837SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37838 PyObject *resultobj = 0;
37839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37840 wxPoint *arg2 = 0 ;
37841 wxSize *arg3 = 0 ;
37842 double arg4 ;
37843 void *argp1 = 0 ;
37844 int res1 = 0 ;
37845 wxPoint temp2 ;
37846 wxSize temp3 ;
37847 double val4 ;
37848 int ecode4 = 0 ;
37849 PyObject * obj0 = 0 ;
37850 PyObject * obj1 = 0 ;
37851 PyObject * obj2 = 0 ;
37852 PyObject * obj3 = 0 ;
37853 char * kwnames[] = {
37854 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37855 };
37856
37857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37863 {
37864 arg2 = &temp2;
37865 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37866 }
37867 {
37868 arg3 = &temp3;
37869 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37870 }
37871 ecode4 = SWIG_AsVal_double(obj3, &val4);
37872 if (!SWIG_IsOK(ecode4)) {
37873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37874 }
37875 arg4 = static_cast< double >(val4);
37876 {
37877 PyThreadState* __tstate = wxPyBeginAllowThreads();
37878 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37879 wxPyEndAllowThreads(__tstate);
37880 if (PyErr_Occurred()) SWIG_fail;
37881 }
37882 resultobj = SWIG_Py_Void();
37883 return resultobj;
37884fail:
37885 return NULL;
37886}
37887
37888
37889SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37890 PyObject *resultobj = 0;
37891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37892 int arg2 ;
37893 int arg3 ;
37894 int arg4 ;
37895 void *argp1 = 0 ;
37896 int res1 = 0 ;
37897 int val2 ;
37898 int ecode2 = 0 ;
37899 int val3 ;
37900 int ecode3 = 0 ;
37901 int val4 ;
37902 int ecode4 = 0 ;
37903 PyObject * obj0 = 0 ;
37904 PyObject * obj1 = 0 ;
37905 PyObject * obj2 = 0 ;
37906 PyObject * obj3 = 0 ;
37907 char * kwnames[] = {
37908 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37909 };
37910
37911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37913 if (!SWIG_IsOK(res1)) {
37914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37915 }
37916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37917 ecode2 = SWIG_AsVal_int(obj1, &val2);
37918 if (!SWIG_IsOK(ecode2)) {
37919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37920 }
37921 arg2 = static_cast< int >(val2);
37922 ecode3 = SWIG_AsVal_int(obj2, &val3);
37923 if (!SWIG_IsOK(ecode3)) {
37924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37925 }
37926 arg3 = static_cast< int >(val3);
37927 ecode4 = SWIG_AsVal_int(obj3, &val4);
37928 if (!SWIG_IsOK(ecode4)) {
37929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37930 }
37931 arg4 = static_cast< int >(val4);
37932 {
37933 PyThreadState* __tstate = wxPyBeginAllowThreads();
37934 (arg1)->DrawCircle(arg2,arg3,arg4);
37935 wxPyEndAllowThreads(__tstate);
37936 if (PyErr_Occurred()) SWIG_fail;
37937 }
37938 resultobj = SWIG_Py_Void();
37939 return resultobj;
37940fail:
37941 return NULL;
37942}
37943
37944
37945SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37946 PyObject *resultobj = 0;
37947 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37948 wxPoint *arg2 = 0 ;
37949 int arg3 ;
37950 void *argp1 = 0 ;
37951 int res1 = 0 ;
37952 wxPoint temp2 ;
37953 int val3 ;
37954 int ecode3 = 0 ;
37955 PyObject * obj0 = 0 ;
37956 PyObject * obj1 = 0 ;
37957 PyObject * obj2 = 0 ;
37958 char * kwnames[] = {
37959 (char *) "self",(char *) "pt",(char *) "radius", NULL
37960 };
37961
37962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37964 if (!SWIG_IsOK(res1)) {
37965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37966 }
37967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37968 {
37969 arg2 = &temp2;
37970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37971 }
37972 ecode3 = SWIG_AsVal_int(obj2, &val3);
37973 if (!SWIG_IsOK(ecode3)) {
37974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37975 }
37976 arg3 = static_cast< int >(val3);
37977 {
37978 PyThreadState* __tstate = wxPyBeginAllowThreads();
37979 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37980 wxPyEndAllowThreads(__tstate);
37981 if (PyErr_Occurred()) SWIG_fail;
37982 }
37983 resultobj = SWIG_Py_Void();
37984 return resultobj;
37985fail:
37986 return NULL;
37987}
37988
37989
37990SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37991 PyObject *resultobj = 0;
37992 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37993 int arg2 ;
37994 int arg3 ;
37995 int arg4 ;
37996 int arg5 ;
37997 void *argp1 = 0 ;
37998 int res1 = 0 ;
37999 int val2 ;
38000 int ecode2 = 0 ;
38001 int val3 ;
38002 int ecode3 = 0 ;
38003 int val4 ;
38004 int ecode4 = 0 ;
38005 int val5 ;
38006 int ecode5 = 0 ;
38007 PyObject * obj0 = 0 ;
38008 PyObject * obj1 = 0 ;
38009 PyObject * obj2 = 0 ;
38010 PyObject * obj3 = 0 ;
38011 PyObject * obj4 = 0 ;
38012 char * kwnames[] = {
38013 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38014 };
38015
38016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38018 if (!SWIG_IsOK(res1)) {
38019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38020 }
38021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38022 ecode2 = SWIG_AsVal_int(obj1, &val2);
38023 if (!SWIG_IsOK(ecode2)) {
38024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38025 }
38026 arg2 = static_cast< int >(val2);
38027 ecode3 = SWIG_AsVal_int(obj2, &val3);
38028 if (!SWIG_IsOK(ecode3)) {
38029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38030 }
38031 arg3 = static_cast< int >(val3);
38032 ecode4 = SWIG_AsVal_int(obj3, &val4);
38033 if (!SWIG_IsOK(ecode4)) {
38034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38035 }
38036 arg4 = static_cast< int >(val4);
38037 ecode5 = SWIG_AsVal_int(obj4, &val5);
38038 if (!SWIG_IsOK(ecode5)) {
38039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38040 }
38041 arg5 = static_cast< int >(val5);
38042 {
38043 PyThreadState* __tstate = wxPyBeginAllowThreads();
38044 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38045 wxPyEndAllowThreads(__tstate);
38046 if (PyErr_Occurred()) SWIG_fail;
38047 }
38048 resultobj = SWIG_Py_Void();
38049 return resultobj;
38050fail:
38051 return NULL;
38052}
38053
38054
38055SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38056 PyObject *resultobj = 0;
38057 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38058 wxRect *arg2 = 0 ;
38059 void *argp1 = 0 ;
38060 int res1 = 0 ;
38061 wxRect temp2 ;
38062 PyObject * obj0 = 0 ;
38063 PyObject * obj1 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "self",(char *) "rect", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38072 }
38073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38074 {
38075 arg2 = &temp2;
38076 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38077 }
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 (arg1)->DrawEllipse((wxRect const &)*arg2);
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 resultobj = SWIG_Py_Void();
38085 return resultobj;
38086fail:
38087 return NULL;
38088}
38089
38090
38091SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38092 PyObject *resultobj = 0;
38093 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38094 wxPoint *arg2 = 0 ;
38095 wxSize *arg3 = 0 ;
38096 void *argp1 = 0 ;
38097 int res1 = 0 ;
38098 wxPoint temp2 ;
38099 wxSize temp3 ;
38100 PyObject * obj0 = 0 ;
38101 PyObject * obj1 = 0 ;
38102 PyObject * obj2 = 0 ;
38103 char * kwnames[] = {
38104 (char *) "self",(char *) "pt",(char *) "sz", NULL
38105 };
38106
38107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38109 if (!SWIG_IsOK(res1)) {
38110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38111 }
38112 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38113 {
38114 arg2 = &temp2;
38115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38116 }
38117 {
38118 arg3 = &temp3;
38119 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38120 }
38121 {
38122 PyThreadState* __tstate = wxPyBeginAllowThreads();
38123 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38124 wxPyEndAllowThreads(__tstate);
38125 if (PyErr_Occurred()) SWIG_fail;
38126 }
38127 resultobj = SWIG_Py_Void();
38128 return resultobj;
38129fail:
38130 return NULL;
38131}
38132
38133
38134SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38135 PyObject *resultobj = 0;
38136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38137 wxIcon *arg2 = 0 ;
38138 int arg3 ;
38139 int arg4 ;
38140 void *argp1 = 0 ;
38141 int res1 = 0 ;
38142 void *argp2 = 0 ;
38143 int res2 = 0 ;
38144 int val3 ;
38145 int ecode3 = 0 ;
38146 int val4 ;
38147 int ecode4 = 0 ;
38148 PyObject * obj0 = 0 ;
38149 PyObject * obj1 = 0 ;
38150 PyObject * obj2 = 0 ;
38151 PyObject * obj3 = 0 ;
38152 char * kwnames[] = {
38153 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38154 };
38155
38156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38158 if (!SWIG_IsOK(res1)) {
38159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38160 }
38161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38163 if (!SWIG_IsOK(res2)) {
38164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38165 }
38166 if (!argp2) {
38167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38168 }
38169 arg2 = reinterpret_cast< wxIcon * >(argp2);
38170 ecode3 = SWIG_AsVal_int(obj2, &val3);
38171 if (!SWIG_IsOK(ecode3)) {
38172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38173 }
38174 arg3 = static_cast< int >(val3);
38175 ecode4 = SWIG_AsVal_int(obj3, &val4);
38176 if (!SWIG_IsOK(ecode4)) {
38177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38178 }
38179 arg4 = static_cast< int >(val4);
38180 {
38181 PyThreadState* __tstate = wxPyBeginAllowThreads();
38182 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38183 wxPyEndAllowThreads(__tstate);
38184 if (PyErr_Occurred()) SWIG_fail;
38185 }
38186 resultobj = SWIG_Py_Void();
38187 return resultobj;
38188fail:
38189 return NULL;
38190}
38191
38192
38193SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38194 PyObject *resultobj = 0;
38195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38196 wxIcon *arg2 = 0 ;
38197 wxPoint *arg3 = 0 ;
38198 void *argp1 = 0 ;
38199 int res1 = 0 ;
38200 void *argp2 = 0 ;
38201 int res2 = 0 ;
38202 wxPoint temp3 ;
38203 PyObject * obj0 = 0 ;
38204 PyObject * obj1 = 0 ;
38205 PyObject * obj2 = 0 ;
38206 char * kwnames[] = {
38207 (char *) "self",(char *) "icon",(char *) "pt", NULL
38208 };
38209
38210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38212 if (!SWIG_IsOK(res1)) {
38213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38214 }
38215 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38217 if (!SWIG_IsOK(res2)) {
38218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38219 }
38220 if (!argp2) {
38221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38222 }
38223 arg2 = reinterpret_cast< wxIcon * >(argp2);
38224 {
38225 arg3 = &temp3;
38226 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38227 }
38228 {
38229 PyThreadState* __tstate = wxPyBeginAllowThreads();
38230 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38231 wxPyEndAllowThreads(__tstate);
38232 if (PyErr_Occurred()) SWIG_fail;
38233 }
38234 resultobj = SWIG_Py_Void();
38235 return resultobj;
38236fail:
38237 return NULL;
38238}
38239
38240
38241SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38242 PyObject *resultobj = 0;
38243 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38244 wxBitmap *arg2 = 0 ;
38245 int arg3 ;
38246 int arg4 ;
38247 bool arg5 = (bool) false ;
38248 void *argp1 = 0 ;
38249 int res1 = 0 ;
38250 void *argp2 = 0 ;
38251 int res2 = 0 ;
38252 int val3 ;
38253 int ecode3 = 0 ;
38254 int val4 ;
38255 int ecode4 = 0 ;
38256 bool val5 ;
38257 int ecode5 = 0 ;
38258 PyObject * obj0 = 0 ;
38259 PyObject * obj1 = 0 ;
38260 PyObject * obj2 = 0 ;
38261 PyObject * obj3 = 0 ;
38262 PyObject * obj4 = 0 ;
38263 char * kwnames[] = {
38264 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38265 };
38266
38267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38269 if (!SWIG_IsOK(res1)) {
38270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38271 }
38272 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38274 if (!SWIG_IsOK(res2)) {
38275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38276 }
38277 if (!argp2) {
38278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38279 }
38280 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38281 ecode3 = SWIG_AsVal_int(obj2, &val3);
38282 if (!SWIG_IsOK(ecode3)) {
38283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38284 }
38285 arg3 = static_cast< int >(val3);
38286 ecode4 = SWIG_AsVal_int(obj3, &val4);
38287 if (!SWIG_IsOK(ecode4)) {
38288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38289 }
38290 arg4 = static_cast< int >(val4);
38291 if (obj4) {
38292 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38293 if (!SWIG_IsOK(ecode5)) {
38294 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38295 }
38296 arg5 = static_cast< bool >(val5);
38297 }
38298 {
38299 PyThreadState* __tstate = wxPyBeginAllowThreads();
38300 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38301 wxPyEndAllowThreads(__tstate);
38302 if (PyErr_Occurred()) SWIG_fail;
38303 }
38304 resultobj = SWIG_Py_Void();
38305 return resultobj;
38306fail:
38307 return NULL;
38308}
38309
38310
38311SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38312 PyObject *resultobj = 0;
38313 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38314 wxBitmap *arg2 = 0 ;
38315 wxPoint *arg3 = 0 ;
38316 bool arg4 = (bool) false ;
38317 void *argp1 = 0 ;
38318 int res1 = 0 ;
38319 void *argp2 = 0 ;
38320 int res2 = 0 ;
38321 wxPoint temp3 ;
38322 bool val4 ;
38323 int ecode4 = 0 ;
38324 PyObject * obj0 = 0 ;
38325 PyObject * obj1 = 0 ;
38326 PyObject * obj2 = 0 ;
38327 PyObject * obj3 = 0 ;
38328 char * kwnames[] = {
38329 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38330 };
38331
38332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38334 if (!SWIG_IsOK(res1)) {
38335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38336 }
38337 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38339 if (!SWIG_IsOK(res2)) {
38340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38341 }
38342 if (!argp2) {
38343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38344 }
38345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38346 {
38347 arg3 = &temp3;
38348 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38349 }
38350 if (obj3) {
38351 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38352 if (!SWIG_IsOK(ecode4)) {
38353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38354 }
38355 arg4 = static_cast< bool >(val4);
38356 }
38357 {
38358 PyThreadState* __tstate = wxPyBeginAllowThreads();
38359 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38360 wxPyEndAllowThreads(__tstate);
38361 if (PyErr_Occurred()) SWIG_fail;
38362 }
38363 resultobj = SWIG_Py_Void();
38364 return resultobj;
38365fail:
38366 return NULL;
38367}
38368
38369
38370SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38371 PyObject *resultobj = 0;
38372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38373 wxString *arg2 = 0 ;
38374 int arg3 ;
38375 int arg4 ;
38376 void *argp1 = 0 ;
38377 int res1 = 0 ;
38378 bool temp2 = false ;
38379 int val3 ;
38380 int ecode3 = 0 ;
38381 int val4 ;
38382 int ecode4 = 0 ;
38383 PyObject * obj0 = 0 ;
38384 PyObject * obj1 = 0 ;
38385 PyObject * obj2 = 0 ;
38386 PyObject * obj3 = 0 ;
38387 char * kwnames[] = {
38388 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38389 };
38390
38391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38395 }
38396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38397 {
38398 arg2 = wxString_in_helper(obj1);
38399 if (arg2 == NULL) SWIG_fail;
38400 temp2 = true;
38401 }
38402 ecode3 = SWIG_AsVal_int(obj2, &val3);
38403 if (!SWIG_IsOK(ecode3)) {
38404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38405 }
38406 arg3 = static_cast< int >(val3);
38407 ecode4 = SWIG_AsVal_int(obj3, &val4);
38408 if (!SWIG_IsOK(ecode4)) {
38409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38410 }
38411 arg4 = static_cast< int >(val4);
38412 {
38413 PyThreadState* __tstate = wxPyBeginAllowThreads();
38414 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38415 wxPyEndAllowThreads(__tstate);
38416 if (PyErr_Occurred()) SWIG_fail;
38417 }
38418 resultobj = SWIG_Py_Void();
38419 {
38420 if (temp2)
38421 delete arg2;
38422 }
38423 return resultobj;
38424fail:
38425 {
38426 if (temp2)
38427 delete arg2;
38428 }
38429 return NULL;
38430}
38431
38432
38433SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38434 PyObject *resultobj = 0;
38435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38436 wxString *arg2 = 0 ;
38437 wxPoint *arg3 = 0 ;
38438 void *argp1 = 0 ;
38439 int res1 = 0 ;
38440 bool temp2 = false ;
38441 wxPoint temp3 ;
38442 PyObject * obj0 = 0 ;
38443 PyObject * obj1 = 0 ;
38444 PyObject * obj2 = 0 ;
38445 char * kwnames[] = {
38446 (char *) "self",(char *) "text",(char *) "pt", NULL
38447 };
38448
38449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38451 if (!SWIG_IsOK(res1)) {
38452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38453 }
38454 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38455 {
38456 arg2 = wxString_in_helper(obj1);
38457 if (arg2 == NULL) SWIG_fail;
38458 temp2 = true;
38459 }
38460 {
38461 arg3 = &temp3;
38462 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38463 }
38464 {
38465 PyThreadState* __tstate = wxPyBeginAllowThreads();
38466 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38467 wxPyEndAllowThreads(__tstate);
38468 if (PyErr_Occurred()) SWIG_fail;
38469 }
38470 resultobj = SWIG_Py_Void();
38471 {
38472 if (temp2)
38473 delete arg2;
38474 }
38475 return resultobj;
38476fail:
38477 {
38478 if (temp2)
38479 delete arg2;
38480 }
38481 return NULL;
38482}
38483
38484
38485SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38486 PyObject *resultobj = 0;
38487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38488 wxString *arg2 = 0 ;
38489 int arg3 ;
38490 int arg4 ;
38491 double arg5 ;
38492 void *argp1 = 0 ;
38493 int res1 = 0 ;
38494 bool temp2 = false ;
38495 int val3 ;
38496 int ecode3 = 0 ;
38497 int val4 ;
38498 int ecode4 = 0 ;
38499 double val5 ;
38500 int ecode5 = 0 ;
38501 PyObject * obj0 = 0 ;
38502 PyObject * obj1 = 0 ;
38503 PyObject * obj2 = 0 ;
38504 PyObject * obj3 = 0 ;
38505 PyObject * obj4 = 0 ;
38506 char * kwnames[] = {
38507 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38508 };
38509
38510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38512 if (!SWIG_IsOK(res1)) {
38513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38514 }
38515 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38516 {
38517 arg2 = wxString_in_helper(obj1);
38518 if (arg2 == NULL) SWIG_fail;
38519 temp2 = true;
38520 }
38521 ecode3 = SWIG_AsVal_int(obj2, &val3);
38522 if (!SWIG_IsOK(ecode3)) {
38523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38524 }
38525 arg3 = static_cast< int >(val3);
38526 ecode4 = SWIG_AsVal_int(obj3, &val4);
38527 if (!SWIG_IsOK(ecode4)) {
38528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38529 }
38530 arg4 = static_cast< int >(val4);
38531 ecode5 = SWIG_AsVal_double(obj4, &val5);
38532 if (!SWIG_IsOK(ecode5)) {
38533 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38534 }
38535 arg5 = static_cast< double >(val5);
38536 {
38537 PyThreadState* __tstate = wxPyBeginAllowThreads();
38538 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38539 wxPyEndAllowThreads(__tstate);
38540 if (PyErr_Occurred()) SWIG_fail;
38541 }
38542 resultobj = SWIG_Py_Void();
38543 {
38544 if (temp2)
38545 delete arg2;
38546 }
38547 return resultobj;
38548fail:
38549 {
38550 if (temp2)
38551 delete arg2;
38552 }
38553 return NULL;
38554}
38555
38556
38557SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38560 wxString *arg2 = 0 ;
38561 wxPoint *arg3 = 0 ;
38562 double arg4 ;
38563 void *argp1 = 0 ;
38564 int res1 = 0 ;
38565 bool temp2 = false ;
38566 wxPoint temp3 ;
38567 double val4 ;
38568 int ecode4 = 0 ;
38569 PyObject * obj0 = 0 ;
38570 PyObject * obj1 = 0 ;
38571 PyObject * obj2 = 0 ;
38572 PyObject * obj3 = 0 ;
38573 char * kwnames[] = {
38574 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38575 };
38576
38577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38579 if (!SWIG_IsOK(res1)) {
38580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38581 }
38582 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38583 {
38584 arg2 = wxString_in_helper(obj1);
38585 if (arg2 == NULL) SWIG_fail;
38586 temp2 = true;
38587 }
38588 {
38589 arg3 = &temp3;
38590 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38591 }
38592 ecode4 = SWIG_AsVal_double(obj3, &val4);
38593 if (!SWIG_IsOK(ecode4)) {
38594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38595 }
38596 arg4 = static_cast< double >(val4);
38597 {
38598 PyThreadState* __tstate = wxPyBeginAllowThreads();
38599 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38600 wxPyEndAllowThreads(__tstate);
38601 if (PyErr_Occurred()) SWIG_fail;
38602 }
38603 resultobj = SWIG_Py_Void();
38604 {
38605 if (temp2)
38606 delete arg2;
38607 }
38608 return resultobj;
38609fail:
38610 {
38611 if (temp2)
38612 delete arg2;
38613 }
38614 return NULL;
38615}
38616
38617
38618SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38619 PyObject *resultobj = 0;
38620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38621 int arg2 ;
38622 wxPoint *arg3 = (wxPoint *) 0 ;
38623 int arg4 = (int) 0 ;
38624 int arg5 = (int) 0 ;
38625 void *argp1 = 0 ;
38626 int res1 = 0 ;
38627 int val4 ;
38628 int ecode4 = 0 ;
38629 int val5 ;
38630 int ecode5 = 0 ;
38631 PyObject * obj0 = 0 ;
38632 PyObject * obj1 = 0 ;
38633 PyObject * obj2 = 0 ;
38634 PyObject * obj3 = 0 ;
38635 char * kwnames[] = {
38636 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38637 };
38638
38639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38641 if (!SWIG_IsOK(res1)) {
38642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38643 }
38644 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38645 {
38646 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38647 if (arg3 == NULL) SWIG_fail;
38648 }
38649 if (obj2) {
38650 ecode4 = SWIG_AsVal_int(obj2, &val4);
38651 if (!SWIG_IsOK(ecode4)) {
38652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38653 }
38654 arg4 = static_cast< int >(val4);
38655 }
38656 if (obj3) {
38657 ecode5 = SWIG_AsVal_int(obj3, &val5);
38658 if (!SWIG_IsOK(ecode5)) {
38659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38660 }
38661 arg5 = static_cast< int >(val5);
38662 }
38663 {
38664 PyThreadState* __tstate = wxPyBeginAllowThreads();
38665 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38666 wxPyEndAllowThreads(__tstate);
38667 if (PyErr_Occurred()) SWIG_fail;
38668 }
38669 resultobj = SWIG_Py_Void();
38670 {
38671 if (arg3) delete [] arg3;
38672 }
38673 return resultobj;
38674fail:
38675 {
38676 if (arg3) delete [] arg3;
38677 }
38678 return NULL;
38679}
38680
38681
38682SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38683 PyObject *resultobj = 0;
38684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38685 int arg2 ;
38686 wxPoint *arg3 = (wxPoint *) 0 ;
38687 int arg4 = (int) 0 ;
38688 int arg5 = (int) 0 ;
38689 int arg6 = (int) wxODDEVEN_RULE ;
38690 void *argp1 = 0 ;
38691 int res1 = 0 ;
38692 int val4 ;
38693 int ecode4 = 0 ;
38694 int val5 ;
38695 int ecode5 = 0 ;
38696 int val6 ;
38697 int ecode6 = 0 ;
38698 PyObject * obj0 = 0 ;
38699 PyObject * obj1 = 0 ;
38700 PyObject * obj2 = 0 ;
38701 PyObject * obj3 = 0 ;
38702 PyObject * obj4 = 0 ;
38703 char * kwnames[] = {
38704 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38705 };
38706
38707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38709 if (!SWIG_IsOK(res1)) {
38710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38711 }
38712 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38713 {
38714 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38715 if (arg3 == NULL) SWIG_fail;
38716 }
38717 if (obj2) {
38718 ecode4 = SWIG_AsVal_int(obj2, &val4);
38719 if (!SWIG_IsOK(ecode4)) {
38720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38721 }
38722 arg4 = static_cast< int >(val4);
38723 }
38724 if (obj3) {
38725 ecode5 = SWIG_AsVal_int(obj3, &val5);
38726 if (!SWIG_IsOK(ecode5)) {
38727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38728 }
38729 arg5 = static_cast< int >(val5);
38730 }
38731 if (obj4) {
38732 ecode6 = SWIG_AsVal_int(obj4, &val6);
38733 if (!SWIG_IsOK(ecode6)) {
38734 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38735 }
38736 arg6 = static_cast< int >(val6);
38737 }
38738 {
38739 PyThreadState* __tstate = wxPyBeginAllowThreads();
38740 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38741 wxPyEndAllowThreads(__tstate);
38742 if (PyErr_Occurred()) SWIG_fail;
38743 }
38744 resultobj = SWIG_Py_Void();
38745 {
38746 if (arg3) delete [] arg3;
38747 }
38748 return resultobj;
38749fail:
38750 {
38751 if (arg3) delete [] arg3;
38752 }
38753 return NULL;
38754}
38755
38756
38757SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38758 PyObject *resultobj = 0;
38759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38760 wxString *arg2 = 0 ;
38761 wxRect *arg3 = 0 ;
38762 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38763 int arg5 = (int) -1 ;
38764 void *argp1 = 0 ;
38765 int res1 = 0 ;
38766 bool temp2 = false ;
38767 wxRect temp3 ;
38768 int val4 ;
38769 int ecode4 = 0 ;
38770 int val5 ;
38771 int ecode5 = 0 ;
38772 PyObject * obj0 = 0 ;
38773 PyObject * obj1 = 0 ;
38774 PyObject * obj2 = 0 ;
38775 PyObject * obj3 = 0 ;
38776 PyObject * obj4 = 0 ;
38777 char * kwnames[] = {
38778 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38779 };
38780
38781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38783 if (!SWIG_IsOK(res1)) {
38784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38785 }
38786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38787 {
38788 arg2 = wxString_in_helper(obj1);
38789 if (arg2 == NULL) SWIG_fail;
38790 temp2 = true;
38791 }
38792 {
38793 arg3 = &temp3;
38794 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38795 }
38796 if (obj3) {
38797 ecode4 = SWIG_AsVal_int(obj3, &val4);
38798 if (!SWIG_IsOK(ecode4)) {
38799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38800 }
38801 arg4 = static_cast< int >(val4);
38802 }
38803 if (obj4) {
38804 ecode5 = SWIG_AsVal_int(obj4, &val5);
38805 if (!SWIG_IsOK(ecode5)) {
38806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38807 }
38808 arg5 = static_cast< int >(val5);
38809 }
38810 {
38811 PyThreadState* __tstate = wxPyBeginAllowThreads();
38812 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38813 wxPyEndAllowThreads(__tstate);
38814 if (PyErr_Occurred()) SWIG_fail;
38815 }
38816 resultobj = SWIG_Py_Void();
38817 {
38818 if (temp2)
38819 delete arg2;
38820 }
38821 return resultobj;
38822fail:
38823 {
38824 if (temp2)
38825 delete arg2;
38826 }
38827 return NULL;
38828}
38829
38830
38831SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38832 PyObject *resultobj = 0;
38833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38834 wxString *arg2 = 0 ;
38835 wxBitmap *arg3 = 0 ;
38836 wxRect *arg4 = 0 ;
38837 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38838 int arg6 = (int) -1 ;
38839 void *argp1 = 0 ;
38840 int res1 = 0 ;
38841 bool temp2 = false ;
38842 void *argp3 = 0 ;
38843 int res3 = 0 ;
38844 wxRect temp4 ;
38845 int val5 ;
38846 int ecode5 = 0 ;
38847 int val6 ;
38848 int ecode6 = 0 ;
38849 PyObject * obj0 = 0 ;
38850 PyObject * obj1 = 0 ;
38851 PyObject * obj2 = 0 ;
38852 PyObject * obj3 = 0 ;
38853 PyObject * obj4 = 0 ;
38854 PyObject * obj5 = 0 ;
38855 char * kwnames[] = {
38856 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38857 };
38858
38859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38861 if (!SWIG_IsOK(res1)) {
38862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38863 }
38864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38865 {
38866 arg2 = wxString_in_helper(obj1);
38867 if (arg2 == NULL) SWIG_fail;
38868 temp2 = true;
38869 }
38870 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38871 if (!SWIG_IsOK(res3)) {
38872 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38873 }
38874 if (!argp3) {
38875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38876 }
38877 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38878 {
38879 arg4 = &temp4;
38880 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38881 }
38882 if (obj4) {
38883 ecode5 = SWIG_AsVal_int(obj4, &val5);
38884 if (!SWIG_IsOK(ecode5)) {
38885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38886 }
38887 arg5 = static_cast< int >(val5);
38888 }
38889 if (obj5) {
38890 ecode6 = SWIG_AsVal_int(obj5, &val6);
38891 if (!SWIG_IsOK(ecode6)) {
38892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38893 }
38894 arg6 = static_cast< int >(val6);
38895 }
38896 {
38897 PyThreadState* __tstate = wxPyBeginAllowThreads();
38898 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38899 wxPyEndAllowThreads(__tstate);
38900 if (PyErr_Occurred()) SWIG_fail;
38901 }
38902 resultobj = SWIG_Py_Void();
38903 {
38904 if (temp2)
38905 delete arg2;
38906 }
38907 return resultobj;
38908fail:
38909 {
38910 if (temp2)
38911 delete arg2;
38912 }
38913 return NULL;
38914}
38915
38916
38917SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38918 PyObject *resultobj = 0;
38919 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38920 int arg2 ;
38921 wxPoint *arg3 = (wxPoint *) 0 ;
38922 void *argp1 = 0 ;
38923 int res1 = 0 ;
38924 PyObject * obj0 = 0 ;
38925 PyObject * obj1 = 0 ;
38926 char * kwnames[] = {
38927 (char *) "self",(char *) "points", NULL
38928 };
38929
38930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38932 if (!SWIG_IsOK(res1)) {
38933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38934 }
38935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38936 {
38937 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38938 if (arg3 == NULL) SWIG_fail;
38939 }
38940 {
38941 PyThreadState* __tstate = wxPyBeginAllowThreads();
38942 (arg1)->DrawSpline(arg2,arg3);
38943 wxPyEndAllowThreads(__tstate);
38944 if (PyErr_Occurred()) SWIG_fail;
38945 }
38946 resultobj = SWIG_Py_Void();
38947 {
38948 if (arg3) delete [] arg3;
38949 }
38950 return resultobj;
38951fail:
38952 {
38953 if (arg3) delete [] arg3;
38954 }
38955 return NULL;
38956}
38957
38958
38959SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38960 PyObject *resultobj = 0;
38961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38962 void *argp1 = 0 ;
38963 int res1 = 0 ;
38964 PyObject *swig_obj[1] ;
38965
38966 if (!args) SWIG_fail;
38967 swig_obj[0] = args;
38968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38969 if (!SWIG_IsOK(res1)) {
38970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38971 }
38972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38973 {
38974 PyThreadState* __tstate = wxPyBeginAllowThreads();
38975 (arg1)->Clear();
38976 wxPyEndAllowThreads(__tstate);
38977 if (PyErr_Occurred()) SWIG_fail;
38978 }
38979 resultobj = SWIG_Py_Void();
38980 return resultobj;
38981fail:
38982 return NULL;
38983}
38984
38985
38986SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38987 PyObject *resultobj = 0;
38988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38989 wxFont *arg2 = 0 ;
38990 void *argp1 = 0 ;
38991 int res1 = 0 ;
38992 void *argp2 = 0 ;
38993 int res2 = 0 ;
38994 PyObject * obj0 = 0 ;
38995 PyObject * obj1 = 0 ;
38996 char * kwnames[] = {
38997 (char *) "self",(char *) "font", NULL
38998 };
38999
39000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39002 if (!SWIG_IsOK(res1)) {
39003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39004 }
39005 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39007 if (!SWIG_IsOK(res2)) {
39008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39009 }
39010 if (!argp2) {
39011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39012 }
39013 arg2 = reinterpret_cast< wxFont * >(argp2);
39014 {
39015 PyThreadState* __tstate = wxPyBeginAllowThreads();
39016 (arg1)->SetFont((wxFont const &)*arg2);
39017 wxPyEndAllowThreads(__tstate);
39018 if (PyErr_Occurred()) SWIG_fail;
39019 }
39020 resultobj = SWIG_Py_Void();
39021 return resultobj;
39022fail:
39023 return NULL;
39024}
39025
39026
39027SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39028 PyObject *resultobj = 0;
39029 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39030 wxPen *arg2 = 0 ;
39031 void *argp1 = 0 ;
39032 int res1 = 0 ;
39033 void *argp2 = 0 ;
39034 int res2 = 0 ;
39035 PyObject * obj0 = 0 ;
39036 PyObject * obj1 = 0 ;
39037 char * kwnames[] = {
39038 (char *) "self",(char *) "pen", NULL
39039 };
39040
39041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39043 if (!SWIG_IsOK(res1)) {
39044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39045 }
39046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39048 if (!SWIG_IsOK(res2)) {
39049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39050 }
39051 if (!argp2) {
39052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39053 }
39054 arg2 = reinterpret_cast< wxPen * >(argp2);
39055 {
39056 PyThreadState* __tstate = wxPyBeginAllowThreads();
39057 (arg1)->SetPen((wxPen const &)*arg2);
39058 wxPyEndAllowThreads(__tstate);
39059 if (PyErr_Occurred()) SWIG_fail;
39060 }
39061 resultobj = SWIG_Py_Void();
39062 return resultobj;
39063fail:
39064 return NULL;
39065}
39066
39067
39068SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39069 PyObject *resultobj = 0;
39070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39071 wxBrush *arg2 = 0 ;
39072 void *argp1 = 0 ;
39073 int res1 = 0 ;
39074 void *argp2 = 0 ;
39075 int res2 = 0 ;
39076 PyObject * obj0 = 0 ;
39077 PyObject * obj1 = 0 ;
39078 char * kwnames[] = {
39079 (char *) "self",(char *) "brush", NULL
39080 };
39081
39082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
39083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39084 if (!SWIG_IsOK(res1)) {
39085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39086 }
39087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39088 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39089 if (!SWIG_IsOK(res2)) {
39090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39091 }
39092 if (!argp2) {
39093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39094 }
39095 arg2 = reinterpret_cast< wxBrush * >(argp2);
39096 {
39097 PyThreadState* __tstate = wxPyBeginAllowThreads();
39098 (arg1)->SetBrush((wxBrush const &)*arg2);
39099 wxPyEndAllowThreads(__tstate);
39100 if (PyErr_Occurred()) SWIG_fail;
39101 }
39102 resultobj = SWIG_Py_Void();
39103 return resultobj;
39104fail:
39105 return NULL;
39106}
39107
39108
39109SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39110 PyObject *resultobj = 0;
39111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39112 wxBrush *arg2 = 0 ;
39113 void *argp1 = 0 ;
39114 int res1 = 0 ;
39115 void *argp2 = 0 ;
39116 int res2 = 0 ;
39117 PyObject * obj0 = 0 ;
39118 PyObject * obj1 = 0 ;
39119 char * kwnames[] = {
39120 (char *) "self",(char *) "brush", NULL
39121 };
39122
39123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39125 if (!SWIG_IsOK(res1)) {
39126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39127 }
39128 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39130 if (!SWIG_IsOK(res2)) {
39131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39132 }
39133 if (!argp2) {
39134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39135 }
39136 arg2 = reinterpret_cast< wxBrush * >(argp2);
39137 {
39138 PyThreadState* __tstate = wxPyBeginAllowThreads();
39139 (arg1)->SetBackground((wxBrush const &)*arg2);
39140 wxPyEndAllowThreads(__tstate);
39141 if (PyErr_Occurred()) SWIG_fail;
39142 }
39143 resultobj = SWIG_Py_Void();
39144 return resultobj;
39145fail:
39146 return NULL;
39147}
39148
39149
39150SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39151 PyObject *resultobj = 0;
39152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39153 int arg2 ;
39154 void *argp1 = 0 ;
39155 int res1 = 0 ;
39156 int val2 ;
39157 int ecode2 = 0 ;
39158 PyObject * obj0 = 0 ;
39159 PyObject * obj1 = 0 ;
39160 char * kwnames[] = {
39161 (char *) "self",(char *) "mode", NULL
39162 };
39163
39164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39166 if (!SWIG_IsOK(res1)) {
39167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39168 }
39169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39170 ecode2 = SWIG_AsVal_int(obj1, &val2);
39171 if (!SWIG_IsOK(ecode2)) {
39172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39173 }
39174 arg2 = static_cast< int >(val2);
39175 {
39176 PyThreadState* __tstate = wxPyBeginAllowThreads();
39177 (arg1)->SetBackgroundMode(arg2);
39178 wxPyEndAllowThreads(__tstate);
39179 if (PyErr_Occurred()) SWIG_fail;
39180 }
39181 resultobj = SWIG_Py_Void();
39182 return resultobj;
39183fail:
39184 return NULL;
39185}
39186
39187
39188SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39189 PyObject *resultobj = 0;
39190 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39191 wxPalette *arg2 = 0 ;
39192 void *argp1 = 0 ;
39193 int res1 = 0 ;
39194 void *argp2 = 0 ;
39195 int res2 = 0 ;
39196 PyObject * obj0 = 0 ;
39197 PyObject * obj1 = 0 ;
39198 char * kwnames[] = {
39199 (char *) "self",(char *) "palette", NULL
39200 };
39201
39202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39204 if (!SWIG_IsOK(res1)) {
39205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39206 }
39207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39209 if (!SWIG_IsOK(res2)) {
39210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39211 }
39212 if (!argp2) {
39213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39214 }
39215 arg2 = reinterpret_cast< wxPalette * >(argp2);
39216 {
39217 PyThreadState* __tstate = wxPyBeginAllowThreads();
39218 (arg1)->SetPalette((wxPalette const &)*arg2);
39219 wxPyEndAllowThreads(__tstate);
39220 if (PyErr_Occurred()) SWIG_fail;
39221 }
39222 resultobj = SWIG_Py_Void();
39223 return resultobj;
39224fail:
39225 return NULL;
39226}
39227
39228
39229SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39230 PyObject *resultobj = 0;
39231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39232 wxColour *arg2 = 0 ;
39233 void *argp1 = 0 ;
39234 int res1 = 0 ;
39235 wxColour temp2 ;
39236 PyObject * obj0 = 0 ;
39237 PyObject * obj1 = 0 ;
39238 char * kwnames[] = {
39239 (char *) "self",(char *) "colour", NULL
39240 };
39241
39242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39244 if (!SWIG_IsOK(res1)) {
39245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39246 }
39247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39248 {
39249 arg2 = &temp2;
39250 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39251 }
39252 {
39253 PyThreadState* __tstate = wxPyBeginAllowThreads();
39254 (arg1)->SetTextForeground((wxColour const &)*arg2);
39255 wxPyEndAllowThreads(__tstate);
39256 if (PyErr_Occurred()) SWIG_fail;
39257 }
39258 resultobj = SWIG_Py_Void();
39259 return resultobj;
39260fail:
39261 return NULL;
39262}
39263
39264
39265SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39266 PyObject *resultobj = 0;
39267 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39268 wxColour *arg2 = 0 ;
39269 void *argp1 = 0 ;
39270 int res1 = 0 ;
39271 wxColour temp2 ;
39272 PyObject * obj0 = 0 ;
39273 PyObject * obj1 = 0 ;
39274 char * kwnames[] = {
39275 (char *) "self",(char *) "colour", NULL
39276 };
39277
39278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39280 if (!SWIG_IsOK(res1)) {
39281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39282 }
39283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39284 {
39285 arg2 = &temp2;
39286 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39287 }
39288 {
39289 PyThreadState* __tstate = wxPyBeginAllowThreads();
39290 (arg1)->SetTextBackground((wxColour const &)*arg2);
39291 wxPyEndAllowThreads(__tstate);
39292 if (PyErr_Occurred()) SWIG_fail;
39293 }
39294 resultobj = SWIG_Py_Void();
39295 return resultobj;
39296fail:
39297 return NULL;
39298}
39299
39300
39301SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39302 PyObject *resultobj = 0;
39303 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39304 int arg2 ;
39305 void *argp1 = 0 ;
39306 int res1 = 0 ;
39307 int val2 ;
39308 int ecode2 = 0 ;
39309 PyObject * obj0 = 0 ;
39310 PyObject * obj1 = 0 ;
39311 char * kwnames[] = {
39312 (char *) "self",(char *) "function", NULL
39313 };
39314
39315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39317 if (!SWIG_IsOK(res1)) {
39318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39319 }
39320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39321 ecode2 = SWIG_AsVal_int(obj1, &val2);
39322 if (!SWIG_IsOK(ecode2)) {
39323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39324 }
39325 arg2 = static_cast< int >(val2);
39326 {
39327 PyThreadState* __tstate = wxPyBeginAllowThreads();
39328 (arg1)->SetLogicalFunction(arg2);
39329 wxPyEndAllowThreads(__tstate);
39330 if (PyErr_Occurred()) SWIG_fail;
39331 }
39332 resultobj = SWIG_Py_Void();
39333 return resultobj;
39334fail:
39335 return NULL;
39336}
39337
39338
39339SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39340 PyObject *obj;
39341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39342 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39343 return SWIG_Py_Void();
39344}
39345
39346SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39347 return SWIG_Python_InitShadowInstance(args);
39348}
39349
39350static PyMethodDef SwigMethods[] = {
39351 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39352 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39353 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39354 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39355 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39356 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39360 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39361 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39362 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 39363 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 39364 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
39365 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39370 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 39372 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39373 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39374 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39375 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39376 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39378 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 39381 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
39382 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39383 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39384 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39386 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39387 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39388 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39389 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39390 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 39391 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
39392 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39399 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39401 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39402 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39406 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39407 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39410 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39414 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39415 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39416 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 39417 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
39418 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39419 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39420 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39422 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39428 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39429 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
39430 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39431 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39432 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39433 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39434 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39435 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39436 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39442 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
39449 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39451 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39454 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39455 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39459 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39460 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39461 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39462 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39463 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39464 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39465 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39466 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39467 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39468 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39469 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39470 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39471 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39472 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39473 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39475 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39476 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39482 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39483 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39484 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39485 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39486 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39487 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39488 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39489 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39490 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39491 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39492 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39493 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39495 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39496 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39502 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39503 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
39504 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39506 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39507 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39508 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39510 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39511 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39516 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39517 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
39518 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39519 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39520 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39521 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39527 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39528 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39530 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39531 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39533 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39535 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39536 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39537 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39538 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39541 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39545 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39546 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39548 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39551 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39552 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
39553 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39554 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39555 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39556 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39561 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39562 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39567 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39568 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39574 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39578 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39579 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39589 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39592 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39593 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39595 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39596 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39597 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39598 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39599 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39600 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39601 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39602 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39603 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39604 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39605 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39606 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39607 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39608 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39609 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39610 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39611 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39613 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39614 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39615 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39616 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39617 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39618 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39619 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39620 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39630 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39631 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39633 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39634 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39635 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39636 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39637 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39638 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39639 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39640 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39641 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39643 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39644 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39645 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39648 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39649 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39650 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39653 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39654 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39659 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39664 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39665 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39667 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39672 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
39673 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39676 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39677 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39678 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39679 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39680 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39681 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39682 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39683 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39684 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39685 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39686 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39687 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39688 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39696 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39700 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39701 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39702 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39704 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39705 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39707 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39708 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39709 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39710 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39713 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39714 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39715 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39716 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39717 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39718 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39719 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39720 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39721 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39722 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39723 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39724 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39725 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39727 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39730 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39731 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39732 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39733 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39734 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39735 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39736 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39737 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39739 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39740 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39742 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39747 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39748 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39749 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39751 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39755 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39756 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39757 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39758 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39759 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39760 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39763 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39766 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39767 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39768 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39807 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39808 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39818 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39820 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39821 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39822 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39829 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39830 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39831 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39832 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39833 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39838 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39839 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39840 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39841 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39847 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39848 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39850 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39851 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39852 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39853 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39854 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39855 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39856 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39857 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39858 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39859 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39860 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39861 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39862 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39863 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39864 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39866 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39868 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39870 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39871 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39874 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39875 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39879 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39881 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39884 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39885 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39886 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39887 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39888 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39889 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39890 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39891 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39892 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39899 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39901 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39902 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39903 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39905 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39906 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39907 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39909 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39910 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39911 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39912 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39913 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39914 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39915 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39916 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39918 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39919 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39920 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39921 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39923 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39924 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39926 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39927 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39929 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39930 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39935 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39936 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39937 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39938 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39939 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39941 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39942 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39943 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39945 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39946 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39948 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39949 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39950 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39952 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39953 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39955 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39958 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39959 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39960 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39962 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
39963 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39965 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39966 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39967 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39968 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39969 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39970 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39972 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39973 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39974 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39976 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39977 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39978 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39979 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39980 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39981 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39982 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39983 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39984 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39985 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39986 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39987 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39988 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39989 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39990 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39991 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39992 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39993 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39994 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
39995 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39996 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39997 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39998 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39999 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40000 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40002 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40004 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40005 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40008 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 40009 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
40010 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40011 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40012 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40013 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40014 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40015 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 40016 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
40017 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40018 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40019 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
40021 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40024 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40025 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40026 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40027 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
40028 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40029 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 40030 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 40031 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 40032 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 40033 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 40034 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
40035 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40036 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40037 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40038 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40039 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40040 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40041 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40042 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 40043 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 40044 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
40045 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40046 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
40047 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40048 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40049 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40051 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
40052 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40054 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
40055 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40056 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40057 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
40058 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
40061 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40062 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 40063 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40064 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40065 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40066 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 40069 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 40070 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40071 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40074 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 40075 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 40076 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
40077 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40078 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40079 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 40080 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
40081 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40082 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40083 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40084 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 40091 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 40092 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
40093 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40094 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40095 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40096 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
40097 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40098 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40099 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40100 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40101 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40102 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40103 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40104 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40105 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40106 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40107 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40109 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40112 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40113 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40116 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40117 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40119 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40121 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
40122 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40123 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40124 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40125 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40126 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40130 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40132 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40133 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40134 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40135 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40136 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 40137 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 40138 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40139 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40140 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 40141 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 40142 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40143 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40144 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
40145 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40146 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
40147 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
40149 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40150 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40151 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40152 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40153 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40155 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40156 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
40157 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40158 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40159 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40160 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
40161 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40162 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40163 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40164 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40165 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40166 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40167 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40168 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40169 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40170 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40171 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40172 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40173 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40175 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40176 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40177 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40178 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40179 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40180 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40181 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40182 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40183 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
40184 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40185 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40186 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40187 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40188 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40189 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40190 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40191 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40192 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40193 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40194 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40195 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40196 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40197 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40198 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40199 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40200 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40201 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40202 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40203 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40204 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40205 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40206 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40207 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40208 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40209 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
40210 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40211 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40212 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40213 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40214 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40215 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40216 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
40217 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40218 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40219 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40220 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40221 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40222 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40223 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40224 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40225 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40226 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
40227 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40228 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40229 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40230 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40231 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40232 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40233 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40234 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40235 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40236 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40237 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40238 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40239 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40240 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
40241 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40242 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40243 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40244 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40245 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40246 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40247 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40248 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40249 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40250 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40251 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40252 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40253 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40254 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40255 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40256 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40257 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40258 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40259 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40260 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40261 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40262 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40263 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40264 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40265 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40266 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40267 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40268 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40269 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40270 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40271 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40272 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40273 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40274 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40275 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40276 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40277 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40278 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40279 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40280 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40281 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40282 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40283 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40284 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40285 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40286 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40287 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40288 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40289 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40290 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40291 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40292 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40293 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40294 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40295 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40296 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40297 { NULL, NULL, 0, NULL }
40298};
40299
40300
40301/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40302
72ef6efb
RD
40303static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40304 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40305}
8e99bda9
RD
40306static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40307 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40308}
40309static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40310 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40311}
26c4d26f
RD
40312static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40313 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40314}
40315static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40316 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40317}
72ef6efb
RD
40318static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40319 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40320}
40321static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40322 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40323}
26c4d26f
RD
40324static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40325 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40326}
fc46b7f3
RD
40327static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40328 return (void *)((wxLocale *) ((wxPyLocale *) x));
40329}
70d7cb34
RD
40330static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40331 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40332}
40333static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40334 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40335}
40336static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40337 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40338}
40339static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40340 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40341}
40342static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40343 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40344}
40345static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40346 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40347}
554f62e9
RD
40348static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40349 return (void *)((wxGDIObject *) ((wxIcon *) x));
40350}
40351static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40352 return (void *)((wxGDIObject *) ((wxPalette *) x));
40353}
40354static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40355 return (void *)((wxGDIObject *) ((wxPen *) x));
40356}
40357static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40358 return (void *)((wxGDIObject *) ((wxFont *) x));
40359}
40360static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40361 return (void *)((wxGDIObject *) ((wxCursor *) x));
40362}
40363static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40364 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40365}
40366static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40367 return (void *)((wxGDIObject *) ((wxRegion *) x));
40368}
40369static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40370 return (void *)((wxGDIObject *) ((wxBrush *) x));
40371}
72ef6efb
RD
40372static void *_p_wxGCDCTo_p_wxDC(void *x) {
40373 return (void *)((wxDC *) ((wxGCDC *) x));
40374}
554f62e9
RD
40375static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40376 return (void *)((wxDC *) ((wxScreenDC *) x));
40377}
24f6c4e8 40378static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 40379 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 40380}
554f62e9
RD
40381static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40382 return (void *)((wxDC *) ((wxMirrorDC *) x));
40383}
554f62e9
RD
40384static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40385 return (void *)((wxDC *) ((wxWindowDC *) x));
40386}
26c4d26f
RD
40387static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40388 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40389}
554f62e9
RD
40390static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40391 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40392}
554f62e9 40393static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 40394 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40395}
40396static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 40397 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 40398}
24f6c4e8 40399static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 40400 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
40401}
40402static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40403 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40404}
554f62e9
RD
40405static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40406 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40407}
40408static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40409 return (void *)((wxDC *) ((wxPrinterDC *) x));
40410}
50efceee
RD
40411static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40412 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40413}
40414static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40415 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40416}
40417static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40418 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40419}
554f62e9
RD
40420static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40421 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40422}
40423static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40424 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40425}
40426static void *_p_wxPenTo_p_wxObject(void *x) {
40427 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40428}
40429static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40430 return (void *)((wxObject *) ((wxRegionIterator *) x));
40431}
4976f996
RD
40432static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
40433 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
40434}
554f62e9
RD
40435static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40436 return (void *)((wxObject *) ((wxSizerItem *) x));
40437}
0f83f5da
RD
40438static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40439 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40440}
554f62e9
RD
40441static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40443}
40444static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40445 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40446}
40447static void *_p_wxIconTo_p_wxObject(void *x) {
40448 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40449}
40450static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40451 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40452}
40453static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40454 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40455}
40456static void *_p_wxSizerTo_p_wxObject(void *x) {
40457 return (void *)((wxObject *) ((wxSizer *) x));
40458}
40459static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40460 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40461}
40462static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40463 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40464}
554f62e9
RD
40465static void *_p_wxEventTo_p_wxObject(void *x) {
40466 return (void *)((wxObject *) ((wxEvent *) x));
40467}
554f62e9
RD
40468static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40469 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40470}
4976f996
RD
40471static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40472 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40473}
554f62e9
RD
40474static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40475 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40476}
27e45892
RD
40477static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40478 return (void *)((wxObject *) ((wxPseudoDC *) x));
40479}
2131d850
RD
40480static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40481 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40482}
554f62e9
RD
40483static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40484 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40485}
40486static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40487 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40488}
40489static void *_p_wxDCTo_p_wxObject(void *x) {
40490 return (void *)((wxObject *) ((wxDC *) x));
40491}
40492static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40493 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40494}
40495static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40496 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40497}
40498static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40499 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40500}
40501static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40502 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40503}
40504static void *_p_wxControlTo_p_wxObject(void *x) {
40505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40506}
70d7cb34
RD
40507static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40508 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40509}
554f62e9
RD
40510static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40511 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40512}
40513static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 40514 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40515}
40516static void *_p_wxFSFileTo_p_wxObject(void *x) {
40517 return (void *)((wxObject *) ((wxFSFile *) x));
40518}
40519static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 40520 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
554f62e9
RD
40521}
40522static void *_p_wxRegionTo_p_wxObject(void *x) {
40523 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40524}
40525static void *_p_wxPySizerTo_p_wxObject(void *x) {
40526 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40527}
40528static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40529 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40530}
40531static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40532 return (void *)((wxObject *) ((wxGDIObject *) x));
40533}
70d7cb34
RD
40534static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40535 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40536}
40537static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40538 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40539}
554f62e9
RD
40540static void *_p_wxEffectsTo_p_wxObject(void *x) {
40541 return (void *)((wxObject *) ((wxEffects *) x));
40542}
40543static void *_p_wxPyEventTo_p_wxObject(void *x) {
40544 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40545}
40546static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40548}
40549static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40550 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40551}
70d7cb34
RD
40552static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40553 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40554}
554f62e9
RD
40555static void *_p_wxShowEventTo_p_wxObject(void *x) {
40556 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40557}
40558static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40559 return (void *)((wxObject *) ((wxMenuItem *) x));
40560}
40561static void *_p_wxDateEventTo_p_wxObject(void *x) {
40562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40563}
40564static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40565 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40566}
40567static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40569}
40570static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40571 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40572}
40573static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40574 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40575}
40576static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40577 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40578}
40579static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40580 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40581}
40582static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40583 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40584}
40585static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40586 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40587}
40588static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40589 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40590}
40591static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40592 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40593}
40594static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40595 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40596}
40597static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40598 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40599}
40600static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40601 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40602}
40603static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40604 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40605}
40606static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40607 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40608}
40609static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40610 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40611}
40612static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40613 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40614}
40615static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40616 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40617}
40618static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40619 return (void *)((wxObject *) ((wxImageHandler *) x));
40620}
40621static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40622 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40623}
40624static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40625 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40626}
580080c5
RD
40627static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40628 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40629}
554f62e9
RD
40630static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40631 return (void *)((wxObject *) ((wxEvtHandler *) x));
40632}
0f83f5da
RD
40633static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40634 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40635}
24f6c4e8
RD
40636static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40637 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40638}
554f62e9 40639static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 40640 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 40641}
24f6c4e8
RD
40642static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40643 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
40644}
40645static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40646 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40647}
40648static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40649 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40650}
554f62e9
RD
40651static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40652 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40653}
580080c5
RD
40654static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40655 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40656}
554f62e9
RD
40657static void *_p_wxImageTo_p_wxObject(void *x) {
40658 return (void *)((wxObject *) ((wxImage *) x));
40659}
40660static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40661 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40662}
70d7cb34
RD
40663static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40664 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40665}
40666static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40667 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40668}
554f62e9
RD
40669static void *_p_wxPaletteTo_p_wxObject(void *x) {
40670 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40671}
40672static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 40673 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
40674}
40675static void *_p_wxImageListTo_p_wxObject(void *x) {
40676 return (void *)((wxObject *) ((wxImageList *) x));
40677}
72ef6efb
RD
40678static void *_p_wxGCDCTo_p_wxObject(void *x) {
40679 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40680}
554f62e9
RD
40681static void *_p_wxCursorTo_p_wxObject(void *x) {
40682 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40683}
40684static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40685 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40686}
40687static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40688 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40689}
70d7cb34
RD
40690static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40691 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40692}
554f62e9
RD
40693static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40694 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40695}
40696static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40697 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40698}
40699static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40700 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40701}
40702static void *_p_wxWindowTo_p_wxObject(void *x) {
40703 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40704}
40705static void *_p_wxMenuTo_p_wxObject(void *x) {
40706 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40707}
40708static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40709 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40710}
40711static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40712 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40713}
554f62e9
RD
40714static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40715 return (void *)((wxObject *) ((wxFileSystem *) x));
40716}
40717static void *_p_wxBitmapTo_p_wxObject(void *x) {
40718 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40719}
40720static void *_p_wxMaskTo_p_wxObject(void *x) {
40721 return (void *)((wxObject *) ((wxMask *) x));
40722}
70d7cb34
RD
40723static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40724 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40725}
554f62e9
RD
40726static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40728}
40729static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40730 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40731}
40732static void *_p_wxPyAppTo_p_wxObject(void *x) {
40733 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40734}
40735static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40736 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40737}
40738static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40739 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40740}
40741static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40742 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40743}
40744static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40745 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40746}
40747static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40748 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40749}
40750static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40751 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40752}
40753static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40754 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40755}
40756static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40757 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40758}
40759static void *_p_wxFontTo_p_wxObject(void *x) {
40760 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40761}
40762static void *_p_wxBrushTo_p_wxObject(void *x) {
40763 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40764}
40765static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40766 return (void *)((wxObject *) ((wxMetaFile *) x));
40767}
40768static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40770}
40771static void *_p_wxColourTo_p_wxObject(void *x) {
40772 return (void *)((wxObject *) ((wxColour *) x));
40773}
554f62e9
RD
40774static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40775 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40776}
40777static void *_p_wxValidatorTo_p_wxObject(void *x) {
40778 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40779}
40780static void *_p_wxControlTo_p_wxWindow(void *x) {
40781 return (void *)((wxWindow *) ((wxControl *) x));
40782}
40783static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40784 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40785}
40786static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40787 return (void *)((wxWindow *) ((wxMenuBar *) x));
40788}
fc46b7f3
RD
40789static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40790 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40791}
40792static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40793 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40794}
40795static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40796static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40797static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40798static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40799static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40800static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40801static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40802static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40803static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40804static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40805static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40806static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40807static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40808static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40809static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40810static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40811static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40812static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9
RD
40813static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40814static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40815static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40816static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40817static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40818static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40819static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40820static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40821static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40822static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40823static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40824static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40825static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40826static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40827static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40828static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40829static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40830static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40831static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40832static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40833static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40834static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40835static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40836static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40837static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40838static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40839static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40840static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40841static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40842static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40843static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40844static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40845static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40846static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40847static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40848static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40849static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40850static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40851static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40852static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40853static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40854static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40855static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40856static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40857static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40858static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40859static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
4976f996 40860static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
554f62e9 40861static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40862static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40863static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40864static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40865static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40866static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40867static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40868static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40869static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40870static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40871static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
554f62e9 40872static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
4976f996 40873static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
554f62e9 40874static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40875static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40876static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40877static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40878static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40879static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40880static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40881static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40882static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40883static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40884static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40885static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40886static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40887static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40888static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40889static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
40890static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40891static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40892static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40893static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40894static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40895static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40896static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40897static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
4976f996 40898static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
554f62e9 40899static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40900static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40901static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40902static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40903static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40904static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40905static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40906static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40907static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40908static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40909static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40910static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40911static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40912static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40913static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40914static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9 40915static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40916static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
554f62e9
RD
40917static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40918static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40919static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40920static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40921static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40922static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40923static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40924static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40925static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40926static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40927static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40928static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40929static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40930static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40931static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40932static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40933static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40934static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40935static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40936static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40937static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
40938static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40939static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40940static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40941static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40942static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40943static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 40944static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40945static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
554f62e9
RD
40946static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40947static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40948static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40949static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 40950static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40951static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 40952static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40953static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
554f62e9
RD
40954static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40955static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40956static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40957static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40958static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40959static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40960static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40961static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
40962static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40963static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40964static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40965
40966static swig_type_info *swig_type_initial[] = {
fc46b7f3 40967 &_swigt__p_buffer,
554f62e9
RD
40968 &_swigt__p_char,
40969 &_swigt__p_double,
40970 &_swigt__p_form_ops_t,
40971 &_swigt__p_int,
40972 &_swigt__p_unsigned_char,
40973 &_swigt__p_unsigned_int,
40974 &_swigt__p_unsigned_long,
0a27f394 40975 &_swigt__p_void,
554f62e9
RD
40976 &_swigt__p_wxANIHandler,
40977 &_swigt__p_wxAcceleratorTable,
40978 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40979 &_swigt__p_wxAlphaPixelData,
40980 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40981 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
40982 &_swigt__p_wxBMPHandler,
40983 &_swigt__p_wxBitmap,
40984 &_swigt__p_wxBoxSizer,
40985 &_swigt__p_wxBrush,
40986 &_swigt__p_wxBrushList,
40987 &_swigt__p_wxBufferedDC,
40988 &_swigt__p_wxBufferedPaintDC,
40989 &_swigt__p_wxCURHandler,
fc46b7f3 40990 &_swigt__p_wxChar,
554f62e9
RD
40991 &_swigt__p_wxChildFocusEvent,
40992 &_swigt__p_wxClientDC,
2131d850 40993 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
40994 &_swigt__p_wxCloseEvent,
40995 &_swigt__p_wxColour,
40996 &_swigt__p_wxColourDatabase,
40997 &_swigt__p_wxCommandEvent,
40998 &_swigt__p_wxContextMenuEvent,
40999 &_swigt__p_wxControl,
41000 &_swigt__p_wxControlWithItems,
41001 &_swigt__p_wxCursor,
41002 &_swigt__p_wxDC,
70d7cb34
RD
41003 &_swigt__p_wxDCBrushChanger,
41004 &_swigt__p_wxDCClipper,
b39fe951 41005 &_swigt__p_wxDCOverlay,
70d7cb34
RD
41006 &_swigt__p_wxDCPenChanger,
41007 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
41008 &_swigt__p_wxDash,
41009 &_swigt__p_wxDateEvent,
41010 &_swigt__p_wxDisplayChangedEvent,
41011 &_swigt__p_wxDropFilesEvent,
41012 &_swigt__p_wxDuplexMode,
41013 &_swigt__p_wxEffects,
41014 &_swigt__p_wxEncodingConverter,
41015 &_swigt__p_wxEraseEvent,
41016 &_swigt__p_wxEvent,
4976f996 41017 &_swigt__p_wxEventBlocker,
554f62e9
RD
41018 &_swigt__p_wxEvtHandler,
41019 &_swigt__p_wxFSFile,
41020 &_swigt__p_wxFileSystem,
41021 &_swigt__p_wxFlexGridSizer,
41022 &_swigt__p_wxFocusEvent,
41023 &_swigt__p_wxFont,
41024 &_swigt__p_wxFontList,
41025 &_swigt__p_wxFontMapper,
41026 &_swigt__p_wxGBSizerItem,
72ef6efb 41027 &_swigt__p_wxGCDC,
50efceee 41028 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
41029 &_swigt__p_wxGDIObject,
41030 &_swigt__p_wxGIFHandler,
70d7cb34 41031 &_swigt__p_wxGraphicsBrush,
72ef6efb 41032 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
41033 &_swigt__p_wxGraphicsFont,
41034 &_swigt__p_wxGraphicsMatrix,
41035 &_swigt__p_wxGraphicsObject,
72ef6efb 41036 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
41037 &_swigt__p_wxGraphicsPen,
41038 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
41039 &_swigt__p_wxGridBagSizer,
41040 &_swigt__p_wxGridSizer,
33d6fd3b 41041 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
41042 &_swigt__p_wxICOHandler,
41043 &_swigt__p_wxIcon,
41044 &_swigt__p_wxIconBundle,
41045 &_swigt__p_wxIconLocation,
41046 &_swigt__p_wxIconizeEvent,
41047 &_swigt__p_wxIdleEvent,
41048 &_swigt__p_wxImage,
41049 &_swigt__p_wxImageHandler,
41050 &_swigt__p_wxImageList,
41051 &_swigt__p_wxIndividualLayoutConstraint,
41052 &_swigt__p_wxInitDialogEvent,
41053 &_swigt__p_wxJPEGHandler,
41054 &_swigt__p_wxKeyEvent,
41055 &_swigt__p_wxLanguageInfo,
41056 &_swigt__p_wxLayoutConstraints,
41057 &_swigt__p_wxLocale,
41058 &_swigt__p_wxMask,
41059 &_swigt__p_wxMaximizeEvent,
41060 &_swigt__p_wxMemoryDC,
41061 &_swigt__p_wxMenu,
41062 &_swigt__p_wxMenuBar,
41063 &_swigt__p_wxMenuEvent,
41064 &_swigt__p_wxMenuItem,
41065 &_swigt__p_wxMetaFile,
41066 &_swigt__p_wxMetaFileDC,
41067 &_swigt__p_wxMirrorDC,
41068 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 41069 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
41070 &_swigt__p_wxMouseEvent,
41071 &_swigt__p_wxMoveEvent,
41072 &_swigt__p_wxNativeEncodingInfo,
41073 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
41074 &_swigt__p_wxNativePixelData,
41075 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
41076 &_swigt__p_wxNavigationKeyEvent,
41077 &_swigt__p_wxNcPaintEvent,
41078 &_swigt__p_wxNotifyEvent,
41079 &_swigt__p_wxObject,
b39fe951 41080 &_swigt__p_wxOverlay,
554f62e9
RD
41081 &_swigt__p_wxPCXHandler,
41082 &_swigt__p_wxPNGHandler,
41083 &_swigt__p_wxPNMHandler,
41084 &_swigt__p_wxPaintDC,
41085 &_swigt__p_wxPaintEvent,
41086 &_swigt__p_wxPalette,
41087 &_swigt__p_wxPaletteChangedEvent,
41088 &_swigt__p_wxPaperSize,
41089 &_swigt__p_wxPen,
41090 &_swigt__p_wxPenList,
fc46b7f3 41091 &_swigt__p_wxPixelDataBase,
554f62e9 41092 &_swigt__p_wxPoint,
72ef6efb 41093 &_swigt__p_wxPoint2D,
554f62e9
RD
41094 &_swigt__p_wxPostScriptDC,
41095 &_swigt__p_wxPrintData,
41096 &_swigt__p_wxPrinterDC,
27e45892 41097 &_swigt__p_wxPseudoDC,
554f62e9
RD
41098 &_swigt__p_wxPyApp,
41099 &_swigt__p_wxPyCommandEvent,
41100 &_swigt__p_wxPyEvent,
41101 &_swigt__p_wxPyFontEnumerator,
41102 &_swigt__p_wxPyImageHandler,
fc46b7f3 41103 &_swigt__p_wxPyLocale,
554f62e9
RD
41104 &_swigt__p_wxPySizer,
41105 &_swigt__p_wxPyValidator,
41106 &_swigt__p_wxQueryNewPaletteEvent,
41107 &_swigt__p_wxRect,
4fe9ce47 41108 &_swigt__p_wxRect2D,
554f62e9
RD
41109 &_swigt__p_wxRegion,
41110 &_swigt__p_wxRegionIterator,
41111 &_swigt__p_wxRendererNative,
41112 &_swigt__p_wxRendererVersion,
41113 &_swigt__p_wxScreenDC,
41114 &_swigt__p_wxScrollEvent,
41115 &_swigt__p_wxScrollWinEvent,
41116 &_swigt__p_wxSetCursorEvent,
41117 &_swigt__p_wxShowEvent,
41118 &_swigt__p_wxSize,
41119 &_swigt__p_wxSizeEvent,
41120 &_swigt__p_wxSizer,
41121 &_swigt__p_wxSizerItem,
41122 &_swigt__p_wxSplitterRenderParams,
41123 &_swigt__p_wxStaticBoxSizer,
41124 &_swigt__p_wxStdDialogButtonSizer,
50efceee 41125 &_swigt__p_wxStockGDI,
554f62e9
RD
41126 &_swigt__p_wxString,
41127 &_swigt__p_wxSysColourChangedEvent,
580080c5 41128 &_swigt__p_wxTGAHandler,
554f62e9
RD
41129 &_swigt__p_wxTIFFHandler,
41130 &_swigt__p_wxUpdateUIEvent,
41131 &_swigt__p_wxValidator,
41132 &_swigt__p_wxWindow,
41133 &_swigt__p_wxWindowCreateEvent,
41134 &_swigt__p_wxWindowDC,
41135 &_swigt__p_wxWindowDestroyEvent,
41136 &_swigt__p_wxXPMHandler,
41137};
41138
fc46b7f3 41139static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41140static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41141static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41142static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41143static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41144static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41145static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41146static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 41147static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
41148static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41149static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41150static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41151static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41152static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41153static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41154static 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}};
41155static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41156static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41157static 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}};
554f62e9
RD
41158static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41159static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41160static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41161static 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
41162static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41163static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 41164static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41165static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41166static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41167static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41168static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41169static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41170static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41171static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41172static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41173static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41174static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 41175static 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}};
554f62e9 41176static 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 41177static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41178static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41179static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41180static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41181static 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 41182static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41183static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41184static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 41185static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41186static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41187static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41188static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41189static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41190static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41191static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41192static 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}};
554f62e9 41193static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 41194static 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}};
554f62e9
RD
41195static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41196static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41197static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41198static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41199static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
41200static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41201static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41202static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41203static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41204static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41205static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41206static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41207static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41208static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41209static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41210static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41211static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41212static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41213static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41214static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41215static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41216static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41217static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41218static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41219static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41220static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41221static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41222static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41223static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41224static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41225static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41226static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41227static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41228static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41229static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41230static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41231static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41232static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41233static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41234static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41235static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41236static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41237static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41238static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41239static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41240static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41241static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41242static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41243static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41244static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41245static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41246static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41247static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41248static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41249static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41250static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41251static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 41252static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41253static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41254static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41255static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41256static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41257static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41258static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41259static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41260static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41261static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41262static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41263static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41264static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41265static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41266static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41267static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41268static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41269static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41270static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41271static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41272static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41273static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41274static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41275static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41276static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41277static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41278static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41279static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41280static 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_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_wxDateEvent, _p_wxDateEventTo_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 41281static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41282static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41283static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41284static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41285static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41286static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41287static 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}};
554f62e9 41288static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41289static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41290static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41291static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41292static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 41293static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41294static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41295static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41296static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 41297static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41298static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41299static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41300static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41301static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41302static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41303static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41304static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 41305static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41306static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41307static 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 41308static 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}};
554f62e9
RD
41309
41310static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 41311 _swigc__p_buffer,
554f62e9
RD
41312 _swigc__p_char,
41313 _swigc__p_double,
41314 _swigc__p_form_ops_t,
41315 _swigc__p_int,
41316 _swigc__p_unsigned_char,
41317 _swigc__p_unsigned_int,
41318 _swigc__p_unsigned_long,
0a27f394 41319 _swigc__p_void,
554f62e9
RD
41320 _swigc__p_wxANIHandler,
41321 _swigc__p_wxAcceleratorTable,
41322 _swigc__p_wxActivateEvent,
fc46b7f3
RD
41323 _swigc__p_wxAlphaPixelData,
41324 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 41325 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
41326 _swigc__p_wxBMPHandler,
41327 _swigc__p_wxBitmap,
41328 _swigc__p_wxBoxSizer,
41329 _swigc__p_wxBrush,
41330 _swigc__p_wxBrushList,
41331 _swigc__p_wxBufferedDC,
41332 _swigc__p_wxBufferedPaintDC,
41333 _swigc__p_wxCURHandler,
fc46b7f3 41334 _swigc__p_wxChar,
554f62e9
RD
41335 _swigc__p_wxChildFocusEvent,
41336 _swigc__p_wxClientDC,
2131d850 41337 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
41338 _swigc__p_wxCloseEvent,
41339 _swigc__p_wxColour,
41340 _swigc__p_wxColourDatabase,
41341 _swigc__p_wxCommandEvent,
41342 _swigc__p_wxContextMenuEvent,
41343 _swigc__p_wxControl,
41344 _swigc__p_wxControlWithItems,
41345 _swigc__p_wxCursor,
41346 _swigc__p_wxDC,
70d7cb34
RD
41347 _swigc__p_wxDCBrushChanger,
41348 _swigc__p_wxDCClipper,
b39fe951 41349 _swigc__p_wxDCOverlay,
70d7cb34
RD
41350 _swigc__p_wxDCPenChanger,
41351 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
41352 _swigc__p_wxDash,
41353 _swigc__p_wxDateEvent,
41354 _swigc__p_wxDisplayChangedEvent,
41355 _swigc__p_wxDropFilesEvent,
41356 _swigc__p_wxDuplexMode,
41357 _swigc__p_wxEffects,
41358 _swigc__p_wxEncodingConverter,
41359 _swigc__p_wxEraseEvent,
41360 _swigc__p_wxEvent,
4976f996 41361 _swigc__p_wxEventBlocker,
554f62e9
RD
41362 _swigc__p_wxEvtHandler,
41363 _swigc__p_wxFSFile,
41364 _swigc__p_wxFileSystem,
41365 _swigc__p_wxFlexGridSizer,
41366 _swigc__p_wxFocusEvent,
41367 _swigc__p_wxFont,
41368 _swigc__p_wxFontList,
41369 _swigc__p_wxFontMapper,
41370 _swigc__p_wxGBSizerItem,
72ef6efb 41371 _swigc__p_wxGCDC,
50efceee 41372 _swigc__p_wxGDIObjListBase,
554f62e9
RD
41373 _swigc__p_wxGDIObject,
41374 _swigc__p_wxGIFHandler,
70d7cb34 41375 _swigc__p_wxGraphicsBrush,
72ef6efb 41376 _swigc__p_wxGraphicsContext,
70d7cb34
RD
41377 _swigc__p_wxGraphicsFont,
41378 _swigc__p_wxGraphicsMatrix,
41379 _swigc__p_wxGraphicsObject,
72ef6efb 41380 _swigc__p_wxGraphicsPath,
70d7cb34
RD
41381 _swigc__p_wxGraphicsPen,
41382 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
41383 _swigc__p_wxGridBagSizer,
41384 _swigc__p_wxGridSizer,
33d6fd3b 41385 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
41386 _swigc__p_wxICOHandler,
41387 _swigc__p_wxIcon,
41388 _swigc__p_wxIconBundle,
41389 _swigc__p_wxIconLocation,
41390 _swigc__p_wxIconizeEvent,
41391 _swigc__p_wxIdleEvent,
41392 _swigc__p_wxImage,
41393 _swigc__p_wxImageHandler,
41394 _swigc__p_wxImageList,
41395 _swigc__p_wxIndividualLayoutConstraint,
41396 _swigc__p_wxInitDialogEvent,
41397 _swigc__p_wxJPEGHandler,
41398 _swigc__p_wxKeyEvent,
41399 _swigc__p_wxLanguageInfo,
41400 _swigc__p_wxLayoutConstraints,
41401 _swigc__p_wxLocale,
41402 _swigc__p_wxMask,
41403 _swigc__p_wxMaximizeEvent,
41404 _swigc__p_wxMemoryDC,
41405 _swigc__p_wxMenu,
41406 _swigc__p_wxMenuBar,
41407 _swigc__p_wxMenuEvent,
41408 _swigc__p_wxMenuItem,
41409 _swigc__p_wxMetaFile,
41410 _swigc__p_wxMetaFileDC,
41411 _swigc__p_wxMirrorDC,
41412 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 41413 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
41414 _swigc__p_wxMouseEvent,
41415 _swigc__p_wxMoveEvent,
41416 _swigc__p_wxNativeEncodingInfo,
41417 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
41418 _swigc__p_wxNativePixelData,
41419 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
41420 _swigc__p_wxNavigationKeyEvent,
41421 _swigc__p_wxNcPaintEvent,
41422 _swigc__p_wxNotifyEvent,
41423 _swigc__p_wxObject,
b39fe951 41424 _swigc__p_wxOverlay,
554f62e9
RD
41425 _swigc__p_wxPCXHandler,
41426 _swigc__p_wxPNGHandler,
41427 _swigc__p_wxPNMHandler,
41428 _swigc__p_wxPaintDC,
41429 _swigc__p_wxPaintEvent,
41430 _swigc__p_wxPalette,
41431 _swigc__p_wxPaletteChangedEvent,
41432 _swigc__p_wxPaperSize,
41433 _swigc__p_wxPen,
41434 _swigc__p_wxPenList,
fc46b7f3 41435 _swigc__p_wxPixelDataBase,
554f62e9 41436 _swigc__p_wxPoint,
72ef6efb 41437 _swigc__p_wxPoint2D,
554f62e9
RD
41438 _swigc__p_wxPostScriptDC,
41439 _swigc__p_wxPrintData,
41440 _swigc__p_wxPrinterDC,
27e45892 41441 _swigc__p_wxPseudoDC,
554f62e9
RD
41442 _swigc__p_wxPyApp,
41443 _swigc__p_wxPyCommandEvent,
41444 _swigc__p_wxPyEvent,
41445 _swigc__p_wxPyFontEnumerator,
41446 _swigc__p_wxPyImageHandler,
fc46b7f3 41447 _swigc__p_wxPyLocale,
554f62e9
RD
41448 _swigc__p_wxPySizer,
41449 _swigc__p_wxPyValidator,
41450 _swigc__p_wxQueryNewPaletteEvent,
41451 _swigc__p_wxRect,
4fe9ce47 41452 _swigc__p_wxRect2D,
554f62e9
RD
41453 _swigc__p_wxRegion,
41454 _swigc__p_wxRegionIterator,
41455 _swigc__p_wxRendererNative,
41456 _swigc__p_wxRendererVersion,
41457 _swigc__p_wxScreenDC,
41458 _swigc__p_wxScrollEvent,
41459 _swigc__p_wxScrollWinEvent,
41460 _swigc__p_wxSetCursorEvent,
41461 _swigc__p_wxShowEvent,
41462 _swigc__p_wxSize,
41463 _swigc__p_wxSizeEvent,
41464 _swigc__p_wxSizer,
41465 _swigc__p_wxSizerItem,
41466 _swigc__p_wxSplitterRenderParams,
41467 _swigc__p_wxStaticBoxSizer,
41468 _swigc__p_wxStdDialogButtonSizer,
50efceee 41469 _swigc__p_wxStockGDI,
554f62e9
RD
41470 _swigc__p_wxString,
41471 _swigc__p_wxSysColourChangedEvent,
580080c5 41472 _swigc__p_wxTGAHandler,
554f62e9
RD
41473 _swigc__p_wxTIFFHandler,
41474 _swigc__p_wxUpdateUIEvent,
41475 _swigc__p_wxValidator,
41476 _swigc__p_wxWindow,
41477 _swigc__p_wxWindowCreateEvent,
41478 _swigc__p_wxWindowDC,
41479 _swigc__p_wxWindowDestroyEvent,
41480 _swigc__p_wxXPMHandler,
41481};
41482
41483
41484/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41485
41486static swig_const_info swig_const_table[] = {
41487{0, 0, 0, 0.0, 0, 0}};
41488
41489#ifdef __cplusplus
41490}
41491#endif
41492/* -----------------------------------------------------------------------------
41493 * Type initialization:
41494 * This problem is tough by the requirement that no dynamic
41495 * memory is used. Also, since swig_type_info structures store pointers to
41496 * swig_cast_info structures and swig_cast_info structures store pointers back
41497 * to swig_type_info structures, we need some lookup code at initialization.
41498 * The idea is that swig generates all the structures that are needed.
41499 * The runtime then collects these partially filled structures.
41500 * The SWIG_InitializeModule function takes these initial arrays out of
41501 * swig_module, and does all the lookup, filling in the swig_module.types
41502 * array with the correct data and linking the correct swig_cast_info
41503 * structures together.
41504 *
41505 * The generated swig_type_info structures are assigned staticly to an initial
41506 * array. We just loop though that array, and handle each type individually.
41507 * First we lookup if this type has been already loaded, and if so, use the
41508 * loaded structure instead of the generated one. Then we have to fill in the
41509 * cast linked list. The cast data is initially stored in something like a
41510 * two-dimensional array. Each row corresponds to a type (there are the same
41511 * number of rows as there are in the swig_type_initial array). Each entry in
41512 * a column is one of the swig_cast_info structures for that type.
41513 * The cast_initial array is actually an array of arrays, because each row has
41514 * a variable number of columns. So to actually build the cast linked list,
41515 * we find the array of casts associated with the type, and loop through it
41516 * adding the casts to the list. The one last trick we need to do is making
41517 * sure the type pointer in the swig_cast_info struct is correct.
41518 *
41519 * First off, we lookup the cast->type name to see if it is already loaded.
41520 * There are three cases to handle:
41521 * 1) If the cast->type has already been loaded AND the type we are adding
41522 * casting info to has not been loaded (it is in this module), THEN we
41523 * replace the cast->type pointer with the type pointer that has already
41524 * been loaded.
41525 * 2) If BOTH types (the one we are adding casting info to, and the
41526 * cast->type) are loaded, THEN the cast info has already been loaded by
41527 * the previous module so we just ignore it.
41528 * 3) Finally, if cast->type has not already been loaded, then we add that
41529 * swig_cast_info to the linked list (because the cast->type) pointer will
41530 * be correct.
41531 * ----------------------------------------------------------------------------- */
41532
41533#ifdef __cplusplus
41534extern "C" {
41535#if 0
41536} /* c-mode */
41537#endif
41538#endif
41539
41540#if 0
41541#define SWIGRUNTIME_DEBUG
41542#endif
41543
41544SWIGRUNTIME void
41545SWIG_InitializeModule(void *clientdata) {
41546 size_t i;
41547 swig_module_info *module_head;
41548 static int init_run = 0;
41549
41550 clientdata = clientdata;
41551
41552 if (init_run) return;
41553 init_run = 1;
41554
41555 /* Initialize the swig_module */
41556 swig_module.type_initial = swig_type_initial;
41557 swig_module.cast_initial = swig_cast_initial;
41558
41559 /* Try and load any already created modules */
41560 module_head = SWIG_GetModule(clientdata);
41561 if (module_head) {
41562 swig_module.next = module_head->next;
41563 module_head->next = &swig_module;
41564 } else {
41565 /* This is the first module loaded */
41566 swig_module.next = &swig_module;
41567 SWIG_SetModule(clientdata, &swig_module);
41568 }
41569
41570 /* Now work on filling in swig_module.types */
41571#ifdef SWIGRUNTIME_DEBUG
41572 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41573#endif
41574 for (i = 0; i < swig_module.size; ++i) {
41575 swig_type_info *type = 0;
41576 swig_type_info *ret;
41577 swig_cast_info *cast;
41578
41579#ifdef SWIGRUNTIME_DEBUG
41580 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41581#endif
41582
41583 /* if there is another module already loaded */
41584 if (swig_module.next != &swig_module) {
41585 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 41586 }
554f62e9
RD
41587 if (type) {
41588 /* Overwrite clientdata field */
41589#ifdef SWIGRUNTIME_DEBUG
41590 printf("SWIG_InitializeModule: found type %s\n", type->name);
41591#endif
41592 if (swig_module.type_initial[i]->clientdata) {
41593 type->clientdata = swig_module.type_initial[i]->clientdata;
41594#ifdef SWIGRUNTIME_DEBUG
41595 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41596#endif
41597 }
41598 } else {
41599 type = swig_module.type_initial[i];
be9b1dca 41600 }
554f62e9
RD
41601
41602 /* Insert casting types */
41603 cast = swig_module.cast_initial[i];
41604 while (cast->type) {
41605 /* Don't need to add information already in the list */
41606 ret = 0;
41607#ifdef SWIGRUNTIME_DEBUG
41608 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41609#endif
41610 if (swig_module.next != &swig_module) {
41611 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41612#ifdef SWIGRUNTIME_DEBUG
41613 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41614#endif
41615 }
41616 if (ret) {
41617 if (type == swig_module.type_initial[i]) {
41618#ifdef SWIGRUNTIME_DEBUG
41619 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41620#endif
41621 cast->type = ret;
41622 ret = 0;
41623 } else {
41624 /* Check for casting already in the list */
41625 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41626#ifdef SWIGRUNTIME_DEBUG
41627 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41628#endif
41629 if (!ocast) ret = 0;
41630 }
41631 }
41632
41633 if (!ret) {
41634#ifdef SWIGRUNTIME_DEBUG
41635 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41636#endif
41637 if (type->cast) {
41638 type->cast->prev = cast;
41639 cast->next = type->cast;
41640 }
41641 type->cast = cast;
41642 }
41643 cast++;
be9b1dca 41644 }
554f62e9
RD
41645 /* Set entry in modules->types array equal to the type */
41646 swig_module.types[i] = type;
41647 }
41648 swig_module.types[i] = 0;
41649
41650#ifdef SWIGRUNTIME_DEBUG
41651 printf("**** SWIG_InitializeModule: Cast List ******\n");
41652 for (i = 0; i < swig_module.size; ++i) {
41653 int j = 0;
41654 swig_cast_info *cast = swig_module.cast_initial[i];
41655 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41656 while (cast->type) {
41657 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41658 cast++;
41659 ++j;
41660 }
41661 printf("---- Total casts: %d\n",j);
41662 }
41663 printf("**** SWIG_InitializeModule: Cast List ******\n");
41664#endif
41665}
41666
41667/* This function will propagate the clientdata field of type to
41668* any new swig_type_info structures that have been added into the list
41669* of equivalent types. It is like calling
41670* SWIG_TypeClientData(type, clientdata) a second time.
41671*/
41672SWIGRUNTIME void
41673SWIG_PropagateClientData(void) {
41674 size_t i;
41675 swig_cast_info *equiv;
41676 static int init_run = 0;
41677
41678 if (init_run) return;
41679 init_run = 1;
41680
41681 for (i = 0; i < swig_module.size; i++) {
41682 if (swig_module.types[i]->clientdata) {
41683 equiv = swig_module.types[i]->cast;
41684 while (equiv) {
41685 if (!equiv->converter) {
41686 if (equiv->type && !equiv->type->clientdata)
41687 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41688 }
41689 equiv = equiv->next;
41690 }
be9b1dca 41691 }
554f62e9
RD
41692 }
41693}
41694
41695#ifdef __cplusplus
41696#if 0
41697{
41698 /* c-mode */
41699#endif
41700}
41701#endif
41702
41703
41704
41705#ifdef __cplusplus
41706extern "C" {
41707#endif
41708
41709 /* Python-specific SWIG API */
41710#define SWIG_newvarlink() SWIG_Python_newvarlink()
41711#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41712#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41713
41714 /* -----------------------------------------------------------------------------
41715 * global variable support code.
41716 * ----------------------------------------------------------------------------- */
41717
41718 typedef struct swig_globalvar {
41719 char *name; /* Name of global variable */
41720 PyObject *(*get_attr)(void); /* Return the current value */
41721 int (*set_attr)(PyObject *); /* Set the value */
41722 struct swig_globalvar *next;
41723 } swig_globalvar;
41724
41725 typedef struct swig_varlinkobject {
41726 PyObject_HEAD
41727 swig_globalvar *vars;
41728 } swig_varlinkobject;
41729
41730 SWIGINTERN PyObject *
41731 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41732 return PyString_FromString("<Swig global variables>");
41733 }
41734
41735 SWIGINTERN PyObject *
41736 swig_varlink_str(swig_varlinkobject *v) {
41737 PyObject *str = PyString_FromString("(");
41738 swig_globalvar *var;
41739 for (var = v->vars; var; var=var->next) {
41740 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41741 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41742 }
41743 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41744 return str;
41745 }
41746
41747 SWIGINTERN int
41748 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41749 PyObject *str = swig_varlink_str(v);
41750 fprintf(fp,"Swig global variables ");
41751 fprintf(fp,"%s\n", PyString_AsString(str));
41752 Py_DECREF(str);
41753 return 0;
41754 }
41755
41756 SWIGINTERN void
41757 swig_varlink_dealloc(swig_varlinkobject *v) {
41758 swig_globalvar *var = v->vars;
41759 while (var) {
41760 swig_globalvar *n = var->next;
41761 free(var->name);
41762 free(var);
41763 var = n;
be9b1dca 41764 }
554f62e9
RD
41765 }
41766
41767 SWIGINTERN PyObject *
41768 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41769 PyObject *res = NULL;
41770 swig_globalvar *var = v->vars;
41771 while (var) {
41772 if (strcmp(var->name,n) == 0) {
41773 res = (*var->get_attr)();
41774 break;
41775 }
41776 var = var->next;
be9b1dca 41777 }
554f62e9
RD
41778 if (res == NULL && !PyErr_Occurred()) {
41779 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41780 }
554f62e9
RD
41781 return res;
41782 }
41783
41784 SWIGINTERN int
41785 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41786 int res = 1;
41787 swig_globalvar *var = v->vars;
41788 while (var) {
41789 if (strcmp(var->name,n) == 0) {
41790 res = (*var->set_attr)(p);
41791 break;
41792 }
41793 var = var->next;
be9b1dca 41794 }
554f62e9
RD
41795 if (res == 1 && !PyErr_Occurred()) {
41796 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41797 }
554f62e9
RD
41798 return res;
41799 }
41800
41801 SWIGINTERN PyTypeObject*
41802 swig_varlink_type(void) {
41803 static char varlink__doc__[] = "Swig var link object";
41804 static PyTypeObject varlink_type;
41805 static int type_init = 0;
41806 if (!type_init) {
41807 const PyTypeObject tmp
41808 = {
41809 PyObject_HEAD_INIT(NULL)
41810 0, /* Number of items in variable part (ob_size) */
41811 (char *)"swigvarlink", /* Type name (tp_name) */
41812 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41813 0, /* Itemsize (tp_itemsize) */
41814 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41815 (printfunc) swig_varlink_print, /* Print (tp_print) */
41816 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41817 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41818 0, /* tp_compare */
41819 (reprfunc) swig_varlink_repr, /* tp_repr */
41820 0, /* tp_as_number */
41821 0, /* tp_as_sequence */
41822 0, /* tp_as_mapping */
41823 0, /* tp_hash */
41824 0, /* tp_call */
41825 (reprfunc)swig_varlink_str, /* tp_str */
41826 0, /* tp_getattro */
41827 0, /* tp_setattro */
41828 0, /* tp_as_buffer */
41829 0, /* tp_flags */
41830 varlink__doc__, /* tp_doc */
41831 0, /* tp_traverse */
41832 0, /* tp_clear */
41833 0, /* tp_richcompare */
41834 0, /* tp_weaklistoffset */
41835#if PY_VERSION_HEX >= 0x02020000
41836 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41837#endif
41838#if PY_VERSION_HEX >= 0x02030000
41839 0, /* tp_del */
41840#endif
41841#ifdef COUNT_ALLOCS
41842 0,0,0,0 /* tp_alloc -> tp_next */
41843#endif
41844 };
41845 varlink_type = tmp;
41846 varlink_type.ob_type = &PyType_Type;
41847 type_init = 1;
be9b1dca 41848 }
554f62e9
RD
41849 return &varlink_type;
41850 }
41851
41852 /* Create a variable linking object for use later */
41853 SWIGINTERN PyObject *
41854 SWIG_Python_newvarlink(void) {
41855 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41856 if (result) {
41857 result->vars = 0;
41858 }
41859 return ((PyObject*) result);
41860 }
41861
41862 SWIGINTERN void
41863 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41864 swig_varlinkobject *v = (swig_varlinkobject *) p;
41865 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41866 if (gv) {
41867 size_t size = strlen(name)+1;
41868 gv->name = (char *)malloc(size);
41869 if (gv->name) {
41870 strncpy(gv->name,name,size);
41871 gv->get_attr = get_attr;
41872 gv->set_attr = set_attr;
41873 gv->next = v->vars;
41874 }
be9b1dca 41875 }
554f62e9
RD
41876 v->vars = gv;
41877 }
41878
41879 SWIGINTERN PyObject *
41880 SWIG_globals() {
41881 static PyObject *_SWIG_globals = 0;
41882 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41883 return _SWIG_globals;
41884 }
41885
41886 /* -----------------------------------------------------------------------------
41887 * constants/methods manipulation
41888 * ----------------------------------------------------------------------------- */
41889
41890 /* Install Constants */
41891 SWIGINTERN void
41892 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41893 PyObject *obj = 0;
41894 size_t i;
41895 for (i = 0; constants[i].type; ++i) {
41896 switch(constants[i].type) {
41897 case SWIG_PY_POINTER:
41898 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41899 break;
41900 case SWIG_PY_BINARY:
41901 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41902 break;
41903 default:
41904 obj = 0;
41905 break;
41906 }
41907 if (obj) {
41908 PyDict_SetItemString(d, constants[i].name, obj);
41909 Py_DECREF(obj);
41910 }
be9b1dca 41911 }
554f62e9
RD
41912 }
41913
41914 /* -----------------------------------------------------------------------------*/
41915 /* Fix SwigMethods to carry the callback ptrs when needed */
41916 /* -----------------------------------------------------------------------------*/
41917
41918 SWIGINTERN void
41919 SWIG_Python_FixMethods(PyMethodDef *methods,
41920 swig_const_info *const_table,
41921 swig_type_info **types,
41922 swig_type_info **types_initial) {
41923 size_t i;
41924 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41925 const char *c = methods[i].ml_doc;
554f62e9
RD
41926 if (c && (c = strstr(c, "swig_ptr: "))) {
41927 int j;
41928 swig_const_info *ci = 0;
453fb36b 41929 const char *name = c + 10;
554f62e9
RD
41930 for (j = 0; const_table[j].type; ++j) {
41931 if (strncmp(const_table[j].name, name,
41932 strlen(const_table[j].name)) == 0) {
41933 ci = &(const_table[j]);
41934 break;
41935 }
41936 }
41937 if (ci) {
41938 size_t shift = (ci->ptype) - types;
41939 swig_type_info *ty = types_initial[shift];
41940 size_t ldoc = (c - methods[i].ml_doc);
41941 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41942 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41943 if (ndoc) {
41944 char *buff = ndoc;
41945 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41946 if (ptr) {
41947 strncpy(buff, methods[i].ml_doc, ldoc);
41948 buff += ldoc;
41949 strncpy(buff, "swig_ptr: ", 10);
41950 buff += 10;
41951 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41952 methods[i].ml_doc = ndoc;
41953 }
41954 }
41955 }
41956 }
be9b1dca 41957 }
554f62e9
RD
41958 }
41959
41960#ifdef __cplusplus
41961}
41962#endif
41963
41964/* -----------------------------------------------------------------------------*
41965 * Partial Init method
41966 * -----------------------------------------------------------------------------*/
41967
41968#ifdef __cplusplus
41969extern "C"
41970#endif
41971SWIGEXPORT void SWIG_init(void) {
41972 PyObject *m, *d;
41973
41974 /* Fix SwigMethods to carry the callback ptrs when needed */
41975 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41976
41977 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41978 d = PyModule_GetDict(m);
41979
41980 SWIG_InitializeModule(0);
41981 SWIG_InstallConstants(d,swig_const_table);
41982
41983
f460c29d
RD
41984 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41985 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41986 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41987 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41988 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
41989 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41990 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41991 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41992 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41993 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41994 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41995 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41996 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41997 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41998 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41999 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42000 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42001 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42002 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42003 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42004 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42005 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42006 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42007 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42008 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42009 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42010 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42011 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42012 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42013 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42014 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42015 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42016 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42017 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42018 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42019 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42020 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42021 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42022 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42023 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42024 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42025 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42026 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42027 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42028 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42029 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42030 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42031 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42032 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42033 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42034 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42035 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42036 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42037 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42038 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42039 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42040 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42041 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42042 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42043 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42044 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42045 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42046 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42047 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42048 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42049 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42050 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42051 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42052 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42053 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42054 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42055 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42056 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42057 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42058 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42059 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42060 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42061 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42062 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42063 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42064 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42065 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42066 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42067 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42068 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42069 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42070 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42071 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42072 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42073 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42074 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42075 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42076 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42077 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42078 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42079 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42080 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42081 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42082 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42083 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42084 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42085 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42086 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42087 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42088 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42089 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42090 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42091 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42092 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42093 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42094 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42095 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42096 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42097 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42098 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42099 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42100 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42101 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42102 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42103 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42104 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42105 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42106 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42107 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42108 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42109 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42110 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42111 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42112 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42113 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42114 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42115 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42116
42117 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42118
42119 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42120 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42121 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42122 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42123 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42124 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42125 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42126 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42127 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42128 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42129 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42130 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42131 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42132 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42133 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42134 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42135 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42136 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42137 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42138 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42139 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42140 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42141 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42142 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42143 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42144 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42145 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42146 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42147 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42148 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42149 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42150 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42151 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42152 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42153 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42154 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42155 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42156 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42157 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42158 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42159 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42160 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42161 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42162 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42163 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42164 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42165 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42166 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42167 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42168 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42169 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42170 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42171 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42172 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42173 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42174 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42175 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42176 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42177 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42178 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42179 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42180 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42181 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42182 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42183 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42184 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42185 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42186 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42187 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42188 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42189 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42190 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42191 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42192 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42193 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42194 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42195 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42196 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42197 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42198 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42205 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42206 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42207 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42208 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42209 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42210 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42211 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42212 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42213 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42214 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42215 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42216 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42217 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42218 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42219 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42220 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42221 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42222 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42223 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42224 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42225 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42226 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42227 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42228 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42229 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42230 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42231 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42232 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42233 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42234 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42235 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42236 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42237 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42238 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42239 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42240 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42241 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42242 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42243 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42244 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42245 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42246 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42247 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42248 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42249 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42250 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42251 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42252 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42253 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42254 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42255 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42256 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42257 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42258 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42259 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42260 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42261 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42262 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42263 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42264 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42265 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42266 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42267 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42268 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42269 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42270 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42271 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42272 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42273 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42274 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42275 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42276 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42277 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42278 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42279 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42280 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42281 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42282 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42283 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42284 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42285 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42286 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42287 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42288 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42289 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42290 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42291 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42292 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42293 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42294 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42295 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42296 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42297 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42298 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42299 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42300 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42301 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42302 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42303 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42304 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42305 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42306 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42307 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42308 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42309 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42310 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42311 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42312 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42313 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42314 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42315 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42316 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42317 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42318 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42319 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42320 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42321 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42322 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42323 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42324 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42325 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42326 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42327 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42328 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42329 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42330 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42331 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42332 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42333 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42334 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42335 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42336 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42337 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42338 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42339 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42340 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42341 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42342 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42343 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42344 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42345 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42346 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42347 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42348 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42349 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42350 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42351 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42352 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42353 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42354 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42355 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42356 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42357 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42358 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42359 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42360 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42361 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42362 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42363 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42364 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42365 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42366 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
42367 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42368 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42369 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42370 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
42371 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42372 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
554f62e9
RD
42373 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42374 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42375 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42376 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42377 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42378 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42379 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
42380 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42381 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42382 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42383 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42384 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42385 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42386 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42387 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42388 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42389 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42390 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42391 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42392 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42393 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42394 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42395 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42396 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42397 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42398 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42399 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42400 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42401 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42402 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42403 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42404 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42405 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42406 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42407 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42408 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42409 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42410 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42411 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42412 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42413 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42414 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
42415 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42416 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42417 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42418 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42419 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42420 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42421 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42422 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
42423 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42424 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42425 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 42426 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
42427 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42428 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42429 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 42430 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
42431 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42432 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42433 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42434 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42435 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42436 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42437 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
42438 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42439 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42440 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
42441 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42442 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42443
42444 // Work around a chicken/egg problem in drawlist.cpp
42445 wxPyDrawList_SetAPIPtr();
42446
d55e5bfc
RD
42447}
42448