]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
More aui updates
[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]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
7449af73
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2641
093d3ff1 2642/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2643
554f62e9
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d55e5bfc 2658
093d3ff1
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d55e5bfc 2663
093d3ff1 2664#define SWIG_name "_gdi_"
d55e5bfc 2665
554f62e9 2666#define SWIGVERSION 0x010329
d55e5bfc 2667
d55e5bfc 2668
554f62e9
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2671
2672
554f62e9
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
093d3ff1 2684 }
554f62e9
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
093d3ff1 2689 }
554f62e9
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
093d3ff1 2719}
d55e5bfc 2720
d55e5bfc 2721
554f62e9
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
d55e5bfc 2731 }
554f62e9 2732 };
d55e5bfc
RD
2733}
2734
2735
554f62e9
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
f460c29d
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
554f62e9
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
d55e5bfc 2762
c32bde28 2763
50efceee
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
093d3ff1 2775SWIGINTERN int
554f62e9 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2780 return SWIG_TypeError;
093d3ff1
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
554f62e9 2784 return SWIG_OK;
093d3ff1 2785}
c32bde28 2786
d55e5bfc 2787
093d3ff1 2788SWIGINTERN int
554f62e9
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
093d3ff1 2791 unsigned long v;
554f62e9
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
093d3ff1 2796 } else {
554f62e9 2797 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2798 }
554f62e9
RD
2799 }
2800 return res;
093d3ff1 2801}
d55e5bfc
RD
2802
2803
554f62e9
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2806{
554f62e9
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2809}
d55e5bfc
RD
2810
2811
554f62e9
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d55e5bfc 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
093d3ff1
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
093d3ff1
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2871 return rv;
2872 }
554f62e9 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
554f62e9
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2879{
554f62e9
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d55e5bfc
RD
2890}
2891
554f62e9 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
554f62e9 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2909
093d3ff1
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
554f62e9
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2926
fc46b7f3
RD
2927#include <wx/rawbmp.h>
2928
2929
8f514ab4
RD
2930// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931// appears to me that the other platforms are already doing it, so I'll just
2932// automatically do it for wxMSW here.
2933#ifdef __WXMSW__
2934#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936#else
2937#define wxPy_premultiply(p, a) (p)
2938#define wxPy_unpremultiply(p, a) (p)
2939#endif
2940
2941
093d3ff1 2942#include <wx/image.h>
d55e5bfc 2943
093d3ff1
RD
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
d55e5bfc 2947
093d3ff1
RD
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
d55e5bfc 2954
093d3ff1
RD
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
d55e5bfc 2960 }
d55e5bfc
RD
2961
2962
554f62e9 2963SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
554f62e9 2974SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
554f62e9
RD
2980SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2981SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2982 wxSize size(self->GetWidth(), self->GetHeight());
2983 return size;
2984 }
554f62e9 2985SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2986 wxMask *mask = new wxMask(*self, colour);
2987 self->SetMask(mask);
2988 }
554f62e9 2989SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2990 self->SetWidth(size.x);
2991 self->SetHeight(size.y);
2992 }
8f514ab4
RD
2993SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2994 int height=self->GetHeight();
2995 int width=self->GetWidth();
fc46b7f3 2996
8f514ab4
RD
2997 if (DATASIZE != width * height * 3) {
2998 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2999 }
3000 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3001 if (! pixData) {
3002 // raise an exception...
3003 wxPyErr_SetString(PyExc_RuntimeError,
3004 "Failed to gain raw access to bitmap data.");
3005 return;
3006 }
fc46b7f3 3007
8f514ab4
RD
3008 wxNativePixelData::Iterator p(pixData);
3009 for (int y=0; y<height; y++) {
3010 wxNativePixelData::Iterator rowStart = p;
3011 for (int x=0; x<width; x++) {
3012 p.Red() = *(data++);
3013 p.Green() = *(data++);
3014 p.Blue() = *(data++);
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 }
3021SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3022 int height=self->GetHeight();
3023 int width=self->GetWidth();
3024
3025 if (DATASIZE != width * height * 4) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 }
3028 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return;
3034 }
3035
3036 pixData.UseAlpha();
3037 wxAlphaPixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxAlphaPixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 byte a = data[3];
3042 p.Red() = wxPy_premultiply(*(data++), a);
3043 p.Green() = wxPy_premultiply(*(data++), a);
3044 p.Blue() = wxPy_premultiply(*(data++), a);
3045 p.Alpha() = a; data++;
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 }
3052SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3053SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3054
3055 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3056 buffer data, int DATASIZE,
3057 buffer alpha, int ALPHASIZE)
3058 {
3059 if (DATASIZE != width*height*3) {
3060 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3061 return NULL;
3062 }
3063
3064 if (ALPHASIZE != width*height) {
3065 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3066 return NULL;
3067 }
3068
3069 wxBitmap* bmp = new wxBitmap(width, height, 32);
3070 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3071 if (! pixData) {
3072 // raise an exception...
3073 wxPyErr_SetString(PyExc_RuntimeError,
3074 "Failed to gain raw access to bitmap data.");
3075 return NULL;
3076 }
3077
3078 pixData.UseAlpha();
3079 wxAlphaPixelData::Iterator p(pixData);
3080 for (int y=0; y<height; y++) {
3081 wxAlphaPixelData::Iterator rowStart = p;
3082 for (int x=0; x<width; x++) {
3083 byte a = *(alpha++);
3084 p.Red() = wxPy_premultiply(*(data++), a);
3085 p.Green() = wxPy_premultiply(*(data++), a);
3086 p.Blue() = wxPy_premultiply(*(data++), a);
3087 p.Alpha() = a;
3088 ++p;
3089 }
3090 p = rowStart;
3091 p.OffsetY(pixData, 1);
3092 }
3093 return bmp;
3094 }
3095
3096 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3097 {
3098 if (DATASIZE != width*height*3) {
3099 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3100 return NULL;
3101 }
3102
3103 wxBitmap* bmp = new wxBitmap(width, height, 24);
3104 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3105 if (! pixData) {
3106 // raise an exception...
3107 wxPyErr_SetString(PyExc_RuntimeError,
3108 "Failed to gain raw access to bitmap data.");
3109 return NULL;
3110 }
3111
3112 wxNativePixelData::Iterator p(pixData);
3113 for (int y=0; y<height; y++) {
3114 wxNativePixelData::Iterator rowStart = p;
3115 for (int x=0; x<width; x++) {
3116 p.Red() = *(data++);
3117 p.Green() = *(data++);
3118 p.Blue() = *(data++);
3119 ++p;
3120 }
3121 p = rowStart;
3122 p.OffsetY(pixData, 1);
3123 }
3124 return bmp;
3125 }
3126
3127
3128 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3129 {
3130 if (DATASIZE != width*height*4) {
3131 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3132 return NULL;
3133 }
3134
3135 wxBitmap* bmp = new wxBitmap(width, height, 32);
3136 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3137 if (! pixData) {
3138 // raise an exception...
3139 wxPyErr_SetString(PyExc_RuntimeError,
3140 "Failed to gain raw access to bitmap data.");
3141 return NULL;
3142 }
3143
3144 pixData.UseAlpha();
3145 wxAlphaPixelData::Iterator p(pixData);
3146 for (int y=0; y<height; y++) {
3147 wxAlphaPixelData::Iterator rowStart = p;
3148 for (int x=0; x<width; x++) {
3149 byte a = data[3];
3150 p.Red() = wxPy_premultiply(*(data++), a);
3151 p.Green() = wxPy_premultiply(*(data++), a);
3152 p.Blue() = wxPy_premultiply(*(data++), a);
3153 p.Alpha() = a; data++;
3154 ++p;
3155 }
3156 p = rowStart;
3157 p.OffsetY(pixData, 1);
3158 }
3159 return bmp;
3160 }
3161
3162
3163 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3164
3165SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3166SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3167SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3168 self->Red() = red;
3169 self->Green() = green;
3170 self->Blue() = blue;
3171 }
3172SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3173 PyObject* rv = PyTuple_New(3);
3174 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3175 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3176 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3177 return rv;
3178 }
3179
3180 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3181
3182SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3183SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3184SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3185 self->Red() = wxPy_premultiply(red, alpha);
3186 self->Green() = wxPy_premultiply(green, alpha);
3187 self->Blue() = wxPy_premultiply(blue, alpha);
3188 self->Alpha() = alpha;
3189 }
3190SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3191 PyObject* rv = PyTuple_New(4);
3192 int red = self->Red();
3193 int green = self->Green();
3194 int blue = self->Blue();
3195 int alpha = self->Alpha();
3196
3197 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3198 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3199 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3200 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3201 return rv;
3202 }
554f62e9 3203SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3204 if ( !colour.IsOk() )
093d3ff1
RD
3205 return new wxMask(bitmap, *wxBLACK);
3206 else
3207 return new wxMask(bitmap, colour);
3208 }
d55e5bfc 3209
093d3ff1 3210#include <wx/iconbndl.h>
d55e5bfc 3211
554f62e9 3212SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3213 wxIcon* icon = new wxIcon();
3214 icon->CopyFromBitmap(bmp);
3215 return icon;
3216 }
554f62e9 3217SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3218 char** cArray = NULL;
3219 wxIcon* icon;
d55e5bfc 3220
093d3ff1
RD
3221 cArray = ConvertListOfStrings(listOfStrings);
3222 if (! cArray)
3223 return NULL;
3224 icon = new wxIcon(cArray);
3225 delete [] cArray;
3226 return icon;
3227 }
554f62e9
RD
3228SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3229SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3230
093d3ff1 3231 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3232
3233
d55e5bfc 3234
093d3ff1 3235 }
554f62e9 3236SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3237
093d3ff1 3238 self->SetIndex(num);
d55e5bfc
RD
3239
3240
d55e5bfc 3241
093d3ff1 3242 }
554f62e9 3243SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3244
093d3ff1 3245 return self->GetIndex();
d55e5bfc
RD
3246
3247
d55e5bfc 3248
093d3ff1 3249 }
554f62e9 3250SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3251#ifdef __WXGTK__
fef4c27a
RD
3252 wxImage img(cursorName, type);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3254 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3255 return new wxCursor(img);
093d3ff1 3256#else
fef4c27a 3257 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3258#endif
3259 }
554f62e9 3260SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3261
093d3ff1 3262
554f62e9 3263SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3264 (*self) ++;
3265 }
554f62e9 3266SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3267 return self->operator bool();
3268 }
3269
3270#include <wx/fontutil.h>
3271#include <wx/fontmap.h>
3272#include <wx/fontenum.h>
3273
554f62e9 3274SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3275 return self->ToString();
3276 }
3277
3278 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3279 { wxPyRaiseNotImplemented(); return NULL; }
3280
3281 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3282 { wxPyRaiseNotImplemented(); return false; }
3283
554f62e9
RD
3284
3285SWIGINTERNINLINE PyObject *
3286SWIG_From_size_t (size_t value)
3287{
3288 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3289}
3290
3291
3292SWIGINTERNINLINE int
3293SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3294{
3295 unsigned long v;
3296 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3297 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3298 return res;
3299}
3300
3301SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3302 wxFontEncoding alt_enc;
3303 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3304 return PyInt_FromLong(alt_enc);
3305 else {
3306 Py_INCREF(Py_None);
3307 return Py_None;
3308 }
3309 }
554f62e9 3310SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3311 wxNativeFontInfo nfi;
3312 nfi.FromString(info);
3313 return new wxFont(nfi);
3314 }
554f62e9 3315SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3316 return wxFont::New(pointSize, family, flags, face, encoding);
3317 }
554f62e9 3318SWIGINTERN 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
3319 return wxFontBase::New(pixelSize, family,
3320 style, weight, underlined,
3321 face, encoding);
3322 }
554f62e9 3323SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3324 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3325 }
554f62e9
RD
3326SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3327SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3328
3329class wxPyFontEnumerator : public wxFontEnumerator {
3330public:
3331 wxPyFontEnumerator() {}
3332 ~wxPyFontEnumerator() {}
3333
3334 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3335 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3336
3337 PYPRIVATE;
3338};
3339
3340IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3341IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3342
3343
704eda0c 3344SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3345 PyObject* ret;
704eda0c 3346 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3348 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3349 wxPyEndBlockThreads(blocked);
3350 return ret;
093d3ff1 3351 }
704eda0c 3352SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3353 PyObject* ret;
704eda0c 3354 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3355 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3356 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3357 wxPyEndBlockThreads(blocked);
3358 return ret;
093d3ff1
RD
3359 }
3360
3361#include <locale.h>
3362
554f62e9 3363SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3364 wxLocale* loc;
3365 if (language == -1)
3366 loc = new wxLocale();
3367 else
3368 loc = new wxLocale(language, flags);
3369 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3370 // for the floating point conversions and such to work right.
3371#if PY_VERSION_HEX < 0x02040000
3372 setlocale(LC_NUMERIC, "C");
3373#endif
3374 return loc;
3375 }
554f62e9 3376SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3377 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3378 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3379 // for the floating point conversions and such to work right.
3380#if PY_VERSION_HEX < 0x02040000
3381 setlocale(LC_NUMERIC, "C");
3382#endif
3383 return rc;
3384 }
554f62e9 3385SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3386 bool rc = self->Init(language, flags);
3387 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3388 // for the floating point conversions and such to work right.
3389#if PY_VERSION_HEX < 0x02040000
3390 setlocale(LC_NUMERIC, "C");
3391#endif
3392 return rc;
3393 }
3394
fc46b7f3
RD
3395class wxPyLocale : public wxLocale
3396{
3397public:
3398 wxPyLocale();
3399
3400 wxPyLocale(const wxChar *szName, // name (for messages)
3401 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3402 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3403 bool bLoadDefault = true, // preload wxstd.mo?
3404 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3405
3406 wxPyLocale(int language, // wxLanguage id or custom language
3407 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3408
3409 ~wxPyLocale();
3410
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szDomain = NULL) const;
3413 virtual const wxChar *GetString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain = NULL) const;
3416
3417 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3418 const wxChar *szDomain = NULL) const;
3419 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain = NULL) const;
3422
3423 PYPRIVATE;
3424private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426};
3427
3428wxPyLocale::wxPyLocale() : wxLocale()
3429{
3430}
3431
3432wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3433 const wxChar *szShort, // dir prefix (for msg files)
3434 const wxChar *szLocale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3438{
3439}
3440
3441wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443{
3444}
3445
3446wxPyLocale::~wxPyLocale()
3447{
3448}
3449
3450const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3451 const wxChar *szDomain) const
3452{
3453 wxChar *str = GetSingularString(szOrigString, szDomain);
3454 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3455}
3456
3457const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3458 const wxChar *szOrigString2, size_t n,
3459 const wxChar *szDomain) const
3460{
3461 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3462 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3463}
3464
3465wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3466 const wxChar *szDomain) const
3467{
3468 bool found;
3469 static wxString str;
3470 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.
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(szOrigString);
3474 PyObject* param2 = wx2PyString(szDomain);
3475 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3476 Py_DECREF(param1);
3477 Py_DECREF(param2);
3478 if (ret) {
3479 str = Py2wxString(ret);
3480 Py_DECREF(ret);
3481 }
3482 }
3483 wxPyEndBlockThreads(blocked);
3484 return (found ? (wxChar*)str.c_str() : NULL);
3485}
3486
3487wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3488 const wxChar *szOrigString2, size_t n,
3489 const wxChar *szDomain) const
3490{
3491 bool found;
3492 static wxString str;
3493 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.
3494 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3495 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3496 PyObject* param1 = wx2PyString(szOrigString);
3497 PyObject* param2 = wx2PyString(szOrigString2);
3498 PyObject* param4 = wx2PyString(szDomain);
3499 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? (wxChar*)str.c_str() : NULL);
3510}
3511
3512SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520#if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522#endif
3523 return loc;
3524 }
3525
093d3ff1
RD
3526#include "wx/wxPython/pydrawxxx.h"
3527
554f62e9 3528SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
554f62e9 3533SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539SWIGINTERN int
554f62e9 3540SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3541{
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3544 return SWIG_OK;
093d3ff1 3545 }
554f62e9 3546 return SWIG_TypeError;
093d3ff1
RD
3547}
3548
554f62e9 3549SWIGINTERN 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
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
554f62e9 3554SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
554f62e9 3559SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
554f62e9 3565 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3566
554f62e9 3567SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
554f62e9 3570SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
554f62e9 3573SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
554f62e9 3576SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
554f62e9 3579SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
554f62e9 3582SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
554f62e9 3585SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
554f62e9 3588SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
554f62e9 3591SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600}
3601
3602
3603#include <wx/dcbuffer.h>
3604
3605
3606#include <wx/dcps.h>
3607
3608
3609#include <wx/metafile.h>
3610
3611
72ef6efb
RD
3612#include <wx/graphics.h>
3613
3614
3615#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3616// C++ stub classes for platforms or build configurations that don't have
3617// wxGraphicsContext yet.
72ef6efb 3618
70d7cb34
RD
3619
3620class wxGraphicsObject : public wxObject
72ef6efb
RD
3621{
3622public :
70d7cb34 3623 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3624 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3625 "wx.GraphicsObject is not available on this platform.");
3626 }
3627 wxGraphicsObject( const wxGraphicsObject& ) {}
3628 virtual ~wxGraphicsObject() {}
3629 bool IsNull() const { return false; }
3630 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3631} ;
3632
3633
3634
3635class wxGraphicsPen : public wxGraphicsObject
3636{
3637 wxGraphicsPen() {}
3638 virtual ~wxGraphicsPen() {}
3639} ;
3640wxGraphicsPen wxNullGraphicsPen;
3641
3642
3643
3644class wxGraphicsBrush : public wxGraphicsObject
3645{
3646public :
3647 wxGraphicsBrush() {}
3648 virtual ~wxGraphicsBrush() {}
3649} ;
3650wxGraphicsBrush wxNullGraphicsBrush;
3651
3652
3653
3654class wxGraphicsFont : public wxGraphicsObject
3655{
3656public :
3657 wxGraphicsFont() {}
3658 virtual ~wxGraphicsFont() {}
3659} ;
3660wxGraphicsFont wxNullGraphicsFont;
3661
3662
3663
3664class wxGraphicsPath : public wxGraphicsObject
3665{
3666public :
3667 wxGraphicsPath(wxGraphicsRenderer* ) {
3668 PyErr_SetString(PyExc_NotImplementedError,
3669 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3670 }
3671 virtual ~wxGraphicsPath() {}
70d7cb34 3672
72ef6efb 3673 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3674 void MoveToPoint( const wxPoint2DDouble& ) {}
3675 void AddLineToPoint( wxDouble, wxDouble ) {}
3676 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3677 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3678 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3679 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3680 void CloseSubpath() {}
3681 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3682 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3683 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3684 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3685
3686 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3687 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3688 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3689 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3690
70d7cb34
RD
3691 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3692 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3693 void * GetNativePath() const { return NULL; }
3694 void UnGetNativePath(void *) {}
3695 void Transform( wxGraphicsMatrix* ) {}
3696 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3697 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3698
3699 bool Contains( wxDouble , wxDouble , int ) { return false; }
3700 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3701};
5c8c7dd3 3702wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3703
3704
3705class wxGraphicsMatrix : public wxGraphicsObject
3706{
3707public :
3708 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3709 PyErr_SetString(PyExc_NotImplementedError,
3710 "wx.GraphicsMatrix is not available on this platform.");
3711 }
3712 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3713 virtual void Concat( const wxGraphicsMatrix * ) {}
3714 virtual void Copy( const wxGraphicsMatrix * ) {}
3715 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3716 wxDouble , wxDouble ) {}
3717 virtual void Invert() {}
3718 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3719 virtual bool IsIdentity() { return false; }
3720 virtual void Translate( wxDouble , wxDouble ) {}
3721 virtual void Scale( wxDouble , wxDouble ) {}
3722 virtual void Rotate( wxDouble ) {}
3723 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3724 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3725 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3726};
5c8c7dd3 3727wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3728
70d7cb34
RD
3729
3730class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3731{
3732public:
70d7cb34
RD
3733
3734 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3735 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3736 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3737 }
70d7cb34 3738
72ef6efb 3739 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3740
3741 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3742 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3743 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3744 }
b876c1e4 3745
70d7cb34 3746 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3747 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3748 "wx.GraphicsContext is not available on this platform.");
3749 }
b876c1e4 3750
70d7cb34
RD
3751 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 }
3755
3756 static wxGraphicsContext* Create( wxWindow* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 wxGraphicsPath * CreatePath() { return NULL; }
3762
3763 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3764
3765 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3766
3767 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3768 const wxColour&, const wxColour&) { return NULL; }
3769
3770 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3771 wxDouble xc, wxDouble yc, wxDouble radius,
3772 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3773
3774 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3775
3776 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3777 wxDouble, wxDouble) { return NULL; }
3778
3779 virtual void PushState() {}
3780 virtual void PopState() {}
3781 virtual void Clip( const wxRegion & ) {}
3782 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual void ResetClip() {}
3784 virtual void * GetNativeContext() { return NULL; }
3785 virtual void Translate( wxDouble , wxDouble ) {}
3786 virtual void Scale( wxDouble , wxDouble ) {}
3787 virtual void Rotate( wxDouble ) {}
3788 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3789 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3790 virtual void GetTransform( wxGraphicsMatrix* ) {}
3791
3792 virtual void SetPen( const wxGraphicsPen& ) {}
3793 void SetPen( const wxPen& ) {}
3794
3795 virtual void SetBrush( const wxGraphicsBrush& ) {}
3796 void SetBrush( const wxBrush& ) {}
3797
3798 virtual void SetFont( const wxGraphicsFont& ) {}
3799 void SetFont( const wxFont&, const wxColour& ) {}
3800
3801 virtual void StrokePath( const wxGraphicsPath * ) {}
3802 virtual void FillPath( const wxGraphicsPath *, int ) {}
3803 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3804
3805 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3806 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3807 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3808 wxDouble *, wxDouble * ) const {}
3809 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3810
3811 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3812 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3813
3814 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3815 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3816 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3817 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3818 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3819 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual bool ShouldOffset() const { return false; }
3822};
3823
3824
3825class wxGraphicsRenderer : public wxObject
3826{
3827public :
3828 wxGraphicsRenderer() {
3829 PyErr_SetString(PyExc_NotImplementedError,
3830 "wx.GraphicsRenderer is not available on this platform.");
3831 }
3832
3833 virtual ~wxGraphicsRenderer() {}
3834
3835 static wxGraphicsRenderer* GetDefaultRenderer(
3836 PyErr_SetString(PyExc_NotImplementedError,
3837 "wx.GraphicsRenderer is not available on this platform.");
3838 );
3839
3840 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3841 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3842 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3843 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3844
3845 virtual wxGraphicsPath * CreatePath() { return NULL; }
3846
3847 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3848 wxDouble , wxDouble ) { return NULL; }
3849
3850 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3851 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3852 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3853 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3854 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3855 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3856 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3857};
3858
3859
70d7cb34 3860
72ef6efb
RD
3861class wxGCDC: public wxWindowDC
3862{
3863public:
3864 wxGCDC(const wxWindowDC&) {
3865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wxGCDC is not available on this platform.");
3868 wxPyEndBlockThreads(blocked);
3869 }
70d7cb34 3870
72ef6efb
RD
3871 wxGCDC() {
3872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wxGCDC is not available on this platform.");
3875 wxPyEndBlockThreads(blocked);
3876 }
70d7cb34 3877
72ef6efb
RD
3878 virtual ~wxGCDC() {}
3879
b876c1e4
RD
3880 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3881 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3882};
3883
3884#endif
3885
5c8c7dd3
RD
3886SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3887 *self = t;
3888 }
be68621e
RD
3889SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3890 wxDouble width = 0.0,
3891 height = 0.0;
3892 self->GetTextExtent(text, &width, &height, NULL, NULL);
3893 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3894 PyObject* rv = PyTuple_New(2);
3895 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3896 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3897 return rv;
3898 }
b39fe951
RD
3899SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3900 wxArrayDouble widths;
3901 self->GetPartialTextExtents(text, widths);
3902 return widths;
3903 }
f8eb59b9 3904SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3905 size_t c1, c2, count;
3906 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3907 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3908
3909 if ( beginP != NULL && endP != NULL )
3910 {
3911 count = wxMin(c1, c2);
3912 self->StrokeLines(count, beginP, endP);
3913 }
3914 delete [] beginP;
3915 delete [] endP;
3916 }
72ef6efb 3917
0a27f394
RD
3918#include "wx/dcgraph.h"
3919
3920
66493fc7
RD
3921#include <wx/overlay.h>
3922
3923
093d3ff1 3924
554f62e9 3925SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3926 self->AddColour(name, wxColour(red, green, blue));
3927 }
3928
50efceee
RD
3929 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3930 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3931 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3932 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3933
3934
093d3ff1
RD
3935#include <wx/effects.h>
3936
be9b1dca
RD
3937
3938#include "wx/renderer.h"
3939
3940
7449af73 3941SWIGINTERNINLINE PyObject*
554f62e9 3942 SWIG_From_bool (bool value)
be9b1dca 3943{
554f62e9 3944 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3945}
3946
27e45892
RD
3947
3948#include "wx/wxPython/pseudodc.h"
3949
3950SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3951 wxRect rect;
3952 self->GetIdBounds(id, rect);
3953 return rect;
3954 }
093d3ff1
RD
3955#ifdef __cplusplus
3956extern "C" {
3957#endif
554f62e9
RD
3958SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3959 PyObject *resultobj = 0;
3960 wxGDIObject *result = 0 ;
3961
3962 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3963 {
3964 if (!wxPyCheckForApp()) SWIG_fail;
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 result = (wxGDIObject *)new wxGDIObject();
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3971 return resultobj;
3972fail:
3973 return NULL;
d55e5bfc
RD
3974}
3975
3976
554f62e9
RD
3977SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978 PyObject *resultobj = 0;
3979 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 PyObject *swig_obj[1] ;
3983
3984 if (!args) SWIG_fail;
3985 swig_obj[0] = args;
3986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3987 if (!SWIG_IsOK(res1)) {
3988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3989 }
3990 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 delete arg1;
d55e5bfc 3994
554f62e9
RD
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_Py_Void();
3999 return resultobj;
4000fail:
4001 return NULL;
d55e5bfc
RD
4002}
4003
4004
554f62e9
RD
4005SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4008 bool result;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 PyObject *swig_obj[1] ;
4012
4013 if (!args) SWIG_fail;
4014 swig_obj[0] = args;
4015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4016 if (!SWIG_IsOK(res1)) {
4017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4018 }
4019 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (bool)(arg1)->IsNull();
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 {
4027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4028 }
4029 return resultobj;
4030fail:
4031 return NULL;
4032}
4033
4034
4035SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4036 PyObject *obj;
4037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4038 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4039 return SWIG_Py_Void();
4040}
4041
4042SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 return SWIG_Python_InitShadowInstance(args);
4044}
4045
4046SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj = 0;
4048 byte arg1 = (byte) 0 ;
4049 byte arg2 = (byte) 0 ;
4050 byte arg3 = (byte) 0 ;
fc46b7f3 4051 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4052 wxColour *result = 0 ;
4053 unsigned char val1 ;
4054 int ecode1 = 0 ;
4055 unsigned char val2 ;
4056 int ecode2 = 0 ;
4057 unsigned char val3 ;
4058 int ecode3 = 0 ;
fc46b7f3
RD
4059 unsigned char val4 ;
4060 int ecode4 = 0 ;
554f62e9
RD
4061 PyObject * obj0 = 0 ;
4062 PyObject * obj1 = 0 ;
4063 PyObject * obj2 = 0 ;
fc46b7f3 4064 PyObject * obj3 = 0 ;
554f62e9 4065 char * kwnames[] = {
fc46b7f3 4066 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4067 };
4068
fc46b7f3 4069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4070 if (obj0) {
4071 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4072 if (!SWIG_IsOK(ecode1)) {
4073 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4074 }
4075 arg1 = static_cast< byte >(val1);
4076 }
4077 if (obj1) {
4078 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4079 if (!SWIG_IsOK(ecode2)) {
4080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4081 }
4082 arg2 = static_cast< byte >(val2);
4083 }
4084 if (obj2) {
4085 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4086 if (!SWIG_IsOK(ecode3)) {
4087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4088 }
4089 arg3 = static_cast< byte >(val3);
4090 }
fc46b7f3
RD
4091 if (obj3) {
4092 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4093 if (!SWIG_IsOK(ecode4)) {
4094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4095 }
4096 arg4 = static_cast< byte >(val4);
4097 }
554f62e9
RD
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4100 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4105 return resultobj;
4106fail:
4107 return NULL;
d55e5bfc
RD
4108}
4109
4110
554f62e9
RD
4111SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj = 0;
4113 wxString *arg1 = 0 ;
4114 wxColour *result = 0 ;
4115 bool temp1 = false ;
4116 PyObject * obj0 = 0 ;
4117 char * kwnames[] = {
4118 (char *) "colorName", NULL
4119 };
4120
4121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4122 {
4123 arg1 = wxString_in_helper(obj0);
4124 if (arg1 == NULL) SWIG_fail;
4125 temp1 = true;
4126 }
4127 {
4128 if (!wxPyCheckForApp()) SWIG_fail;
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (wxColour *)new wxColour((wxString const &)*arg1);
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4135 {
4136 if (temp1)
4137 delete arg1;
4138 }
4139 return resultobj;
4140fail:
4141 {
4142 if (temp1)
4143 delete arg1;
4144 }
4145 return NULL;
b519803b
RD
4146}
4147
4148
554f62e9
RD
4149SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = 0;
4151 unsigned long arg1 ;
4152 wxColour *result = 0 ;
4153 unsigned long val1 ;
4154 int ecode1 = 0 ;
4155 PyObject * obj0 = 0 ;
4156 char * kwnames[] = {
4157 (char *) "colRGB", NULL
4158 };
4159
4160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4161 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4162 if (!SWIG_IsOK(ecode1)) {
4163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4164 }
4165 arg1 = static_cast< unsigned long >(val1);
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxColour *)new wxColour(arg1);
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4173 return resultobj;
4174fail:
4175 return NULL;
d55e5bfc
RD
4176}
4177
4178
554f62e9
RD
4179SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 PyObject *resultobj = 0;
4181 wxColour *arg1 = (wxColour *) 0 ;
4182 void *argp1 = 0 ;
4183 int res1 = 0 ;
4184 PyObject *swig_obj[1] ;
4185
4186 if (!args) SWIG_fail;
4187 swig_obj[0] = args;
4188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4189 if (!SWIG_IsOK(res1)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4191 }
4192 arg1 = reinterpret_cast< wxColour * >(argp1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 delete arg1;
d55e5bfc 4196
554f62e9
RD
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_Py_Void();
4201 return resultobj;
4202fail:
4203 return NULL;
d55e5bfc
RD
4204}
4205
4206
554f62e9
RD
4207SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4208 PyObject *resultobj = 0;
4209 wxColour *arg1 = (wxColour *) 0 ;
4210 byte result;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 PyObject *swig_obj[1] ;
4214
4215 if (!args) SWIG_fail;
4216 swig_obj[0] = args;
4217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (byte)(arg1)->Red();
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4229 return resultobj;
4230fail:
4231 return NULL;
d55e5bfc
RD
4232}
4233
4234
554f62e9
RD
4235SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4236 PyObject *resultobj = 0;
4237 wxColour *arg1 = (wxColour *) 0 ;
4238 byte result;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 PyObject *swig_obj[1] ;
4242
4243 if (!args) SWIG_fail;
4244 swig_obj[0] = args;
4245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4246 if (!SWIG_IsOK(res1)) {
4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4248 }
4249 arg1 = reinterpret_cast< wxColour * >(argp1);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 result = (byte)(arg1)->Green();
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4257 return resultobj;
4258fail:
4259 return NULL;
d55e5bfc
RD
4260}
4261
4262
554f62e9
RD
4263SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4264 PyObject *resultobj = 0;
4265 wxColour *arg1 = (wxColour *) 0 ;
4266 byte result;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 PyObject *swig_obj[1] ;
4270
4271 if (!args) SWIG_fail;
4272 swig_obj[0] = args;
4273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4274 if (!SWIG_IsOK(res1)) {
4275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4276 }
4277 arg1 = reinterpret_cast< wxColour * >(argp1);
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 result = (byte)(arg1)->Blue();
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4285 return resultobj;
4286fail:
4287 return NULL;
d55e5bfc
RD
4288}
4289
4290
fc46b7f3
RD
4291SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4292 PyObject *resultobj = 0;
4293 wxColour *arg1 = (wxColour *) 0 ;
4294 byte result;
4295 void *argp1 = 0 ;
4296 int res1 = 0 ;
4297 PyObject *swig_obj[1] ;
4298
4299 if (!args) SWIG_fail;
4300 swig_obj[0] = args;
4301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4302 if (!SWIG_IsOK(res1)) {
4303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4304 }
4305 arg1 = reinterpret_cast< wxColour * >(argp1);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 result = (byte)(arg1)->Alpha();
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4313 return resultobj;
4314fail:
4315 return NULL;
4316}
4317
4318
b39fe951 4319SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4320 PyObject *resultobj = 0;
4321 wxColour *arg1 = (wxColour *) 0 ;
4322 bool result;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 PyObject *swig_obj[1] ;
4326
4327 if (!args) SWIG_fail;
4328 swig_obj[0] = args;
4329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
b39fe951 4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4332 }
4333 arg1 = reinterpret_cast< wxColour * >(argp1);
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4336 result = (bool)(arg1)->IsOk();
554f62e9
RD
4337 wxPyEndAllowThreads(__tstate);
4338 if (PyErr_Occurred()) SWIG_fail;
4339 }
4340 {
4341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4342 }
4343 return resultobj;
4344fail:
4345 return NULL;
4346}
4347
4348
4349SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj = 0;
4351 wxColour *arg1 = (wxColour *) 0 ;
4352 byte arg2 ;
4353 byte arg3 ;
4354 byte arg4 ;
fc46b7f3 4355 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4356 void *argp1 = 0 ;
4357 int res1 = 0 ;
4358 unsigned char val2 ;
4359 int ecode2 = 0 ;
4360 unsigned char val3 ;
4361 int ecode3 = 0 ;
4362 unsigned char val4 ;
4363 int ecode4 = 0 ;
fc46b7f3
RD
4364 unsigned char val5 ;
4365 int ecode5 = 0 ;
554f62e9
RD
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 PyObject * obj2 = 0 ;
4369 PyObject * obj3 = 0 ;
fc46b7f3 4370 PyObject * obj4 = 0 ;
554f62e9 4371 char * kwnames[] = {
fc46b7f3 4372 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4373 };
4374
fc46b7f3 4375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4377 if (!SWIG_IsOK(res1)) {
4378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4379 }
4380 arg1 = reinterpret_cast< wxColour * >(argp1);
4381 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4382 if (!SWIG_IsOK(ecode2)) {
4383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4384 }
4385 arg2 = static_cast< byte >(val2);
4386 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4387 if (!SWIG_IsOK(ecode3)) {
4388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4389 }
4390 arg3 = static_cast< byte >(val3);
4391 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4392 if (!SWIG_IsOK(ecode4)) {
4393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4394 }
4395 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4396 if (obj4) {
4397 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4398 if (!SWIG_IsOK(ecode5)) {
4399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4400 }
4401 arg5 = static_cast< byte >(val5);
4402 }
554f62e9
RD
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4405 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_Py_Void();
4410 return resultobj;
4411fail:
4412 return NULL;
4413}
4414
4415
4416SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj = 0;
4418 wxColour *arg1 = (wxColour *) 0 ;
4419 unsigned long arg2 ;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 unsigned long val2 ;
4423 int ecode2 = 0 ;
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 char * kwnames[] = {
4427 (char *) "self",(char *) "colRGB", NULL
4428 };
4429
4430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4434 }
4435 arg1 = reinterpret_cast< wxColour * >(argp1);
4436 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4437 if (!SWIG_IsOK(ecode2)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4439 }
4440 arg2 = static_cast< unsigned long >(val2);
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 (arg1)->Set(arg2);
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = SWIG_Py_Void();
4448 return resultobj;
4449fail:
4450 return NULL;
4451}
4452
4453
4454SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj = 0;
4456 wxColour *arg1 = (wxColour *) 0 ;
4457 wxString *arg2 = 0 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 bool temp2 = false ;
4461 PyObject * obj0 = 0 ;
4462 PyObject * obj1 = 0 ;
4463 char * kwnames[] = {
4464 (char *) "self",(char *) "colourName", NULL
4465 };
4466
4467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4469 if (!SWIG_IsOK(res1)) {
4470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4471 }
4472 arg1 = reinterpret_cast< wxColour * >(argp1);
4473 {
4474 arg2 = wxString_in_helper(obj1);
4475 if (arg2 == NULL) SWIG_fail;
4476 temp2 = true;
4477 }
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4480 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 resultobj = SWIG_Py_Void();
4485 {
4486 if (temp2)
4487 delete arg2;
4488 }
4489 return resultobj;
4490fail:
4491 {
4492 if (temp2)
4493 delete arg2;
4494 }
4495 return NULL;
d55e5bfc
RD
4496}
4497
4498
f460c29d
RD
4499SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = 0;
4501 wxColour *arg1 = (wxColour *) 0 ;
4502 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4503 wxString result;
4504 void *argp1 = 0 ;
4505 int res1 = 0 ;
4506 long val2 ;
4507 int ecode2 = 0 ;
4508 PyObject * obj0 = 0 ;
4509 PyObject * obj1 = 0 ;
4510 char * kwnames[] = {
4511 (char *) "self",(char *) "flags", NULL
4512 };
4513
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4518 }
4519 arg1 = reinterpret_cast< wxColour * >(argp1);
4520 if (obj1) {
4521 ecode2 = SWIG_AsVal_long(obj1, &val2);
4522 if (!SWIG_IsOK(ecode2)) {
4523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4524 }
4525 arg2 = static_cast< long >(val2);
4526 }
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = ((wxColour const *)arg1)->GetAsString(arg2);
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 {
4534#if wxUSE_UNICODE
4535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4536#else
4537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4538#endif
4539 }
4540 return resultobj;
4541fail:
4542 return NULL;
4543}
4544
4545
554f62e9
RD
4546SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4547 PyObject *resultobj = 0;
4548 wxColour *arg1 = (wxColour *) 0 ;
4549 long result;
4550 void *argp1 = 0 ;
4551 int res1 = 0 ;
4552 PyObject *swig_obj[1] ;
4553
4554 if (!args) SWIG_fail;
4555 swig_obj[0] = args;
4556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4557 if (!SWIG_IsOK(res1)) {
4558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4559 }
4560 arg1 = reinterpret_cast< wxColour * >(argp1);
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = (long)((wxColour const *)arg1)->GetPixel();
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 resultobj = SWIG_From_long(static_cast< long >(result));
4568 return resultobj;
4569fail:
4570 return NULL;
4571}
4572
4573
4574SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4577 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4578 bool result;
4579 void *argp1 = 0 ;
4580 int res1 = 0 ;
554f62e9
RD
4581 PyObject * obj0 = 0 ;
4582 PyObject * obj1 = 0 ;
4583 char * kwnames[] = {
e9d6f3a4 4584 (char *) "self",(char *) "other", NULL
554f62e9
RD
4585 };
4586
4587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4589 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4591 }
4592 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4593 arg2 = obj1;
554f62e9 4594 {
e9d6f3a4 4595 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 {
4599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4600 }
4601 return resultobj;
4602fail:
4603 return NULL;
4604}
4605
4606
4607SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj = 0;
4609 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4610 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4611 bool result;
4612 void *argp1 = 0 ;
4613 int res1 = 0 ;
554f62e9
RD
4614 PyObject * obj0 = 0 ;
4615 PyObject * obj1 = 0 ;
4616 char * kwnames[] = {
e9d6f3a4 4617 (char *) "self",(char *) "other", NULL
554f62e9
RD
4618 };
4619
4620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4622 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4624 }
4625 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4626 arg2 = obj1;
554f62e9 4627 {
e9d6f3a4 4628 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 {
4632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4633 }
4634 return resultobj;
4635fail:
4636 return NULL;
d55e5bfc
RD
4637}
4638
4639
fc46b7f3 4640SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4641 PyObject *resultobj = 0;
4642 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4643 bool arg2 = (bool) false ;
554f62e9
RD
4644 PyObject *result = 0 ;
4645 void *argp1 = 0 ;
4646 int res1 = 0 ;
fc46b7f3
RD
4647 bool val2 ;
4648 int ecode2 = 0 ;
4649 PyObject * obj0 = 0 ;
4650 PyObject * obj1 = 0 ;
4651 char * kwnames[] = {
4652 (char *) "self",(char *) "includeAlpha", NULL
4653 };
554f62e9 4654
fc46b7f3
RD
4655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4657 if (!SWIG_IsOK(res1)) {
4658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4659 }
4660 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4661 if (obj1) {
4662 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4663 if (!SWIG_IsOK(ecode2)) {
4664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4665 }
4666 arg2 = static_cast< bool >(val2);
4667 }
554f62e9 4668 {
fc46b7f3 4669 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = result;
4673 return resultobj;
4674fail:
4675 return NULL;
d55e5bfc
RD
4676}
4677
4678
554f62e9
RD
4679SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4680 PyObject *resultobj = 0;
4681 wxColour *arg1 = (wxColour *) 0 ;
4682 unsigned long result;
4683 void *argp1 = 0 ;
4684 int res1 = 0 ;
4685 PyObject *swig_obj[1] ;
4686
4687 if (!args) SWIG_fail;
4688 swig_obj[0] = args;
4689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4690 if (!SWIG_IsOK(res1)) {
4691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4692 }
4693 arg1 = reinterpret_cast< wxColour * >(argp1);
4694 {
554f62e9 4695 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4699 return resultobj;
4700fail:
4701 return NULL;
4702}
4703
4704
4705SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706 PyObject *obj;
4707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4708 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4709 return SWIG_Py_Void();
4710}
4711
4712SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4713 return SWIG_Python_InitShadowInstance(args);
4714}
4715
4716SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj = 0;
4718 int arg1 ;
4719 unsigned char *arg2 = (unsigned char *) 0 ;
4720 unsigned char *arg3 = (unsigned char *) 0 ;
4721 unsigned char *arg4 = (unsigned char *) 0 ;
4722 wxPalette *result = 0 ;
4723 int val1 ;
4724 int ecode1 = 0 ;
4725 void *argp2 = 0 ;
4726 int res2 = 0 ;
4727 void *argp3 = 0 ;
4728 int res3 = 0 ;
4729 void *argp4 = 0 ;
4730 int res4 = 0 ;
4731 PyObject * obj0 = 0 ;
4732 PyObject * obj1 = 0 ;
4733 PyObject * obj2 = 0 ;
4734 PyObject * obj3 = 0 ;
4735 char * kwnames[] = {
4736 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4737 };
4738
4739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4740 ecode1 = SWIG_AsVal_int(obj0, &val1);
4741 if (!SWIG_IsOK(ecode1)) {
4742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4743 }
4744 arg1 = static_cast< int >(val1);
4745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4746 if (!SWIG_IsOK(res2)) {
4747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4748 }
4749 arg2 = reinterpret_cast< unsigned char * >(argp2);
4750 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4751 if (!SWIG_IsOK(res3)) {
4752 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4753 }
4754 arg3 = reinterpret_cast< unsigned char * >(argp3);
4755 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4756 if (!SWIG_IsOK(res4)) {
4757 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4758 }
4759 arg4 = reinterpret_cast< unsigned char * >(argp4);
4760 {
4761 if (!wxPyCheckForApp()) SWIG_fail;
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4768 return resultobj;
4769fail:
4770 return NULL;
093d3ff1
RD
4771}
4772
4773
554f62e9
RD
4774SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxPalette *arg1 = (wxPalette *) 0 ;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 PyObject *swig_obj[1] ;
4780
4781 if (!args) SWIG_fail;
4782 swig_obj[0] = args;
4783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4786 }
4787 arg1 = reinterpret_cast< wxPalette * >(argp1);
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 delete arg1;
093d3ff1 4791
554f62e9
RD
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = SWIG_Py_Void();
4796 return resultobj;
4797fail:
4798 return NULL;
4799}
4800
4801
4802SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4803 PyObject *resultobj = 0;
4804 wxPalette *arg1 = (wxPalette *) 0 ;
4805 byte arg2 ;
4806 byte arg3 ;
4807 byte arg4 ;
4808 int result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 unsigned char val2 ;
4812 int ecode2 = 0 ;
4813 unsigned char val3 ;
4814 int ecode3 = 0 ;
4815 unsigned char val4 ;
4816 int ecode4 = 0 ;
4817 PyObject * obj0 = 0 ;
4818 PyObject * obj1 = 0 ;
4819 PyObject * obj2 = 0 ;
4820 PyObject * obj3 = 0 ;
4821 char * kwnames[] = {
4822 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4823 };
4824
4825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4829 }
4830 arg1 = reinterpret_cast< wxPalette * >(argp1);
4831 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4832 if (!SWIG_IsOK(ecode2)) {
4833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4834 }
4835 arg2 = static_cast< byte >(val2);
4836 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4837 if (!SWIG_IsOK(ecode3)) {
4838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4839 }
4840 arg3 = static_cast< byte >(val3);
4841 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4842 if (!SWIG_IsOK(ecode4)) {
4843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4844 }
4845 arg4 = static_cast< byte >(val4);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 resultobj = SWIG_From_int(static_cast< int >(result));
4853 return resultobj;
4854fail:
4855 return NULL;
4856}
4857
4858
4859SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj = 0;
4861 wxPalette *arg1 = (wxPalette *) 0 ;
4862 int arg2 ;
4863 byte *arg3 = (byte *) 0 ;
4864 byte *arg4 = (byte *) 0 ;
4865 byte *arg5 = (byte *) 0 ;
4866 bool result;
4867 void *argp1 = 0 ;
4868 int res1 = 0 ;
4869 int val2 ;
4870 int ecode2 = 0 ;
4871 byte temp3 ;
4872 int res3 = SWIG_TMPOBJ ;
4873 byte temp4 ;
4874 int res4 = SWIG_TMPOBJ ;
4875 byte temp5 ;
4876 int res5 = SWIG_TMPOBJ ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 char * kwnames[] = {
4880 (char *) "self",(char *) "pixel", NULL
4881 };
4882
4883 arg3 = &temp3;
4884 arg4 = &temp4;
4885 arg5 = &temp5;
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPalette * >(argp1);
4892 ecode2 = SWIG_AsVal_int(obj1, &val2);
4893 if (!SWIG_IsOK(ecode2)) {
4894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4895 }
4896 arg2 = static_cast< int >(val2);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 {
4904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4905 }
4906 if (SWIG_IsTmpObj(res3)) {
4907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4908 } else {
4909 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4911 }
4912 if (SWIG_IsTmpObj(res4)) {
4913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4914 } else {
4915 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4917 }
4918 if (SWIG_IsTmpObj(res5)) {
4919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4920 } else {
4921 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4923 }
4924 return resultobj;
4925fail:
4926 return NULL;
d55e5bfc
RD
4927}
4928
4929
554f62e9
RD
4930SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4931 PyObject *resultobj = 0;
4932 wxPalette *arg1 = (wxPalette *) 0 ;
4933 int result;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 PyObject *swig_obj[1] ;
4937
4938 if (!args) SWIG_fail;
4939 swig_obj[0] = args;
4940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4941 if (!SWIG_IsOK(res1)) {
4942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4943 }
4944 arg1 = reinterpret_cast< wxPalette * >(argp1);
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = SWIG_From_int(static_cast< int >(result));
4952 return resultobj;
4953fail:
4954 return NULL;
d55e5bfc
RD
4955}
4956
4957
b39fe951 4958SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4959 PyObject *resultobj = 0;
4960 wxPalette *arg1 = (wxPalette *) 0 ;
4961 bool result;
4962 void *argp1 = 0 ;
4963 int res1 = 0 ;
4964 PyObject *swig_obj[1] ;
4965
4966 if (!args) SWIG_fail;
4967 swig_obj[0] = args;
4968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4969 if (!SWIG_IsOK(res1)) {
b39fe951 4970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
4971 }
4972 arg1 = reinterpret_cast< wxPalette * >(argp1);
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4975 result = (bool)(arg1)->IsOk();
554f62e9
RD
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 {
4980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4981 }
4982 return resultobj;
4983fail:
4984 return NULL;
4985}
4986
4987
4988SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4989 PyObject *obj;
4990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4991 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4992 return SWIG_Py_Void();
4993}
4994
4995SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 return SWIG_Python_InitShadowInstance(args);
4997}
4998
4999SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxColour *arg1 = 0 ;
5002 int arg2 = (int) 1 ;
5003 int arg3 = (int) wxSOLID ;
5004 wxPen *result = 0 ;
5005 wxColour temp1 ;
5006 int val2 ;
5007 int ecode2 = 0 ;
5008 int val3 ;
5009 int ecode3 = 0 ;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 PyObject * obj2 = 0 ;
5013 char * kwnames[] = {
5014 (char *) "colour",(char *) "width",(char *) "style", NULL
5015 };
5016
5017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5018 {
5019 arg1 = &temp1;
5020 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5021 }
5022 if (obj1) {
5023 ecode2 = SWIG_AsVal_int(obj1, &val2);
5024 if (!SWIG_IsOK(ecode2)) {
5025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5026 }
5027 arg2 = static_cast< int >(val2);
5028 }
5029 if (obj2) {
5030 ecode3 = SWIG_AsVal_int(obj2, &val3);
5031 if (!SWIG_IsOK(ecode3)) {
5032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5033 }
5034 arg3 = static_cast< int >(val3);
5035 }
5036 {
5037 if (!wxPyCheckForApp()) SWIG_fail;
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5044 return resultobj;
5045fail:
5046 return NULL;
d55e5bfc
RD
5047}
5048
5049
554f62e9
RD
5050SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5051 PyObject *resultobj = 0;
5052 wxPen *arg1 = (wxPen *) 0 ;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 PyObject *swig_obj[1] ;
5056
5057 if (!args) SWIG_fail;
5058 swig_obj[0] = args;
5059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5060 if (!SWIG_IsOK(res1)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5062 }
5063 arg1 = reinterpret_cast< wxPen * >(argp1);
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 delete arg1;
d55e5bfc 5067
554f62e9
RD
5068 wxPyEndAllowThreads(__tstate);
5069 if (PyErr_Occurred()) SWIG_fail;
5070 }
5071 resultobj = SWIG_Py_Void();
5072 return resultobj;
5073fail:
5074 return NULL;
d55e5bfc
RD
5075}
5076
5077
554f62e9
RD
5078SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5079 PyObject *resultobj = 0;
5080 wxPen *arg1 = (wxPen *) 0 ;
5081 int result;
5082 void *argp1 = 0 ;
5083 int res1 = 0 ;
5084 PyObject *swig_obj[1] ;
5085
5086 if (!args) SWIG_fail;
5087 swig_obj[0] = args;
5088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5089 if (!SWIG_IsOK(res1)) {
5090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5091 }
5092 arg1 = reinterpret_cast< wxPen * >(argp1);
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 result = (int)(arg1)->GetCap();
5096 wxPyEndAllowThreads(__tstate);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 resultobj = SWIG_From_int(static_cast< int >(result));
5100 return resultobj;
5101fail:
5102 return NULL;
d55e5bfc
RD
5103}
5104
5105
554f62e9
RD
5106SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5107 PyObject *resultobj = 0;
5108 wxPen *arg1 = (wxPen *) 0 ;
5109 wxColour result;
5110 void *argp1 = 0 ;
5111 int res1 = 0 ;
5112 PyObject *swig_obj[1] ;
5113
5114 if (!args) SWIG_fail;
5115 swig_obj[0] = args;
5116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5117 if (!SWIG_IsOK(res1)) {
5118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5119 }
5120 arg1 = reinterpret_cast< wxPen * >(argp1);
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 result = (arg1)->GetColour();
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5128 return resultobj;
5129fail:
5130 return NULL;
d55e5bfc
RD
5131}
5132
5133
554f62e9
RD
5134SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5135 PyObject *resultobj = 0;
5136 wxPen *arg1 = (wxPen *) 0 ;
5137 int result;
5138 void *argp1 = 0 ;
5139 int res1 = 0 ;
5140 PyObject *swig_obj[1] ;
5141
5142 if (!args) SWIG_fail;
5143 swig_obj[0] = args;
5144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5145 if (!SWIG_IsOK(res1)) {
5146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5147 }
5148 arg1 = reinterpret_cast< wxPen * >(argp1);
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (int)(arg1)->GetJoin();
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 resultobj = SWIG_From_int(static_cast< int >(result));
5156 return resultobj;
5157fail:
5158 return NULL;
d55e5bfc
RD
5159}
5160
5161
554f62e9
RD
5162SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5163 PyObject *resultobj = 0;
5164 wxPen *arg1 = (wxPen *) 0 ;
5165 int result;
5166 void *argp1 = 0 ;
5167 int res1 = 0 ;
5168 PyObject *swig_obj[1] ;
5169
5170 if (!args) SWIG_fail;
5171 swig_obj[0] = args;
5172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5173 if (!SWIG_IsOK(res1)) {
5174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5175 }
5176 arg1 = reinterpret_cast< wxPen * >(argp1);
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (int)(arg1)->GetStyle();
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = SWIG_From_int(static_cast< int >(result));
5184 return resultobj;
5185fail:
5186 return NULL;
d55e5bfc
RD
5187}
5188
5189
554f62e9
RD
5190SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5191 PyObject *resultobj = 0;
5192 wxPen *arg1 = (wxPen *) 0 ;
5193 int result;
5194 void *argp1 = 0 ;
5195 int res1 = 0 ;
5196 PyObject *swig_obj[1] ;
5197
5198 if (!args) SWIG_fail;
5199 swig_obj[0] = args;
5200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5201 if (!SWIG_IsOK(res1)) {
5202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5203 }
5204 arg1 = reinterpret_cast< wxPen * >(argp1);
5205 {
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (int)(arg1)->GetWidth();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 resultobj = SWIG_From_int(static_cast< int >(result));
5212 return resultobj;
5213fail:
5214 return NULL;
d55e5bfc
RD
5215}
5216
5217
b39fe951 5218SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5219 PyObject *resultobj = 0;
5220 wxPen *arg1 = (wxPen *) 0 ;
5221 bool result;
5222 void *argp1 = 0 ;
5223 int res1 = 0 ;
5224 PyObject *swig_obj[1] ;
5225
5226 if (!args) SWIG_fail;
5227 swig_obj[0] = args;
5228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5229 if (!SWIG_IsOK(res1)) {
b39fe951 5230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5231 }
5232 arg1 = reinterpret_cast< wxPen * >(argp1);
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5235 result = (bool)(arg1)->IsOk();
554f62e9
RD
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243fail:
5244 return NULL;
5245}
5246
5247
5248SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj = 0;
5250 wxPen *arg1 = (wxPen *) 0 ;
5251 int arg2 ;
5252 void *argp1 = 0 ;
5253 int res1 = 0 ;
5254 int val2 ;
5255 int ecode2 = 0 ;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj1 = 0 ;
5258 char * kwnames[] = {
5259 (char *) "self",(char *) "cap_style", NULL
5260 };
5261
5262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5266 }
5267 arg1 = reinterpret_cast< wxPen * >(argp1);
5268 ecode2 = SWIG_AsVal_int(obj1, &val2);
5269 if (!SWIG_IsOK(ecode2)) {
5270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5271 }
5272 arg2 = static_cast< int >(val2);
5273 {
5274 PyThreadState* __tstate = wxPyBeginAllowThreads();
5275 (arg1)->SetCap(arg2);
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = SWIG_Py_Void();
5280 return resultobj;
5281fail:
5282 return NULL;
5283}
5284
5285
5286SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 wxColour *arg2 = 0 ;
5290 void *argp1 = 0 ;
5291 int res1 = 0 ;
5292 wxColour temp2 ;
5293 PyObject * obj0 = 0 ;
5294 PyObject * obj1 = 0 ;
5295 char * kwnames[] = {
5296 (char *) "self",(char *) "colour", NULL
5297 };
5298
5299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5303 }
5304 arg1 = reinterpret_cast< wxPen * >(argp1);
5305 {
5306 arg2 = &temp2;
5307 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 (arg1)->SetColour(*arg2);
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 resultobj = SWIG_Py_Void();
5316 return resultobj;
5317fail:
5318 return NULL;
5319}
5320
5321
5322SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj = 0;
5324 wxPen *arg1 = (wxPen *) 0 ;
5325 int arg2 ;
5326 void *argp1 = 0 ;
5327 int res1 = 0 ;
5328 int val2 ;
5329 int ecode2 = 0 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 char * kwnames[] = {
5333 (char *) "self",(char *) "join_style", NULL
5334 };
5335
5336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5340 }
5341 arg1 = reinterpret_cast< wxPen * >(argp1);
5342 ecode2 = SWIG_AsVal_int(obj1, &val2);
5343 if (!SWIG_IsOK(ecode2)) {
5344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5345 }
5346 arg2 = static_cast< int >(val2);
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetJoin(arg2);
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355fail:
5356 return NULL;
5357}
5358
5359
5360SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 wxPen *arg1 = (wxPen *) 0 ;
5363 int arg2 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 int val2 ;
5367 int ecode2 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 char * kwnames[] = {
5371 (char *) "self",(char *) "style", NULL
5372 };
5373
5374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5376 if (!SWIG_IsOK(res1)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5378 }
5379 arg1 = reinterpret_cast< wxPen * >(argp1);
5380 ecode2 = SWIG_AsVal_int(obj1, &val2);
5381 if (!SWIG_IsOK(ecode2)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5383 }
5384 arg2 = static_cast< int >(val2);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 (arg1)->SetStyle(arg2);
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_Py_Void();
5392 return resultobj;
5393fail:
5394 return NULL;
5395}
5396
5397
5398SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxPen *arg1 = (wxPen *) 0 ;
5401 int arg2 ;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 int val2 ;
5405 int ecode2 = 0 ;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 char * kwnames[] = {
5409 (char *) "self",(char *) "width", NULL
5410 };
5411
5412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res1)) {
5415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5416 }
5417 arg1 = reinterpret_cast< wxPen * >(argp1);
5418 ecode2 = SWIG_AsVal_int(obj1, &val2);
5419 if (!SWIG_IsOK(ecode2)) {
5420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5421 }
5422 arg2 = static_cast< int >(val2);
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 (arg1)->SetWidth(arg2);
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_Py_Void();
5430 return resultobj;
5431fail:
5432 return NULL;
5433}
5434
5435
5436SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj = 0;
5438 wxPen *arg1 = (wxPen *) 0 ;
5439 int arg2 ;
5440 wxDash *arg3 = (wxDash *) 0 ;
5441 void *argp1 = 0 ;
5442 int res1 = 0 ;
5443 PyObject * obj0 = 0 ;
5444 PyObject * obj1 = 0 ;
5445 char * kwnames[] = {
5446 (char *) "self",(char *) "dashes", NULL
5447 };
5448
5449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5453 }
5454 arg1 = reinterpret_cast< wxPen * >(argp1);
5455 {
5456 arg2 = PyList_Size(obj1);
5457 arg3 = (wxDash*)byte_LIST_helper(obj1);
5458 if (arg3 == NULL) SWIG_fail;
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 (arg1)->SetDashes(arg2,arg3);
5463 wxPyEndAllowThreads(__tstate);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 }
5466 resultobj = SWIG_Py_Void();
5467 {
5468 if (arg3) delete [] arg3;
5469 }
5470 return resultobj;
5471fail:
5472 {
5473 if (arg3) delete [] arg3;
5474 }
5475 return NULL;
d55e5bfc
RD
5476}
5477
5478
554f62e9
RD
5479SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5480 PyObject *resultobj = 0;
5481 wxPen *arg1 = (wxPen *) 0 ;
5482 PyObject *result = 0 ;
5483 void *argp1 = 0 ;
5484 int res1 = 0 ;
5485 PyObject *swig_obj[1] ;
5486
5487 if (!args) SWIG_fail;
5488 swig_obj[0] = args;
5489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5490 if (!SWIG_IsOK(res1)) {
5491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5492 }
5493 arg1 = reinterpret_cast< wxPen * >(argp1);
5494 {
5495 PyThreadState* __tstate = wxPyBeginAllowThreads();
5496 result = (PyObject *)wxPen_GetDashes(arg1);
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = result;
5501 return resultobj;
5502fail:
5503 return NULL;
5504}
5505
5506
5507SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj = 0;
5509 wxPen *arg1 = (wxPen *) 0 ;
5510 PyObject *arg2 = (PyObject *) 0 ;
5511 PyObject *arg3 = (PyObject *) 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 PyObject * obj2 = 0 ;
5517 char * kwnames[] = {
5518 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5519 };
5520
5521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5523 if (!SWIG_IsOK(res1)) {
5524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5525 }
5526 arg1 = reinterpret_cast< wxPen * >(argp1);
5527 arg2 = obj1;
5528 arg3 = obj2;
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 wxPen__SetDashes(arg1,arg2,arg3);
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = SWIG_Py_Void();
5536 return resultobj;
5537fail:
5538 return NULL;
d55e5bfc
RD
5539}
5540
5541
554f62e9
RD
5542SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5543 PyObject *resultobj = 0;
5544 wxPen *arg1 = (wxPen *) 0 ;
5545 int result;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject *swig_obj[1] ;
5549
5550 if (!args) SWIG_fail;
5551 swig_obj[0] = args;
5552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (int)((wxPen const *)arg1)->GetDashCount();
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 resultobj = SWIG_From_int(static_cast< int >(result));
5564 return resultobj;
5565fail:
5566 return NULL;
d55e5bfc
RD
5567}
5568
5569
554f62e9
RD
5570SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5571 PyObject *resultobj = 0;
5572 wxPen *arg1 = (wxPen *) 0 ;
5573 wxBitmap *result = 0 ;
5574 void *argp1 = 0 ;
5575 int res1 = 0 ;
5576 PyObject *swig_obj[1] ;
5577
5578 if (!args) SWIG_fail;
5579 swig_obj[0] = args;
5580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5583 }
5584 arg1 = reinterpret_cast< wxPen * >(argp1);
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 result = (wxBitmap *)(arg1)->GetStipple();
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 }
5591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5592 return resultobj;
5593fail:
5594 return NULL;
5595}
5596
5597
5598SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj = 0;
5600 wxPen *arg1 = (wxPen *) 0 ;
5601 wxBitmap *arg2 = 0 ;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 void *argp2 = 0 ;
5605 int res2 = 0 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char * kwnames[] = {
5609 (char *) "self",(char *) "stipple", NULL
5610 };
5611
5612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5616 }
5617 arg1 = reinterpret_cast< wxPen * >(argp1);
5618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5619 if (!SWIG_IsOK(res2)) {
5620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5621 }
5622 if (!argp2) {
5623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5624 }
5625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 (arg1)->SetStipple(*arg2);
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_Py_Void();
5633 return resultobj;
5634fail:
5635 return NULL;
5636}
5637
5638
5639SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj = 0;
5641 wxPen *arg1 = (wxPen *) 0 ;
5642 wxPen *arg2 = (wxPen *) 0 ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 void *argp2 = 0 ;
5647 int res2 = 0 ;
5648 PyObject * obj0 = 0 ;
5649 PyObject * obj1 = 0 ;
5650 char * kwnames[] = {
5651 (char *) "self",(char *) "other", NULL
5652 };
5653
5654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5656 if (!SWIG_IsOK(res1)) {
5657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5658 }
5659 arg1 = reinterpret_cast< wxPen * >(argp1);
5660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5661 if (!SWIG_IsOK(res2)) {
5662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5663 }
5664 arg2 = reinterpret_cast< wxPen * >(argp2);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 {
5672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5673 }
5674 return resultobj;
5675fail:
5676 return NULL;
5677}
5678
5679
5680SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj = 0;
5682 wxPen *arg1 = (wxPen *) 0 ;
5683 wxPen *arg2 = (wxPen *) 0 ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 void *argp2 = 0 ;
5688 int res2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "self",(char *) "other", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5697 if (!SWIG_IsOK(res1)) {
5698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5699 }
5700 arg1 = reinterpret_cast< wxPen * >(argp1);
5701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5702 if (!SWIG_IsOK(res2)) {
5703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5704 }
5705 arg2 = reinterpret_cast< wxPen * >(argp2);
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 {
5713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5714 }
5715 return resultobj;
5716fail:
5717 return NULL;
d55e5bfc
RD
5718}
5719
5720
554f62e9
RD
5721SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5722 PyObject *obj;
5723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5724 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5725 return SWIG_Py_Void();
d55e5bfc
RD
5726}
5727
554f62e9
RD
5728SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729 return SWIG_Python_InitShadowInstance(args);
5730}
d55e5bfc 5731
554f62e9
RD
5732SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj = 0;
5734 wxColour *arg1 = 0 ;
5735 int arg2 = (int) wxSOLID ;
5736 wxBrush *result = 0 ;
5737 wxColour temp1 ;
5738 int val2 ;
5739 int ecode2 = 0 ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 char * kwnames[] = {
5743 (char *) "colour",(char *) "style", NULL
5744 };
5745
5746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5747 {
5748 arg1 = &temp1;
5749 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5750 }
5751 if (obj1) {
5752 ecode2 = SWIG_AsVal_int(obj1, &val2);
5753 if (!SWIG_IsOK(ecode2)) {
5754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5755 }
5756 arg2 = static_cast< int >(val2);
5757 }
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5766 return resultobj;
5767fail:
5768 return NULL;
5769}
5770
5771
5772SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj = 0;
5774 wxBitmap *arg1 = 0 ;
5775 wxBrush *result = 0 ;
5776 void *argp1 = 0 ;
5777 int res1 = 0 ;
5778 PyObject * obj0 = 0 ;
5779 char * kwnames[] = {
5780 (char *) "stippleBitmap", NULL
5781 };
5782
5783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5784 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5785 if (!SWIG_IsOK(res1)) {
5786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5787 }
5788 if (!argp1) {
5789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5790 }
5791 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5792 {
5793 if (!wxPyCheckForApp()) SWIG_fail;
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 }
5799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5800 return resultobj;
5801fail:
5802 return NULL;
d55e5bfc
RD
5803}
5804
5805
554f62e9
RD
5806SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5807 PyObject *resultobj = 0;
5808 wxBrush *arg1 = (wxBrush *) 0 ;
5809 void *argp1 = 0 ;
5810 int res1 = 0 ;
5811 PyObject *swig_obj[1] ;
5812
5813 if (!args) SWIG_fail;
5814 swig_obj[0] = args;
5815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5816 if (!SWIG_IsOK(res1)) {
5817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5818 }
5819 arg1 = reinterpret_cast< wxBrush * >(argp1);
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 delete arg1;
d55e5bfc 5823
554f62e9
RD
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 resultobj = SWIG_Py_Void();
5828 return resultobj;
5829fail:
5830 return NULL;
5831}
5832
5833
5834SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj = 0;
5836 wxBrush *arg1 = (wxBrush *) 0 ;
5837 wxColour *arg2 = 0 ;
5838 void *argp1 = 0 ;
5839 int res1 = 0 ;
5840 wxColour temp2 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "self",(char *) "col", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBrush * >(argp1);
5853 {
5854 arg2 = &temp2;
5855 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5856 }
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 (arg1)->SetColour((wxColour const &)*arg2);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_Py_Void();
5864 return resultobj;
5865fail:
5866 return NULL;
5867}
5868
5869
5870SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxBrush *arg1 = (wxBrush *) 0 ;
5873 int arg2 ;
5874 void *argp1 = 0 ;
5875 int res1 = 0 ;
5876 int val2 ;
5877 int ecode2 = 0 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char * kwnames[] = {
5881 (char *) "self",(char *) "style", NULL
5882 };
5883
5884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5888 }
5889 arg1 = reinterpret_cast< wxBrush * >(argp1);
5890 ecode2 = SWIG_AsVal_int(obj1, &val2);
5891 if (!SWIG_IsOK(ecode2)) {
5892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5893 }
5894 arg2 = static_cast< int >(val2);
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 (arg1)->SetStyle(arg2);
5898 wxPyEndAllowThreads(__tstate);
5899 if (PyErr_Occurred()) SWIG_fail;
5900 }
5901 resultobj = SWIG_Py_Void();
5902 return resultobj;
5903fail:
5904 return NULL;
5905}
5906
5907
5908SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 wxBrush *arg1 = (wxBrush *) 0 ;
5911 wxBitmap *arg2 = 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 void *argp2 = 0 ;
5915 int res2 = 0 ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "stipple", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5926 }
5927 arg1 = reinterpret_cast< wxBrush * >(argp1);
5928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5929 if (!SWIG_IsOK(res2)) {
5930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5931 }
5932 if (!argp2) {
5933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5934 }
5935 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->SetStipple((wxBitmap const &)*arg2);
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_Py_Void();
5943 return resultobj;
5944fail:
5945 return NULL;
d55e5bfc
RD
5946}
5947
5948
554f62e9
RD
5949SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5950 PyObject *resultobj = 0;
5951 wxBrush *arg1 = (wxBrush *) 0 ;
5952 wxColour result;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5962 }
5963 arg1 = reinterpret_cast< wxBrush * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 result = ((wxBrush const *)arg1)->GetColour();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5971 return resultobj;
5972fail:
5973 return NULL;
d55e5bfc
RD
5974}
5975
5976
554f62e9
RD
5977SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5978 PyObject *resultobj = 0;
5979 wxBrush *arg1 = (wxBrush *) 0 ;
5980 int result;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 PyObject *swig_obj[1] ;
5984
5985 if (!args) SWIG_fail;
5986 swig_obj[0] = args;
5987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5988 if (!SWIG_IsOK(res1)) {
5989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5990 }
5991 arg1 = reinterpret_cast< wxBrush * >(argp1);
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (int)((wxBrush const *)arg1)->GetStyle();
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 resultobj = SWIG_From_int(static_cast< int >(result));
5999 return resultobj;
6000fail:
6001 return NULL;
d55e5bfc
RD
6002}
6003
6004
554f62e9
RD
6005SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6006 PyObject *resultobj = 0;
6007 wxBrush *arg1 = (wxBrush *) 0 ;
6008 wxBitmap *result = 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 PyObject *swig_obj[1] ;
6012
6013 if (!args) SWIG_fail;
6014 swig_obj[0] = args;
6015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6018 }
6019 arg1 = reinterpret_cast< wxBrush * >(argp1);
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6027 return resultobj;
6028fail:
6029 return NULL;
d55e5bfc
RD
6030}
6031
6032
554f62e9
RD
6033SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6034 PyObject *resultobj = 0;
6035 wxBrush *arg1 = (wxBrush *) 0 ;
6036 bool result;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 PyObject *swig_obj[1] ;
6040
6041 if (!args) SWIG_fail;
6042 swig_obj[0] = args;
6043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6044 if (!SWIG_IsOK(res1)) {
6045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6046 }
6047 arg1 = reinterpret_cast< wxBrush * >(argp1);
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 result = (bool)((wxBrush const *)arg1)->IsHatch();
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 return resultobj;
6058fail:
6059 return NULL;
f78cc896
RD
6060}
6061
6062
b39fe951 6063SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6064 PyObject *resultobj = 0;
6065 wxBrush *arg1 = (wxBrush *) 0 ;
6066 bool result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 PyObject *swig_obj[1] ;
6070
6071 if (!args) SWIG_fail;
6072 swig_obj[0] = args;
6073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6074 if (!SWIG_IsOK(res1)) {
b39fe951 6075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6076 }
6077 arg1 = reinterpret_cast< wxBrush * >(argp1);
6078 {
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6080 result = (bool)(arg1)->IsOk();
554f62e9
RD
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 {
6085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6086 }
6087 return resultobj;
6088fail:
6089 return NULL;
d55e5bfc
RD
6090}
6091
6092
554f62e9
RD
6093SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6094 PyObject *obj;
6095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6096 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6097 return SWIG_Py_Void();
d55e5bfc
RD
6098}
6099
554f62e9
RD
6100SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 return SWIG_Python_InitShadowInstance(args);
6102}
d55e5bfc 6103
554f62e9
RD
6104SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj = 0;
6106 wxString *arg1 = 0 ;
6107 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6108 wxBitmap *result = 0 ;
6109 bool temp1 = false ;
6110 int val2 ;
6111 int ecode2 = 0 ;
6112 PyObject * obj0 = 0 ;
6113 PyObject * obj1 = 0 ;
6114 char * kwnames[] = {
6115 (char *) "name",(char *) "type", NULL
6116 };
6117
6118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6119 {
6120 arg1 = wxString_in_helper(obj0);
6121 if (arg1 == NULL) SWIG_fail;
6122 temp1 = true;
6123 }
6124 if (obj1) {
6125 ecode2 = SWIG_AsVal_int(obj1, &val2);
6126 if (!SWIG_IsOK(ecode2)) {
6127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6128 }
6129 arg2 = static_cast< wxBitmapType >(val2);
6130 }
6131 {
6132 if (!wxPyCheckForApp()) SWIG_fail;
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6139 {
6140 if (temp1)
6141 delete arg1;
6142 }
6143 return resultobj;
6144fail:
6145 {
6146 if (temp1)
6147 delete arg1;
6148 }
6149 return NULL;
d55e5bfc
RD
6150}
6151
6152
554f62e9
RD
6153SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6154 PyObject *resultobj = 0;
6155 wxBitmap *arg1 = (wxBitmap *) 0 ;
6156 void *argp1 = 0 ;
6157 int res1 = 0 ;
6158 PyObject *swig_obj[1] ;
6159
6160 if (!args) SWIG_fail;
6161 swig_obj[0] = args;
6162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6163 if (!SWIG_IsOK(res1)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6165 }
6166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6167 {
554f62e9 6168 delete arg1;
c24da6d6 6169
554f62e9
RD
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_Py_Void();
6173 return resultobj;
6174fail:
6175 return NULL;
6176}
6177
6178
6179SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 int arg1 ;
6182 int arg2 ;
6183 int arg3 = (int) -1 ;
6184 wxBitmap *result = 0 ;
6185 int val1 ;
6186 int ecode1 = 0 ;
6187 int val2 ;
6188 int ecode2 = 0 ;
6189 int val3 ;
6190 int ecode3 = 0 ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 PyObject * obj2 = 0 ;
6194 char * kwnames[] = {
6195 (char *) "width",(char *) "height",(char *) "depth", NULL
6196 };
6197
6198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6199 ecode1 = SWIG_AsVal_int(obj0, &val1);
6200 if (!SWIG_IsOK(ecode1)) {
6201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6202 }
6203 arg1 = static_cast< int >(val1);
6204 ecode2 = SWIG_AsVal_int(obj1, &val2);
6205 if (!SWIG_IsOK(ecode2)) {
6206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6207 }
6208 arg2 = static_cast< int >(val2);
6209 if (obj2) {
6210 ecode3 = SWIG_AsVal_int(obj2, &val3);
6211 if (!SWIG_IsOK(ecode3)) {
6212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6213 }
6214 arg3 = static_cast< int >(val3);
6215 }
6216 {
6217 if (!wxPyCheckForApp()) SWIG_fail;
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6224 return resultobj;
6225fail:
6226 return NULL;
6227}
6228
6229
6230SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj = 0;
6232 wxIcon *arg1 = 0 ;
6233 wxBitmap *result = 0 ;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 char * kwnames[] = {
6238 (char *) "icon", NULL
6239 };
6240
6241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6245 }
6246 if (!argp1) {
6247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6248 }
6249 arg1 = reinterpret_cast< wxIcon * >(argp1);
6250 {
6251 if (!wxPyCheckForApp()) SWIG_fail;
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6258 return resultobj;
6259fail:
6260 return NULL;
6261}
6262
6263
6264SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxImage *arg1 = 0 ;
6267 int arg2 = (int) -1 ;
6268 wxBitmap *result = 0 ;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 int val2 ;
6272 int ecode2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "image",(char *) "depth", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6283 }
6284 if (!argp1) {
6285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6286 }
6287 arg1 = reinterpret_cast< wxImage * >(argp1);
6288 if (obj1) {
6289 ecode2 = SWIG_AsVal_int(obj1, &val2);
6290 if (!SWIG_IsOK(ecode2)) {
6291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6292 }
6293 arg2 = static_cast< int >(val2);
6294 }
6295 {
6296 if (!wxPyCheckForApp()) SWIG_fail;
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6303 return resultobj;
6304fail:
6305 return NULL;
c24da6d6
RD
6306}
6307
6308
554f62e9
RD
6309SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 PyObject *arg1 = (PyObject *) 0 ;
6312 wxBitmap *result = 0 ;
6313 PyObject * obj0 = 0 ;
6314 char * kwnames[] = {
6315 (char *) "listOfStrings", NULL
6316 };
6317
6318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6319 arg1 = obj0;
6320 {
6321 if (!wxPyCheckForApp()) SWIG_fail;
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (wxBitmap *)new_wxBitmap(arg1);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6328 return resultobj;
6329fail:
6330 return NULL;
6331}
6332
6333
6334SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6335 PyObject *resultobj = 0;
6336 PyObject *arg1 = (PyObject *) 0 ;
6337 int arg2 ;
6338 int arg3 ;
6339 int arg4 = (int) 1 ;
6340 wxBitmap *result = 0 ;
6341 int val2 ;
6342 int ecode2 = 0 ;
6343 int val3 ;
6344 int ecode3 = 0 ;
6345 int val4 ;
6346 int ecode4 = 0 ;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 PyObject * obj2 = 0 ;
6350 PyObject * obj3 = 0 ;
6351 char * kwnames[] = {
6352 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6353 };
6354
6355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6356 arg1 = obj0;
6357 ecode2 = SWIG_AsVal_int(obj1, &val2);
6358 if (!SWIG_IsOK(ecode2)) {
6359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6360 }
6361 arg2 = static_cast< int >(val2);
6362 ecode3 = SWIG_AsVal_int(obj2, &val3);
6363 if (!SWIG_IsOK(ecode3)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6365 }
6366 arg3 = static_cast< int >(val3);
6367 if (obj3) {
6368 ecode4 = SWIG_AsVal_int(obj3, &val4);
6369 if (!SWIG_IsOK(ecode4)) {
6370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6371 }
6372 arg4 = static_cast< int >(val4);
6373 }
6374 {
6375 if (!wxPyCheckForApp()) SWIG_fail;
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6382 return resultobj;
6383fail:
6384 return NULL;
d55e5bfc
RD
6385}
6386
6387
554f62e9
RD
6388SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *resultobj = 0;
6390 wxBitmap *arg1 = (wxBitmap *) 0 ;
6391 long result;
6392 void *argp1 = 0 ;
6393 int res1 = 0 ;
6394 PyObject *swig_obj[1] ;
6395
6396 if (!args) SWIG_fail;
6397 swig_obj[0] = args;
6398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6401 }
6402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6403 {
554f62e9 6404 result = (long)(arg1)->GetHandle();
554f62e9
RD
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_From_long(static_cast< long >(result));
6408 return resultobj;
6409fail:
6410 return NULL;
6411}
6412
6413
6414SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj = 0;
6416 wxBitmap *arg1 = (wxBitmap *) 0 ;
6417 long arg2 ;
6418 void *argp1 = 0 ;
6419 int res1 = 0 ;
6420 long val2 ;
6421 int ecode2 = 0 ;
6422 PyObject * obj0 = 0 ;
6423 PyObject * obj1 = 0 ;
6424 char * kwnames[] = {
6425 (char *) "self",(char *) "handle", NULL
6426 };
6427
6428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6432 }
6433 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6434 ecode2 = SWIG_AsVal_long(obj1, &val2);
6435 if (!SWIG_IsOK(ecode2)) {
6436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6437 }
6438 arg2 = static_cast< long >(val2);
6439 {
554f62e9 6440 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_Py_Void();
6444 return resultobj;
6445fail:
6446 return NULL;
d55e5bfc
RD
6447}
6448
6449
b39fe951 6450SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6451 PyObject *resultobj = 0;
6452 wxBitmap *arg1 = (wxBitmap *) 0 ;
6453 bool result;
6454 void *argp1 = 0 ;
6455 int res1 = 0 ;
6456 PyObject *swig_obj[1] ;
6457
6458 if (!args) SWIG_fail;
6459 swig_obj[0] = args;
6460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6461 if (!SWIG_IsOK(res1)) {
b39fe951 6462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6463 }
6464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6465 {
b39fe951 6466 result = (bool)(arg1)->IsOk();
554f62e9
RD
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6471 }
6472 return resultobj;
6473fail:
6474 return NULL;
d55e5bfc
RD
6475}
6476
6477
554f62e9
RD
6478SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxBitmap *arg1 = (wxBitmap *) 0 ;
6481 int result;
6482 void *argp1 = 0 ;
6483 int res1 = 0 ;
6484 PyObject *swig_obj[1] ;
6485
6486 if (!args) SWIG_fail;
6487 swig_obj[0] = args;
6488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6489 if (!SWIG_IsOK(res1)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6491 }
6492 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6493 {
554f62e9 6494 result = (int)(arg1)->GetWidth();
554f62e9
RD
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_From_int(static_cast< int >(result));
6498 return resultobj;
6499fail:
6500 return NULL;
d55e5bfc
RD
6501}
6502
6503
554f62e9
RD
6504SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxBitmap *arg1 = (wxBitmap *) 0 ;
6507 int result;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6517 }
6518 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6519 {
554f62e9 6520 result = (int)(arg1)->GetHeight();
554f62e9
RD
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_From_int(static_cast< int >(result));
6524 return resultobj;
6525fail:
6526 return NULL;
c24da6d6
RD
6527}
6528
6529
554f62e9
RD
6530SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 int result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6543 }
6544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6545 {
554f62e9 6546 result = (int)(arg1)->GetDepth();
554f62e9
RD
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_From_int(static_cast< int >(result));
6550 return resultobj;
6551fail:
6552 return NULL;
d55e5bfc
RD
6553}
6554
6555
554f62e9
RD
6556SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6557 PyObject *resultobj = 0;
6558 wxBitmap *arg1 = (wxBitmap *) 0 ;
6559 wxSize result;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6569 }
6570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6571 {
554f62e9 6572 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6576 return resultobj;
6577fail:
6578 return NULL;
d55e5bfc
RD
6579}
6580
6581
554f62e9
RD
6582SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6583 PyObject *resultobj = 0;
6584 wxBitmap *arg1 = (wxBitmap *) 0 ;
6585 SwigValueWrapper<wxImage > result;
6586 void *argp1 = 0 ;
6587 int res1 = 0 ;
6588 PyObject *swig_obj[1] ;
6589
6590 if (!args) SWIG_fail;
6591 swig_obj[0] = args;
6592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6593 if (!SWIG_IsOK(res1)) {
6594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6595 }
6596 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6597 {
554f62e9 6598 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6602 return resultobj;
6603fail:
6604 return NULL;
d55e5bfc
RD
6605}
6606
6607
554f62e9
RD
6608SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 wxMask *result = 0 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 PyObject *swig_obj[1] ;
6615
6616 if (!args) SWIG_fail;
6617 swig_obj[0] = args;
6618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 {
554f62e9 6624 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6628 return resultobj;
6629fail:
6630 return NULL;
6631}
6632
6633
6634SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 wxBitmap *arg1 = (wxBitmap *) 0 ;
6637 wxMask *arg2 = (wxMask *) 0 ;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 int res2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "mask", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6654 if (!SWIG_IsOK(res2)) {
6655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6656 }
6657 {
554f62e9 6658 (arg1)->SetMask(arg2);
554f62e9
RD
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 resultobj = SWIG_Py_Void();
6662 return resultobj;
6663fail:
6664 return NULL;
6665}
6666
6667
6668SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj = 0;
6670 wxBitmap *arg1 = (wxBitmap *) 0 ;
6671 wxColour *arg2 = 0 ;
6672 void *argp1 = 0 ;
6673 int res1 = 0 ;
6674 wxColour temp2 ;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 char * kwnames[] = {
6678 (char *) "self",(char *) "colour", NULL
6679 };
6680
6681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6683 if (!SWIG_IsOK(res1)) {
6684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6685 }
6686 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6687 {
6688 arg2 = &temp2;
6689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6690 }
6691 {
554f62e9 6692 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 resultobj = SWIG_Py_Void();
6696 return resultobj;
6697fail:
6698 return NULL;
6699}
6700
6701
6702SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6703 PyObject *resultobj = 0;
6704 wxBitmap *arg1 = (wxBitmap *) 0 ;
6705 wxRect *arg2 = 0 ;
6706 SwigValueWrapper<wxBitmap > result;
6707 void *argp1 = 0 ;
6708 int res1 = 0 ;
6709 wxRect temp2 ;
6710 PyObject * obj0 = 0 ;
6711 PyObject * obj1 = 0 ;
6712 char * kwnames[] = {
6713 (char *) "self",(char *) "rect", NULL
6714 };
6715
6716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6718 if (!SWIG_IsOK(res1)) {
6719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6720 }
6721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6722 {
6723 arg2 = &temp2;
6724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6725 }
6726 {
554f62e9 6727 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6731 return resultobj;
6732fail:
6733 return NULL;
6734}
6735
6736
6737SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj = 0;
6739 wxBitmap *arg1 = (wxBitmap *) 0 ;
6740 wxString *arg2 = 0 ;
6741 wxBitmapType arg3 ;
6742 wxPalette *arg4 = (wxPalette *) NULL ;
6743 bool result;
6744 void *argp1 = 0 ;
6745 int res1 = 0 ;
6746 bool temp2 = false ;
6747 int val3 ;
6748 int ecode3 = 0 ;
6749 void *argp4 = 0 ;
6750 int res4 = 0 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 PyObject * obj2 = 0 ;
6754 PyObject * obj3 = 0 ;
6755 char * kwnames[] = {
6756 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6757 };
6758
6759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6761 if (!SWIG_IsOK(res1)) {
6762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6763 }
6764 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6765 {
6766 arg2 = wxString_in_helper(obj1);
6767 if (arg2 == NULL) SWIG_fail;
6768 temp2 = true;
6769 }
6770 ecode3 = SWIG_AsVal_int(obj2, &val3);
6771 if (!SWIG_IsOK(ecode3)) {
6772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6773 }
6774 arg3 = static_cast< wxBitmapType >(val3);
6775 if (obj3) {
6776 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6777 if (!SWIG_IsOK(res4)) {
6778 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6779 }
554f62e9
RD
6780 arg4 = reinterpret_cast< wxPalette * >(argp4);
6781 }
6782 {
554f62e9 6783 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 {
6787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6788 }
6789 {
6790 if (temp2)
6791 delete arg2;
6792 }
6793 return resultobj;
6794fail:
6795 {
6796 if (temp2)
6797 delete arg2;
6798 }
6799 return NULL;
6800}
6801
6802
6803SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6804 PyObject *resultobj = 0;
6805 wxBitmap *arg1 = (wxBitmap *) 0 ;
6806 wxString *arg2 = 0 ;
6807 wxBitmapType arg3 ;
6808 bool result;
6809 void *argp1 = 0 ;
6810 int res1 = 0 ;
6811 bool temp2 = false ;
6812 int val3 ;
6813 int ecode3 = 0 ;
6814 PyObject * obj0 = 0 ;
6815 PyObject * obj1 = 0 ;
6816 PyObject * obj2 = 0 ;
6817 char * kwnames[] = {
6818 (char *) "self",(char *) "name",(char *) "type", NULL
6819 };
6820
6821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6823 if (!SWIG_IsOK(res1)) {
6824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6825 }
6826 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6827 {
6828 arg2 = wxString_in_helper(obj1);
6829 if (arg2 == NULL) SWIG_fail;
6830 temp2 = true;
6831 }
6832 ecode3 = SWIG_AsVal_int(obj2, &val3);
6833 if (!SWIG_IsOK(ecode3)) {
6834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6835 }
6836 arg3 = static_cast< wxBitmapType >(val3);
6837 {
554f62e9 6838 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6843 }
6844 {
6845 if (temp2)
6846 delete arg2;
6847 }
6848 return resultobj;
6849fail:
6850 {
6851 if (temp2)
6852 delete arg2;
6853 }
6854 return NULL;
d04418a7
RD
6855}
6856
6857
554f62e9
RD
6858SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6859 PyObject *resultobj = 0;
6860 wxBitmap *arg1 = (wxBitmap *) 0 ;
6861 wxPalette *result = 0 ;
6862 void *argp1 = 0 ;
6863 int res1 = 0 ;
6864 PyObject *swig_obj[1] ;
6865
6866 if (!args) SWIG_fail;
6867 swig_obj[0] = args;
6868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6869 if (!SWIG_IsOK(res1)) {
6870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6871 }
6872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6873 {
554f62e9 6874 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6878 return resultobj;
6879fail:
6880 return NULL;
6881}
6882
6883
6884SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj = 0;
6886 wxBitmap *arg1 = (wxBitmap *) 0 ;
6887 wxPalette *arg2 = 0 ;
6888 void *argp1 = 0 ;
6889 int res1 = 0 ;
6890 void *argp2 = 0 ;
6891 int res2 = 0 ;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6894 char * kwnames[] = {
6895 (char *) "self",(char *) "palette", NULL
6896 };
6897
6898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6900 if (!SWIG_IsOK(res1)) {
6901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6902 }
6903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6905 if (!SWIG_IsOK(res2)) {
6906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6907 }
6908 if (!argp2) {
6909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6910 }
6911 arg2 = reinterpret_cast< wxPalette * >(argp2);
6912 {
554f62e9 6913 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 resultobj = SWIG_Py_Void();
6917 return resultobj;
6918fail:
6919 return NULL;
6920}
6921
6922
6923SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6924 PyObject *resultobj = 0;
6925 wxBitmap *arg1 = (wxBitmap *) 0 ;
6926 wxIcon *arg2 = 0 ;
6927 bool result;
6928 void *argp1 = 0 ;
6929 int res1 = 0 ;
6930 void *argp2 = 0 ;
6931 int res2 = 0 ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 char * kwnames[] = {
6935 (char *) "self",(char *) "icon", NULL
6936 };
6937
6938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6940 if (!SWIG_IsOK(res1)) {
6941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6942 }
6943 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6945 if (!SWIG_IsOK(res2)) {
6946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6947 }
6948 if (!argp2) {
6949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6950 }
6951 arg2 = reinterpret_cast< wxIcon * >(argp2);
6952 {
554f62e9 6953 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 {
6957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6958 }
6959 return resultobj;
6960fail:
6961 return NULL;
6962}
6963
6964
6965SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj = 0;
6967 wxBitmap *arg1 = (wxBitmap *) 0 ;
6968 int arg2 ;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 int val2 ;
6972 int ecode2 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "height", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6983 }
6984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6985 ecode2 = SWIG_AsVal_int(obj1, &val2);
6986 if (!SWIG_IsOK(ecode2)) {
6987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6988 }
6989 arg2 = static_cast< int >(val2);
6990 {
554f62e9 6991 (arg1)->SetHeight(arg2);
554f62e9
RD
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_Py_Void();
6995 return resultobj;
6996fail:
6997 return NULL;
6998}
6999
7000
7001SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj = 0;
7003 wxBitmap *arg1 = (wxBitmap *) 0 ;
7004 int arg2 ;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 int val2 ;
7008 int ecode2 = 0 ;
7009 PyObject * obj0 = 0 ;
7010 PyObject * obj1 = 0 ;
7011 char * kwnames[] = {
7012 (char *) "self",(char *) "width", NULL
7013 };
7014
7015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7019 }
7020 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7021 ecode2 = SWIG_AsVal_int(obj1, &val2);
7022 if (!SWIG_IsOK(ecode2)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7024 }
7025 arg2 = static_cast< int >(val2);
7026 {
554f62e9 7027 (arg1)->SetWidth(arg2);
554f62e9
RD
7028 if (PyErr_Occurred()) SWIG_fail;
7029 }
7030 resultobj = SWIG_Py_Void();
7031 return resultobj;
7032fail:
7033 return NULL;
7034}
7035
7036
7037SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxBitmap *arg1 = (wxBitmap *) 0 ;
7040 int arg2 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 int val2 ;
7044 int ecode2 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "depth", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7055 }
7056 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7057 ecode2 = SWIG_AsVal_int(obj1, &val2);
7058 if (!SWIG_IsOK(ecode2)) {
7059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7060 }
7061 arg2 = static_cast< int >(val2);
7062 {
554f62e9 7063 (arg1)->SetDepth(arg2);
554f62e9
RD
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_Py_Void();
7067 return resultobj;
7068fail:
7069 return NULL;
7070}
7071
7072
7073SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 wxSize *arg2 = 0 ;
7077 void *argp1 = 0 ;
7078 int res1 = 0 ;
7079 wxSize temp2 ;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7082 char * kwnames[] = {
7083 (char *) "self",(char *) "size", NULL
7084 };
7085
7086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res1)) {
7089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7090 }
7091 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7092 {
7093 arg2 = &temp2;
7094 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7095 }
7096 {
554f62e9 7097 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_Py_Void();
7101 return resultobj;
7102fail:
7103 return NULL;
7104}
7105
7106
7107SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj = 0;
7109 wxBitmap *arg1 = (wxBitmap *) 0 ;
7110 wxCursor *arg2 = 0 ;
7111 bool result;
7112 void *argp1 = 0 ;
7113 int res1 = 0 ;
7114 void *argp2 = 0 ;
7115 int res2 = 0 ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj1 = 0 ;
7118 char * kwnames[] = {
7119 (char *) "self",(char *) "cursor", NULL
7120 };
7121
7122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7124 if (!SWIG_IsOK(res1)) {
7125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7126 }
7127 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7129 if (!SWIG_IsOK(res2)) {
7130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7131 }
7132 if (!argp2) {
7133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7134 }
7135 arg2 = reinterpret_cast< wxCursor * >(argp2);
7136 {
554f62e9 7137 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 {
7141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7142 }
7143 return resultobj;
7144fail:
7145 return NULL;
7146}
7147
7148
8f514ab4
RD
7149SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7150 PyObject *resultobj = 0;
7151 wxBitmap *arg1 = (wxBitmap *) 0 ;
7152 buffer arg2 ;
7153 int arg3 ;
7154 void *argp1 = 0 ;
7155 int res1 = 0 ;
7156 Py_ssize_t temp2 ;
7157 PyObject * obj0 = 0 ;
7158 PyObject * obj1 = 0 ;
7159 char * kwnames[] = {
7160 (char *) "self",(char *) "data", NULL
7161 };
7162
7163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7167 }
7168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7169 {
7170 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7171 arg3 = (int)temp2;
7172 }
7173 {
7174 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_Py_Void();
7178 return resultobj;
7179fail:
7180 return NULL;
7181}
7182
7183
7184SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj = 0;
7186 wxBitmap *arg1 = (wxBitmap *) 0 ;
7187 buffer arg2 ;
7188 int arg3 ;
7189 void *argp1 = 0 ;
7190 int res1 = 0 ;
7191 Py_ssize_t temp2 ;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 char * kwnames[] = {
7195 (char *) "self",(char *) "data", NULL
7196 };
7197
7198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7200 if (!SWIG_IsOK(res1)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7202 }
7203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7204 {
7205 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7206 arg3 = (int)temp2;
7207 }
7208 {
7209 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 resultobj = SWIG_Py_Void();
7213 return resultobj;
7214fail:
7215 return NULL;
7216}
7217
7218
554f62e9
RD
7219SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7220 PyObject *resultobj = 0;
7221 wxBitmap *arg1 = (wxBitmap *) 0 ;
7222 wxBitmap *arg2 = (wxBitmap *) 0 ;
7223 bool result;
7224 void *argp1 = 0 ;
7225 int res1 = 0 ;
7226 void *argp2 = 0 ;
7227 int res2 = 0 ;
7228 PyObject * obj0 = 0 ;
7229 PyObject * obj1 = 0 ;
7230 char * kwnames[] = {
7231 (char *) "self",(char *) "other", NULL
7232 };
7233
7234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7236 if (!SWIG_IsOK(res1)) {
7237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7238 }
7239 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7241 if (!SWIG_IsOK(res2)) {
7242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7243 }
7244 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7245 {
554f62e9 7246 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 {
fc46b7f3
RD
7250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7251 }
7252 return resultobj;
7253fail:
7254 return NULL;
7255}
7256
7257
7258SWIGINTERN PyObject *_wrap_Bitmap___ne__(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___ne__",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___ne__" "', 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___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7282 }
7283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7284 {
7285 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 {
7289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7290 }
7291 return resultobj;
7292fail:
7293 return NULL;
7294}
7295
7296
7297SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7298 PyObject *obj;
7299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7300 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7301 return SWIG_Py_Void();
7302}
7303
7304SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 return SWIG_Python_InitShadowInstance(args);
7306}
7307
7308SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj = 0;
7310 int arg1 ;
7311 int arg2 ;
7312 buffer arg3 ;
7313 int arg4 ;
7314 buffer arg5 ;
7315 int arg6 ;
7316 wxBitmap *result = 0 ;
7317 int val1 ;
7318 int ecode1 = 0 ;
7319 int val2 ;
7320 int ecode2 = 0 ;
e46e7e0d
RD
7321 Py_ssize_t temp3 ;
7322 Py_ssize_t temp5 ;
fc46b7f3
RD
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 PyObject * obj2 = 0 ;
7326 PyObject * obj3 = 0 ;
7327 char * kwnames[] = {
7328 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7329 };
7330
7331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7332 ecode1 = SWIG_AsVal_int(obj0, &val1);
7333 if (!SWIG_IsOK(ecode1)) {
7334 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7335 }
7336 arg1 = static_cast< int >(val1);
7337 ecode2 = SWIG_AsVal_int(obj1, &val2);
7338 if (!SWIG_IsOK(ecode2)) {
7339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7340 }
7341 arg2 = static_cast< int >(val2);
7342 {
e46e7e0d
RD
7343 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7344 arg4 = (int)temp3;
fc46b7f3
RD
7345 }
7346 {
7347 if (obj3 != Py_None) {
e46e7e0d
RD
7348 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7349 arg6 = (int)temp5;
fc46b7f3
RD
7350 }
7351 }
7352 {
7353 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7357 return resultobj;
7358fail:
7359 return NULL;
7360}
7361
7362
7363SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7364 PyObject *resultobj = 0;
7365 int arg1 ;
7366 int arg2 ;
7367 buffer arg3 ;
7368 int arg4 ;
7369 wxBitmap *result = 0 ;
7370 int val1 ;
7371 int ecode1 = 0 ;
7372 int val2 ;
7373 int ecode2 = 0 ;
e46e7e0d 7374 Py_ssize_t temp3 ;
fc46b7f3
RD
7375 PyObject * obj0 = 0 ;
7376 PyObject * obj1 = 0 ;
7377 PyObject * obj2 = 0 ;
7378 char * kwnames[] = {
7379 (char *) "width",(char *) "height",(char *) "data", NULL
7380 };
7381
7382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7383 ecode1 = SWIG_AsVal_int(obj0, &val1);
7384 if (!SWIG_IsOK(ecode1)) {
7385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7386 }
7387 arg1 = static_cast< int >(val1);
7388 ecode2 = SWIG_AsVal_int(obj1, &val2);
7389 if (!SWIG_IsOK(ecode2)) {
7390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7391 }
7392 arg2 = static_cast< int >(val2);
7393 {
e46e7e0d
RD
7394 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7395 arg4 = (int)temp3;
fc46b7f3
RD
7396 }
7397 {
7398 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7402 return resultobj;
7403fail:
7404 return NULL;
7405}
7406
7407
7408SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7409 PyObject *resultobj = 0;
7410 int arg1 ;
7411 int arg2 ;
7412 buffer arg3 ;
7413 int arg4 ;
7414 wxBitmap *result = 0 ;
7415 int val1 ;
7416 int ecode1 = 0 ;
7417 int val2 ;
7418 int ecode2 = 0 ;
e46e7e0d 7419 Py_ssize_t temp3 ;
fc46b7f3
RD
7420 PyObject * obj0 = 0 ;
7421 PyObject * obj1 = 0 ;
7422 PyObject * obj2 = 0 ;
7423 char * kwnames[] = {
7424 (char *) "width",(char *) "height",(char *) "data", NULL
7425 };
7426
7427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7428 ecode1 = SWIG_AsVal_int(obj0, &val1);
7429 if (!SWIG_IsOK(ecode1)) {
7430 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7431 }
7432 arg1 = static_cast< int >(val1);
7433 ecode2 = SWIG_AsVal_int(obj1, &val2);
7434 if (!SWIG_IsOK(ecode2)) {
7435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7436 }
7437 arg2 = static_cast< int >(val2);
7438 {
e46e7e0d
RD
7439 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7440 arg4 = (int)temp3;
fc46b7f3
RD
7441 }
7442 {
7443 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7447 return resultobj;
7448fail:
7449 return NULL;
7450}
7451
7452
7453SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7454 PyObject *resultobj = 0;
7455 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7456 wxPoint result;
7457 void *argp1 = 0 ;
7458 int res1 = 0 ;
7459 PyObject *swig_obj[1] ;
7460
7461 if (!args) SWIG_fail;
7462 swig_obj[0] = args;
7463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7464 if (!SWIG_IsOK(res1)) {
7465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7466 }
7467 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7468 {
7469 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7473 return resultobj;
7474fail:
7475 return NULL;
7476}
7477
7478
7479SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7480 PyObject *resultobj = 0;
7481 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7482 int result;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7492 }
7493 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7494 {
7495 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_From_int(static_cast< int >(result));
7499 return resultobj;
7500fail:
7501 return NULL;
7502}
7503
7504
7505SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7506 PyObject *resultobj = 0;
7507 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7508 int result;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511 PyObject *swig_obj[1] ;
7512
7513 if (!args) SWIG_fail;
7514 swig_obj[0] = args;
7515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7516 if (!SWIG_IsOK(res1)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7518 }
7519 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7520 {
7521 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_From_int(static_cast< int >(result));
7525 return resultobj;
7526fail:
7527 return NULL;
7528}
7529
7530
7531SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7532 PyObject *resultobj = 0;
7533 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7534 wxSize result;
7535 void *argp1 = 0 ;
7536 int res1 = 0 ;
7537 PyObject *swig_obj[1] ;
7538
7539 if (!args) SWIG_fail;
7540 swig_obj[0] = args;
7541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7542 if (!SWIG_IsOK(res1)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7544 }
7545 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7546 {
7547 result = ((wxPixelDataBase const *)arg1)->GetSize();
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7551 return resultobj;
7552fail:
7553 return NULL;
7554}
7555
7556
7557SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7558 PyObject *resultobj = 0;
7559 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7560 int result;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 PyObject *swig_obj[1] ;
7564
7565 if (!args) SWIG_fail;
7566 swig_obj[0] = args;
7567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7570 }
7571 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7572 {
7573 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_From_int(static_cast< int >(result));
7577 return resultobj;
7578fail:
7579 return NULL;
7580}
7581
7582
7583SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7584 PyObject *obj;
7585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7586 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7587 return SWIG_Py_Void();
7588}
7589
7590SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7591 PyObject *resultobj = 0;
7592 wxBitmap *arg1 = 0 ;
7593 wxNativePixelData *result = 0 ;
7594 void *argp1 = 0 ;
7595 int res1 = 0 ;
7596
7597 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7599 if (!SWIG_IsOK(res1)) {
7600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7601 }
7602 if (!argp1) {
7603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7604 }
7605 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7606 {
7607 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7611 return resultobj;
7612fail:
7613 return NULL;
7614}
7615
7616
7617SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7618 PyObject *resultobj = 0;
7619 wxBitmap *arg1 = 0 ;
7620 wxRect *arg2 = 0 ;
7621 wxNativePixelData *result = 0 ;
7622 void *argp1 = 0 ;
7623 int res1 = 0 ;
7624 wxRect temp2 ;
7625
7626 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7628 if (!SWIG_IsOK(res1)) {
7629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7630 }
7631 if (!argp1) {
7632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7633 }
7634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7635 {
7636 arg2 = &temp2;
7637 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7638 }
7639 {
7640 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7644 return resultobj;
7645fail:
7646 return NULL;
7647}
7648
7649
7650SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7651 PyObject *resultobj = 0;
7652 wxBitmap *arg1 = 0 ;
7653 wxPoint *arg2 = 0 ;
7654 wxSize *arg3 = 0 ;
7655 wxNativePixelData *result = 0 ;
7656 void *argp1 = 0 ;
7657 int res1 = 0 ;
7658 wxPoint temp2 ;
7659 wxSize temp3 ;
7660
7661 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7663 if (!SWIG_IsOK(res1)) {
7664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7665 }
7666 if (!argp1) {
7667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7668 }
7669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7670 {
7671 arg2 = &temp2;
7672 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7673 }
7674 {
7675 arg3 = &temp3;
7676 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7677 }
7678 {
7679 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
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(PyObject *self, PyObject *args) {
7690 int argc;
7691 PyObject *argv[4];
7692
7693 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7694 --argc;
7695 if (argc == 1) {
7696 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7697 }
7698 if (argc == 2) {
7699 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7700 }
7701 if (argc == 3) {
7702 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7703 }
7704
7705fail:
7706 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7707 return NULL;
7708}
7709
7710
7711SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7712 PyObject *resultobj = 0;
7713 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7714 void *argp1 = 0 ;
7715 int res1 = 0 ;
7716 PyObject *swig_obj[1] ;
7717
7718 if (!args) SWIG_fail;
7719 swig_obj[0] = args;
7720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7721 if (!SWIG_IsOK(res1)) {
7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7723 }
7724 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7725 {
7726 delete arg1;
7727
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_Py_Void();
7731 return resultobj;
7732fail:
7733 return NULL;
7734}
7735
7736
7737SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7738 PyObject *resultobj = 0;
7739 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7740 wxNativePixelData_Accessor result;
7741 void *argp1 = 0 ;
7742 int res1 = 0 ;
7743 PyObject *swig_obj[1] ;
7744
7745 if (!args) SWIG_fail;
7746 swig_obj[0] = args;
7747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7748 if (!SWIG_IsOK(res1)) {
7749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7750 }
7751 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7752 {
7753 result = ((wxNativePixelData const *)arg1)->GetPixels();
7754 if (PyErr_Occurred()) SWIG_fail;
7755 }
7756 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7757 return resultobj;
7758fail:
7759 return NULL;
7760}
7761
7762
7763SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7764 PyObject *resultobj = 0;
7765 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 PyObject *swig_obj[1] ;
7769
7770 if (!args) SWIG_fail;
7771 swig_obj[0] = args;
7772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7773 if (!SWIG_IsOK(res1)) {
7774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7775 }
7776 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7777 {
7778 (arg1)->UseAlpha();
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_Py_Void();
7782 return resultobj;
7783fail:
7784 return NULL;
7785}
7786
7787
7788SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7789 PyObject *resultobj = 0;
7790 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7791 bool result;
7792 void *argp1 = 0 ;
7793 int res1 = 0 ;
7794 PyObject *swig_obj[1] ;
7795
7796 if (!args) SWIG_fail;
7797 swig_obj[0] = args;
7798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7799 if (!SWIG_IsOK(res1)) {
7800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7801 }
7802 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7803 {
7804 result = (bool)wxNativePixelData___nonzero__(arg1);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 {
7808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7809 }
7810 return resultobj;
7811fail:
7812 return NULL;
7813}
7814
7815
7816SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7817 PyObject *obj;
7818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7819 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7820 return SWIG_Py_Void();
7821}
7822
7823SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 return SWIG_Python_InitShadowInstance(args);
7825}
7826
7827SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7828 PyObject *resultobj = 0;
7829 wxNativePixelData *arg1 = 0 ;
7830 wxNativePixelData_Accessor *result = 0 ;
7831 void *argp1 = 0 ;
7832 int res1 = 0 ;
7833
7834 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7838 }
7839 if (!argp1) {
7840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7841 }
7842 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7843 {
7844 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7848 return resultobj;
7849fail:
7850 return NULL;
7851}
7852
7853
7854SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7855 PyObject *resultobj = 0;
7856 wxBitmap *arg1 = 0 ;
7857 wxNativePixelData *arg2 = 0 ;
7858 wxNativePixelData_Accessor *result = 0 ;
7859 void *argp1 = 0 ;
7860 int res1 = 0 ;
7861 void *argp2 = 0 ;
7862 int res2 = 0 ;
7863
7864 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7866 if (!SWIG_IsOK(res1)) {
7867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7868 }
7869 if (!argp1) {
7870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7871 }
7872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7873 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7874 if (!SWIG_IsOK(res2)) {
7875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7876 }
7877 if (!argp2) {
7878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7879 }
7880 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7881 {
7882 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7886 return resultobj;
7887fail:
7888 return NULL;
7889}
7890
7891
7892SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7893 PyObject *resultobj = 0;
7894 wxNativePixelData_Accessor *result = 0 ;
7895
7896 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7897 {
7898 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7902 return resultobj;
7903fail:
7904 return NULL;
7905}
7906
7907
7908SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7909 int argc;
7910 PyObject *argv[3];
7911
7912 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7913 --argc;
7914 if (argc == 0) {
7915 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7916 }
7917 if (argc == 1) {
7918 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7919 }
7920 if (argc == 2) {
7921 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7922 }
7923
7924fail:
7925 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7926 return NULL;
7927}
7928
7929
7930SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7931 PyObject *resultobj = 0;
7932 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 PyObject *swig_obj[1] ;
7936
7937 if (!args) SWIG_fail;
7938 swig_obj[0] = args;
7939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7940 if (!SWIG_IsOK(res1)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7942 }
7943 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7944 {
7945 delete arg1;
7946
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_Py_Void();
7950 return resultobj;
7951fail:
7952 return NULL;
7953}
7954
7955
7956SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj = 0;
7958 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7959 wxNativePixelData *arg2 = 0 ;
7960 void *argp1 = 0 ;
7961 int res1 = 0 ;
7962 void *argp2 = 0 ;
7963 int res2 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 char * kwnames[] = {
7967 (char *) "self",(char *) "data", NULL
7968 };
7969
7970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7974 }
7975 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7977 if (!SWIG_IsOK(res2)) {
7978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 if (!argp2) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7982 }
7983 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7984 {
7985 (arg1)->Reset((wxNativePixelData const &)*arg2);
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_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7996 PyObject *resultobj = 0;
7997 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7998 bool result;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8008 }
8009 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8010 {
8011 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 {
8015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8016 }
8017 return resultobj;
8018fail:
8019 return NULL;
8020}
8021
8022
8023SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 PyObject *resultobj = 0;
8025 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8035 }
8036 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8037 {
8038 wxNativePixelData_Accessor_nextPixel(arg1);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_Py_Void();
8042 return resultobj;
8043fail:
8044 return NULL;
8045}
8046
8047
8048SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8051 wxNativePixelData *arg2 = 0 ;
8052 int arg3 ;
8053 int arg4 ;
8054 void *argp1 = 0 ;
8055 int res1 = 0 ;
8056 void *argp2 = 0 ;
8057 int res2 = 0 ;
8058 int val3 ;
8059 int ecode3 = 0 ;
8060 int val4 ;
8061 int ecode4 = 0 ;
8062 PyObject * obj0 = 0 ;
8063 PyObject * obj1 = 0 ;
8064 PyObject * obj2 = 0 ;
8065 PyObject * obj3 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8074 }
8075 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8077 if (!SWIG_IsOK(res2)) {
8078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 if (!argp2) {
8081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8082 }
8083 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8084 ecode3 = SWIG_AsVal_int(obj2, &val3);
8085 if (!SWIG_IsOK(ecode3)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8087 }
8088 arg3 = static_cast< int >(val3);
8089 ecode4 = SWIG_AsVal_int(obj3, &val4);
8090 if (!SWIG_IsOK(ecode4)) {
8091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8092 }
8093 arg4 = static_cast< int >(val4);
8094 {
8095 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_Py_Void();
8099 return resultobj;
8100fail:
8101 return NULL;
8102}
8103
8104
8105SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8108 wxNativePixelData *arg2 = 0 ;
8109 int arg3 ;
8110 void *argp1 = 0 ;
8111 int res1 = 0 ;
8112 void *argp2 = 0 ;
8113 int res2 = 0 ;
8114 int val3 ;
8115 int ecode3 = 0 ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 PyObject * obj2 = 0 ;
8119 char * kwnames[] = {
8120 (char *) "self",(char *) "data",(char *) "x", NULL
8121 };
8122
8123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8127 }
8128 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8130 if (!SWIG_IsOK(res2)) {
8131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8132 }
8133 if (!argp2) {
8134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8135 }
8136 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8137 ecode3 = SWIG_AsVal_int(obj2, &val3);
8138 if (!SWIG_IsOK(ecode3)) {
8139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8140 }
8141 arg3 = static_cast< int >(val3);
8142 {
8143 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = SWIG_Py_Void();
8147 return resultobj;
8148fail:
8149 return NULL;
8150}
8151
8152
8153SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj = 0;
8155 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8156 wxNativePixelData *arg2 = 0 ;
8157 int arg3 ;
8158 void *argp1 = 0 ;
8159 int res1 = 0 ;
8160 void *argp2 = 0 ;
8161 int res2 = 0 ;
8162 int val3 ;
8163 int ecode3 = 0 ;
8164 PyObject * obj0 = 0 ;
8165 PyObject * obj1 = 0 ;
8166 PyObject * obj2 = 0 ;
8167 char * kwnames[] = {
8168 (char *) "self",(char *) "data",(char *) "y", NULL
8169 };
8170
8171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8173 if (!SWIG_IsOK(res1)) {
8174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8175 }
8176 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8178 if (!SWIG_IsOK(res2)) {
8179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8180 }
8181 if (!argp2) {
8182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8183 }
8184 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8185 ecode3 = SWIG_AsVal_int(obj2, &val3);
8186 if (!SWIG_IsOK(ecode3)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8188 }
8189 arg3 = static_cast< int >(val3);
8190 {
8191 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_Py_Void();
8195 return resultobj;
8196fail:
8197 return NULL;
8198}
8199
8200
8201SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8202 PyObject *resultobj = 0;
8203 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8204 wxNativePixelData *arg2 = 0 ;
8205 int arg3 ;
8206 int arg4 ;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 void *argp2 = 0 ;
8210 int res2 = 0 ;
8211 int val3 ;
8212 int ecode3 = 0 ;
8213 int val4 ;
8214 int ecode4 = 0 ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 char * kwnames[] = {
8220 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8221 };
8222
8223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8227 }
8228 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8230 if (!SWIG_IsOK(res2)) {
8231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8232 }
8233 if (!argp2) {
8234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8235 }
8236 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8237 ecode3 = SWIG_AsVal_int(obj2, &val3);
8238 if (!SWIG_IsOK(ecode3)) {
8239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8240 }
8241 arg3 = static_cast< int >(val3);
8242 ecode4 = SWIG_AsVal_int(obj3, &val4);
8243 if (!SWIG_IsOK(ecode4)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8245 }
8246 arg4 = static_cast< int >(val4);
8247 {
8248 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_Py_Void();
8252 return resultobj;
8253fail:
8254 return NULL;
8255}
8256
8257
8258SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj = 0;
8260 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8261 byte arg2 ;
8262 byte arg3 ;
8263 byte arg4 ;
8264 void *argp1 = 0 ;
8265 int res1 = 0 ;
8266 unsigned char val2 ;
8267 int ecode2 = 0 ;
8268 unsigned char val3 ;
8269 int ecode3 = 0 ;
8270 unsigned char val4 ;
8271 int ecode4 = 0 ;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 PyObject * obj2 = 0 ;
8275 PyObject * obj3 = 0 ;
8276 char * kwnames[] = {
8277 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8278 };
8279
8280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8282 if (!SWIG_IsOK(res1)) {
8283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8284 }
8285 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8286 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8287 if (!SWIG_IsOK(ecode2)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8289 }
8290 arg2 = static_cast< byte >(val2);
8291 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8292 if (!SWIG_IsOK(ecode3)) {
8293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8294 }
8295 arg3 = static_cast< byte >(val3);
8296 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8297 if (!SWIG_IsOK(ecode4)) {
8298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8299 }
8300 arg4 = static_cast< byte >(val4);
8301 {
8302 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 resultobj = SWIG_Py_Void();
8306 return resultobj;
8307fail:
8308 return NULL;
8309}
8310
8311
8312SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8313 PyObject *resultobj = 0;
8314 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8315 PyObject *result = 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 PyObject *swig_obj[1] ;
8319
8320 if (!args) SWIG_fail;
8321 swig_obj[0] = args;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8325 }
8326 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8327 {
8328 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 resultobj = result;
8332 return resultobj;
8333fail:
8334 return NULL;
8335}
8336
8337
8338SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8339 PyObject *obj;
8340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8341 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8342 return SWIG_Py_Void();
8343}
8344
8345SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8346 return SWIG_Python_InitShadowInstance(args);
8347}
8348
8349SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8350 PyObject *resultobj = 0;
8351 wxBitmap *arg1 = 0 ;
8352 wxAlphaPixelData *result = 0 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355
8356 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8358 if (!SWIG_IsOK(res1)) {
8359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8360 }
8361 if (!argp1) {
8362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8363 }
8364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8365 {
8366 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8370 return resultobj;
8371fail:
8372 return NULL;
8373}
8374
8375
8376SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8377 PyObject *resultobj = 0;
8378 wxBitmap *arg1 = 0 ;
8379 wxRect *arg2 = 0 ;
8380 wxAlphaPixelData *result = 0 ;
8381 void *argp1 = 0 ;
8382 int res1 = 0 ;
8383 wxRect temp2 ;
8384
8385 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8387 if (!SWIG_IsOK(res1)) {
8388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8389 }
8390 if (!argp1) {
8391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8392 }
8393 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8394 {
8395 arg2 = &temp2;
8396 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8397 }
8398 {
8399 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8403 return resultobj;
8404fail:
8405 return NULL;
8406}
8407
8408
8409SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8410 PyObject *resultobj = 0;
8411 wxBitmap *arg1 = 0 ;
8412 wxPoint *arg2 = 0 ;
8413 wxSize *arg3 = 0 ;
8414 wxAlphaPixelData *result = 0 ;
8415 void *argp1 = 0 ;
8416 int res1 = 0 ;
8417 wxPoint temp2 ;
8418 wxSize temp3 ;
8419
8420 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8422 if (!SWIG_IsOK(res1)) {
8423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8424 }
8425 if (!argp1) {
8426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8427 }
8428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8429 {
8430 arg2 = &temp2;
8431 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8432 }
8433 {
8434 arg3 = &temp3;
8435 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8436 }
8437 {
8438 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
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(PyObject *self, PyObject *args) {
8449 int argc;
8450 PyObject *argv[4];
8451
8452 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8453 --argc;
8454 if (argc == 1) {
8455 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8456 }
8457 if (argc == 2) {
8458 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8459 }
8460 if (argc == 3) {
8461 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8462 }
8463
8464fail:
8465 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8466 return NULL;
8467}
8468
8469
8470SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8471 PyObject *resultobj = 0;
8472 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8473 void *argp1 = 0 ;
8474 int res1 = 0 ;
8475 PyObject *swig_obj[1] ;
8476
8477 if (!args) SWIG_fail;
8478 swig_obj[0] = args;
8479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8480 if (!SWIG_IsOK(res1)) {
8481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8482 }
8483 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8484 {
8485 delete arg1;
8486
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_Py_Void();
8490 return resultobj;
8491fail:
8492 return NULL;
8493}
8494
8495
8496SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8497 PyObject *resultobj = 0;
8498 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8499 wxAlphaPixelData_Accessor result;
8500 void *argp1 = 0 ;
8501 int res1 = 0 ;
8502 PyObject *swig_obj[1] ;
8503
8504 if (!args) SWIG_fail;
8505 swig_obj[0] = args;
8506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8507 if (!SWIG_IsOK(res1)) {
8508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8509 }
8510 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8511 {
8512 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8516 return resultobj;
8517fail:
8518 return NULL;
8519}
8520
8521
8522SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8523 PyObject *resultobj = 0;
8524 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8525 void *argp1 = 0 ;
8526 int res1 = 0 ;
8527 PyObject *swig_obj[1] ;
8528
8529 if (!args) SWIG_fail;
8530 swig_obj[0] = args;
8531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8532 if (!SWIG_IsOK(res1)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8534 }
8535 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8536 {
8537 (arg1)->UseAlpha();
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_Py_Void();
8541 return resultobj;
8542fail:
8543 return NULL;
8544}
8545
8546
8547SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8548 PyObject *resultobj = 0;
8549 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8550 bool result;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 PyObject *swig_obj[1] ;
8554
8555 if (!args) SWIG_fail;
8556 swig_obj[0] = args;
8557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8558 if (!SWIG_IsOK(res1)) {
8559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8560 }
8561 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8562 {
8563 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 {
8567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8568 }
8569 return resultobj;
8570fail:
8571 return NULL;
8572}
8573
8574
8575SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8576 PyObject *obj;
8577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8578 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8579 return SWIG_Py_Void();
8580}
8581
8582SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8583 return SWIG_Python_InitShadowInstance(args);
8584}
8585
8586SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8587 PyObject *resultobj = 0;
8588 wxAlphaPixelData *arg1 = 0 ;
8589 wxAlphaPixelData_Accessor *result = 0 ;
8590 void *argp1 = 0 ;
8591 int res1 = 0 ;
8592
8593 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8595 if (!SWIG_IsOK(res1)) {
8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8597 }
8598 if (!argp1) {
8599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8600 }
8601 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8602 {
8603 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8607 return resultobj;
8608fail:
8609 return NULL;
8610}
8611
8612
8613SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8614 PyObject *resultobj = 0;
8615 wxBitmap *arg1 = 0 ;
8616 wxAlphaPixelData *arg2 = 0 ;
8617 wxAlphaPixelData_Accessor *result = 0 ;
8618 void *argp1 = 0 ;
8619 int res1 = 0 ;
8620 void *argp2 = 0 ;
8621 int res2 = 0 ;
8622
8623 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8625 if (!SWIG_IsOK(res1)) {
8626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8627 }
8628 if (!argp1) {
8629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8630 }
8631 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8632 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8633 if (!SWIG_IsOK(res2)) {
8634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8635 }
8636 if (!argp2) {
8637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8638 }
8639 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8640 {
8641 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8645 return resultobj;
8646fail:
8647 return NULL;
8648}
8649
8650
8651SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8652 PyObject *resultobj = 0;
8653 wxAlphaPixelData_Accessor *result = 0 ;
8654
8655 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8656 {
8657 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8661 return resultobj;
8662fail:
8663 return NULL;
8664}
8665
8666
8667SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8668 int argc;
8669 PyObject *argv[3];
8670
8671 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8672 --argc;
8673 if (argc == 0) {
8674 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8675 }
8676 if (argc == 1) {
8677 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8678 }
8679 if (argc == 2) {
8680 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8681 }
8682
8683fail:
8684 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8685 return NULL;
8686}
8687
8688
8689SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8690 PyObject *resultobj = 0;
8691 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8692 void *argp1 = 0 ;
8693 int res1 = 0 ;
8694 PyObject *swig_obj[1] ;
8695
8696 if (!args) SWIG_fail;
8697 swig_obj[0] = args;
8698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8701 }
8702 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8703 {
8704 delete arg1;
8705
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 resultobj = SWIG_Py_Void();
8709 return resultobj;
8710fail:
8711 return NULL;
8712}
8713
8714
8715SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj = 0;
8717 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8718 wxAlphaPixelData *arg2 = 0 ;
8719 void *argp1 = 0 ;
8720 int res1 = 0 ;
8721 void *argp2 = 0 ;
8722 int res2 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 PyObject * obj1 = 0 ;
8725 char * kwnames[] = {
8726 (char *) "self",(char *) "data", NULL
8727 };
8728
8729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8731 if (!SWIG_IsOK(res1)) {
8732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8733 }
8734 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8736 if (!SWIG_IsOK(res2)) {
8737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 if (!argp2) {
8740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8741 }
8742 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8743 {
8744 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
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_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8755 PyObject *resultobj = 0;
8756 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8757 bool result;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 PyObject *swig_obj[1] ;
8761
8762 if (!args) SWIG_fail;
8763 swig_obj[0] = args;
8764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8765 if (!SWIG_IsOK(res1)) {
8766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8767 }
8768 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8769 {
8770 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 {
8774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8775 }
8776 return resultobj;
8777fail:
8778 return NULL;
8779}
8780
8781
8782SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8783 PyObject *resultobj = 0;
8784 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8785 void *argp1 = 0 ;
8786 int res1 = 0 ;
8787 PyObject *swig_obj[1] ;
8788
8789 if (!args) SWIG_fail;
8790 swig_obj[0] = args;
8791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8792 if (!SWIG_IsOK(res1)) {
8793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8794 }
8795 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8796 {
8797 wxAlphaPixelData_Accessor_nextPixel(arg1);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = SWIG_Py_Void();
8801 return resultobj;
8802fail:
8803 return NULL;
8804}
8805
8806
8807SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj = 0;
8809 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8810 wxAlphaPixelData *arg2 = 0 ;
8811 int arg3 ;
8812 int arg4 ;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 void *argp2 = 0 ;
8816 int res2 = 0 ;
8817 int val3 ;
8818 int ecode3 = 0 ;
8819 int val4 ;
8820 int ecode4 = 0 ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 PyObject * obj2 = 0 ;
8824 PyObject * obj3 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8833 }
8834 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8836 if (!SWIG_IsOK(res2)) {
8837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 if (!argp2) {
8840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8841 }
8842 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8843 ecode3 = SWIG_AsVal_int(obj2, &val3);
8844 if (!SWIG_IsOK(ecode3)) {
8845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8846 }
8847 arg3 = static_cast< int >(val3);
8848 ecode4 = SWIG_AsVal_int(obj3, &val4);
8849 if (!SWIG_IsOK(ecode4)) {
8850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8851 }
8852 arg4 = static_cast< int >(val4);
8853 {
8854 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_Py_Void();
8858 return resultobj;
8859fail:
8860 return NULL;
8861}
8862
8863
8864SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8867 wxAlphaPixelData *arg2 = 0 ;
8868 int arg3 ;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 void *argp2 = 0 ;
8872 int res2 = 0 ;
8873 int val3 ;
8874 int ecode3 = 0 ;
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8877 PyObject * obj2 = 0 ;
8878 char * kwnames[] = {
8879 (char *) "self",(char *) "data",(char *) "x", NULL
8880 };
8881
8882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8884 if (!SWIG_IsOK(res1)) {
8885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8886 }
8887 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8889 if (!SWIG_IsOK(res2)) {
8890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8891 }
8892 if (!argp2) {
8893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8894 }
8895 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8896 ecode3 = SWIG_AsVal_int(obj2, &val3);
8897 if (!SWIG_IsOK(ecode3)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8899 }
8900 arg3 = static_cast< int >(val3);
8901 {
8902 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 resultobj = SWIG_Py_Void();
8906 return resultobj;
8907fail:
8908 return NULL;
8909}
8910
8911
8912SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj = 0;
8914 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8915 wxAlphaPixelData *arg2 = 0 ;
8916 int arg3 ;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 void *argp2 = 0 ;
8920 int res2 = 0 ;
8921 int val3 ;
8922 int ecode3 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 char * kwnames[] = {
8927 (char *) "self",(char *) "data",(char *) "y", NULL
8928 };
8929
8930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8934 }
8935 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8937 if (!SWIG_IsOK(res2)) {
8938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8939 }
8940 if (!argp2) {
8941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8942 }
8943 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8944 ecode3 = SWIG_AsVal_int(obj2, &val3);
8945 if (!SWIG_IsOK(ecode3)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8947 }
8948 arg3 = static_cast< int >(val3);
8949 {
8950 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = SWIG_Py_Void();
8954 return resultobj;
8955fail:
8956 return NULL;
8957}
8958
8959
8960SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj = 0;
8962 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8963 wxAlphaPixelData *arg2 = 0 ;
8964 int arg3 ;
8965 int arg4 ;
8966 void *argp1 = 0 ;
8967 int res1 = 0 ;
8968 void *argp2 = 0 ;
8969 int res2 = 0 ;
8970 int val3 ;
8971 int ecode3 = 0 ;
8972 int val4 ;
8973 int ecode4 = 0 ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 PyObject * obj2 = 0 ;
8977 PyObject * obj3 = 0 ;
8978 char * kwnames[] = {
8979 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8980 };
8981
8982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8984 if (!SWIG_IsOK(res1)) {
8985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8986 }
8987 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8989 if (!SWIG_IsOK(res2)) {
8990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8991 }
8992 if (!argp2) {
8993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8994 }
8995 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8996 ecode3 = SWIG_AsVal_int(obj2, &val3);
8997 if (!SWIG_IsOK(ecode3)) {
8998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8999 }
9000 arg3 = static_cast< int >(val3);
9001 ecode4 = SWIG_AsVal_int(obj3, &val4);
9002 if (!SWIG_IsOK(ecode4)) {
9003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9004 }
9005 arg4 = static_cast< int >(val4);
9006 {
9007 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 resultobj = SWIG_Py_Void();
9011 return resultobj;
9012fail:
9013 return NULL;
9014}
9015
9016
9017SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj = 0;
9019 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9020 byte arg2 ;
9021 byte arg3 ;
9022 byte arg4 ;
9023 byte arg5 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 unsigned char val2 ;
9027 int ecode2 = 0 ;
9028 unsigned char val3 ;
9029 int ecode3 = 0 ;
9030 unsigned char val4 ;
9031 int ecode4 = 0 ;
9032 unsigned char val5 ;
9033 int ecode5 = 0 ;
9034 PyObject * obj0 = 0 ;
9035 PyObject * obj1 = 0 ;
9036 PyObject * obj2 = 0 ;
9037 PyObject * obj3 = 0 ;
9038 PyObject * obj4 = 0 ;
9039 char * kwnames[] = {
9040 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9041 };
9042
9043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9047 }
9048 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9049 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9050 if (!SWIG_IsOK(ecode2)) {
9051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9052 }
9053 arg2 = static_cast< byte >(val2);
9054 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9055 if (!SWIG_IsOK(ecode3)) {
9056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9057 }
9058 arg3 = static_cast< byte >(val3);
9059 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9060 if (!SWIG_IsOK(ecode4)) {
9061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9062 }
9063 arg4 = static_cast< byte >(val4);
9064 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9065 if (!SWIG_IsOK(ecode5)) {
9066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9067 }
9068 arg5 = static_cast< byte >(val5);
9069 {
9070 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9071 if (PyErr_Occurred()) SWIG_fail;
554f62e9 9072 }
fc46b7f3 9073 resultobj = SWIG_Py_Void();
554f62e9
RD
9074 return resultobj;
9075fail:
9076 return NULL;
9077}
9078
9079
fc46b7f3 9080SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9081 PyObject *resultobj = 0;
fc46b7f3
RD
9082 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9083 PyObject *result = 0 ;
554f62e9
RD
9084 void *argp1 = 0 ;
9085 int res1 = 0 ;
fc46b7f3 9086 PyObject *swig_obj[1] ;
554f62e9 9087
fc46b7f3
RD
9088 if (!args) SWIG_fail;
9089 swig_obj[0] = args;
9090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 9091 if (!SWIG_IsOK(res1)) {
fc46b7f3 9092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 9093 }
fc46b7f3 9094 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 9095 {
fc46b7f3 9096 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
fc46b7f3 9099 resultobj = result;
554f62e9
RD
9100 return resultobj;
9101fail:
9102 return NULL;
d55e5bfc
RD
9103}
9104
9105
fc46b7f3 9106SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9107 PyObject *obj;
9108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 9109 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 9110 return SWIG_Py_Void();
d55e5bfc
RD
9111}
9112
fc46b7f3 9113SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9114 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
9115}
9116
554f62e9
RD
9117SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj = 0;
9119 wxBitmap *arg1 = 0 ;
9120 wxColour const &arg2_defvalue = wxNullColour ;
9121 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9122 wxMask *result = 0 ;
9123 void *argp1 = 0 ;
9124 int res1 = 0 ;
9125 wxColour temp2 ;
9126 PyObject * obj0 = 0 ;
9127 PyObject * obj1 = 0 ;
9128 char * kwnames[] = {
9129 (char *) "bitmap",(char *) "colour", NULL
9130 };
9131
9132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9136 }
9137 if (!argp1) {
9138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9139 }
9140 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9141 if (obj1) {
d55e5bfc 9142 {
554f62e9
RD
9143 arg2 = &temp2;
9144 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9145 }
554f62e9
RD
9146 }
9147 {
9148 if (!wxPyCheckForApp()) SWIG_fail;
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9155 return resultobj;
9156fail:
9157 return NULL;
d55e5bfc
RD
9158}
9159
9160
554f62e9
RD
9161SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9162 PyObject *resultobj = 0;
9163 wxMask *arg1 = (wxMask *) 0 ;
9164 void *argp1 = 0 ;
9165 int res1 = 0 ;
9166 PyObject *swig_obj[1] ;
9167
9168 if (!args) SWIG_fail;
9169 swig_obj[0] = args;
9170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9173 }
9174 arg1 = reinterpret_cast< wxMask * >(argp1);
9175 {
554f62e9 9176 delete arg1;
d55e5bfc 9177
554f62e9
RD
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 resultobj = SWIG_Py_Void();
9181 return resultobj;
9182fail:
9183 return NULL;
9184}
9185
9186
9187SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9188 PyObject *obj;
9189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9190 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9191 return SWIG_Py_Void();
9192}
9193
9194SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9195 return SWIG_Python_InitShadowInstance(args);
9196}
9197
9198SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj = 0;
9200 wxString *arg1 = 0 ;
9201 wxBitmapType arg2 ;
9202 int arg3 = (int) -1 ;
9203 int arg4 = (int) -1 ;
9204 wxIcon *result = 0 ;
9205 bool temp1 = false ;
9206 int val2 ;
9207 int ecode2 = 0 ;
9208 int val3 ;
9209 int ecode3 = 0 ;
9210 int val4 ;
9211 int ecode4 = 0 ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 PyObject * obj2 = 0 ;
9215 PyObject * obj3 = 0 ;
9216 char * kwnames[] = {
9217 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9218 };
9219
9220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9221 {
9222 arg1 = wxString_in_helper(obj0);
9223 if (arg1 == NULL) SWIG_fail;
9224 temp1 = true;
9225 }
9226 ecode2 = SWIG_AsVal_int(obj1, &val2);
9227 if (!SWIG_IsOK(ecode2)) {
9228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9229 }
9230 arg2 = static_cast< wxBitmapType >(val2);
9231 if (obj2) {
9232 ecode3 = SWIG_AsVal_int(obj2, &val3);
9233 if (!SWIG_IsOK(ecode3)) {
9234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9235 }
9236 arg3 = static_cast< int >(val3);
9237 }
9238 if (obj3) {
9239 ecode4 = SWIG_AsVal_int(obj3, &val4);
9240 if (!SWIG_IsOK(ecode4)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9242 }
9243 arg4 = static_cast< int >(val4);
9244 }
9245 {
9246 if (!wxPyCheckForApp()) SWIG_fail;
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9253 {
9254 if (temp1)
9255 delete arg1;
9256 }
9257 return resultobj;
9258fail:
9259 {
9260 if (temp1)
9261 delete arg1;
9262 }
9263 return NULL;
d55e5bfc
RD
9264}
9265
9266
554f62e9
RD
9267SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9268 PyObject *resultobj = 0;
9269 wxIcon *arg1 = (wxIcon *) 0 ;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 PyObject *swig_obj[1] ;
9273
9274 if (!args) SWIG_fail;
9275 swig_obj[0] = args;
9276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9279 }
9280 arg1 = reinterpret_cast< wxIcon * >(argp1);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 delete arg1;
d55e5bfc 9284
554f62e9
RD
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_Py_Void();
9289 return resultobj;
9290fail:
9291 return NULL;
d55e5bfc
RD
9292}
9293
9294
554f62e9
RD
9295SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9296 PyObject *resultobj = 0;
9297 wxIcon *result = 0 ;
9298
9299 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9300 {
9301 if (!wxPyCheckForApp()) SWIG_fail;
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 result = (wxIcon *)new wxIcon();
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9308 return resultobj;
9309fail:
9310 return NULL;
9311}
9312
9313
9314SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj = 0;
9316 wxIconLocation *arg1 = 0 ;
9317 wxIcon *result = 0 ;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 PyObject * obj0 = 0 ;
9321 char * kwnames[] = {
9322 (char *) "loc", NULL
9323 };
9324
9325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9326 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9327 if (!SWIG_IsOK(res1)) {
9328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9329 }
9330 if (!argp1) {
9331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9332 }
9333 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9334 {
9335 if (!wxPyCheckForApp()) SWIG_fail;
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9342 return resultobj;
9343fail:
9344 return NULL;
9345}
9346
9347
9348SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj = 0;
9350 wxBitmap *arg1 = 0 ;
9351 wxIcon *result = 0 ;
9352 void *argp1 = 0 ;
9353 int res1 = 0 ;
9354 PyObject * obj0 = 0 ;
9355 char * kwnames[] = {
9356 (char *) "bmp", NULL
9357 };
9358
9359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9360 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9363 }
9364 if (!argp1) {
9365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9366 }
9367 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9368 {
9369 if (!wxPyCheckForApp()) SWIG_fail;
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9376 return resultobj;
9377fail:
9378 return NULL;
d55e5bfc
RD
9379}
9380
9381
554f62e9
RD
9382SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj = 0;
9384 PyObject *arg1 = (PyObject *) 0 ;
9385 wxIcon *result = 0 ;
9386 PyObject * obj0 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "listOfStrings", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9392 arg1 = obj0;
9393 {
9394 if (!wxPyCheckForApp()) SWIG_fail;
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 result = (wxIcon *)new_wxIcon(arg1);
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9401 return resultobj;
9402fail:
9403 return NULL;
9404}
9405
9406
9407SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj = 0;
9409 wxIcon *arg1 = (wxIcon *) 0 ;
9410 wxString *arg2 = 0 ;
9411 wxBitmapType arg3 ;
9412 bool result;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 bool temp2 = false ;
9416 int val3 ;
9417 int ecode3 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 PyObject * obj2 = 0 ;
9421 char * kwnames[] = {
9422 (char *) "self",(char *) "name",(char *) "type", NULL
9423 };
9424
9425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9427 if (!SWIG_IsOK(res1)) {
9428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9429 }
9430 arg1 = reinterpret_cast< wxIcon * >(argp1);
9431 {
9432 arg2 = wxString_in_helper(obj1);
9433 if (arg2 == NULL) SWIG_fail;
9434 temp2 = true;
9435 }
9436 ecode3 = SWIG_AsVal_int(obj2, &val3);
9437 if (!SWIG_IsOK(ecode3)) {
9438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9439 }
9440 arg3 = static_cast< wxBitmapType >(val3);
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9449 }
9450 {
9451 if (temp2)
9452 delete arg2;
9453 }
9454 return resultobj;
9455fail:
9456 {
9457 if (temp2)
9458 delete arg2;
9459 }
9460 return NULL;
d55e5bfc
RD
9461}
9462
9463
554f62e9
RD
9464SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9465 PyObject *resultobj = 0;
9466 wxIcon *arg1 = (wxIcon *) 0 ;
9467 long result;
9468 void *argp1 = 0 ;
9469 int res1 = 0 ;
9470 PyObject *swig_obj[1] ;
9471
9472 if (!args) SWIG_fail;
9473 swig_obj[0] = args;
9474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9475 if (!SWIG_IsOK(res1)) {
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9477 }
9478 arg1 = reinterpret_cast< wxIcon * >(argp1);
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 result = (long)(arg1)->GetHandle();
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_From_long(static_cast< long >(result));
9486 return resultobj;
9487fail:
9488 return NULL;
9489}
9490
9491
9492SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj = 0;
9494 wxIcon *arg1 = (wxIcon *) 0 ;
9495 long arg2 ;
9496 void *argp1 = 0 ;
9497 int res1 = 0 ;
9498 long val2 ;
9499 int ecode2 = 0 ;
9500 PyObject * obj0 = 0 ;
9501 PyObject * obj1 = 0 ;
9502 char * kwnames[] = {
9503 (char *) "self",(char *) "handle", NULL
9504 };
9505
9506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9510 }
9511 arg1 = reinterpret_cast< wxIcon * >(argp1);
9512 ecode2 = SWIG_AsVal_long(obj1, &val2);
9513 if (!SWIG_IsOK(ecode2)) {
9514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9515 }
9516 arg2 = static_cast< long >(val2);
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 wxIcon_SetHandle(arg1,arg2);
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_Py_Void();
9524 return resultobj;
9525fail:
9526 return NULL;
d55e5bfc
RD
9527}
9528
9529
b39fe951 9530SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9531 PyObject *resultobj = 0;
9532 wxIcon *arg1 = (wxIcon *) 0 ;
9533 bool result;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 PyObject *swig_obj[1] ;
9537
9538 if (!args) SWIG_fail;
9539 swig_obj[0] = args;
9540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9541 if (!SWIG_IsOK(res1)) {
b39fe951 9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9543 }
9544 arg1 = reinterpret_cast< wxIcon * >(argp1);
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9547 result = (bool)(arg1)->IsOk();
554f62e9
RD
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9553 }
9554 return resultobj;
9555fail:
9556 return NULL;
d55e5bfc
RD
9557}
9558
9559
554f62e9
RD
9560SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9561 PyObject *resultobj = 0;
9562 wxIcon *arg1 = (wxIcon *) 0 ;
9563 int result;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 PyObject *swig_obj[1] ;
9567
9568 if (!args) SWIG_fail;
9569 swig_obj[0] = args;
9570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9571 if (!SWIG_IsOK(res1)) {
9572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9573 }
9574 arg1 = reinterpret_cast< wxIcon * >(argp1);
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (int)(arg1)->GetWidth();
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 resultobj = SWIG_From_int(static_cast< int >(result));
9582 return resultobj;
9583fail:
9584 return NULL;
c1cb24a4
RD
9585}
9586
9587
554f62e9
RD
9588SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9589 PyObject *resultobj = 0;
9590 wxIcon *arg1 = (wxIcon *) 0 ;
9591 int result;
9592 void *argp1 = 0 ;
9593 int res1 = 0 ;
9594 PyObject *swig_obj[1] ;
9595
9596 if (!args) SWIG_fail;
9597 swig_obj[0] = args;
9598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9599 if (!SWIG_IsOK(res1)) {
9600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9601 }
9602 arg1 = reinterpret_cast< wxIcon * >(argp1);
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (int)(arg1)->GetHeight();
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 resultobj = SWIG_From_int(static_cast< int >(result));
9610 return resultobj;
9611fail:
9612 return NULL;
c1cb24a4
RD
9613}
9614
9615
554f62e9
RD
9616SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9617 PyObject *resultobj = 0;
9618 wxIcon *arg1 = (wxIcon *) 0 ;
9619 int result;
9620 void *argp1 = 0 ;
9621 int res1 = 0 ;
9622 PyObject *swig_obj[1] ;
9623
9624 if (!args) SWIG_fail;
9625 swig_obj[0] = args;
9626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9627 if (!SWIG_IsOK(res1)) {
9628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9629 }
9630 arg1 = reinterpret_cast< wxIcon * >(argp1);
9631 {
9632 PyThreadState* __tstate = wxPyBeginAllowThreads();
9633 result = (int)(arg1)->GetDepth();
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 resultobj = SWIG_From_int(static_cast< int >(result));
9638 return resultobj;
9639fail:
9640 return NULL;
9641}
9642
9643
9644SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj = 0;
9646 wxIcon *arg1 = (wxIcon *) 0 ;
9647 int arg2 ;
9648 void *argp1 = 0 ;
9649 int res1 = 0 ;
9650 int val2 ;
9651 int ecode2 = 0 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char * kwnames[] = {
9655 (char *) "self",(char *) "w", NULL
9656 };
9657
9658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9660 if (!SWIG_IsOK(res1)) {
9661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9662 }
9663 arg1 = reinterpret_cast< wxIcon * >(argp1);
9664 ecode2 = SWIG_AsVal_int(obj1, &val2);
9665 if (!SWIG_IsOK(ecode2)) {
9666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9667 }
9668 arg2 = static_cast< int >(val2);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->SetWidth(arg2);
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_Py_Void();
9676 return resultobj;
9677fail:
9678 return NULL;
9679}
9680
9681
9682SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxIcon *arg1 = (wxIcon *) 0 ;
9685 int arg2 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 int val2 ;
9689 int ecode2 = 0 ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char * kwnames[] = {
9693 (char *) "self",(char *) "h", NULL
9694 };
9695
9696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9700 }
9701 arg1 = reinterpret_cast< wxIcon * >(argp1);
9702 ecode2 = SWIG_AsVal_int(obj1, &val2);
9703 if (!SWIG_IsOK(ecode2)) {
9704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9705 }
9706 arg2 = static_cast< int >(val2);
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 (arg1)->SetHeight(arg2);
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_Py_Void();
9714 return resultobj;
9715fail:
9716 return NULL;
9717}
9718
9719
9720SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj = 0;
9722 wxIcon *arg1 = (wxIcon *) 0 ;
9723 int arg2 ;
9724 void *argp1 = 0 ;
9725 int res1 = 0 ;
9726 int val2 ;
9727 int ecode2 = 0 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char * kwnames[] = {
9731 (char *) "self",(char *) "d", NULL
9732 };
9733
9734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIcon * >(argp1);
9740 ecode2 = SWIG_AsVal_int(obj1, &val2);
9741 if (!SWIG_IsOK(ecode2)) {
9742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9743 }
9744 arg2 = static_cast< int >(val2);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->SetDepth(arg2);
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 resultobj = SWIG_Py_Void();
9752 return resultobj;
9753fail:
9754 return NULL;
9755}
9756
9757
9758SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj = 0;
9760 wxIcon *arg1 = (wxIcon *) 0 ;
9761 wxSize *arg2 = 0 ;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 wxSize temp2 ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 char * kwnames[] = {
9768 (char *) "self",(char *) "size", NULL
9769 };
9770
9771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9775 }
9776 arg1 = reinterpret_cast< wxIcon * >(argp1);
9777 {
9778 arg2 = &temp2;
9779 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 (arg1)->SetSize((wxSize const &)*arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_Py_Void();
9788 return resultobj;
9789fail:
9790 return NULL;
9791}
9792
9793
9794SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj = 0;
9796 wxIcon *arg1 = (wxIcon *) 0 ;
9797 wxBitmap *arg2 = 0 ;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 void *argp2 = 0 ;
9801 int res2 = 0 ;
9802 PyObject * obj0 = 0 ;
9803 PyObject * obj1 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "bmp", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9812 }
9813 arg1 = reinterpret_cast< wxIcon * >(argp1);
9814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9815 if (!SWIG_IsOK(res2)) {
9816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9817 }
9818 if (!argp2) {
9819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9820 }
9821 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830fail:
9831 return NULL;
d55e5bfc
RD
9832}
9833
9834
554f62e9
RD
9835SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9836 PyObject *obj;
9837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9838 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9839 return SWIG_Py_Void();
d55e5bfc
RD
9840}
9841
554f62e9
RD
9842SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9843 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9844}
9845
554f62e9
RD
9846SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj = 0;
9848 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9849 int arg2 = (int) 0 ;
9850 wxIconLocation *result = 0 ;
9851 bool temp1 = false ;
9852 int val2 ;
9853 int ecode2 = 0 ;
9854 PyObject * obj0 = 0 ;
9855 PyObject * obj1 = 0 ;
9856 char * kwnames[] = {
9857 (char *) "filename",(char *) "num", NULL
9858 };
9859
9860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9861 if (obj0) {
d55e5bfc 9862 {
554f62e9
RD
9863 arg1 = wxString_in_helper(obj0);
9864 if (arg1 == NULL) SWIG_fail;
9865 temp1 = true;
d55e5bfc 9866 }
554f62e9
RD
9867 }
9868 if (obj1) {
9869 ecode2 = SWIG_AsVal_int(obj1, &val2);
9870 if (!SWIG_IsOK(ecode2)) {
9871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9872 }
9873 arg2 = static_cast< int >(val2);
9874 }
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9882 {
9883 if (temp1)
9884 delete arg1;
9885 }
9886 return resultobj;
9887fail:
9888 {
9889 if (temp1)
9890 delete arg1;
9891 }
9892 return NULL;
d55e5bfc
RD
9893}
9894
9895
554f62e9
RD
9896SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9897 PyObject *resultobj = 0;
9898 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9899 void *argp1 = 0 ;
9900 int res1 = 0 ;
9901 PyObject *swig_obj[1] ;
9902
9903 if (!args) SWIG_fail;
9904 swig_obj[0] = args;
9905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9906 if (!SWIG_IsOK(res1)) {
9907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9908 }
9909 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 delete arg1;
d55e5bfc 9913
554f62e9
RD
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 resultobj = SWIG_Py_Void();
9918 return resultobj;
9919fail:
9920 return NULL;
d55e5bfc
RD
9921}
9922
9923
554f62e9
RD
9924SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925 PyObject *resultobj = 0;
9926 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9927 bool result;
9928 void *argp1 = 0 ;
9929 int res1 = 0 ;
9930 PyObject *swig_obj[1] ;
9931
9932 if (!args) SWIG_fail;
9933 swig_obj[0] = args;
9934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9935 if (!SWIG_IsOK(res1)) {
9936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9937 }
9938 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 {
9946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9947 }
9948 return resultobj;
9949fail:
9950 return NULL;
9951}
9952
9953
9954SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj = 0;
9956 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9957 wxString *arg2 = 0 ;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 bool temp2 = false ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "self",(char *) "filename", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9969 if (!SWIG_IsOK(res1)) {
9970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9971 }
9972 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9973 {
9974 arg2 = wxString_in_helper(obj1);
9975 if (arg2 == NULL) SWIG_fail;
9976 temp2 = true;
9977 }
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 (arg1)->SetFileName((wxString const &)*arg2);
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 resultobj = SWIG_Py_Void();
9985 {
9986 if (temp2)
9987 delete arg2;
9988 }
9989 return resultobj;
9990fail:
9991 {
9992 if (temp2)
9993 delete arg2;
9994 }
9995 return NULL;
d55e5bfc
RD
9996}
9997
9998
554f62e9
RD
9999SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10000 PyObject *resultobj = 0;
10001 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10002 wxString *result = 0 ;
10003 void *argp1 = 0 ;
10004 int res1 = 0 ;
10005 PyObject *swig_obj[1] ;
10006
10007 if (!args) SWIG_fail;
10008 swig_obj[0] = args;
10009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10010 if (!SWIG_IsOK(res1)) {
10011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10012 }
10013 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10014 {
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10016 {
554f62e9
RD
10017 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10018 result = (wxString *) &_result_ref;
093d3ff1 10019 }
554f62e9
RD
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024#if wxUSE_UNICODE
10025 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10026#else
10027 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10028#endif
10029 }
10030 return resultobj;
10031fail:
10032 return NULL;
10033}
10034
10035
10036SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj = 0;
10038 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10039 int arg2 ;
10040 void *argp1 = 0 ;
10041 int res1 = 0 ;
10042 int val2 ;
10043 int ecode2 = 0 ;
10044 PyObject * obj0 = 0 ;
10045 PyObject * obj1 = 0 ;
10046 char * kwnames[] = {
10047 (char *) "self",(char *) "num", NULL
10048 };
10049
10050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10054 }
10055 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10056 ecode2 = SWIG_AsVal_int(obj1, &val2);
10057 if (!SWIG_IsOK(ecode2)) {
10058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10059 }
10060 arg2 = static_cast< int >(val2);
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 wxIconLocation_SetIndex(arg1,arg2);
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_Py_Void();
10068 return resultobj;
10069fail:
10070 return NULL;
d55e5bfc
RD
10071}
10072
10073
554f62e9
RD
10074SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10075 PyObject *resultobj = 0;
10076 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10077 int result;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 PyObject *swig_obj[1] ;
10081
10082 if (!args) SWIG_fail;
10083 swig_obj[0] = args;
10084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10085 if (!SWIG_IsOK(res1)) {
10086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10087 }
10088 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10089 {
10090 PyThreadState* __tstate = wxPyBeginAllowThreads();
10091 result = (int)wxIconLocation_GetIndex(arg1);
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 resultobj = SWIG_From_int(static_cast< int >(result));
10096 return resultobj;
10097fail:
10098 return NULL;
d55e5bfc
RD
10099}
10100
10101
554f62e9
RD
10102SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10103 PyObject *obj;
10104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10105 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10106 return SWIG_Py_Void();
d55e5bfc
RD
10107}
10108
554f62e9
RD
10109SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10110 return SWIG_Python_InitShadowInstance(args);
10111}
d55e5bfc 10112
554f62e9
RD
10113SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 PyObject *resultobj = 0;
10115 wxIconBundle *result = 0 ;
10116
10117 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (wxIconBundle *)new wxIconBundle();
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10125 return resultobj;
10126fail:
10127 return NULL;
10128}
10129
10130
10131SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj = 0;
10133 wxString *arg1 = 0 ;
10134 long arg2 ;
10135 wxIconBundle *result = 0 ;
10136 bool temp1 = false ;
10137 long val2 ;
10138 int ecode2 = 0 ;
10139 PyObject * obj0 = 0 ;
10140 PyObject * obj1 = 0 ;
10141 char * kwnames[] = {
10142 (char *) "file",(char *) "type", NULL
10143 };
10144
10145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10146 {
10147 arg1 = wxString_in_helper(obj0);
10148 if (arg1 == NULL) SWIG_fail;
10149 temp1 = true;
10150 }
10151 ecode2 = SWIG_AsVal_long(obj1, &val2);
10152 if (!SWIG_IsOK(ecode2)) {
10153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10154 }
10155 arg2 = static_cast< long >(val2);
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10163 {
10164 if (temp1)
10165 delete arg1;
10166 }
10167 return resultobj;
10168fail:
10169 {
10170 if (temp1)
10171 delete arg1;
10172 }
10173 return NULL;
d55e5bfc
RD
10174}
10175
10176
554f62e9
RD
10177SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10178 PyObject *resultobj = 0;
10179 wxIcon *arg1 = 0 ;
10180 wxIconBundle *result = 0 ;
10181 void *argp1 = 0 ;
10182 int res1 = 0 ;
10183 PyObject * obj0 = 0 ;
10184 char * kwnames[] = {
10185 (char *) "icon", NULL
10186 };
10187
10188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10189 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10190 if (!SWIG_IsOK(res1)) {
10191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10192 }
10193 if (!argp1) {
10194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10195 }
10196 arg1 = reinterpret_cast< wxIcon * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10204 return resultobj;
10205fail:
10206 return NULL;
d55e5bfc
RD
10207}
10208
10209
554f62e9
RD
10210SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10211 PyObject *resultobj = 0;
10212 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10213 void *argp1 = 0 ;
10214 int res1 = 0 ;
10215 PyObject *swig_obj[1] ;
10216
10217 if (!args) SWIG_fail;
10218 swig_obj[0] = args;
10219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10222 }
10223 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 delete arg1;
d55e5bfc 10227
554f62e9
RD
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_Py_Void();
10232 return resultobj;
10233fail:
10234 return NULL;
10235}
10236
10237
10238SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj = 0;
10240 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10241 wxIcon *arg2 = 0 ;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 void *argp2 = 0 ;
10245 int res2 = 0 ;
10246 PyObject * obj0 = 0 ;
10247 PyObject * obj1 = 0 ;
10248 char * kwnames[] = {
10249 (char *) "self",(char *) "icon", NULL
10250 };
10251
10252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10254 if (!SWIG_IsOK(res1)) {
10255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10256 }
10257 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10259 if (!SWIG_IsOK(res2)) {
10260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10261 }
10262 if (!argp2) {
10263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10264 }
10265 arg2 = reinterpret_cast< wxIcon * >(argp2);
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 (arg1)->AddIcon((wxIcon const &)*arg2);
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_Py_Void();
10273 return resultobj;
10274fail:
10275 return NULL;
10276}
10277
10278
10279SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10282 wxString *arg2 = 0 ;
10283 long arg3 ;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 bool temp2 = false ;
10287 long val3 ;
10288 int ecode3 = 0 ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 PyObject * obj2 = 0 ;
10292 char * kwnames[] = {
10293 (char *) "self",(char *) "file",(char *) "type", NULL
10294 };
10295
10296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10298 if (!SWIG_IsOK(res1)) {
10299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10300 }
10301 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10302 {
10303 arg2 = wxString_in_helper(obj1);
10304 if (arg2 == NULL) SWIG_fail;
10305 temp2 = true;
10306 }
10307 ecode3 = SWIG_AsVal_long(obj2, &val3);
10308 if (!SWIG_IsOK(ecode3)) {
10309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10310 }
10311 arg3 = static_cast< long >(val3);
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 resultobj = SWIG_Py_Void();
10319 {
10320 if (temp2)
10321 delete arg2;
10322 }
10323 return resultobj;
10324fail:
10325 {
10326 if (temp2)
10327 delete arg2;
10328 }
10329 return NULL;
10330}
10331
10332
10333SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj = 0;
10335 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10336 wxSize *arg2 = 0 ;
10337 wxIcon *result = 0 ;
10338 void *argp1 = 0 ;
10339 int res1 = 0 ;
10340 wxSize temp2 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char * kwnames[] = {
10344 (char *) "self",(char *) "size", NULL
10345 };
10346
10347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10349 if (!SWIG_IsOK(res1)) {
10350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10351 }
10352 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10353 {
10354 arg2 = &temp2;
10355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10356 }
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10359 {
554f62e9
RD
10360 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10361 result = (wxIcon *) &_result_ref;
d55e5bfc 10362 }
554f62e9
RD
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 {
10367 wxIcon* resultptr = new wxIcon(*result);
10368 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10369 }
10370 return resultobj;
10371fail:
10372 return NULL;
10373}
10374
10375
10376SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10377 PyObject *obj;
10378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10379 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10380 return SWIG_Py_Void();
10381}
10382
10383SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10384 return SWIG_Python_InitShadowInstance(args);
10385}
10386
10387SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj = 0;
10389 wxString *arg1 = 0 ;
10390 long arg2 ;
10391 int arg3 = (int) 0 ;
10392 int arg4 = (int) 0 ;
10393 wxCursor *result = 0 ;
10394 bool temp1 = false ;
10395 long val2 ;
10396 int ecode2 = 0 ;
10397 int val3 ;
10398 int ecode3 = 0 ;
10399 int val4 ;
10400 int ecode4 = 0 ;
10401 PyObject * obj0 = 0 ;
10402 PyObject * obj1 = 0 ;
10403 PyObject * obj2 = 0 ;
10404 PyObject * obj3 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10410 {
10411 arg1 = wxString_in_helper(obj0);
10412 if (arg1 == NULL) SWIG_fail;
10413 temp1 = true;
10414 }
10415 ecode2 = SWIG_AsVal_long(obj1, &val2);
10416 if (!SWIG_IsOK(ecode2)) {
10417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10418 }
10419 arg2 = static_cast< long >(val2);
10420 if (obj2) {
10421 ecode3 = SWIG_AsVal_int(obj2, &val3);
10422 if (!SWIG_IsOK(ecode3)) {
10423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10424 }
10425 arg3 = static_cast< int >(val3);
10426 }
10427 if (obj3) {
10428 ecode4 = SWIG_AsVal_int(obj3, &val4);
10429 if (!SWIG_IsOK(ecode4)) {
10430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10431 }
10432 arg4 = static_cast< int >(val4);
10433 }
10434 {
10435 if (!wxPyCheckForApp()) SWIG_fail;
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10442 {
10443 if (temp1)
10444 delete arg1;
10445 }
10446 return resultobj;
10447fail:
10448 {
10449 if (temp1)
10450 delete arg1;
10451 }
10452 return NULL;
d55e5bfc
RD
10453}
10454
10455
554f62e9
RD
10456SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10457 PyObject *resultobj = 0;
10458 wxCursor *arg1 = (wxCursor *) 0 ;
10459 void *argp1 = 0 ;
10460 int res1 = 0 ;
10461 PyObject *swig_obj[1] ;
10462
10463 if (!args) SWIG_fail;
10464 swig_obj[0] = args;
10465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10468 }
10469 arg1 = reinterpret_cast< wxCursor * >(argp1);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 delete arg1;
d55e5bfc 10473
554f62e9
RD
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_Py_Void();
10478 return resultobj;
10479fail:
10480 return NULL;
10481}
10482
10483
10484SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 int arg1 ;
10487 wxCursor *result = 0 ;
10488 int val1 ;
10489 int ecode1 = 0 ;
10490 PyObject * obj0 = 0 ;
10491 char * kwnames[] = {
10492 (char *) "id", NULL
10493 };
10494
10495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10496 ecode1 = SWIG_AsVal_int(obj0, &val1);
10497 if (!SWIG_IsOK(ecode1)) {
10498 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10499 }
10500 arg1 = static_cast< int >(val1);
10501 {
10502 if (!wxPyCheckForApp()) SWIG_fail;
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 result = (wxCursor *)new wxCursor(arg1);
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10509 return resultobj;
10510fail:
10511 return NULL;
10512}
10513
10514
10515SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj = 0;
10517 wxImage *arg1 = 0 ;
10518 wxCursor *result = 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject * obj0 = 0 ;
10522 char * kwnames[] = {
10523 (char *) "image", NULL
10524 };
10525
10526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10530 }
10531 if (!argp1) {
10532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10533 }
10534 arg1 = reinterpret_cast< wxImage * >(argp1);
10535 {
10536 if (!wxPyCheckForApp()) SWIG_fail;
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10543 return resultobj;
10544fail:
10545 return NULL;
d55e5bfc
RD
10546}
10547
10548
554f62e9
RD
10549SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10550 PyObject *resultobj = 0;
10551 wxCursor *arg1 = (wxCursor *) 0 ;
10552 long result;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 PyObject *swig_obj[1] ;
10556
10557 if (!args) SWIG_fail;
10558 swig_obj[0] = args;
10559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10562 }
10563 arg1 = reinterpret_cast< wxCursor * >(argp1);
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (long)(arg1)->GetHandle();
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 resultobj = SWIG_From_long(static_cast< long >(result));
10571 return resultobj;
10572fail:
10573 return NULL;
10574}
10575
10576
10577SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10578 PyObject *resultobj = 0;
10579 wxCursor *arg1 = (wxCursor *) 0 ;
10580 long arg2 ;
10581 void *argp1 = 0 ;
10582 int res1 = 0 ;
10583 long val2 ;
10584 int ecode2 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "handle", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10595 }
10596 arg1 = reinterpret_cast< wxCursor * >(argp1);
10597 ecode2 = SWIG_AsVal_long(obj1, &val2);
10598 if (!SWIG_IsOK(ecode2)) {
10599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10600 }
10601 arg2 = static_cast< long >(val2);
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 wxCursor_SetHandle(arg1,arg2);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_Py_Void();
10609 return resultobj;
10610fail:
10611 return NULL;
d55e5bfc
RD
10612}
10613
10614
b39fe951 10615SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10616 PyObject *resultobj = 0;
10617 wxCursor *arg1 = (wxCursor *) 0 ;
10618 bool result;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 PyObject *swig_obj[1] ;
10622
10623 if (!args) SWIG_fail;
10624 swig_obj[0] = args;
10625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10626 if (!SWIG_IsOK(res1)) {
b39fe951 10627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10628 }
10629 arg1 = reinterpret_cast< wxCursor * >(argp1);
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10632 result = (bool)(arg1)->IsOk();
554f62e9
RD
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 {
10637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10638 }
10639 return resultobj;
10640fail:
10641 return NULL;
d55e5bfc
RD
10642}
10643
10644
554f62e9
RD
10645SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10646 PyObject *resultobj = 0;
10647 wxCursor *arg1 = (wxCursor *) 0 ;
10648 int result;
10649 void *argp1 = 0 ;
10650 int res1 = 0 ;
10651 PyObject *swig_obj[1] ;
10652
10653 if (!args) SWIG_fail;
10654 swig_obj[0] = args;
10655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10656 if (!SWIG_IsOK(res1)) {
10657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10658 }
10659 arg1 = reinterpret_cast< wxCursor * >(argp1);
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (int)(arg1)->GetWidth();
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 resultobj = SWIG_From_int(static_cast< int >(result));
10667 return resultobj;
10668fail:
10669 return NULL;
d55e5bfc
RD
10670}
10671
10672
554f62e9
RD
10673SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10674 PyObject *resultobj = 0;
10675 wxCursor *arg1 = (wxCursor *) 0 ;
10676 int result;
10677 void *argp1 = 0 ;
10678 int res1 = 0 ;
10679 PyObject *swig_obj[1] ;
10680
10681 if (!args) SWIG_fail;
10682 swig_obj[0] = args;
10683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10686 }
10687 arg1 = reinterpret_cast< wxCursor * >(argp1);
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 result = (int)(arg1)->GetHeight();
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_From_int(static_cast< int >(result));
10695 return resultobj;
10696fail:
10697 return NULL;
d55e5bfc
RD
10698}
10699
10700
554f62e9
RD
10701SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10702 PyObject *resultobj = 0;
10703 wxCursor *arg1 = (wxCursor *) 0 ;
10704 int result;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 PyObject *swig_obj[1] ;
10708
10709 if (!args) SWIG_fail;
10710 swig_obj[0] = args;
10711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10712 if (!SWIG_IsOK(res1)) {
10713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10714 }
10715 arg1 = reinterpret_cast< wxCursor * >(argp1);
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (int)(arg1)->GetDepth();
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 resultobj = SWIG_From_int(static_cast< int >(result));
10723 return resultobj;
10724fail:
10725 return NULL;
10726}
10727
10728
10729SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj = 0;
10731 wxCursor *arg1 = (wxCursor *) 0 ;
10732 int arg2 ;
10733 void *argp1 = 0 ;
10734 int res1 = 0 ;
10735 int val2 ;
10736 int ecode2 = 0 ;
10737 PyObject * obj0 = 0 ;
10738 PyObject * obj1 = 0 ;
10739 char * kwnames[] = {
10740 (char *) "self",(char *) "w", NULL
10741 };
10742
10743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10747 }
10748 arg1 = reinterpret_cast< wxCursor * >(argp1);
10749 ecode2 = SWIG_AsVal_int(obj1, &val2);
10750 if (!SWIG_IsOK(ecode2)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10752 }
10753 arg2 = static_cast< int >(val2);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 (arg1)->SetWidth(arg2);
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 resultobj = SWIG_Py_Void();
10761 return resultobj;
10762fail:
10763 return NULL;
10764}
10765
10766
10767SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10768 PyObject *resultobj = 0;
10769 wxCursor *arg1 = (wxCursor *) 0 ;
10770 int arg2 ;
10771 void *argp1 = 0 ;
10772 int res1 = 0 ;
10773 int val2 ;
10774 int ecode2 = 0 ;
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10777 char * kwnames[] = {
10778 (char *) "self",(char *) "h", NULL
10779 };
10780
10781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10783 if (!SWIG_IsOK(res1)) {
10784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10785 }
10786 arg1 = reinterpret_cast< wxCursor * >(argp1);
10787 ecode2 = SWIG_AsVal_int(obj1, &val2);
10788 if (!SWIG_IsOK(ecode2)) {
10789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10790 }
10791 arg2 = static_cast< int >(val2);
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 (arg1)->SetHeight(arg2);
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 resultobj = SWIG_Py_Void();
10799 return resultobj;
10800fail:
10801 return NULL;
10802}
10803
10804
10805SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10806 PyObject *resultobj = 0;
10807 wxCursor *arg1 = (wxCursor *) 0 ;
10808 int arg2 ;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 int val2 ;
10812 int ecode2 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 char * kwnames[] = {
10816 (char *) "self",(char *) "d", NULL
10817 };
10818
10819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10823 }
10824 arg1 = reinterpret_cast< wxCursor * >(argp1);
10825 ecode2 = SWIG_AsVal_int(obj1, &val2);
10826 if (!SWIG_IsOK(ecode2)) {
10827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10828 }
10829 arg2 = static_cast< int >(val2);
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->SetDepth(arg2);
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_Py_Void();
10837 return resultobj;
10838fail:
10839 return NULL;
10840}
10841
10842
10843SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj = 0;
10845 wxCursor *arg1 = (wxCursor *) 0 ;
10846 wxSize *arg2 = 0 ;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 wxSize temp2 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 char * kwnames[] = {
10853 (char *) "self",(char *) "size", NULL
10854 };
10855
10856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10860 }
10861 arg1 = reinterpret_cast< wxCursor * >(argp1);
10862 {
10863 arg2 = &temp2;
10864 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetSize((wxSize const &)*arg2);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 return resultobj;
10874fail:
10875 return NULL;
10876}
10877
10878
10879SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10880 PyObject *obj;
10881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10882 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10883 return SWIG_Py_Void();
10884}
10885
10886SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10887 return SWIG_Python_InitShadowInstance(args);
10888}
10889
10890SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj = 0;
10892 int arg1 = (int) 0 ;
10893 int arg2 = (int) 0 ;
10894 int arg3 = (int) 0 ;
10895 int arg4 = (int) 0 ;
10896 wxRegion *result = 0 ;
10897 int val1 ;
10898 int ecode1 = 0 ;
10899 int val2 ;
10900 int ecode2 = 0 ;
10901 int val3 ;
10902 int ecode3 = 0 ;
10903 int val4 ;
10904 int ecode4 = 0 ;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 PyObject * obj2 = 0 ;
10908 PyObject * obj3 = 0 ;
10909 char * kwnames[] = {
10910 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10911 };
10912
10913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10914 if (obj0) {
10915 ecode1 = SWIG_AsVal_int(obj0, &val1);
10916 if (!SWIG_IsOK(ecode1)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10918 }
10919 arg1 = static_cast< int >(val1);
10920 }
10921 if (obj1) {
10922 ecode2 = SWIG_AsVal_int(obj1, &val2);
10923 if (!SWIG_IsOK(ecode2)) {
10924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10925 }
10926 arg2 = static_cast< int >(val2);
10927 }
10928 if (obj2) {
10929 ecode3 = SWIG_AsVal_int(obj2, &val3);
10930 if (!SWIG_IsOK(ecode3)) {
10931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10932 }
10933 arg3 = static_cast< int >(val3);
10934 }
10935 if (obj3) {
10936 ecode4 = SWIG_AsVal_int(obj3, &val4);
10937 if (!SWIG_IsOK(ecode4)) {
10938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10939 }
10940 arg4 = static_cast< int >(val4);
10941 }
10942 {
10943 if (!wxPyCheckForApp()) SWIG_fail;
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10950 return resultobj;
10951fail:
10952 return NULL;
10953}
10954
10955
10956SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10957 PyObject *resultobj = 0;
10958 wxBitmap *arg1 = 0 ;
10959 wxRegion *result = 0 ;
10960 void *argp1 = 0 ;
10961 int res1 = 0 ;
10962 PyObject * obj0 = 0 ;
10963 char * kwnames[] = {
10964 (char *) "bmp", NULL
10965 };
10966
10967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10968 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10969 if (!SWIG_IsOK(res1)) {
10970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10971 }
10972 if (!argp1) {
10973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10974 }
10975 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10976 {
10977 if (!wxPyCheckForApp()) SWIG_fail;
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10984 return resultobj;
10985fail:
10986 return NULL;
10987}
10988
10989
10990SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj = 0;
10992 wxBitmap *arg1 = 0 ;
10993 wxColour *arg2 = 0 ;
10994 int arg3 = (int) 0 ;
10995 wxRegion *result = 0 ;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 wxColour temp2 ;
10999 int val3 ;
11000 int ecode3 = 0 ;
11001 PyObject * obj0 = 0 ;
11002 PyObject * obj1 = 0 ;
11003 PyObject * obj2 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 if (!argp1) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11015 }
11016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11017 {
11018 arg2 = &temp2;
11019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11020 }
11021 if (obj2) {
11022 ecode3 = SWIG_AsVal_int(obj2, &val3);
11023 if (!SWIG_IsOK(ecode3)) {
11024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11025 }
11026 arg3 = static_cast< int >(val3);
11027 }
11028 {
11029 if (!wxPyCheckForApp()) SWIG_fail;
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11036 return resultobj;
11037fail:
11038 return NULL;
11039}
11040
11041
11042SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj = 0;
11044 int arg1 ;
11045 wxPoint *arg2 = (wxPoint *) 0 ;
11046 int arg3 = (int) wxWINDING_RULE ;
11047 wxRegion *result = 0 ;
11048 int val3 ;
11049 int ecode3 = 0 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 char * kwnames[] = {
11053 (char *) "points",(char *) "fillStyle", NULL
11054 };
11055
11056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11057 {
11058 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11059 if (arg2 == NULL) SWIG_fail;
11060 }
11061 if (obj1) {
11062 ecode3 = SWIG_AsVal_int(obj1, &val3);
11063 if (!SWIG_IsOK(ecode3)) {
11064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11065 }
11066 arg3 = static_cast< int >(val3);
11067 }
11068 {
11069 if (!wxPyCheckForApp()) SWIG_fail;
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11076 {
11077 if (arg2) delete [] arg2;
11078 }
11079 return resultobj;
11080fail:
11081 {
11082 if (arg2) delete [] arg2;
11083 }
11084 return NULL;
d55e5bfc
RD
11085}
11086
11087
554f62e9
RD
11088SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 PyObject *swig_obj[1] ;
11094
11095 if (!args) SWIG_fail;
11096 swig_obj[0] = args;
11097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11098 if (!SWIG_IsOK(res1)) {
11099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11100 }
11101 arg1 = reinterpret_cast< wxRegion * >(argp1);
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 delete arg1;
d55e5bfc 11105
554f62e9
RD
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 resultobj = SWIG_Py_Void();
11110 return resultobj;
11111fail:
11112 return NULL;
d55e5bfc
RD
11113}
11114
11115
554f62e9
RD
11116SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxRegion *arg1 = (wxRegion *) 0 ;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 PyObject *swig_obj[1] ;
11122
11123 if (!args) SWIG_fail;
11124 swig_obj[0] = args;
11125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11128 }
11129 arg1 = reinterpret_cast< wxRegion * >(argp1);
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 (arg1)->Clear();
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 resultobj = SWIG_Py_Void();
11137 return resultobj;
11138fail:
11139 return NULL;
11140}
11141
11142
11143SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxRegion *arg1 = (wxRegion *) 0 ;
11146 int arg2 ;
11147 int arg3 ;
11148 bool result;
11149 void *argp1 = 0 ;
11150 int res1 = 0 ;
11151 int val2 ;
11152 int ecode2 = 0 ;
11153 int val3 ;
11154 int ecode3 = 0 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 PyObject * obj2 = 0 ;
11158 char * kwnames[] = {
11159 (char *) "self",(char *) "x",(char *) "y", NULL
11160 };
11161
11162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRegion * >(argp1);
11168 ecode2 = SWIG_AsVal_int(obj1, &val2);
11169 if (!SWIG_IsOK(ecode2)) {
11170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11171 }
11172 arg2 = static_cast< int >(val2);
11173 ecode3 = SWIG_AsVal_int(obj2, &val3);
11174 if (!SWIG_IsOK(ecode3)) {
11175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11176 }
11177 arg3 = static_cast< int >(val3);
11178 {
11179 PyThreadState* __tstate = wxPyBeginAllowThreads();
11180 result = (bool)(arg1)->Offset(arg2,arg3);
11181 wxPyEndAllowThreads(__tstate);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 {
11185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11186 }
11187 return resultobj;
11188fail:
11189 return NULL;
11190}
11191
11192
11193SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11194 PyObject *resultobj = 0;
11195 wxRegion *arg1 = (wxRegion *) 0 ;
11196 int arg2 ;
11197 int arg3 ;
11198 wxRegionContain result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 int val2 ;
11202 int ecode2 = 0 ;
11203 int val3 ;
11204 int ecode3 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 PyObject * obj2 = 0 ;
11208 char * kwnames[] = {
11209 (char *) "self",(char *) "x",(char *) "y", NULL
11210 };
11211
11212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11216 }
11217 arg1 = reinterpret_cast< wxRegion * >(argp1);
11218 ecode2 = SWIG_AsVal_int(obj1, &val2);
11219 if (!SWIG_IsOK(ecode2)) {
11220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11221 }
11222 arg2 = static_cast< int >(val2);
11223 ecode3 = SWIG_AsVal_int(obj2, &val3);
11224 if (!SWIG_IsOK(ecode3)) {
11225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11226 }
11227 arg3 = static_cast< int >(val3);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_From_int(static_cast< int >(result));
11235 return resultobj;
11236fail:
11237 return NULL;
11238}
11239
11240
11241SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = 0;
11243 wxRegion *arg1 = (wxRegion *) 0 ;
11244 wxPoint *arg2 = 0 ;
11245 wxRegionContain result;
11246 void *argp1 = 0 ;
11247 int res1 = 0 ;
11248 wxPoint temp2 ;
11249 PyObject * obj0 = 0 ;
11250 PyObject * obj1 = 0 ;
11251 char * kwnames[] = {
11252 (char *) "self",(char *) "pt", NULL
11253 };
11254
11255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11259 }
11260 arg1 = reinterpret_cast< wxRegion * >(argp1);
11261 {
11262 arg2 = &temp2;
11263 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11264 }
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_From_int(static_cast< int >(result));
11272 return resultobj;
11273fail:
11274 return NULL;
11275}
11276
11277
11278SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 wxRect *arg2 = 0 ;
11282 wxRegionContain result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 wxRect temp2 ;
11286 PyObject * obj0 = 0 ;
11287 PyObject * obj1 = 0 ;
11288 char * kwnames[] = {
11289 (char *) "self",(char *) "rect", NULL
11290 };
11291
11292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11294 if (!SWIG_IsOK(res1)) {
11295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11296 }
11297 arg1 = reinterpret_cast< wxRegion * >(argp1);
11298 {
11299 arg2 = &temp2;
11300 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11301 }
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 resultobj = SWIG_From_int(static_cast< int >(result));
11309 return resultobj;
11310fail:
11311 return NULL;
11312}
11313
11314
11315SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11316 PyObject *resultobj = 0;
11317 wxRegion *arg1 = (wxRegion *) 0 ;
11318 int arg2 ;
11319 int arg3 ;
11320 int arg4 ;
11321 int arg5 ;
11322 wxRegionContain result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 int val2 ;
11326 int ecode2 = 0 ;
11327 int val3 ;
11328 int ecode3 = 0 ;
11329 int val4 ;
11330 int ecode4 = 0 ;
11331 int val5 ;
11332 int ecode5 = 0 ;
11333 PyObject * obj0 = 0 ;
11334 PyObject * obj1 = 0 ;
11335 PyObject * obj2 = 0 ;
11336 PyObject * obj3 = 0 ;
11337 PyObject * obj4 = 0 ;
11338 char * kwnames[] = {
11339 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11340 };
11341
11342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11346 }
11347 arg1 = reinterpret_cast< wxRegion * >(argp1);
11348 ecode2 = SWIG_AsVal_int(obj1, &val2);
11349 if (!SWIG_IsOK(ecode2)) {
11350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11351 }
11352 arg2 = static_cast< int >(val2);
11353 ecode3 = SWIG_AsVal_int(obj2, &val3);
11354 if (!SWIG_IsOK(ecode3)) {
11355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11356 }
11357 arg3 = static_cast< int >(val3);
11358 ecode4 = SWIG_AsVal_int(obj3, &val4);
11359 if (!SWIG_IsOK(ecode4)) {
11360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11361 }
11362 arg4 = static_cast< int >(val4);
11363 ecode5 = SWIG_AsVal_int(obj4, &val5);
11364 if (!SWIG_IsOK(ecode5)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11366 }
11367 arg5 = static_cast< int >(val5);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_int(static_cast< int >(result));
11375 return resultobj;
11376fail:
11377 return NULL;
d55e5bfc
RD
11378}
11379
11380
554f62e9
RD
11381SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxRegion *arg1 = (wxRegion *) 0 ;
11384 wxRect result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11394 }
11395 arg1 = reinterpret_cast< wxRegion * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (arg1)->GetBox();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11403 return resultobj;
11404fail:
11405 return NULL;
11406}
11407
11408
11409SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj = 0;
11411 wxRegion *arg1 = (wxRegion *) 0 ;
11412 int arg2 ;
11413 int arg3 ;
11414 int arg4 ;
11415 int arg5 ;
11416 bool result;
11417 void *argp1 = 0 ;
11418 int res1 = 0 ;
11419 int val2 ;
11420 int ecode2 = 0 ;
11421 int val3 ;
11422 int ecode3 = 0 ;
11423 int val4 ;
11424 int ecode4 = 0 ;
11425 int val5 ;
11426 int ecode5 = 0 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 PyObject * obj2 = 0 ;
11430 PyObject * obj3 = 0 ;
11431 PyObject * obj4 = 0 ;
11432 char * kwnames[] = {
11433 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11434 };
11435
11436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11438 if (!SWIG_IsOK(res1)) {
11439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11440 }
11441 arg1 = reinterpret_cast< wxRegion * >(argp1);
11442 ecode2 = SWIG_AsVal_int(obj1, &val2);
11443 if (!SWIG_IsOK(ecode2)) {
11444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11445 }
11446 arg2 = static_cast< int >(val2);
11447 ecode3 = SWIG_AsVal_int(obj2, &val3);
11448 if (!SWIG_IsOK(ecode3)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11450 }
11451 arg3 = static_cast< int >(val3);
11452 ecode4 = SWIG_AsVal_int(obj3, &val4);
11453 if (!SWIG_IsOK(ecode4)) {
11454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11455 }
11456 arg4 = static_cast< int >(val4);
11457 ecode5 = SWIG_AsVal_int(obj4, &val5);
11458 if (!SWIG_IsOK(ecode5)) {
11459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11460 }
11461 arg5 = static_cast< int >(val5);
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 {
11469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11470 }
11471 return resultobj;
11472fail:
11473 return NULL;
11474}
11475
11476
11477SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11478 PyObject *resultobj = 0;
11479 wxRegion *arg1 = (wxRegion *) 0 ;
11480 wxRect *arg2 = 0 ;
11481 bool result;
11482 void *argp1 = 0 ;
11483 int res1 = 0 ;
11484 wxRect temp2 ;
11485 PyObject * obj0 = 0 ;
11486 PyObject * obj1 = 0 ;
11487 char * kwnames[] = {
11488 (char *) "self",(char *) "rect", NULL
11489 };
11490
11491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11493 if (!SWIG_IsOK(res1)) {
11494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11495 }
11496 arg1 = reinterpret_cast< wxRegion * >(argp1);
11497 {
11498 arg2 = &temp2;
11499 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11500 }
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
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_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj = 0;
11518 wxRegion *arg1 = (wxRegion *) 0 ;
11519 wxRegion *arg2 = 0 ;
11520 bool result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
11527 char * kwnames[] = {
11528 (char *) "self",(char *) "region", NULL
11529 };
11530
11531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11533 if (!SWIG_IsOK(res1)) {
11534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11535 }
11536 arg1 = reinterpret_cast< wxRegion * >(argp1);
11537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11538 if (!SWIG_IsOK(res2)) {
11539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11540 }
11541 if (!argp2) {
11542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11543 }
11544 arg2 = reinterpret_cast< wxRegion * >(argp2);
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11553 }
11554 return resultobj;
11555fail:
11556 return NULL;
d55e5bfc
RD
11557}
11558
11559
554f62e9
RD
11560SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11561 PyObject *resultobj = 0;
11562 wxRegion *arg1 = (wxRegion *) 0 ;
11563 bool result;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 PyObject *swig_obj[1] ;
11567
11568 if (!args) SWIG_fail;
11569 swig_obj[0] = args;
11570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11571 if (!SWIG_IsOK(res1)) {
11572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11573 }
11574 arg1 = reinterpret_cast< wxRegion * >(argp1);
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 result = (bool)(arg1)->IsEmpty();
11578 wxPyEndAllowThreads(__tstate);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 {
11582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11583 }
11584 return resultobj;
11585fail:
11586 return NULL;
11587}
11588
11589
f5263701
RD
11590SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11591 PyObject *resultobj = 0;
11592 wxRegion *arg1 = (wxRegion *) 0 ;
11593 wxRegion *arg2 = 0 ;
11594 bool result;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 void *argp2 = 0 ;
11598 int res2 = 0 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 char * kwnames[] = {
11602 (char *) "self",(char *) "region", NULL
11603 };
11604
11605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11607 if (!SWIG_IsOK(res1)) {
11608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11609 }
11610 arg1 = reinterpret_cast< wxRegion * >(argp1);
11611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11612 if (!SWIG_IsOK(res2)) {
11613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11614 }
11615 if (!argp2) {
11616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11617 }
11618 arg2 = reinterpret_cast< wxRegion * >(argp2);
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 {
11626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11627 }
11628 return resultobj;
11629fail:
11630 return NULL;
11631}
11632
11633
554f62e9
RD
11634SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj = 0;
11636 wxRegion *arg1 = (wxRegion *) 0 ;
11637 int arg2 ;
11638 int arg3 ;
11639 int arg4 ;
11640 int arg5 ;
11641 bool result;
11642 void *argp1 = 0 ;
11643 int res1 = 0 ;
11644 int val2 ;
11645 int ecode2 = 0 ;
11646 int val3 ;
11647 int ecode3 = 0 ;
11648 int val4 ;
11649 int ecode4 = 0 ;
11650 int val5 ;
11651 int ecode5 = 0 ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 PyObject * obj3 = 0 ;
11656 PyObject * obj4 = 0 ;
11657 char * kwnames[] = {
11658 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11659 };
11660
11661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11665 }
11666 arg1 = reinterpret_cast< wxRegion * >(argp1);
11667 ecode2 = SWIG_AsVal_int(obj1, &val2);
11668 if (!SWIG_IsOK(ecode2)) {
11669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11670 }
11671 arg2 = static_cast< int >(val2);
11672 ecode3 = SWIG_AsVal_int(obj2, &val3);
11673 if (!SWIG_IsOK(ecode3)) {
11674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11675 }
11676 arg3 = static_cast< int >(val3);
11677 ecode4 = SWIG_AsVal_int(obj3, &val4);
11678 if (!SWIG_IsOK(ecode4)) {
11679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11680 }
11681 arg4 = static_cast< int >(val4);
11682 ecode5 = SWIG_AsVal_int(obj4, &val5);
11683 if (!SWIG_IsOK(ecode5)) {
11684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11685 }
11686 arg5 = static_cast< int >(val5);
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 {
11694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11695 }
11696 return resultobj;
11697fail:
11698 return NULL;
11699}
11700
11701
11702SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj = 0;
11704 wxRegion *arg1 = (wxRegion *) 0 ;
11705 wxRect *arg2 = 0 ;
11706 bool result;
11707 void *argp1 = 0 ;
11708 int res1 = 0 ;
11709 wxRect temp2 ;
11710 PyObject * obj0 = 0 ;
11711 PyObject * obj1 = 0 ;
11712 char * kwnames[] = {
11713 (char *) "self",(char *) "rect", NULL
11714 };
11715
11716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11720 }
11721 arg1 = reinterpret_cast< wxRegion * >(argp1);
11722 {
11723 arg2 = &temp2;
11724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11725 }
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)(arg1)->Union((wxRect const &)*arg2);
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_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxRegion *arg1 = (wxRegion *) 0 ;
11744 wxRegion *arg2 = 0 ;
11745 bool result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 void *argp2 = 0 ;
11749 int res2 = 0 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 char * kwnames[] = {
11753 (char *) "self",(char *) "region", NULL
11754 };
11755
11756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11758 if (!SWIG_IsOK(res1)) {
11759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11760 }
11761 arg1 = reinterpret_cast< wxRegion * >(argp1);
11762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11763 if (!SWIG_IsOK(res2)) {
11764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11765 }
11766 if (!argp2) {
11767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11768 }
11769 arg2 = reinterpret_cast< wxRegion * >(argp2);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 {
11777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11778 }
11779 return resultobj;
11780fail:
11781 return NULL;
11782}
11783
11784
11785SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11786 PyObject *resultobj = 0;
11787 wxRegion *arg1 = (wxRegion *) 0 ;
11788 int arg2 ;
11789 int arg3 ;
11790 int arg4 ;
11791 int arg5 ;
11792 bool result;
11793 void *argp1 = 0 ;
11794 int res1 = 0 ;
11795 int val2 ;
11796 int ecode2 = 0 ;
11797 int val3 ;
11798 int ecode3 = 0 ;
11799 int val4 ;
11800 int ecode4 = 0 ;
11801 int val5 ;
11802 int ecode5 = 0 ;
11803 PyObject * obj0 = 0 ;
11804 PyObject * obj1 = 0 ;
11805 PyObject * obj2 = 0 ;
11806 PyObject * obj3 = 0 ;
11807 PyObject * obj4 = 0 ;
11808 char * kwnames[] = {
11809 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11810 };
11811
11812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11814 if (!SWIG_IsOK(res1)) {
11815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11816 }
11817 arg1 = reinterpret_cast< wxRegion * >(argp1);
11818 ecode2 = SWIG_AsVal_int(obj1, &val2);
11819 if (!SWIG_IsOK(ecode2)) {
11820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11821 }
11822 arg2 = static_cast< int >(val2);
11823 ecode3 = SWIG_AsVal_int(obj2, &val3);
11824 if (!SWIG_IsOK(ecode3)) {
11825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11826 }
11827 arg3 = static_cast< int >(val3);
11828 ecode4 = SWIG_AsVal_int(obj3, &val4);
11829 if (!SWIG_IsOK(ecode4)) {
11830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11831 }
11832 arg4 = static_cast< int >(val4);
11833 ecode5 = SWIG_AsVal_int(obj4, &val5);
11834 if (!SWIG_IsOK(ecode5)) {
11835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11836 }
11837 arg5 = static_cast< int >(val5);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 {
11845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11846 }
11847 return resultobj;
11848fail:
11849 return NULL;
11850}
11851
11852
11853SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj = 0;
11855 wxRegion *arg1 = (wxRegion *) 0 ;
11856 wxRect *arg2 = 0 ;
11857 bool result;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 wxRect temp2 ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char * kwnames[] = {
11864 (char *) "self",(char *) "rect", NULL
11865 };
11866
11867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11869 if (!SWIG_IsOK(res1)) {
11870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11871 }
11872 arg1 = reinterpret_cast< wxRegion * >(argp1);
11873 {
11874 arg2 = &temp2;
11875 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11876 }
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
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_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxRegion *arg1 = (wxRegion *) 0 ;
11895 wxRegion *arg2 = 0 ;
11896 bool result;
11897 void *argp1 = 0 ;
11898 int res1 = 0 ;
11899 void *argp2 = 0 ;
11900 int res2 = 0 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 char * kwnames[] = {
11904 (char *) "self",(char *) "region", NULL
11905 };
11906
11907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11909 if (!SWIG_IsOK(res1)) {
11910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11911 }
11912 arg1 = reinterpret_cast< wxRegion * >(argp1);
11913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11914 if (!SWIG_IsOK(res2)) {
11915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11916 }
11917 if (!argp2) {
11918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11919 }
11920 arg2 = reinterpret_cast< wxRegion * >(argp2);
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 {
11928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11929 }
11930 return resultobj;
11931fail:
11932 return NULL;
11933}
11934
11935
11936SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxRegion *arg1 = (wxRegion *) 0 ;
11939 int arg2 ;
11940 int arg3 ;
11941 int arg4 ;
11942 int arg5 ;
11943 bool result;
11944 void *argp1 = 0 ;
11945 int res1 = 0 ;
11946 int val2 ;
11947 int ecode2 = 0 ;
11948 int val3 ;
11949 int ecode3 = 0 ;
11950 int val4 ;
11951 int ecode4 = 0 ;
11952 int val5 ;
11953 int ecode5 = 0 ;
11954 PyObject * obj0 = 0 ;
11955 PyObject * obj1 = 0 ;
11956 PyObject * obj2 = 0 ;
11957 PyObject * obj3 = 0 ;
11958 PyObject * obj4 = 0 ;
11959 char * kwnames[] = {
11960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11961 };
11962
11963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11965 if (!SWIG_IsOK(res1)) {
11966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11967 }
11968 arg1 = reinterpret_cast< wxRegion * >(argp1);
11969 ecode2 = SWIG_AsVal_int(obj1, &val2);
11970 if (!SWIG_IsOK(ecode2)) {
11971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11972 }
11973 arg2 = static_cast< int >(val2);
11974 ecode3 = SWIG_AsVal_int(obj2, &val3);
11975 if (!SWIG_IsOK(ecode3)) {
11976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11977 }
11978 arg3 = static_cast< int >(val3);
11979 ecode4 = SWIG_AsVal_int(obj3, &val4);
11980 if (!SWIG_IsOK(ecode4)) {
11981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11982 }
11983 arg4 = static_cast< int >(val4);
11984 ecode5 = SWIG_AsVal_int(obj4, &val5);
11985 if (!SWIG_IsOK(ecode5)) {
11986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11987 }
11988 arg5 = static_cast< int >(val5);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 {
11996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11997 }
11998 return resultobj;
11999fail:
12000 return NULL;
12001}
12002
12003
12004SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj = 0;
12006 wxRegion *arg1 = (wxRegion *) 0 ;
12007 wxRect *arg2 = 0 ;
12008 bool result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 wxRect temp2 ;
12012 PyObject * obj0 = 0 ;
12013 PyObject * obj1 = 0 ;
12014 char * kwnames[] = {
12015 (char *) "self",(char *) "rect", NULL
12016 };
12017
12018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12022 }
12023 arg1 = reinterpret_cast< wxRegion * >(argp1);
12024 {
12025 arg2 = &temp2;
12026 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12027 }
12028 {
12029 PyThreadState* __tstate = wxPyBeginAllowThreads();
12030 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
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_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxRegion *arg1 = (wxRegion *) 0 ;
12046 wxRegion *arg2 = 0 ;
12047 bool result;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 void *argp2 = 0 ;
12051 int res2 = 0 ;
12052 PyObject * obj0 = 0 ;
12053 PyObject * obj1 = 0 ;
12054 char * kwnames[] = {
12055 (char *) "self",(char *) "region", NULL
12056 };
12057
12058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12062 }
12063 arg1 = reinterpret_cast< wxRegion * >(argp1);
12064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12065 if (!SWIG_IsOK(res2)) {
12066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12067 }
12068 if (!argp2) {
12069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12070 }
12071 arg2 = reinterpret_cast< wxRegion * >(argp2);
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 {
12079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12080 }
12081 return resultobj;
12082fail:
12083 return NULL;
d55e5bfc
RD
12084}
12085
12086
554f62e9
RD
12087SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12088 PyObject *resultobj = 0;
12089 wxRegion *arg1 = (wxRegion *) 0 ;
12090 SwigValueWrapper<wxBitmap > result;
12091 void *argp1 = 0 ;
12092 int res1 = 0 ;
12093 PyObject *swig_obj[1] ;
12094
12095 if (!args) SWIG_fail;
12096 swig_obj[0] = args;
12097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12098 if (!SWIG_IsOK(res1)) {
12099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12100 }
12101 arg1 = reinterpret_cast< wxRegion * >(argp1);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = (arg1)->ConvertToBitmap();
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12109 return resultobj;
12110fail:
12111 return NULL;
12112}
12113
12114
12115SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj = 0;
12117 wxRegion *arg1 = (wxRegion *) 0 ;
12118 wxBitmap *arg2 = 0 ;
12119 bool result;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 void *argp2 = 0 ;
12123 int res2 = 0 ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 char * kwnames[] = {
12127 (char *) "self",(char *) "bmp", NULL
12128 };
12129
12130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12134 }
12135 arg1 = reinterpret_cast< wxRegion * >(argp1);
12136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12137 if (!SWIG_IsOK(res2)) {
12138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12139 }
12140 if (!argp2) {
12141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12142 }
12143 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 {
12151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12152 }
12153 return resultobj;
12154fail:
12155 return NULL;
12156}
12157
12158
12159SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12160 PyObject *resultobj = 0;
12161 wxRegion *arg1 = (wxRegion *) 0 ;
12162 wxBitmap *arg2 = 0 ;
12163 wxColour *arg3 = 0 ;
12164 int arg4 = (int) 0 ;
12165 bool result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 void *argp2 = 0 ;
12169 int res2 = 0 ;
12170 wxColour temp3 ;
12171 int val4 ;
12172 int ecode4 = 0 ;
12173 PyObject * obj0 = 0 ;
12174 PyObject * obj1 = 0 ;
12175 PyObject * obj2 = 0 ;
12176 PyObject * obj3 = 0 ;
12177 char * kwnames[] = {
12178 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12179 };
12180
12181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12185 }
12186 arg1 = reinterpret_cast< wxRegion * >(argp1);
12187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12188 if (!SWIG_IsOK(res2)) {
12189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12190 }
12191 if (!argp2) {
12192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12193 }
12194 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12195 {
12196 arg3 = &temp3;
12197 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12198 }
12199 if (obj3) {
12200 ecode4 = SWIG_AsVal_int(obj3, &val4);
12201 if (!SWIG_IsOK(ecode4)) {
12202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12203 }
12204 arg4 = static_cast< int >(val4);
12205 }
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 {
12213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12214 }
12215 return resultobj;
12216fail:
12217 return NULL;
d55e5bfc
RD
12218}
12219
12220
554f62e9
RD
12221SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12222 PyObject *obj;
12223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12224 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12225 return SWIG_Py_Void();
d55e5bfc
RD
12226}
12227
554f62e9
RD
12228SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12229 return SWIG_Python_InitShadowInstance(args);
12230}
d55e5bfc 12231
554f62e9
RD
12232SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12233 PyObject *resultobj = 0;
12234 wxRegion *arg1 = 0 ;
12235 wxRegionIterator *result = 0 ;
12236 void *argp1 = 0 ;
12237 int res1 = 0 ;
12238 PyObject * obj0 = 0 ;
12239 char * kwnames[] = {
12240 (char *) "region", NULL
12241 };
12242
12243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12244 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12245 if (!SWIG_IsOK(res1)) {
12246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12247 }
12248 if (!argp1) {
12249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12250 }
12251 arg1 = reinterpret_cast< wxRegion * >(argp1);
12252 {
12253 if (!wxPyCheckForApp()) SWIG_fail;
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12260 return resultobj;
12261fail:
12262 return NULL;
d55e5bfc
RD
12263}
12264
12265
554f62e9
RD
12266SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 PyObject *resultobj = 0;
12268 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12269 void *argp1 = 0 ;
12270 int res1 = 0 ;
12271 PyObject *swig_obj[1] ;
12272
12273 if (!args) SWIG_fail;
12274 swig_obj[0] = args;
12275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12276 if (!SWIG_IsOK(res1)) {
12277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12278 }
12279 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 delete arg1;
d55e5bfc 12283
554f62e9
RD
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_Py_Void();
12288 return resultobj;
12289fail:
12290 return NULL;
d55e5bfc
RD
12291}
12292
12293
554f62e9
RD
12294SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12297 int result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12307 }
12308 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (int)(arg1)->GetX();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_From_int(static_cast< int >(result));
12316 return resultobj;
12317fail:
12318 return NULL;
d55e5bfc
RD
12319}
12320
12321
554f62e9
RD
12322SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12325 int result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12335 }
12336 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = (int)(arg1)->GetY();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_From_int(static_cast< int >(result));
12344 return resultobj;
12345fail:
12346 return NULL;
d55e5bfc
RD
12347}
12348
12349
554f62e9
RD
12350SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12353 int result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12363 }
12364 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (int)(arg1)->GetW();
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_From_int(static_cast< int >(result));
12372 return resultobj;
12373fail:
12374 return NULL;
d55e5bfc
RD
12375}
12376
12377
554f62e9
RD
12378SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12379 PyObject *resultobj = 0;
12380 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12381 int result;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 PyObject *swig_obj[1] ;
12385
12386 if (!args) SWIG_fail;
12387 swig_obj[0] = args;
12388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12389 if (!SWIG_IsOK(res1)) {
12390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12391 }
12392 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (int)(arg1)->GetWidth();
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 resultobj = SWIG_From_int(static_cast< int >(result));
12400 return resultobj;
12401fail:
12402 return NULL;
d55e5bfc
RD
12403}
12404
12405
554f62e9
RD
12406SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12407 PyObject *resultobj = 0;
12408 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12409 int result;
12410 void *argp1 = 0 ;
12411 int res1 = 0 ;
12412 PyObject *swig_obj[1] ;
12413
12414 if (!args) SWIG_fail;
12415 swig_obj[0] = args;
12416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12419 }
12420 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 result = (int)(arg1)->GetH();
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 resultobj = SWIG_From_int(static_cast< int >(result));
12428 return resultobj;
12429fail:
12430 return NULL;
d55e5bfc
RD
12431}
12432
12433
554f62e9
RD
12434SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12435 PyObject *resultobj = 0;
12436 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12437 int result;
12438 void *argp1 = 0 ;
12439 int res1 = 0 ;
12440 PyObject *swig_obj[1] ;
12441
12442 if (!args) SWIG_fail;
12443 swig_obj[0] = args;
12444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12445 if (!SWIG_IsOK(res1)) {
12446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12447 }
12448 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (int)(arg1)->GetHeight();
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 resultobj = SWIG_From_int(static_cast< int >(result));
12456 return resultobj;
12457fail:
12458 return NULL;
d55e5bfc
RD
12459}
12460
12461
554f62e9
RD
12462SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12465 wxRect result;
12466 void *argp1 = 0 ;
12467 int res1 = 0 ;
12468 PyObject *swig_obj[1] ;
12469
12470 if (!args) SWIG_fail;
12471 swig_obj[0] = args;
12472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12475 }
12476 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (arg1)->GetRect();
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12484 return resultobj;
12485fail:
12486 return NULL;
d55e5bfc
RD
12487}
12488
12489
554f62e9
RD
12490SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12491 PyObject *resultobj = 0;
12492 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject *swig_obj[1] ;
12497
12498 if (!args) SWIG_fail;
12499 swig_obj[0] = args;
12500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12501 if (!SWIG_IsOK(res1)) {
12502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12503 }
12504 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 result = (bool)(arg1)->HaveRects();
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 {
12512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12513 }
12514 return resultobj;
12515fail:
12516 return NULL;
d55e5bfc
RD
12517}
12518
12519
554f62e9
RD
12520SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12521 PyObject *resultobj = 0;
12522 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12532 }
12533 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->Reset();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = SWIG_Py_Void();
12541 return resultobj;
12542fail:
12543 return NULL;
d55e5bfc
RD
12544}
12545
12546
554f62e9
RD
12547SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12548 PyObject *resultobj = 0;
12549 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12550 void *argp1 = 0 ;
12551 int res1 = 0 ;
12552 PyObject *swig_obj[1] ;
12553
12554 if (!args) SWIG_fail;
12555 swig_obj[0] = args;
12556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12557 if (!SWIG_IsOK(res1)) {
12558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12559 }
12560 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12561 {
12562 PyThreadState* __tstate = wxPyBeginAllowThreads();
12563 wxRegionIterator_Next(arg1);
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 resultobj = SWIG_Py_Void();
12568 return resultobj;
12569fail:
12570 return NULL;
d55e5bfc
RD
12571}
12572
12573
554f62e9
RD
12574SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12575 PyObject *resultobj = 0;
12576 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12577 bool result;
12578 void *argp1 = 0 ;
12579 int res1 = 0 ;
12580 PyObject *swig_obj[1] ;
12581
12582 if (!args) SWIG_fail;
12583 swig_obj[0] = args;
12584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12587 }
12588 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 result = (bool)wxRegionIterator___nonzero__(arg1);
12592 wxPyEndAllowThreads(__tstate);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 }
12595 {
12596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12597 }
12598 return resultobj;
12599fail:
12600 return NULL;
d55e5bfc
RD
12601}
12602
12603
554f62e9
RD
12604SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12605 PyObject *obj;
12606 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12607 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12608 return SWIG_Py_Void();
d55e5bfc
RD
12609}
12610
554f62e9
RD
12611SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12613}
12614
554f62e9
RD
12615SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxNativeFontInfo *result = 0 ;
12618
12619 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12627 return resultobj;
12628fail:
12629 return NULL;
d55e5bfc
RD
12630}
12631
12632
554f62e9
RD
12633SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12634 PyObject *resultobj = 0;
12635 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12636 void *argp1 = 0 ;
12637 int res1 = 0 ;
12638 PyObject *swig_obj[1] ;
12639
12640 if (!args) SWIG_fail;
12641 swig_obj[0] = args;
12642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12645 }
12646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 delete arg1;
d55e5bfc 12650
554f62e9
RD
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 resultobj = SWIG_Py_Void();
12655 return resultobj;
12656fail:
12657 return NULL;
d55e5bfc
RD
12658}
12659
12660
554f62e9
RD
12661SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12662 PyObject *resultobj = 0;
12663 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 PyObject *swig_obj[1] ;
12667
12668 if (!args) SWIG_fail;
12669 swig_obj[0] = args;
12670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12671 if (!SWIG_IsOK(res1)) {
12672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12673 }
12674 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->Init();
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 resultobj = SWIG_Py_Void();
12682 return resultobj;
12683fail:
12684 return NULL;
12685}
12686
12687
12688SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj = 0;
12690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12691 wxFont *arg2 = 0 ;
12692 void *argp1 = 0 ;
12693 int res1 = 0 ;
12694 void *argp2 = 0 ;
12695 int res2 = 0 ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 char * kwnames[] = {
12699 (char *) "self",(char *) "font", NULL
12700 };
12701
12702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12704 if (!SWIG_IsOK(res1)) {
12705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12706 }
12707 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12709 if (!SWIG_IsOK(res2)) {
12710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12711 }
12712 if (!argp2) {
12713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12714 }
12715 arg2 = reinterpret_cast< wxFont * >(argp2);
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->InitFromFont((wxFont const &)*arg2);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_Py_Void();
12723 return resultobj;
12724fail:
12725 return NULL;
d55e5bfc
RD
12726}
12727
12728
554f62e9
RD
12729SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12730 PyObject *resultobj = 0;
12731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12732 int result;
12733 void *argp1 = 0 ;
12734 int res1 = 0 ;
12735 PyObject *swig_obj[1] ;
12736
12737 if (!args) SWIG_fail;
12738 swig_obj[0] = args;
12739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12740 if (!SWIG_IsOK(res1)) {
12741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12742 }
12743 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_From_int(static_cast< int >(result));
12751 return resultobj;
12752fail:
12753 return NULL;
d55e5bfc
RD
12754}
12755
12756
554f62e9
RD
12757SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12758 PyObject *resultobj = 0;
12759 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12760 wxSize result;
12761 void *argp1 = 0 ;
12762 int res1 = 0 ;
12763 PyObject *swig_obj[1] ;
12764
12765 if (!args) SWIG_fail;
12766 swig_obj[0] = args;
12767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12768 if (!SWIG_IsOK(res1)) {
12769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12770 }
12771 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12779 return resultobj;
12780fail:
12781 return NULL;
d55e5bfc
RD
12782}
12783
12784
554f62e9
RD
12785SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12786 PyObject *resultobj = 0;
12787 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12788 wxFontStyle result;
12789 void *argp1 = 0 ;
12790 int res1 = 0 ;
12791 PyObject *swig_obj[1] ;
12792
12793 if (!args) SWIG_fail;
12794 swig_obj[0] = args;
12795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12796 if (!SWIG_IsOK(res1)) {
12797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12798 }
12799 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = SWIG_From_int(static_cast< int >(result));
12807 return resultobj;
12808fail:
12809 return NULL;
d55e5bfc
RD
12810}
12811
12812
554f62e9
RD
12813SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12814 PyObject *resultobj = 0;
12815 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12816 wxFontWeight result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 PyObject *swig_obj[1] ;
12820
12821 if (!args) SWIG_fail;
12822 swig_obj[0] = args;
12823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12824 if (!SWIG_IsOK(res1)) {
12825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12826 }
12827 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 resultobj = SWIG_From_int(static_cast< int >(result));
12835 return resultobj;
12836fail:
12837 return NULL;
d55e5bfc
RD
12838}
12839
12840
554f62e9
RD
12841SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12842 PyObject *resultobj = 0;
12843 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12844 bool result;
12845 void *argp1 = 0 ;
12846 int res1 = 0 ;
12847 PyObject *swig_obj[1] ;
12848
12849 if (!args) SWIG_fail;
12850 swig_obj[0] = args;
12851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12852 if (!SWIG_IsOK(res1)) {
12853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12854 }
12855 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 {
12863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12864 }
12865 return resultobj;
12866fail:
12867 return NULL;
d55e5bfc
RD
12868}
12869
12870
554f62e9
RD
12871SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12872 PyObject *resultobj = 0;
12873 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12874 wxString result;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 PyObject *swig_obj[1] ;
12878
12879 if (!args) SWIG_fail;
12880 swig_obj[0] = args;
12881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12882 if (!SWIG_IsOK(res1)) {
12883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12884 }
12885 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
093d3ff1 12893#if wxUSE_UNICODE
554f62e9 12894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12895#else
554f62e9 12896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12897#endif
554f62e9
RD
12898 }
12899 return resultobj;
12900fail:
12901 return NULL;
d55e5bfc
RD
12902}
12903
12904
554f62e9
RD
12905SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12906 PyObject *resultobj = 0;
12907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12908 wxFontFamily result;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 PyObject *swig_obj[1] ;
12912
12913 if (!args) SWIG_fail;
12914 swig_obj[0] = args;
12915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12918 }
12919 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_From_int(static_cast< int >(result));
12927 return resultobj;
12928fail:
12929 return NULL;
d55e5bfc
RD
12930}
12931
12932
554f62e9
RD
12933SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12936 wxFontEncoding result;
12937 void *argp1 = 0 ;
12938 int res1 = 0 ;
12939 PyObject *swig_obj[1] ;
12940
12941 if (!args) SWIG_fail;
12942 swig_obj[0] = args;
12943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12944 if (!SWIG_IsOK(res1)) {
12945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12946 }
12947 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12948 {
12949 PyThreadState* __tstate = wxPyBeginAllowThreads();
12950 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12951 wxPyEndAllowThreads(__tstate);
12952 if (PyErr_Occurred()) SWIG_fail;
12953 }
12954 resultobj = SWIG_From_int(static_cast< int >(result));
12955 return resultobj;
12956fail:
12957 return NULL;
12958}
12959
12960
12961SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj = 0;
12963 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12964 int arg2 ;
12965 void *argp1 = 0 ;
12966 int res1 = 0 ;
12967 int val2 ;
12968 int ecode2 = 0 ;
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
12971 char * kwnames[] = {
12972 (char *) "self",(char *) "pointsize", NULL
12973 };
12974
12975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12981 ecode2 = SWIG_AsVal_int(obj1, &val2);
12982 if (!SWIG_IsOK(ecode2)) {
12983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12984 }
12985 arg2 = static_cast< int >(val2);
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 (arg1)->SetPointSize(arg2);
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_Py_Void();
12993 return resultobj;
12994fail:
12995 return NULL;
12996}
12997
12998
12999SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13002 wxSize *arg2 = 0 ;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 wxSize temp2 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "pixelSize", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13016 }
13017 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13018 {
13019 arg2 = &temp2;
13020 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13021 }
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 (arg1)->SetPixelSize((wxSize const &)*arg2);
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 resultobj = SWIG_Py_Void();
13029 return resultobj;
13030fail:
13031 return NULL;
13032}
13033
13034
13035SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj = 0;
13037 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13038 wxFontStyle arg2 ;
13039 void *argp1 = 0 ;
13040 int res1 = 0 ;
13041 int val2 ;
13042 int ecode2 = 0 ;
13043 PyObject * obj0 = 0 ;
13044 PyObject * obj1 = 0 ;
13045 char * kwnames[] = {
13046 (char *) "self",(char *) "style", NULL
13047 };
13048
13049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13051 if (!SWIG_IsOK(res1)) {
13052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13053 }
13054 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13055 ecode2 = SWIG_AsVal_int(obj1, &val2);
13056 if (!SWIG_IsOK(ecode2)) {
13057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13058 }
13059 arg2 = static_cast< wxFontStyle >(val2);
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 (arg1)->SetStyle(arg2);
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 resultobj = SWIG_Py_Void();
13067 return resultobj;
13068fail:
13069 return NULL;
13070}
13071
13072
13073SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj = 0;
13075 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13076 wxFontWeight arg2 ;
13077 void *argp1 = 0 ;
13078 int res1 = 0 ;
13079 int val2 ;
13080 int ecode2 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char * kwnames[] = {
13084 (char *) "self",(char *) "weight", NULL
13085 };
13086
13087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13091 }
13092 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13093 ecode2 = SWIG_AsVal_int(obj1, &val2);
13094 if (!SWIG_IsOK(ecode2)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13096 }
13097 arg2 = static_cast< wxFontWeight >(val2);
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 (arg1)->SetWeight(arg2);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_Py_Void();
13105 return resultobj;
13106fail:
13107 return NULL;
13108}
13109
13110
13111SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj = 0;
13113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13114 bool arg2 ;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 bool val2 ;
13118 int ecode2 = 0 ;
13119 PyObject * obj0 = 0 ;
13120 PyObject * obj1 = 0 ;
13121 char * kwnames[] = {
13122 (char *) "self",(char *) "underlined", NULL
13123 };
13124
13125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13127 if (!SWIG_IsOK(res1)) {
13128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13129 }
13130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13131 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13132 if (!SWIG_IsOK(ecode2)) {
13133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13134 }
13135 arg2 = static_cast< bool >(val2);
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->SetUnderlined(arg2);
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 resultobj = SWIG_Py_Void();
13143 return resultobj;
13144fail:
13145 return NULL;
13146}
13147
13148
13149SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13150 PyObject *resultobj = 0;
13151 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13152 wxString arg2 ;
704eda0c 13153 bool result;
554f62e9
RD
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 PyObject * obj0 = 0 ;
13157 PyObject * obj1 = 0 ;
13158 char * kwnames[] = {
13159 (char *) "self",(char *) "facename", NULL
13160 };
13161
13162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13164 if (!SWIG_IsOK(res1)) {
13165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13166 }
13167 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13168 {
13169 wxString* sptr = wxString_in_helper(obj1);
13170 if (sptr == NULL) SWIG_fail;
13171 arg2 = *sptr;
13172 delete sptr;
13173 }
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13176 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
704eda0c
RD
13180 {
13181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13182 }
554f62e9
RD
13183 return resultobj;
13184fail:
13185 return NULL;
13186}
13187
13188
13189SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13190 PyObject *resultobj = 0;
13191 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13192 wxFontFamily arg2 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 int val2 ;
13196 int ecode2 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "family", NULL
13201 };
13202
13203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13209 ecode2 = SWIG_AsVal_int(obj1, &val2);
13210 if (!SWIG_IsOK(ecode2)) {
13211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13212 }
13213 arg2 = static_cast< wxFontFamily >(val2);
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 (arg1)->SetFamily(arg2);
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_Py_Void();
13221 return resultobj;
13222fail:
13223 return NULL;
13224}
13225
13226
13227SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13230 wxFontEncoding arg2 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 int val2 ;
13234 int ecode2 = 0 ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 char * kwnames[] = {
13238 (char *) "self",(char *) "encoding", NULL
13239 };
13240
13241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13243 if (!SWIG_IsOK(res1)) {
13244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13245 }
13246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13247 ecode2 = SWIG_AsVal_int(obj1, &val2);
13248 if (!SWIG_IsOK(ecode2)) {
13249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13250 }
13251 arg2 = static_cast< wxFontEncoding >(val2);
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 (arg1)->SetEncoding(arg2);
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260fail:
13261 return NULL;
13262}
13263
13264
13265SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj = 0;
13267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13268 wxString *arg2 = 0 ;
13269 bool result;
13270 void *argp1 = 0 ;
13271 int res1 = 0 ;
13272 bool temp2 = false ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char * kwnames[] = {
13276 (char *) "self",(char *) "s", NULL
13277 };
13278
13279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13281 if (!SWIG_IsOK(res1)) {
13282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13283 }
13284 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13285 {
13286 arg2 = wxString_in_helper(obj1);
13287 if (arg2 == NULL) SWIG_fail;
13288 temp2 = true;
13289 }
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 {
13297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13298 }
13299 {
13300 if (temp2)
13301 delete arg2;
13302 }
13303 return resultobj;
13304fail:
13305 {
13306 if (temp2)
13307 delete arg2;
13308 }
13309 return NULL;
d55e5bfc
RD
13310}
13311
13312
554f62e9
RD
13313SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13314 PyObject *resultobj = 0;
13315 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13316 wxString result;
13317 void *argp1 = 0 ;
13318 int res1 = 0 ;
13319 PyObject *swig_obj[1] ;
13320
13321 if (!args) SWIG_fail;
13322 swig_obj[0] = args;
13323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13324 if (!SWIG_IsOK(res1)) {
13325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13326 }
13327 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 result = ((wxNativeFontInfo const *)arg1)->ToString();
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 {
13335#if wxUSE_UNICODE
13336 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13337#else
13338 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13339#endif
13340 }
13341 return resultobj;
13342fail:
13343 return NULL;
d55e5bfc
RD
13344}
13345
13346
554f62e9
RD
13347SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13348 PyObject *resultobj = 0;
13349 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13350 wxString result;
13351 void *argp1 = 0 ;
13352 int res1 = 0 ;
13353 PyObject *swig_obj[1] ;
13354
13355 if (!args) SWIG_fail;
13356 swig_obj[0] = args;
13357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13358 if (!SWIG_IsOK(res1)) {
13359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13360 }
13361 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 result = wxNativeFontInfo___str__(arg1);
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 {
13369#if wxUSE_UNICODE
13370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13371#else
13372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13373#endif
13374 }
13375 return resultobj;
13376fail:
13377 return NULL;
13378}
13379
13380
13381SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj = 0;
13383 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13384 wxString *arg2 = 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 bool temp2 = false ;
13389 PyObject * obj0 = 0 ;
13390 PyObject * obj1 = 0 ;
13391 char * kwnames[] = {
13392 (char *) "self",(char *) "s", NULL
13393 };
13394
13395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13399 }
13400 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13401 {
13402 arg2 = wxString_in_helper(obj1);
13403 if (arg2 == NULL) SWIG_fail;
13404 temp2 = true;
13405 }
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13414 }
13415 {
13416 if (temp2)
13417 delete arg2;
13418 }
13419 return resultobj;
13420fail:
13421 {
13422 if (temp2)
13423 delete arg2;
13424 }
13425 return NULL;
a2569024
RD
13426}
13427
13428
554f62e9
RD
13429SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13430 PyObject *resultobj = 0;
13431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13432 wxString result;
13433 void *argp1 = 0 ;
13434 int res1 = 0 ;
13435 PyObject *swig_obj[1] ;
13436
13437 if (!args) SWIG_fail;
13438 swig_obj[0] = args;
13439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13440 if (!SWIG_IsOK(res1)) {
13441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13442 }
13443 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 {
13451#if wxUSE_UNICODE
13452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13453#else
13454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13455#endif
13456 }
13457 return resultobj;
13458fail:
13459 return NULL;
d55e5bfc
RD
13460}
13461
13462
554f62e9
RD
13463SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *obj;
13465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13466 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13467 return SWIG_Py_Void();
d55e5bfc
RD
13468}
13469
554f62e9
RD
13470SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 return SWIG_Python_InitShadowInstance(args);
13472}
d55e5bfc 13473
554f62e9
RD
13474SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13477 wxString *arg2 = (wxString *) 0 ;
13478 void *argp1 = 0 ;
13479 int res1 = 0 ;
13480 bool temp2 = false ;
13481 PyObject *swig_obj[2] ;
13482
13483 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13487 }
13488 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13489 {
13490 arg2 = wxString_in_helper(swig_obj[1]);
13491 if (arg2 == NULL) SWIG_fail;
13492 temp2 = true;
13493 }
13494 if (arg1) (arg1)->facename = *arg2;
13495
13496 resultobj = SWIG_Py_Void();
13497 {
13498 if (temp2)
13499 delete arg2;
13500 }
13501 return resultobj;
13502fail:
13503 {
13504 if (temp2)
13505 delete arg2;
13506 }
13507 return NULL;
d55e5bfc
RD
13508}
13509
13510
554f62e9
RD
13511SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13514 wxString *result = 0 ;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 PyObject *swig_obj[1] ;
13518
13519 if (!args) SWIG_fail;
13520 swig_obj[0] = args;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13524 }
13525 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13526 result = (wxString *)& ((arg1)->facename);
13527 {
13528#if wxUSE_UNICODE
13529 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13530#else
13531 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13532#endif
13533 }
13534 return resultobj;
13535fail:
13536 return NULL;
d55e5bfc
RD
13537}
13538
13539
554f62e9
RD
13540SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13541 PyObject *resultobj = 0;
13542 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13543 wxFontEncoding arg2 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 int val2 ;
13547 int ecode2 = 0 ;
13548 PyObject *swig_obj[2] ;
13549
13550 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13554 }
13555 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13556 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13557 if (!SWIG_IsOK(ecode2)) {
13558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13559 }
13560 arg2 = static_cast< wxFontEncoding >(val2);
13561 if (arg1) (arg1)->encoding = arg2;
13562
13563 resultobj = SWIG_Py_Void();
13564 return resultobj;
13565fail:
13566 return NULL;
d55e5bfc
RD
13567}
13568
13569
554f62e9
RD
13570SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13571 PyObject *resultobj = 0;
13572 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13573 wxFontEncoding result;
13574 void *argp1 = 0 ;
13575 int res1 = 0 ;
13576 PyObject *swig_obj[1] ;
13577
13578 if (!args) SWIG_fail;
13579 swig_obj[0] = args;
13580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13581 if (!SWIG_IsOK(res1)) {
13582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13583 }
13584 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13585 result = (wxFontEncoding) ((arg1)->encoding);
13586 resultobj = SWIG_From_int(static_cast< int >(result));
13587 return resultobj;
13588fail:
13589 return NULL;
d55e5bfc
RD
13590}
13591
13592
554f62e9
RD
13593SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13594 PyObject *resultobj = 0;
13595 wxNativeEncodingInfo *result = 0 ;
13596
13597 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13605 return resultobj;
13606fail:
13607 return NULL;
d55e5bfc
RD
13608}
13609
13610
554f62e9
RD
13611SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13614 void *argp1 = 0 ;
13615 int res1 = 0 ;
13616 PyObject *swig_obj[1] ;
13617
13618 if (!args) SWIG_fail;
13619 swig_obj[0] = args;
13620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13621 if (!SWIG_IsOK(res1)) {
13622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13623 }
13624 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 delete arg1;
d55e5bfc 13628
554f62e9
RD
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 resultobj = SWIG_Py_Void();
13633 return resultobj;
13634fail:
13635 return NULL;
13636}
13637
13638
13639SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13640 PyObject *resultobj = 0;
13641 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13642 wxString *arg2 = 0 ;
13643 bool result;
13644 void *argp1 = 0 ;
13645 int res1 = 0 ;
13646 bool temp2 = false ;
13647 PyObject * obj0 = 0 ;
13648 PyObject * obj1 = 0 ;
13649 char * kwnames[] = {
13650 (char *) "self",(char *) "s", NULL
13651 };
13652
13653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13655 if (!SWIG_IsOK(res1)) {
13656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13657 }
13658 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13659 {
13660 arg2 = wxString_in_helper(obj1);
13661 if (arg2 == NULL) SWIG_fail;
13662 temp2 = true;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 {
13671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13672 }
13673 {
13674 if (temp2)
13675 delete arg2;
13676 }
13677 return resultobj;
13678fail:
13679 {
13680 if (temp2)
13681 delete arg2;
13682 }
13683 return NULL;
d55e5bfc
RD
13684}
13685
13686
554f62e9
RD
13687SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13688 PyObject *resultobj = 0;
13689 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13690 wxString result;
13691 void *argp1 = 0 ;
13692 int res1 = 0 ;
13693 PyObject *swig_obj[1] ;
13694
13695 if (!args) SWIG_fail;
13696 swig_obj[0] = args;
13697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13700 }
13701 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 {
13709#if wxUSE_UNICODE
13710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13711#else
13712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13713#endif
13714 }
13715 return resultobj;
13716fail:
13717 return NULL;
d55e5bfc
RD
13718}
13719
13720
554f62e9
RD
13721SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13722 PyObject *obj;
13723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13724 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13725 return SWIG_Py_Void();
d55e5bfc
RD
13726}
13727
554f62e9
RD
13728SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 return SWIG_Python_InitShadowInstance(args);
13730}
d55e5bfc 13731
554f62e9
RD
13732SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj = 0;
13734 wxFontEncoding arg1 ;
13735 wxNativeEncodingInfo *result = 0 ;
13736 int val1 ;
13737 int ecode1 = 0 ;
13738 PyObject * obj0 = 0 ;
13739 char * kwnames[] = {
13740 (char *) "encoding", NULL
13741 };
13742
13743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13744 ecode1 = SWIG_AsVal_int(obj0, &val1);
13745 if (!SWIG_IsOK(ecode1)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13747 }
13748 arg1 = static_cast< wxFontEncoding >(val1);
13749 {
13750 PyThreadState* __tstate = wxPyBeginAllowThreads();
13751 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13756 return resultobj;
13757fail:
13758 return NULL;
13759}
13760
13761
13762SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj = 0;
13764 wxNativeEncodingInfo *arg1 = 0 ;
13765 bool result;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 PyObject * obj0 = 0 ;
13769 char * kwnames[] = {
13770 (char *) "info", NULL
13771 };
13772
13773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13774 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13775 if (!SWIG_IsOK(res1)) {
13776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13777 }
13778 if (!argp1) {
13779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13780 }
13781 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 {
13789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13790 }
13791 return resultobj;
13792fail:
13793 return NULL;
d55e5bfc
RD
13794}
13795
13796
554f62e9
RD
13797SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13798 PyObject *resultobj = 0;
13799 wxFontMapper *result = 0 ;
13800
13801 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = (wxFontMapper *)new wxFontMapper();
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13809 return resultobj;
13810fail:
13811 return NULL;
d55e5bfc
RD
13812}
13813
13814
554f62e9
RD
13815SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13816 PyObject *resultobj = 0;
13817 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13818 void *argp1 = 0 ;
13819 int res1 = 0 ;
13820 PyObject *swig_obj[1] ;
13821
13822 if (!args) SWIG_fail;
13823 swig_obj[0] = args;
13824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13825 if (!SWIG_IsOK(res1)) {
13826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13827 }
13828 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13829 {
13830 PyThreadState* __tstate = wxPyBeginAllowThreads();
13831 delete arg1;
d55e5bfc 13832
554f62e9
RD
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = SWIG_Py_Void();
13837 return resultobj;
13838fail:
13839 return NULL;
d55e5bfc
RD
13840}
13841
13842
554f62e9
RD
13843SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13844 PyObject *resultobj = 0;
13845 wxFontMapper *result = 0 ;
13846
13847 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 result = (wxFontMapper *)wxFontMapper::Get();
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13855 return resultobj;
13856fail:
13857 return NULL;
13858}
13859
13860
13861SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13864 wxFontMapper *result = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject * obj0 = 0 ;
13868 char * kwnames[] = {
13869 (char *) "mapper", NULL
13870 };
13871
13872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13874 if (!SWIG_IsOK(res1)) {
13875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13876 }
13877 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13885 return resultobj;
13886fail:
13887 return NULL;
13888}
13889
13890
13891SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj = 0;
13893 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13894 wxString *arg2 = 0 ;
13895 bool arg3 = (bool) true ;
13896 wxFontEncoding result;
13897 void *argp1 = 0 ;
13898 int res1 = 0 ;
13899 bool temp2 = false ;
13900 bool val3 ;
13901 int ecode3 = 0 ;
13902 PyObject * obj0 = 0 ;
13903 PyObject * obj1 = 0 ;
13904 PyObject * obj2 = 0 ;
13905 char * kwnames[] = {
13906 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13907 };
13908
13909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13911 if (!SWIG_IsOK(res1)) {
13912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13913 }
13914 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13915 {
13916 arg2 = wxString_in_helper(obj1);
13917 if (arg2 == NULL) SWIG_fail;
13918 temp2 = true;
13919 }
13920 if (obj2) {
13921 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13922 if (!SWIG_IsOK(ecode3)) {
13923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13924 }
13925 arg3 = static_cast< bool >(val3);
13926 }
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_From_int(static_cast< int >(result));
13934 {
13935 if (temp2)
13936 delete arg2;
13937 }
13938 return resultobj;
13939fail:
13940 {
13941 if (temp2)
13942 delete arg2;
13943 }
13944 return NULL;
d55e5bfc
RD
13945}
13946
13947
554f62e9
RD
13948SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13949 PyObject *resultobj = 0;
13950 size_t result;
13951
13952 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13960 return resultobj;
13961fail:
13962 return NULL;
13963}
13964
13965
13966SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj = 0;
13968 size_t arg1 ;
13969 wxFontEncoding result;
13970 size_t val1 ;
13971 int ecode1 = 0 ;
13972 PyObject * obj0 = 0 ;
13973 char * kwnames[] = {
13974 (char *) "n", NULL
13975 };
13976
13977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13978 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13979 if (!SWIG_IsOK(ecode1)) {
13980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13981 }
13982 arg1 = static_cast< size_t >(val1);
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 resultobj = SWIG_From_int(static_cast< int >(result));
13990 return resultobj;
13991fail:
13992 return NULL;
13993}
13994
13995
13996SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13997 PyObject *resultobj = 0;
13998 wxFontEncoding arg1 ;
13999 wxString result;
14000 int val1 ;
14001 int ecode1 = 0 ;
14002 PyObject * obj0 = 0 ;
14003 char * kwnames[] = {
14004 (char *) "encoding", NULL
14005 };
14006
14007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14008 ecode1 = SWIG_AsVal_int(obj0, &val1);
14009 if (!SWIG_IsOK(ecode1)) {
14010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14011 }
14012 arg1 = static_cast< wxFontEncoding >(val1);
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = wxFontMapper::GetEncodingName(arg1);
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 {
14020#if wxUSE_UNICODE
14021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14022#else
14023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14024#endif
14025 }
14026 return resultobj;
14027fail:
14028 return NULL;
d55e5bfc
RD
14029}
14030
14031
554f62e9
RD
14032SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14033 PyObject *resultobj = 0;
14034 wxFontEncoding arg1 ;
14035 wxString result;
14036 int val1 ;
14037 int ecode1 = 0 ;
14038 PyObject * obj0 = 0 ;
14039 char * kwnames[] = {
14040 (char *) "encoding", NULL
14041 };
14042
14043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14044 ecode1 = SWIG_AsVal_int(obj0, &val1);
14045 if (!SWIG_IsOK(ecode1)) {
14046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14047 }
14048 arg1 = static_cast< wxFontEncoding >(val1);
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 result = wxFontMapper::GetEncodingDescription(arg1);
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 {
14056#if wxUSE_UNICODE
14057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14058#else
14059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14060#endif
14061 }
14062 return resultobj;
14063fail:
14064 return NULL;
d55e5bfc
RD
14065}
14066
14067
554f62e9
RD
14068SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14069 PyObject *resultobj = 0;
14070 wxString *arg1 = 0 ;
14071 wxFontEncoding result;
14072 bool temp1 = false ;
14073 PyObject * obj0 = 0 ;
14074 char * kwnames[] = {
14075 (char *) "name", NULL
14076 };
14077
14078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14079 {
14080 arg1 = wxString_in_helper(obj0);
14081 if (arg1 == NULL) SWIG_fail;
14082 temp1 = true;
14083 }
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_From_int(static_cast< int >(result));
14091 {
14092 if (temp1)
14093 delete arg1;
14094 }
14095 return resultobj;
14096fail:
14097 {
14098 if (temp1)
14099 delete arg1;
14100 }
14101 return NULL;
d55e5bfc
RD
14102}
14103
14104
554f62e9
RD
14105SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14106 PyObject *resultobj = 0;
14107 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14108 wxString *arg2 = 0 ;
14109 void *argp1 = 0 ;
14110 int res1 = 0 ;
14111 bool temp2 = false ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 char * kwnames[] = {
14115 (char *) "self",(char *) "prefix", NULL
14116 };
14117
14118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14120 if (!SWIG_IsOK(res1)) {
14121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14122 }
14123 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14124 {
14125 arg2 = wxString_in_helper(obj1);
14126 if (arg2 == NULL) SWIG_fail;
14127 temp2 = true;
14128 }
14129 {
14130 PyThreadState* __tstate = wxPyBeginAllowThreads();
14131 (arg1)->SetConfigPath((wxString const &)*arg2);
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_Py_Void();
14136 {
14137 if (temp2)
14138 delete arg2;
14139 }
14140 return resultobj;
14141fail:
14142 {
14143 if (temp2)
14144 delete arg2;
14145 }
14146 return NULL;
d55e5bfc
RD
14147}
14148
14149
554f62e9
RD
14150SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14151 PyObject *resultobj = 0;
14152 wxString result;
14153
14154 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14155 {
14156 PyThreadState* __tstate = wxPyBeginAllowThreads();
14157 result = wxFontMapper::GetDefaultConfigPath();
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162#if wxUSE_UNICODE
14163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14164#else
14165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14166#endif
14167 }
14168 return resultobj;
14169fail:
14170 return NULL;
14171}
14172
14173
14174SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj = 0;
14176 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14177 wxFontEncoding arg2 ;
14178 wxString const &arg3_defvalue = wxPyEmptyString ;
14179 wxString *arg3 = (wxString *) &arg3_defvalue ;
14180 bool arg4 = (bool) true ;
14181 PyObject *result = 0 ;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 int val2 ;
14185 int ecode2 = 0 ;
14186 bool temp3 = false ;
14187 bool val4 ;
14188 int ecode4 = 0 ;
14189 PyObject * obj0 = 0 ;
14190 PyObject * obj1 = 0 ;
14191 PyObject * obj2 = 0 ;
14192 PyObject * obj3 = 0 ;
14193 char * kwnames[] = {
14194 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14195 };
14196
14197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14201 }
14202 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14203 ecode2 = SWIG_AsVal_int(obj1, &val2);
14204 if (!SWIG_IsOK(ecode2)) {
14205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14206 }
14207 arg2 = static_cast< wxFontEncoding >(val2);
14208 if (obj2) {
d55e5bfc 14209 {
554f62e9
RD
14210 arg3 = wxString_in_helper(obj2);
14211 if (arg3 == NULL) SWIG_fail;
14212 temp3 = true;
d55e5bfc 14213 }
554f62e9
RD
14214 }
14215 if (obj3) {
14216 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14217 if (!SWIG_IsOK(ecode4)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14219 }
14220 arg4 = static_cast< bool >(val4);
14221 }
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 resultobj = result;
14229 {
14230 if (temp3)
14231 delete arg3;
14232 }
14233 return resultobj;
14234fail:
14235 {
14236 if (temp3)
14237 delete arg3;
14238 }
14239 return NULL;
14240}
14241
14242
14243SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj = 0;
14245 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14246 wxFontEncoding arg2 ;
14247 wxString const &arg3_defvalue = wxPyEmptyString ;
14248 wxString *arg3 = (wxString *) &arg3_defvalue ;
14249 bool result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 int val2 ;
14253 int ecode2 = 0 ;
14254 bool temp3 = false ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 PyObject * obj2 = 0 ;
14258 char * kwnames[] = {
14259 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14260 };
14261
14262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14264 if (!SWIG_IsOK(res1)) {
14265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14266 }
14267 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14268 ecode2 = SWIG_AsVal_int(obj1, &val2);
14269 if (!SWIG_IsOK(ecode2)) {
14270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14271 }
14272 arg2 = static_cast< wxFontEncoding >(val2);
14273 if (obj2) {
093d3ff1 14274 {
554f62e9
RD
14275 arg3 = wxString_in_helper(obj2);
14276 if (arg3 == NULL) SWIG_fail;
14277 temp3 = true;
d55e5bfc 14278 }
554f62e9
RD
14279 }
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 {
14287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14288 }
14289 {
14290 if (temp3)
14291 delete arg3;
14292 }
14293 return resultobj;
14294fail:
14295 {
14296 if (temp3)
14297 delete arg3;
14298 }
14299 return NULL;
14300}
14301
14302
14303SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj = 0;
14305 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14306 wxWindow *arg2 = (wxWindow *) 0 ;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 void *argp2 = 0 ;
14310 int res2 = 0 ;
14311 PyObject * obj0 = 0 ;
14312 PyObject * obj1 = 0 ;
14313 char * kwnames[] = {
14314 (char *) "self",(char *) "parent", NULL
14315 };
14316
14317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14319 if (!SWIG_IsOK(res1)) {
14320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14321 }
14322 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14323 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14324 if (!SWIG_IsOK(res2)) {
14325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14326 }
14327 arg2 = reinterpret_cast< wxWindow * >(argp2);
14328 {
14329 PyThreadState* __tstate = wxPyBeginAllowThreads();
14330 (arg1)->SetDialogParent(arg2);
14331 wxPyEndAllowThreads(__tstate);
14332 if (PyErr_Occurred()) SWIG_fail;
14333 }
14334 resultobj = SWIG_Py_Void();
14335 return resultobj;
14336fail:
14337 return NULL;
14338}
14339
14340
14341SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14342 PyObject *resultobj = 0;
14343 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14344 wxString *arg2 = 0 ;
14345 void *argp1 = 0 ;
14346 int res1 = 0 ;
14347 bool temp2 = false ;
14348 PyObject * obj0 = 0 ;
14349 PyObject * obj1 = 0 ;
14350 char * kwnames[] = {
14351 (char *) "self",(char *) "title", NULL
14352 };
14353
14354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14360 {
14361 arg2 = wxString_in_helper(obj1);
14362 if (arg2 == NULL) SWIG_fail;
14363 temp2 = true;
14364 }
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 (arg1)->SetDialogTitle((wxString const &)*arg2);
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 resultobj = SWIG_Py_Void();
14372 {
14373 if (temp2)
14374 delete arg2;
14375 }
14376 return resultobj;
14377fail:
14378 {
14379 if (temp2)
14380 delete arg2;
14381 }
14382 return NULL;
14383}
14384
14385
14386SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14387 PyObject *obj;
14388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14389 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14390 return SWIG_Py_Void();
14391}
14392
14393SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14394 return SWIG_Python_InitShadowInstance(args);
14395}
14396
14397SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj = 0;
14399 int arg1 ;
14400 int arg2 ;
14401 int arg3 ;
14402 int arg4 ;
14403 bool arg5 = (bool) false ;
14404 wxString const &arg6_defvalue = wxPyEmptyString ;
14405 wxString *arg6 = (wxString *) &arg6_defvalue ;
14406 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14407 wxFont *result = 0 ;
14408 int val1 ;
14409 int ecode1 = 0 ;
14410 int val2 ;
14411 int ecode2 = 0 ;
14412 int val3 ;
14413 int ecode3 = 0 ;
14414 int val4 ;
14415 int ecode4 = 0 ;
14416 bool val5 ;
14417 int ecode5 = 0 ;
14418 bool temp6 = false ;
14419 int val7 ;
14420 int ecode7 = 0 ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 PyObject * obj2 = 0 ;
14424 PyObject * obj3 = 0 ;
14425 PyObject * obj4 = 0 ;
14426 PyObject * obj5 = 0 ;
14427 PyObject * obj6 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14433 ecode1 = SWIG_AsVal_int(obj0, &val1);
14434 if (!SWIG_IsOK(ecode1)) {
14435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14436 }
14437 arg1 = static_cast< int >(val1);
14438 ecode2 = SWIG_AsVal_int(obj1, &val2);
14439 if (!SWIG_IsOK(ecode2)) {
14440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14441 }
14442 arg2 = static_cast< int >(val2);
14443 ecode3 = SWIG_AsVal_int(obj2, &val3);
14444 if (!SWIG_IsOK(ecode3)) {
14445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14446 }
14447 arg3 = static_cast< int >(val3);
14448 ecode4 = SWIG_AsVal_int(obj3, &val4);
14449 if (!SWIG_IsOK(ecode4)) {
14450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14451 }
14452 arg4 = static_cast< int >(val4);
14453 if (obj4) {
14454 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14455 if (!SWIG_IsOK(ecode5)) {
14456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14457 }
14458 arg5 = static_cast< bool >(val5);
14459 }
14460 if (obj5) {
d55e5bfc 14461 {
554f62e9
RD
14462 arg6 = wxString_in_helper(obj5);
14463 if (arg6 == NULL) SWIG_fail;
14464 temp6 = true;
d55e5bfc 14465 }
554f62e9
RD
14466 }
14467 if (obj6) {
14468 ecode7 = SWIG_AsVal_int(obj6, &val7);
14469 if (!SWIG_IsOK(ecode7)) {
14470 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14471 }
14472 arg7 = static_cast< wxFontEncoding >(val7);
14473 }
14474 {
14475 if (!wxPyCheckForApp()) SWIG_fail;
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14482 {
14483 if (temp6)
14484 delete arg6;
14485 }
14486 return resultobj;
14487fail:
14488 {
14489 if (temp6)
14490 delete arg6;
14491 }
14492 return NULL;
d55e5bfc
RD
14493}
14494
14495
554f62e9
RD
14496SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14497 PyObject *resultobj = 0;
14498 wxFont *arg1 = (wxFont *) 0 ;
14499 void *argp1 = 0 ;
14500 int res1 = 0 ;
14501 PyObject *swig_obj[1] ;
14502
14503 if (!args) SWIG_fail;
14504 swig_obj[0] = args;
14505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14506 if (!SWIG_IsOK(res1)) {
14507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14508 }
14509 arg1 = reinterpret_cast< wxFont * >(argp1);
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 delete arg1;
d55e5bfc 14513
554f62e9
RD
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 resultobj = SWIG_Py_Void();
14518 return resultobj;
14519fail:
14520 return NULL;
14521}
14522
14523
14524SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14525 PyObject *resultobj = 0;
14526 wxNativeFontInfo *arg1 = 0 ;
14527 wxFont *result = 0 ;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 PyObject * obj0 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "info", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14539 }
14540 if (!argp1) {
14541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14542 }
14543 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14544 {
14545 if (!wxPyCheckForApp()) SWIG_fail;
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14552 return resultobj;
14553fail:
14554 return NULL;
d55e5bfc
RD
14555}
14556
14557
554f62e9
RD
14558SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj = 0;
14560 wxString *arg1 = 0 ;
14561 wxFont *result = 0 ;
14562 bool temp1 = false ;
14563 PyObject * obj0 = 0 ;
14564 char * kwnames[] = {
14565 (char *) "info", NULL
14566 };
14567
14568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14569 {
14570 arg1 = wxString_in_helper(obj0);
14571 if (arg1 == NULL) SWIG_fail;
14572 temp1 = true;
14573 }
14574 {
14575 if (!wxPyCheckForApp()) SWIG_fail;
14576 PyThreadState* __tstate = wxPyBeginAllowThreads();
14577 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14578 wxPyEndAllowThreads(__tstate);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14582 {
14583 if (temp1)
14584 delete arg1;
14585 }
14586 return resultobj;
14587fail:
14588 {
14589 if (temp1)
14590 delete arg1;
14591 }
14592 return NULL;
14593}
14594
14595
14596SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj = 0;
14598 int arg1 ;
14599 wxFontFamily arg2 ;
14600 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14601 wxString const &arg4_defvalue = wxPyEmptyString ;
14602 wxString *arg4 = (wxString *) &arg4_defvalue ;
14603 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14604 wxFont *result = 0 ;
14605 int val1 ;
14606 int ecode1 = 0 ;
14607 int val2 ;
14608 int ecode2 = 0 ;
14609 int val3 ;
14610 int ecode3 = 0 ;
14611 bool temp4 = false ;
14612 int val5 ;
14613 int ecode5 = 0 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 PyObject * obj2 = 0 ;
14617 PyObject * obj3 = 0 ;
14618 PyObject * obj4 = 0 ;
14619 char * kwnames[] = {
14620 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14621 };
14622
14623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14624 ecode1 = SWIG_AsVal_int(obj0, &val1);
14625 if (!SWIG_IsOK(ecode1)) {
14626 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14627 }
14628 arg1 = static_cast< int >(val1);
14629 ecode2 = SWIG_AsVal_int(obj1, &val2);
14630 if (!SWIG_IsOK(ecode2)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14632 }
14633 arg2 = static_cast< wxFontFamily >(val2);
14634 if (obj2) {
14635 ecode3 = SWIG_AsVal_int(obj2, &val3);
14636 if (!SWIG_IsOK(ecode3)) {
14637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14638 }
14639 arg3 = static_cast< int >(val3);
14640 }
14641 if (obj3) {
d55e5bfc 14642 {
554f62e9
RD
14643 arg4 = wxString_in_helper(obj3);
14644 if (arg4 == NULL) SWIG_fail;
14645 temp4 = true;
d55e5bfc 14646 }
554f62e9
RD
14647 }
14648 if (obj4) {
14649 ecode5 = SWIG_AsVal_int(obj4, &val5);
14650 if (!SWIG_IsOK(ecode5)) {
14651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14652 }
14653 arg5 = static_cast< wxFontEncoding >(val5);
14654 }
14655 {
14656 if (!wxPyCheckForApp()) SWIG_fail;
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14663 {
14664 if (temp4)
14665 delete arg4;
14666 }
14667 return resultobj;
14668fail:
14669 {
14670 if (temp4)
14671 delete arg4;
14672 }
14673 return NULL;
14674}
14675
14676
14677SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14678 PyObject *resultobj = 0;
14679 wxSize *arg1 = 0 ;
14680 int arg2 ;
14681 int arg3 ;
14682 int arg4 ;
14683 bool arg5 = (bool) false ;
14684 wxString const &arg6_defvalue = wxEmptyString ;
14685 wxString *arg6 = (wxString *) &arg6_defvalue ;
14686 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14687 wxFont *result = 0 ;
14688 wxSize temp1 ;
14689 int val2 ;
14690 int ecode2 = 0 ;
14691 int val3 ;
14692 int ecode3 = 0 ;
14693 int val4 ;
14694 int ecode4 = 0 ;
14695 bool val5 ;
14696 int ecode5 = 0 ;
14697 bool temp6 = false ;
14698 int val7 ;
14699 int ecode7 = 0 ;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 PyObject * obj2 = 0 ;
14703 PyObject * obj3 = 0 ;
14704 PyObject * obj4 = 0 ;
14705 PyObject * obj5 = 0 ;
14706 PyObject * obj6 = 0 ;
14707 char * kwnames[] = {
14708 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14709 };
14710
14711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14712 {
14713 arg1 = &temp1;
14714 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14715 }
14716 ecode2 = SWIG_AsVal_int(obj1, &val2);
14717 if (!SWIG_IsOK(ecode2)) {
14718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14719 }
14720 arg2 = static_cast< int >(val2);
14721 ecode3 = SWIG_AsVal_int(obj2, &val3);
14722 if (!SWIG_IsOK(ecode3)) {
14723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14724 }
14725 arg3 = static_cast< int >(val3);
14726 ecode4 = SWIG_AsVal_int(obj3, &val4);
14727 if (!SWIG_IsOK(ecode4)) {
14728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14729 }
14730 arg4 = static_cast< int >(val4);
14731 if (obj4) {
14732 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14733 if (!SWIG_IsOK(ecode5)) {
14734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14735 }
14736 arg5 = static_cast< bool >(val5);
14737 }
14738 if (obj5) {
d55e5bfc 14739 {
554f62e9
RD
14740 arg6 = wxString_in_helper(obj5);
14741 if (arg6 == NULL) SWIG_fail;
14742 temp6 = true;
d55e5bfc 14743 }
554f62e9
RD
14744 }
14745 if (obj6) {
14746 ecode7 = SWIG_AsVal_int(obj6, &val7);
14747 if (!SWIG_IsOK(ecode7)) {
14748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14749 }
14750 arg7 = static_cast< wxFontEncoding >(val7);
14751 }
14752 {
14753 if (!wxPyCheckForApp()) SWIG_fail;
14754 PyThreadState* __tstate = wxPyBeginAllowThreads();
14755 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14756 wxPyEndAllowThreads(__tstate);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
14759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14760 {
14761 if (temp6)
14762 delete arg6;
14763 }
14764 return resultobj;
14765fail:
14766 {
14767 if (temp6)
14768 delete arg6;
14769 }
14770 return NULL;
14771}
14772
14773
14774SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj = 0;
14776 wxSize *arg1 = 0 ;
14777 wxFontFamily arg2 ;
14778 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14779 wxString const &arg4_defvalue = wxEmptyString ;
14780 wxString *arg4 = (wxString *) &arg4_defvalue ;
14781 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14782 wxFont *result = 0 ;
14783 wxSize temp1 ;
14784 int val2 ;
14785 int ecode2 = 0 ;
14786 int val3 ;
14787 int ecode3 = 0 ;
14788 bool temp4 = false ;
14789 int val5 ;
14790 int ecode5 = 0 ;
14791 PyObject * obj0 = 0 ;
14792 PyObject * obj1 = 0 ;
14793 PyObject * obj2 = 0 ;
14794 PyObject * obj3 = 0 ;
14795 PyObject * obj4 = 0 ;
14796 char * kwnames[] = {
14797 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14798 };
14799
14800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14801 {
14802 arg1 = &temp1;
14803 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14804 }
14805 ecode2 = SWIG_AsVal_int(obj1, &val2);
14806 if (!SWIG_IsOK(ecode2)) {
14807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14808 }
14809 arg2 = static_cast< wxFontFamily >(val2);
14810 if (obj2) {
14811 ecode3 = SWIG_AsVal_int(obj2, &val3);
14812 if (!SWIG_IsOK(ecode3)) {
14813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14814 }
14815 arg3 = static_cast< int >(val3);
14816 }
14817 if (obj3) {
d55e5bfc 14818 {
554f62e9
RD
14819 arg4 = wxString_in_helper(obj3);
14820 if (arg4 == NULL) SWIG_fail;
14821 temp4 = true;
d55e5bfc 14822 }
554f62e9
RD
14823 }
14824 if (obj4) {
14825 ecode5 = SWIG_AsVal_int(obj4, &val5);
14826 if (!SWIG_IsOK(ecode5)) {
14827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14828 }
14829 arg5 = static_cast< wxFontEncoding >(val5);
14830 }
14831 {
14832 if (!wxPyCheckForApp()) SWIG_fail;
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14839 {
14840 if (temp4)
14841 delete arg4;
14842 }
14843 return resultobj;
14844fail:
14845 {
14846 if (temp4)
14847 delete arg4;
14848 }
14849 return NULL;
d55e5bfc
RD
14850}
14851
14852
b39fe951 14853SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14854 PyObject *resultobj = 0;
14855 wxFont *arg1 = (wxFont *) 0 ;
14856 bool result;
14857 void *argp1 = 0 ;
14858 int res1 = 0 ;
14859 PyObject *swig_obj[1] ;
14860
14861 if (!args) SWIG_fail;
14862 swig_obj[0] = args;
14863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
b39fe951 14865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14866 }
14867 arg1 = reinterpret_cast< wxFont * >(argp1);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14870 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 {
14875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14876 }
14877 return resultobj;
14878fail:
14879 return NULL;
14880}
14881
14882
14883SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj = 0;
14885 wxFont *arg1 = (wxFont *) 0 ;
14886 wxFont *arg2 = (wxFont *) 0 ;
14887 bool result;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 void *argp2 = 0 ;
14891 int res2 = 0 ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 char * kwnames[] = {
14895 (char *) "self",(char *) "other", NULL
14896 };
14897
14898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14902 }
14903 arg1 = reinterpret_cast< wxFont * >(argp1);
14904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14905 if (!SWIG_IsOK(res2)) {
14906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14907 }
14908 arg2 = reinterpret_cast< wxFont * >(argp2);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14917 }
14918 return resultobj;
14919fail:
14920 return NULL;
14921}
14922
14923
14924SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj = 0;
14926 wxFont *arg1 = (wxFont *) 0 ;
14927 wxFont *arg2 = (wxFont *) 0 ;
14928 bool result;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 void *argp2 = 0 ;
14932 int res2 = 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 char * kwnames[] = {
14936 (char *) "self",(char *) "other", NULL
14937 };
14938
14939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14943 }
14944 arg1 = reinterpret_cast< wxFont * >(argp1);
14945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14946 if (!SWIG_IsOK(res2)) {
14947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14948 }
14949 arg2 = reinterpret_cast< wxFont * >(argp2);
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 }
14959 return resultobj;
14960fail:
14961 return NULL;
a2569024
RD
14962}
14963
14964
554f62e9
RD
14965SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14966 PyObject *resultobj = 0;
14967 wxFont *arg1 = (wxFont *) 0 ;
14968 int result;
14969 void *argp1 = 0 ;
14970 int res1 = 0 ;
14971 PyObject *swig_obj[1] ;
14972
14973 if (!args) SWIG_fail;
14974 swig_obj[0] = args;
14975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14976 if (!SWIG_IsOK(res1)) {
14977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14978 }
14979 arg1 = reinterpret_cast< wxFont * >(argp1);
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 result = (int)((wxFont const *)arg1)->GetPointSize();
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_From_int(static_cast< int >(result));
14987 return resultobj;
14988fail:
14989 return NULL;
d55e5bfc
RD
14990}
14991
14992
554f62e9
RD
14993SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14994 PyObject *resultobj = 0;
14995 wxFont *arg1 = (wxFont *) 0 ;
14996 wxSize result;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 PyObject *swig_obj[1] ;
15000
15001 if (!args) SWIG_fail;
15002 swig_obj[0] = args;
15003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15004 if (!SWIG_IsOK(res1)) {
15005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15006 }
15007 arg1 = reinterpret_cast< wxFont * >(argp1);
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 result = ((wxFont const *)arg1)->GetPixelSize();
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15015 return resultobj;
15016fail:
15017 return NULL;
d55e5bfc
RD
15018}
15019
15020
554f62e9
RD
15021SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15022 PyObject *resultobj = 0;
15023 wxFont *arg1 = (wxFont *) 0 ;
15024 bool result;
15025 void *argp1 = 0 ;
15026 int res1 = 0 ;
15027 PyObject *swig_obj[1] ;
15028
15029 if (!args) SWIG_fail;
15030 swig_obj[0] = args;
15031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15032 if (!SWIG_IsOK(res1)) {
15033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15034 }
15035 arg1 = reinterpret_cast< wxFont * >(argp1);
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 {
15043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15044 }
15045 return resultobj;
15046fail:
15047 return NULL;
d55e5bfc
RD
15048}
15049
15050
554f62e9
RD
15051SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15052 PyObject *resultobj = 0;
15053 wxFont *arg1 = (wxFont *) 0 ;
15054 int result;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 PyObject *swig_obj[1] ;
15058
15059 if (!args) SWIG_fail;
15060 swig_obj[0] = args;
15061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15064 }
15065 arg1 = reinterpret_cast< wxFont * >(argp1);
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 result = (int)((wxFont const *)arg1)->GetFamily();
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 resultobj = SWIG_From_int(static_cast< int >(result));
15073 return resultobj;
15074fail:
15075 return NULL;
d55e5bfc
RD
15076}
15077
15078
554f62e9
RD
15079SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15080 PyObject *resultobj = 0;
15081 wxFont *arg1 = (wxFont *) 0 ;
15082 int result;
15083 void *argp1 = 0 ;
15084 int res1 = 0 ;
15085 PyObject *swig_obj[1] ;
15086
15087 if (!args) SWIG_fail;
15088 swig_obj[0] = args;
15089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15090 if (!SWIG_IsOK(res1)) {
15091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15092 }
15093 arg1 = reinterpret_cast< wxFont * >(argp1);
15094 {
15095 PyThreadState* __tstate = wxPyBeginAllowThreads();
15096 result = (int)((wxFont const *)arg1)->GetStyle();
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 resultobj = SWIG_From_int(static_cast< int >(result));
15101 return resultobj;
15102fail:
15103 return NULL;
d55e5bfc
RD
15104}
15105
15106
554f62e9
RD
15107SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15108 PyObject *resultobj = 0;
15109 wxFont *arg1 = (wxFont *) 0 ;
15110 int result;
15111 void *argp1 = 0 ;
15112 int res1 = 0 ;
15113 PyObject *swig_obj[1] ;
15114
15115 if (!args) SWIG_fail;
15116 swig_obj[0] = args;
15117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15118 if (!SWIG_IsOK(res1)) {
15119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15120 }
15121 arg1 = reinterpret_cast< wxFont * >(argp1);
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (int)((wxFont const *)arg1)->GetWeight();
15125 wxPyEndAllowThreads(__tstate);
15126 if (PyErr_Occurred()) SWIG_fail;
15127 }
15128 resultobj = SWIG_From_int(static_cast< int >(result));
15129 return resultobj;
15130fail:
15131 return NULL;
d55e5bfc
RD
15132}
15133
15134
554f62e9
RD
15135SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15136 PyObject *resultobj = 0;
15137 wxFont *arg1 = (wxFont *) 0 ;
15138 bool result;
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 PyObject *swig_obj[1] ;
15142
15143 if (!args) SWIG_fail;
15144 swig_obj[0] = args;
15145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15148 }
15149 arg1 = reinterpret_cast< wxFont * >(argp1);
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15153 wxPyEndAllowThreads(__tstate);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 {
15157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15158 }
15159 return resultobj;
15160fail:
15161 return NULL;
d55e5bfc
RD
15162}
15163
15164
554f62e9
RD
15165SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15166 PyObject *resultobj = 0;
15167 wxFont *arg1 = (wxFont *) 0 ;
15168 wxString result;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 PyObject *swig_obj[1] ;
15172
15173 if (!args) SWIG_fail;
15174 swig_obj[0] = args;
15175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15176 if (!SWIG_IsOK(res1)) {
15177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15178 }
15179 arg1 = reinterpret_cast< wxFont * >(argp1);
15180 {
15181 PyThreadState* __tstate = wxPyBeginAllowThreads();
15182 result = ((wxFont const *)arg1)->GetFaceName();
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 {
15187#if wxUSE_UNICODE
15188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15189#else
15190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15191#endif
15192 }
15193 return resultobj;
15194fail:
15195 return NULL;
d55e5bfc
RD
15196}
15197
15198
554f62e9
RD
15199SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15200 PyObject *resultobj = 0;
15201 wxFont *arg1 = (wxFont *) 0 ;
15202 wxFontEncoding result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 PyObject *swig_obj[1] ;
15206
15207 if (!args) SWIG_fail;
15208 swig_obj[0] = args;
15209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15210 if (!SWIG_IsOK(res1)) {
15211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15212 }
15213 arg1 = reinterpret_cast< wxFont * >(argp1);
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 resultobj = SWIG_From_int(static_cast< int >(result));
15221 return resultobj;
15222fail:
15223 return NULL;
d55e5bfc
RD
15224}
15225
15226
554f62e9
RD
15227SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15228 PyObject *resultobj = 0;
15229 wxFont *arg1 = (wxFont *) 0 ;
15230 wxNativeFontInfo *result = 0 ;
15231 void *argp1 = 0 ;
15232 int res1 = 0 ;
15233 PyObject *swig_obj[1] ;
15234
15235 if (!args) SWIG_fail;
15236 swig_obj[0] = args;
15237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15238 if (!SWIG_IsOK(res1)) {
15239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15240 }
15241 arg1 = reinterpret_cast< wxFont * >(argp1);
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15249 return resultobj;
15250fail:
15251 return NULL;
d55e5bfc
RD
15252}
15253
15254
554f62e9
RD
15255SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15256 PyObject *resultobj = 0;
15257 wxFont *arg1 = (wxFont *) 0 ;
15258 bool result;
15259 void *argp1 = 0 ;
15260 int res1 = 0 ;
15261 PyObject *swig_obj[1] ;
15262
15263 if (!args) SWIG_fail;
15264 swig_obj[0] = args;
15265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15266 if (!SWIG_IsOK(res1)) {
15267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15268 }
15269 arg1 = reinterpret_cast< wxFont * >(argp1);
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 {
15277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15278 }
15279 return resultobj;
15280fail:
15281 return NULL;
d55e5bfc
RD
15282}
15283
15284
554f62e9
RD
15285SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15286 PyObject *resultobj = 0;
15287 wxFont *arg1 = (wxFont *) 0 ;
15288 wxString result;
15289 void *argp1 = 0 ;
15290 int res1 = 0 ;
15291 PyObject *swig_obj[1] ;
15292
15293 if (!args) SWIG_fail;
15294 swig_obj[0] = args;
15295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15296 if (!SWIG_IsOK(res1)) {
15297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15298 }
15299 arg1 = reinterpret_cast< wxFont * >(argp1);
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 {
15307#if wxUSE_UNICODE
15308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15309#else
15310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15311#endif
15312 }
15313 return resultobj;
15314fail:
15315 return NULL;
d55e5bfc
RD
15316}
15317
15318
554f62e9
RD
15319SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15320 PyObject *resultobj = 0;
15321 wxFont *arg1 = (wxFont *) 0 ;
15322 wxString result;
15323 void *argp1 = 0 ;
15324 int res1 = 0 ;
15325 PyObject *swig_obj[1] ;
15326
15327 if (!args) SWIG_fail;
15328 swig_obj[0] = args;
15329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15330 if (!SWIG_IsOK(res1)) {
15331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15332 }
15333 arg1 = reinterpret_cast< wxFont * >(argp1);
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341#if wxUSE_UNICODE
15342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15343#else
15344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15345#endif
15346 }
15347 return resultobj;
15348fail:
15349 return NULL;
15350}
15351
15352
15353SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj = 0;
15355 wxFont *arg1 = (wxFont *) 0 ;
15356 int arg2 ;
15357 void *argp1 = 0 ;
15358 int res1 = 0 ;
15359 int val2 ;
15360 int ecode2 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 char * kwnames[] = {
15364 (char *) "self",(char *) "pointSize", NULL
15365 };
15366
15367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15369 if (!SWIG_IsOK(res1)) {
15370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15371 }
15372 arg1 = reinterpret_cast< wxFont * >(argp1);
15373 ecode2 = SWIG_AsVal_int(obj1, &val2);
15374 if (!SWIG_IsOK(ecode2)) {
15375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15376 }
15377 arg2 = static_cast< int >(val2);
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 (arg1)->SetPointSize(arg2);
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 resultobj = SWIG_Py_Void();
15385 return resultobj;
15386fail:
15387 return NULL;
15388}
15389
15390
15391SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15392 PyObject *resultobj = 0;
15393 wxFont *arg1 = (wxFont *) 0 ;
15394 wxSize *arg2 = 0 ;
15395 void *argp1 = 0 ;
15396 int res1 = 0 ;
15397 wxSize temp2 ;
15398 PyObject * obj0 = 0 ;
15399 PyObject * obj1 = 0 ;
15400 char * kwnames[] = {
15401 (char *) "self",(char *) "pixelSize", NULL
15402 };
15403
15404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15406 if (!SWIG_IsOK(res1)) {
15407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15408 }
15409 arg1 = reinterpret_cast< wxFont * >(argp1);
15410 {
15411 arg2 = &temp2;
15412 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15413 }
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 (arg1)->SetPixelSize((wxSize const &)*arg2);
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 resultobj = SWIG_Py_Void();
15421 return resultobj;
15422fail:
15423 return NULL;
15424}
15425
15426
15427SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15428 PyObject *resultobj = 0;
15429 wxFont *arg1 = (wxFont *) 0 ;
15430 int arg2 ;
15431 void *argp1 = 0 ;
15432 int res1 = 0 ;
15433 int val2 ;
15434 int ecode2 = 0 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char * kwnames[] = {
15438 (char *) "self",(char *) "family", NULL
15439 };
15440
15441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15445 }
15446 arg1 = reinterpret_cast< wxFont * >(argp1);
15447 ecode2 = SWIG_AsVal_int(obj1, &val2);
15448 if (!SWIG_IsOK(ecode2)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15450 }
15451 arg2 = static_cast< int >(val2);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetFamily(arg2);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460fail:
15461 return NULL;
15462}
15463
15464
15465SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxFont *arg1 = (wxFont *) 0 ;
15468 int arg2 ;
15469 void *argp1 = 0 ;
15470 int res1 = 0 ;
15471 int val2 ;
15472 int ecode2 = 0 ;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 char * kwnames[] = {
15476 (char *) "self",(char *) "style", NULL
15477 };
15478
15479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15483 }
15484 arg1 = reinterpret_cast< wxFont * >(argp1);
15485 ecode2 = SWIG_AsVal_int(obj1, &val2);
15486 if (!SWIG_IsOK(ecode2)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15488 }
15489 arg2 = static_cast< int >(val2);
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 (arg1)->SetStyle(arg2);
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 resultobj = SWIG_Py_Void();
15497 return resultobj;
15498fail:
15499 return NULL;
15500}
15501
15502
15503SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj = 0;
15505 wxFont *arg1 = (wxFont *) 0 ;
15506 int arg2 ;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 int val2 ;
15510 int ecode2 = 0 ;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513 char * kwnames[] = {
15514 (char *) "self",(char *) "weight", NULL
15515 };
15516
15517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15519 if (!SWIG_IsOK(res1)) {
15520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15521 }
15522 arg1 = reinterpret_cast< wxFont * >(argp1);
15523 ecode2 = SWIG_AsVal_int(obj1, &val2);
15524 if (!SWIG_IsOK(ecode2)) {
15525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15526 }
15527 arg2 = static_cast< int >(val2);
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 (arg1)->SetWeight(arg2);
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = SWIG_Py_Void();
15535 return resultobj;
15536fail:
15537 return NULL;
15538}
15539
15540
15541SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxFont *arg1 = (wxFont *) 0 ;
15544 wxString *arg2 = 0 ;
704eda0c 15545 bool result;
554f62e9
RD
15546 void *argp1 = 0 ;
15547 int res1 = 0 ;
15548 bool temp2 = false ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 char * kwnames[] = {
15552 (char *) "self",(char *) "faceName", NULL
15553 };
15554
15555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15557 if (!SWIG_IsOK(res1)) {
15558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15559 }
15560 arg1 = reinterpret_cast< wxFont * >(argp1);
15561 {
15562 arg2 = wxString_in_helper(obj1);
15563 if (arg2 == NULL) SWIG_fail;
15564 temp2 = true;
15565 }
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15568 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
704eda0c
RD
15572 {
15573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15574 }
554f62e9
RD
15575 {
15576 if (temp2)
15577 delete arg2;
15578 }
15579 return resultobj;
15580fail:
15581 {
15582 if (temp2)
15583 delete arg2;
15584 }
15585 return NULL;
15586}
15587
15588
15589SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15590 PyObject *resultobj = 0;
15591 wxFont *arg1 = (wxFont *) 0 ;
15592 bool arg2 ;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 bool val2 ;
15596 int ecode2 = 0 ;
15597 PyObject * obj0 = 0 ;
15598 PyObject * obj1 = 0 ;
15599 char * kwnames[] = {
15600 (char *) "self",(char *) "underlined", NULL
15601 };
15602
15603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15605 if (!SWIG_IsOK(res1)) {
15606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15607 }
15608 arg1 = reinterpret_cast< wxFont * >(argp1);
15609 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15610 if (!SWIG_IsOK(ecode2)) {
15611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15612 }
15613 arg2 = static_cast< bool >(val2);
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 (arg1)->SetUnderlined(arg2);
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = SWIG_Py_Void();
15621 return resultobj;
15622fail:
15623 return NULL;
15624}
15625
15626
15627SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj = 0;
15629 wxFont *arg1 = (wxFont *) 0 ;
15630 wxFontEncoding arg2 ;
15631 void *argp1 = 0 ;
15632 int res1 = 0 ;
15633 int val2 ;
15634 int ecode2 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char * kwnames[] = {
15638 (char *) "self",(char *) "encoding", NULL
15639 };
15640
15641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15643 if (!SWIG_IsOK(res1)) {
15644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15645 }
15646 arg1 = reinterpret_cast< wxFont * >(argp1);
15647 ecode2 = SWIG_AsVal_int(obj1, &val2);
15648 if (!SWIG_IsOK(ecode2)) {
15649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15650 }
15651 arg2 = static_cast< wxFontEncoding >(val2);
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 (arg1)->SetEncoding(arg2);
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 resultobj = SWIG_Py_Void();
15659 return resultobj;
15660fail:
15661 return NULL;
15662}
15663
15664
15665SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj = 0;
15667 wxFont *arg1 = (wxFont *) 0 ;
15668 wxNativeFontInfo *arg2 = 0 ;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 void *argp2 = 0 ;
15672 int res2 = 0 ;
15673 PyObject * obj0 = 0 ;
15674 PyObject * obj1 = 0 ;
15675 char * kwnames[] = {
15676 (char *) "self",(char *) "info", NULL
15677 };
15678
15679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15681 if (!SWIG_IsOK(res1)) {
15682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15683 }
15684 arg1 = reinterpret_cast< wxFont * >(argp1);
15685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15686 if (!SWIG_IsOK(res2)) {
15687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15688 }
15689 if (!argp2) {
15690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15691 }
15692 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701fail:
15702 return NULL;
15703}
15704
15705
15706SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = 0;
15708 wxFont *arg1 = (wxFont *) 0 ;
15709 wxString *arg2 = 0 ;
704eda0c 15710 bool result;
554f62e9
RD
15711 void *argp1 = 0 ;
15712 int res1 = 0 ;
15713 bool temp2 = false ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 char * kwnames[] = {
15717 (char *) "self",(char *) "info", NULL
15718 };
15719
15720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15724 }
15725 arg1 = reinterpret_cast< wxFont * >(argp1);
15726 {
15727 arg2 = wxString_in_helper(obj1);
15728 if (arg2 == NULL) SWIG_fail;
15729 temp2 = true;
15730 }
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15733 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
704eda0c
RD
15737 {
15738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15739 }
554f62e9
RD
15740 {
15741 if (temp2)
15742 delete arg2;
15743 }
15744 return resultobj;
15745fail:
15746 {
15747 if (temp2)
15748 delete arg2;
15749 }
15750 return NULL;
d55e5bfc
RD
15751}
15752
15753
554f62e9
RD
15754SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = 0;
15756 wxFont *arg1 = (wxFont *) 0 ;
15757 wxString *arg2 = 0 ;
704eda0c 15758 bool result;
554f62e9
RD
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 bool temp2 = false ;
15762 PyObject * obj0 = 0 ;
15763 PyObject * obj1 = 0 ;
15764 char * kwnames[] = {
15765 (char *) "self",(char *) "info", NULL
15766 };
15767
15768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15772 }
15773 arg1 = reinterpret_cast< wxFont * >(argp1);
15774 {
15775 arg2 = wxString_in_helper(obj1);
15776 if (arg2 == NULL) SWIG_fail;
15777 temp2 = true;
15778 }
15779 {
15780 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15781 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
704eda0c
RD
15785 {
15786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15787 }
554f62e9
RD
15788 {
15789 if (temp2)
15790 delete arg2;
15791 }
15792 return resultobj;
15793fail:
15794 {
15795 if (temp2)
15796 delete arg2;
15797 }
15798 return NULL;
d55e5bfc
RD
15799}
15800
15801
554f62e9
RD
15802SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15803 PyObject *resultobj = 0;
15804 wxFont *arg1 = (wxFont *) 0 ;
15805 wxString result;
15806 void *argp1 = 0 ;
15807 int res1 = 0 ;
15808 PyObject *swig_obj[1] ;
15809
15810 if (!args) SWIG_fail;
15811 swig_obj[0] = args;
15812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15813 if (!SWIG_IsOK(res1)) {
15814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15815 }
15816 arg1 = reinterpret_cast< wxFont * >(argp1);
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = ((wxFont const *)arg1)->GetFamilyString();
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 {
15824#if wxUSE_UNICODE
15825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15826#else
15827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15828#endif
15829 }
15830 return resultobj;
15831fail:
15832 return NULL;
d55e5bfc
RD
15833}
15834
15835
554f62e9
RD
15836SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15837 PyObject *resultobj = 0;
15838 wxFont *arg1 = (wxFont *) 0 ;
15839 wxString result;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 PyObject *swig_obj[1] ;
15843
15844 if (!args) SWIG_fail;
15845 swig_obj[0] = args;
15846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15849 }
15850 arg1 = reinterpret_cast< wxFont * >(argp1);
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = ((wxFont const *)arg1)->GetStyleString();
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858#if wxUSE_UNICODE
15859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15860#else
15861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15862#endif
15863 }
15864 return resultobj;
15865fail:
15866 return NULL;
d55e5bfc
RD
15867}
15868
15869
554f62e9
RD
15870SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15871 PyObject *resultobj = 0;
15872 wxFont *arg1 = (wxFont *) 0 ;
15873 wxString result;
15874 void *argp1 = 0 ;
15875 int res1 = 0 ;
15876 PyObject *swig_obj[1] ;
15877
15878 if (!args) SWIG_fail;
15879 swig_obj[0] = args;
15880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15881 if (!SWIG_IsOK(res1)) {
15882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15883 }
15884 arg1 = reinterpret_cast< wxFont * >(argp1);
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = ((wxFont const *)arg1)->GetWeightString();
15888 wxPyEndAllowThreads(__tstate);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 {
15892#if wxUSE_UNICODE
15893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15894#else
15895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15896#endif
15897 }
15898 return resultobj;
15899fail:
15900 return NULL;
15901}
15902
15903
15904SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxFont *arg1 = (wxFont *) 0 ;
15907 bool arg2 = (bool) true ;
15908 void *argp1 = 0 ;
15909 int res1 = 0 ;
15910 bool val2 ;
15911 int ecode2 = 0 ;
15912 PyObject * obj0 = 0 ;
15913 PyObject * obj1 = 0 ;
15914 char * kwnames[] = {
15915 (char *) "self",(char *) "no", NULL
15916 };
15917
15918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15920 if (!SWIG_IsOK(res1)) {
15921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15922 }
15923 arg1 = reinterpret_cast< wxFont * >(argp1);
15924 if (obj1) {
15925 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15926 if (!SWIG_IsOK(ecode2)) {
15927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15928 }
15929 arg2 = static_cast< bool >(val2);
15930 }
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 (arg1)->SetNoAntiAliasing(arg2);
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = SWIG_Py_Void();
15938 return resultobj;
15939fail:
15940 return NULL;
d55e5bfc
RD
15941}
15942
15943
554f62e9
RD
15944SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15945 PyObject *resultobj = 0;
15946 wxFont *arg1 = (wxFont *) 0 ;
15947 bool result;
15948 void *argp1 = 0 ;
15949 int res1 = 0 ;
15950 PyObject *swig_obj[1] ;
15951
15952 if (!args) SWIG_fail;
15953 swig_obj[0] = args;
15954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15955 if (!SWIG_IsOK(res1)) {
15956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15957 }
15958 arg1 = reinterpret_cast< wxFont * >(argp1);
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15962 wxPyEndAllowThreads(__tstate);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 }
15965 {
15966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15967 }
15968 return resultobj;
15969fail:
15970 return NULL;
d55e5bfc
RD
15971}
15972
15973
554f62e9
RD
15974SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15975 PyObject *resultobj = 0;
15976 wxFontEncoding result;
15977
15978 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15979 {
15980 if (!wxPyCheckForApp()) SWIG_fail;
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_From_int(static_cast< int >(result));
15987 return resultobj;
15988fail:
15989 return NULL;
d55e5bfc
RD
15990}
15991
15992
554f62e9
RD
15993SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj = 0;
15995 wxFontEncoding arg1 ;
15996 int val1 ;
15997 int ecode1 = 0 ;
15998 PyObject * obj0 = 0 ;
15999 char * kwnames[] = {
16000 (char *) "encoding", NULL
16001 };
16002
16003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16004 ecode1 = SWIG_AsVal_int(obj0, &val1);
16005 if (!SWIG_IsOK(ecode1)) {
16006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16007 }
16008 arg1 = static_cast< wxFontEncoding >(val1);
16009 {
16010 if (!wxPyCheckForApp()) SWIG_fail;
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 wxFont::SetDefaultEncoding(arg1);
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 resultobj = SWIG_Py_Void();
16017 return resultobj;
16018fail:
16019 return NULL;
5e483524
RD
16020}
16021
16022
554f62e9
RD
16023SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16024 PyObject *obj;
16025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16026 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16027 return SWIG_Py_Void();
d55e5bfc
RD
16028}
16029
554f62e9
RD
16030SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16031 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16032}
16033
554f62e9
RD
16034SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16035 PyObject *resultobj = 0;
16036 wxPyFontEnumerator *result = 0 ;
16037
16038 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16039 {
16040 if (!wxPyCheckForApp()) SWIG_fail;
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16047 return resultobj;
16048fail:
16049 return NULL;
d55e5bfc
RD
16050}
16051
16052
554f62e9
RD
16053SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16054 PyObject *resultobj = 0;
16055 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16056 void *argp1 = 0 ;
16057 int res1 = 0 ;
16058 PyObject *swig_obj[1] ;
16059
16060 if (!args) SWIG_fail;
16061 swig_obj[0] = args;
16062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16063 if (!SWIG_IsOK(res1)) {
16064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16065 }
16066 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16067 {
16068 PyThreadState* __tstate = wxPyBeginAllowThreads();
16069 delete arg1;
d55e5bfc 16070
554f62e9
RD
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 resultobj = SWIG_Py_Void();
16075 return resultobj;
16076fail:
16077 return NULL;
16078}
16079
16080
16081SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj = 0;
16083 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16084 PyObject *arg2 = (PyObject *) 0 ;
16085 PyObject *arg3 = (PyObject *) 0 ;
16086 bool arg4 ;
16087 void *argp1 = 0 ;
16088 int res1 = 0 ;
16089 bool val4 ;
16090 int ecode4 = 0 ;
16091 PyObject * obj0 = 0 ;
16092 PyObject * obj1 = 0 ;
16093 PyObject * obj2 = 0 ;
16094 PyObject * obj3 = 0 ;
16095 char * kwnames[] = {
16096 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16097 };
16098
16099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16101 if (!SWIG_IsOK(res1)) {
16102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16103 }
16104 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16105 arg2 = obj1;
16106 arg3 = obj2;
16107 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16108 if (!SWIG_IsOK(ecode4)) {
16109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16110 }
16111 arg4 = static_cast< bool >(val4);
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 resultobj = SWIG_Py_Void();
16119 return resultobj;
16120fail:
16121 return NULL;
16122}
16123
16124
16125SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16126 PyObject *resultobj = 0;
16127 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16128 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16129 bool arg3 = (bool) false ;
16130 bool result;
16131 void *argp1 = 0 ;
16132 int res1 = 0 ;
16133 int val2 ;
16134 int ecode2 = 0 ;
16135 bool val3 ;
16136 int ecode3 = 0 ;
16137 PyObject * obj0 = 0 ;
16138 PyObject * obj1 = 0 ;
16139 PyObject * obj2 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16148 }
16149 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16150 if (obj1) {
16151 ecode2 = SWIG_AsVal_int(obj1, &val2);
16152 if (!SWIG_IsOK(ecode2)) {
16153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16154 }
16155 arg2 = static_cast< wxFontEncoding >(val2);
16156 }
16157 if (obj2) {
16158 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16159 if (!SWIG_IsOK(ecode3)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16161 }
16162 arg3 = static_cast< bool >(val3);
16163 }
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
16171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16172 }
16173 return resultobj;
16174fail:
16175 return NULL;
16176}
16177
16178
16179SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj = 0;
16181 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16182 wxString const &arg2_defvalue = wxPyEmptyString ;
16183 wxString *arg2 = (wxString *) &arg2_defvalue ;
16184 bool result;
16185 void *argp1 = 0 ;
16186 int res1 = 0 ;
16187 bool temp2 = false ;
16188 PyObject * obj0 = 0 ;
16189 PyObject * obj1 = 0 ;
16190 char * kwnames[] = {
16191 (char *) "self",(char *) "facename", NULL
16192 };
16193
16194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16196 if (!SWIG_IsOK(res1)) {
16197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16198 }
16199 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16200 if (obj1) {
093d3ff1 16201 {
554f62e9
RD
16202 arg2 = wxString_in_helper(obj1);
16203 if (arg2 == NULL) SWIG_fail;
16204 temp2 = true;
093d3ff1 16205 }
554f62e9
RD
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16215 }
16216 {
16217 if (temp2)
16218 delete arg2;
16219 }
16220 return resultobj;
16221fail:
16222 {
16223 if (temp2)
16224 delete arg2;
16225 }
16226 return NULL;
d55e5bfc
RD
16227}
16228
16229
554f62e9
RD
16230SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *resultobj = 0;
554f62e9 16232 PyObject *result = 0 ;
554f62e9 16233
704eda0c 16234 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16235 {
16236 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16237 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16238 wxPyEndAllowThreads(__tstate);
16239 if (PyErr_Occurred()) SWIG_fail;
16240 }
16241 resultobj = result;
16242 return resultobj;
16243fail:
16244 return NULL;
d55e5bfc
RD
16245}
16246
16247
554f62e9
RD
16248SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16249 PyObject *resultobj = 0;
554f62e9 16250 PyObject *result = 0 ;
554f62e9 16251
704eda0c 16252 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16253 {
16254 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16255 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 resultobj = result;
16260 return resultobj;
16261fail:
16262 return NULL;
d55e5bfc
RD
16263}
16264
16265
704eda0c
RD
16266SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = 0;
16268 wxString *arg1 = 0 ;
16269 bool result;
16270 bool temp1 = false ;
16271 PyObject * obj0 = 0 ;
16272 char * kwnames[] = {
16273 (char *) "str", NULL
16274 };
16275
16276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16277 {
16278 arg1 = wxString_in_helper(obj0);
16279 if (arg1 == NULL) SWIG_fail;
16280 temp1 = true;
16281 }
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 {
16289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16290 }
16291 {
16292 if (temp1)
16293 delete arg1;
16294 }
16295 return resultobj;
16296fail:
16297 {
16298 if (temp1)
16299 delete arg1;
16300 }
16301 return NULL;
16302}
16303
16304
554f62e9
RD
16305SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16306 PyObject *obj;
16307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16308 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16309 return SWIG_Py_Void();
5e483524
RD
16310}
16311
554f62e9
RD
16312SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16313 return SWIG_Python_InitShadowInstance(args);
16314}
5e483524 16315
554f62e9
RD
16316SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16317 PyObject *resultobj = 0;
16318 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16319 int arg2 ;
16320 void *argp1 = 0 ;
16321 int res1 = 0 ;
16322 int val2 ;
16323 int ecode2 = 0 ;
16324 PyObject *swig_obj[2] ;
16325
16326 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16328 if (!SWIG_IsOK(res1)) {
16329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16330 }
16331 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16332 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16333 if (!SWIG_IsOK(ecode2)) {
16334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16335 }
16336 arg2 = static_cast< int >(val2);
16337 if (arg1) (arg1)->Language = arg2;
16338
16339 resultobj = SWIG_Py_Void();
16340 return resultobj;
16341fail:
16342 return NULL;
d55e5bfc
RD
16343}
16344
16345
554f62e9
RD
16346SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16347 PyObject *resultobj = 0;
16348 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16349 int result;
16350 void *argp1 = 0 ;
16351 int res1 = 0 ;
16352 PyObject *swig_obj[1] ;
16353
16354 if (!args) SWIG_fail;
16355 swig_obj[0] = args;
16356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16357 if (!SWIG_IsOK(res1)) {
16358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16359 }
16360 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16361 result = (int) ((arg1)->Language);
16362 resultobj = SWIG_From_int(static_cast< int >(result));
16363 return resultobj;
16364fail:
16365 return NULL;
16366}
16367
16368
16369SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16370 PyObject *resultobj = 0;
16371 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16372 wxString *arg2 = (wxString *) 0 ;
16373 void *argp1 = 0 ;
16374 int res1 = 0 ;
16375 bool temp2 = false ;
16376 PyObject *swig_obj[2] ;
16377
16378 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16380 if (!SWIG_IsOK(res1)) {
16381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16382 }
16383 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16384 {
16385 arg2 = wxString_in_helper(swig_obj[1]);
16386 if (arg2 == NULL) SWIG_fail;
16387 temp2 = true;
16388 }
16389 if (arg1) (arg1)->CanonicalName = *arg2;
16390
16391 resultobj = SWIG_Py_Void();
16392 {
16393 if (temp2)
16394 delete arg2;
16395 }
16396 return resultobj;
16397fail:
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return NULL;
d55e5bfc
RD
16403}
16404
16405
554f62e9
RD
16406SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16409 wxString *result = 0 ;
16410 void *argp1 = 0 ;
16411 int res1 = 0 ;
16412 PyObject *swig_obj[1] ;
16413
16414 if (!args) SWIG_fail;
16415 swig_obj[0] = args;
16416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16419 }
16420 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16421 result = (wxString *)& ((arg1)->CanonicalName);
16422 {
16423#if wxUSE_UNICODE
16424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16425#else
16426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16427#endif
16428 }
16429 return resultobj;
16430fail:
16431 return NULL;
d55e5bfc
RD
16432}
16433
16434
554f62e9
RD
16435SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16436 PyObject *resultobj = 0;
16437 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16438 wxString *arg2 = (wxString *) 0 ;
16439 void *argp1 = 0 ;
16440 int res1 = 0 ;
16441 bool temp2 = false ;
16442 PyObject *swig_obj[2] ;
16443
16444 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16446 if (!SWIG_IsOK(res1)) {
16447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16448 }
16449 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16450 {
16451 arg2 = wxString_in_helper(swig_obj[1]);
16452 if (arg2 == NULL) SWIG_fail;
16453 temp2 = true;
16454 }
16455 if (arg1) (arg1)->Description = *arg2;
16456
16457 resultobj = SWIG_Py_Void();
16458 {
16459 if (temp2)
16460 delete arg2;
16461 }
16462 return resultobj;
16463fail:
16464 {
16465 if (temp2)
16466 delete arg2;
16467 }
16468 return NULL;
d55e5bfc
RD
16469}
16470
16471
554f62e9
RD
16472SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16473 PyObject *resultobj = 0;
16474 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16475 wxString *result = 0 ;
16476 void *argp1 = 0 ;
16477 int res1 = 0 ;
16478 PyObject *swig_obj[1] ;
16479
16480 if (!args) SWIG_fail;
16481 swig_obj[0] = args;
16482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16483 if (!SWIG_IsOK(res1)) {
16484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16485 }
16486 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16487 result = (wxString *)& ((arg1)->Description);
16488 {
16489#if wxUSE_UNICODE
16490 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16491#else
16492 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16493#endif
16494 }
16495 return resultobj;
16496fail:
16497 return NULL;
16498}
16499
16500
16501SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16502 PyObject *obj;
16503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16504 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16505 return SWIG_Py_Void();
16506}
16507
16508SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 int arg1 = (int) -1 ;
16511 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16512 wxLocale *result = 0 ;
16513 int val1 ;
16514 int ecode1 = 0 ;
16515 int val2 ;
16516 int ecode2 = 0 ;
16517 PyObject * obj0 = 0 ;
16518 PyObject * obj1 = 0 ;
16519 char * kwnames[] = {
16520 (char *) "language",(char *) "flags", NULL
16521 };
16522
16523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16524 if (obj0) {
16525 ecode1 = SWIG_AsVal_int(obj0, &val1);
16526 if (!SWIG_IsOK(ecode1)) {
16527 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16528 }
16529 arg1 = static_cast< int >(val1);
16530 }
16531 if (obj1) {
16532 ecode2 = SWIG_AsVal_int(obj1, &val2);
16533 if (!SWIG_IsOK(ecode2)) {
16534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16535 }
16536 arg2 = static_cast< int >(val2);
16537 }
16538 {
16539 PyThreadState* __tstate = wxPyBeginAllowThreads();
16540 result = (wxLocale *)new_wxLocale(arg1,arg2);
16541 wxPyEndAllowThreads(__tstate);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16545 return resultobj;
16546fail:
16547 return NULL;
d55e5bfc
RD
16548}
16549
16550
554f62e9
RD
16551SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16552 PyObject *resultobj = 0;
16553 wxLocale *arg1 = (wxLocale *) 0 ;
16554 void *argp1 = 0 ;
16555 int res1 = 0 ;
16556 PyObject *swig_obj[1] ;
16557
16558 if (!args) SWIG_fail;
16559 swig_obj[0] = args;
16560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16561 if (!SWIG_IsOK(res1)) {
16562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16563 }
16564 arg1 = reinterpret_cast< wxLocale * >(argp1);
16565 {
16566 PyThreadState* __tstate = wxPyBeginAllowThreads();
16567 delete arg1;
d55e5bfc 16568
554f62e9
RD
16569 wxPyEndAllowThreads(__tstate);
16570 if (PyErr_Occurred()) SWIG_fail;
16571 }
16572 resultobj = SWIG_Py_Void();
16573 return resultobj;
16574fail:
16575 return NULL;
16576}
16577
16578
16579SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16580 PyObject *resultobj = 0;
16581 wxLocale *arg1 = (wxLocale *) 0 ;
16582 wxString *arg2 = 0 ;
16583 wxString const &arg3_defvalue = wxPyEmptyString ;
16584 wxString *arg3 = (wxString *) &arg3_defvalue ;
16585 wxString const &arg4_defvalue = wxPyEmptyString ;
16586 wxString *arg4 = (wxString *) &arg4_defvalue ;
16587 bool arg5 = (bool) true ;
16588 bool arg6 = (bool) false ;
16589 bool result;
16590 void *argp1 = 0 ;
16591 int res1 = 0 ;
16592 bool temp2 = false ;
16593 bool temp3 = false ;
16594 bool temp4 = false ;
16595 bool val5 ;
16596 int ecode5 = 0 ;
16597 bool val6 ;
16598 int ecode6 = 0 ;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 PyObject * obj2 = 0 ;
16602 PyObject * obj3 = 0 ;
16603 PyObject * obj4 = 0 ;
16604 PyObject * obj5 = 0 ;
16605 char * kwnames[] = {
16606 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16607 };
16608
16609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16611 if (!SWIG_IsOK(res1)) {
16612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16613 }
16614 arg1 = reinterpret_cast< wxLocale * >(argp1);
16615 {
16616 arg2 = wxString_in_helper(obj1);
16617 if (arg2 == NULL) SWIG_fail;
16618 temp2 = true;
16619 }
16620 if (obj2) {
093d3ff1 16621 {
554f62e9
RD
16622 arg3 = wxString_in_helper(obj2);
16623 if (arg3 == NULL) SWIG_fail;
16624 temp3 = true;
093d3ff1 16625 }
554f62e9
RD
16626 }
16627 if (obj3) {
d55e5bfc 16628 {
554f62e9
RD
16629 arg4 = wxString_in_helper(obj3);
16630 if (arg4 == NULL) SWIG_fail;
16631 temp4 = true;
d55e5bfc 16632 }
554f62e9
RD
16633 }
16634 if (obj4) {
16635 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16636 if (!SWIG_IsOK(ecode5)) {
16637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16638 }
16639 arg5 = static_cast< bool >(val5);
16640 }
16641 if (obj5) {
16642 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16643 if (!SWIG_IsOK(ecode6)) {
16644 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16645 }
16646 arg6 = static_cast< bool >(val6);
16647 }
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 {
16655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16656 }
16657 {
16658 if (temp2)
16659 delete arg2;
16660 }
16661 {
16662 if (temp3)
16663 delete arg3;
16664 }
16665 {
16666 if (temp4)
16667 delete arg4;
16668 }
16669 return resultobj;
16670fail:
16671 {
16672 if (temp2)
16673 delete arg2;
16674 }
16675 {
16676 if (temp3)
16677 delete arg3;
16678 }
16679 {
16680 if (temp4)
16681 delete arg4;
16682 }
16683 return NULL;
16684}
16685
16686
16687SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj = 0;
16689 wxLocale *arg1 = (wxLocale *) 0 ;
16690 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16691 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16692 bool result;
16693 void *argp1 = 0 ;
16694 int res1 = 0 ;
16695 int val2 ;
16696 int ecode2 = 0 ;
16697 int val3 ;
16698 int ecode3 = 0 ;
16699 PyObject * obj0 = 0 ;
16700 PyObject * obj1 = 0 ;
16701 PyObject * obj2 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "language",(char *) "flags", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16710 }
16711 arg1 = reinterpret_cast< wxLocale * >(argp1);
16712 if (obj1) {
16713 ecode2 = SWIG_AsVal_int(obj1, &val2);
16714 if (!SWIG_IsOK(ecode2)) {
16715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16716 }
16717 arg2 = static_cast< int >(val2);
16718 }
16719 if (obj2) {
16720 ecode3 = SWIG_AsVal_int(obj2, &val3);
16721 if (!SWIG_IsOK(ecode3)) {
16722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16723 }
16724 arg3 = static_cast< int >(val3);
16725 }
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16734 }
16735 return resultobj;
16736fail:
16737 return NULL;
d55e5bfc
RD
16738}
16739
16740
554f62e9
RD
16741SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16742 PyObject *resultobj = 0;
16743 int result;
16744
16745 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (int)wxLocale::GetSystemLanguage();
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_From_int(static_cast< int >(result));
16753 return resultobj;
16754fail:
16755 return NULL;
d55e5bfc
RD
16756}
16757
16758
554f62e9
RD
16759SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16760 PyObject *resultobj = 0;
16761 wxFontEncoding result;
16762
16763 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 resultobj = SWIG_From_int(static_cast< int >(result));
16771 return resultobj;
16772fail:
16773 return NULL;
d55e5bfc
RD
16774}
16775
16776
554f62e9
RD
16777SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16778 PyObject *resultobj = 0;
16779 wxString result;
16780
16781 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16782 {
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
16784 result = wxLocale::GetSystemEncodingName();
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
16788 {
16789#if wxUSE_UNICODE
16790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16791#else
16792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16793#endif
16794 }
16795 return resultobj;
16796fail:
16797 return NULL;
d55e5bfc
RD
16798}
16799
16800
554f62e9
RD
16801SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16802 PyObject *resultobj = 0;
16803 wxLocale *arg1 = (wxLocale *) 0 ;
16804 bool result;
16805 void *argp1 = 0 ;
16806 int res1 = 0 ;
16807 PyObject *swig_obj[1] ;
16808
16809 if (!args) SWIG_fail;
16810 swig_obj[0] = args;
16811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxLocale * >(argp1);
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (bool)((wxLocale const *)arg1)->IsOk();
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 {
16823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16824 }
16825 return resultobj;
16826fail:
16827 return NULL;
d55e5bfc
RD
16828}
16829
16830
554f62e9
RD
16831SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16832 PyObject *resultobj = 0;
16833 wxLocale *arg1 = (wxLocale *) 0 ;
16834 wxString result;
16835 void *argp1 = 0 ;
16836 int res1 = 0 ;
16837 PyObject *swig_obj[1] ;
16838
16839 if (!args) SWIG_fail;
16840 swig_obj[0] = args;
16841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16842 if (!SWIG_IsOK(res1)) {
16843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16844 }
16845 arg1 = reinterpret_cast< wxLocale * >(argp1);
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 result = ((wxLocale const *)arg1)->GetLocale();
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 {
16853#if wxUSE_UNICODE
16854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16855#else
16856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16857#endif
16858 }
16859 return resultobj;
16860fail:
16861 return NULL;
d55e5bfc
RD
16862}
16863
16864
554f62e9
RD
16865SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16866 PyObject *resultobj = 0;
16867 wxLocale *arg1 = (wxLocale *) 0 ;
16868 int result;
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 PyObject *swig_obj[1] ;
16872
16873 if (!args) SWIG_fail;
16874 swig_obj[0] = args;
16875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxLocale * >(argp1);
16880 {
16881 PyThreadState* __tstate = wxPyBeginAllowThreads();
16882 result = (int)((wxLocale const *)arg1)->GetLanguage();
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 resultobj = SWIG_From_int(static_cast< int >(result));
16887 return resultobj;
16888fail:
16889 return NULL;
d55e5bfc
RD
16890}
16891
16892
554f62e9
RD
16893SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16894 PyObject *resultobj = 0;
16895 wxLocale *arg1 = (wxLocale *) 0 ;
16896 wxString result;
16897 void *argp1 = 0 ;
16898 int res1 = 0 ;
16899 PyObject *swig_obj[1] ;
16900
16901 if (!args) SWIG_fail;
16902 swig_obj[0] = args;
16903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16904 if (!SWIG_IsOK(res1)) {
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16906 }
16907 arg1 = reinterpret_cast< wxLocale * >(argp1);
16908 {
16909 PyThreadState* __tstate = wxPyBeginAllowThreads();
16910 result = ((wxLocale const *)arg1)->GetSysName();
16911 wxPyEndAllowThreads(__tstate);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 {
16915#if wxUSE_UNICODE
16916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16917#else
16918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16919#endif
16920 }
16921 return resultobj;
16922fail:
16923 return NULL;
d55e5bfc
RD
16924}
16925
16926
554f62e9
RD
16927SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16928 PyObject *resultobj = 0;
16929 wxLocale *arg1 = (wxLocale *) 0 ;
16930 wxString result;
16931 void *argp1 = 0 ;
16932 int res1 = 0 ;
16933 PyObject *swig_obj[1] ;
16934
16935 if (!args) SWIG_fail;
16936 swig_obj[0] = args;
16937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16940 }
16941 arg1 = reinterpret_cast< wxLocale * >(argp1);
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = ((wxLocale const *)arg1)->GetCanonicalName();
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 {
093d3ff1 16949#if wxUSE_UNICODE
554f62e9 16950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16951#else
554f62e9 16952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16953#endif
554f62e9
RD
16954 }
16955 return resultobj;
16956fail:
16957 return NULL;
d55e5bfc
RD
16958}
16959
16960
554f62e9
RD
16961SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16962 PyObject *resultobj = 0;
16963 wxString *arg1 = 0 ;
16964 bool temp1 = false ;
16965 PyObject * obj0 = 0 ;
16966 char * kwnames[] = {
16967 (char *) "prefix", NULL
16968 };
16969
16970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16971 {
16972 arg1 = wxString_in_helper(obj0);
16973 if (arg1 == NULL) SWIG_fail;
16974 temp1 = true;
16975 }
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16979 wxPyEndAllowThreads(__tstate);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 }
16982 resultobj = SWIG_Py_Void();
16983 {
16984 if (temp1)
16985 delete arg1;
16986 }
16987 return resultobj;
16988fail:
16989 {
16990 if (temp1)
16991 delete arg1;
16992 }
16993 return NULL;
16994}
16995
16996
16997SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16998 PyObject *resultobj = 0;
16999 wxLocale *arg1 = (wxLocale *) 0 ;
17000 wxString *arg2 = 0 ;
17001 bool result;
17002 void *argp1 = 0 ;
17003 int res1 = 0 ;
17004 bool temp2 = false ;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 char * kwnames[] = {
17008 (char *) "self",(char *) "szDomain", NULL
17009 };
17010
17011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17013 if (!SWIG_IsOK(res1)) {
17014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17015 }
17016 arg1 = reinterpret_cast< wxLocale * >(argp1);
17017 {
17018 arg2 = wxString_in_helper(obj1);
17019 if (arg2 == NULL) SWIG_fail;
17020 temp2 = true;
17021 }
17022 {
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17030 }
17031 {
17032 if (temp2)
17033 delete arg2;
17034 }
17035 return resultobj;
17036fail:
17037 {
17038 if (temp2)
17039 delete arg2;
17040 }
17041 return NULL;
17042}
17043
17044
33d6fd3b
RD
17045SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj = 0;
17047 int arg1 ;
17048 bool result;
17049 int val1 ;
17050 int ecode1 = 0 ;
17051 PyObject * obj0 = 0 ;
17052 char * kwnames[] = {
17053 (char *) "lang", NULL
17054 };
17055
17056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17057 ecode1 = SWIG_AsVal_int(obj0, &val1);
17058 if (!SWIG_IsOK(ecode1)) {
17059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17060 }
17061 arg1 = static_cast< int >(val1);
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (bool)wxLocale::IsAvailable(arg1);
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 {
17069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17070 }
17071 return resultobj;
17072fail:
17073 return NULL;
17074}
17075
17076
554f62e9
RD
17077SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj = 0;
17079 wxLocale *arg1 = (wxLocale *) 0 ;
17080 wxString *arg2 = 0 ;
17081 bool result;
17082 void *argp1 = 0 ;
17083 int res1 = 0 ;
17084 bool temp2 = false ;
17085 PyObject * obj0 = 0 ;
17086 PyObject * obj1 = 0 ;
17087 char * kwnames[] = {
17088 (char *) "self",(char *) "szDomain", NULL
17089 };
17090
17091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17093 if (!SWIG_IsOK(res1)) {
17094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17095 }
17096 arg1 = reinterpret_cast< wxLocale * >(argp1);
17097 {
17098 arg2 = wxString_in_helper(obj1);
17099 if (arg2 == NULL) SWIG_fail;
17100 temp2 = true;
17101 }
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17105 wxPyEndAllowThreads(__tstate);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
17108 {
17109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17110 }
17111 {
17112 if (temp2)
17113 delete arg2;
17114 }
17115 return resultobj;
17116fail:
17117 {
17118 if (temp2)
17119 delete arg2;
17120 }
17121 return NULL;
d55e5bfc
RD
17122}
17123
17124
554f62e9
RD
17125SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17126 PyObject *resultobj = 0;
17127 int arg1 ;
17128 wxLanguageInfo *result = 0 ;
17129 int val1 ;
17130 int ecode1 = 0 ;
17131 PyObject * obj0 = 0 ;
17132 char * kwnames[] = {
17133 (char *) "lang", NULL
17134 };
17135
17136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17137 ecode1 = SWIG_AsVal_int(obj0, &val1);
17138 if (!SWIG_IsOK(ecode1)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17140 }
17141 arg1 = static_cast< int >(val1);
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17149 return resultobj;
17150fail:
17151 return NULL;
17152}
17153
17154
17155SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj = 0;
17157 int arg1 ;
17158 wxString result;
17159 int val1 ;
17160 int ecode1 = 0 ;
17161 PyObject * obj0 = 0 ;
17162 char * kwnames[] = {
17163 (char *) "lang", NULL
17164 };
17165
17166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17167 ecode1 = SWIG_AsVal_int(obj0, &val1);
17168 if (!SWIG_IsOK(ecode1)) {
17169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17170 }
17171 arg1 = static_cast< int >(val1);
17172 {
17173 PyThreadState* __tstate = wxPyBeginAllowThreads();
17174 result = wxLocale::GetLanguageName(arg1);
17175 wxPyEndAllowThreads(__tstate);
17176 if (PyErr_Occurred()) SWIG_fail;
17177 }
17178 {
17179#if wxUSE_UNICODE
17180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17181#else
17182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17183#endif
17184 }
17185 return resultobj;
17186fail:
17187 return NULL;
093d3ff1
RD
17188}
17189
17190
554f62e9
RD
17191SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = 0;
17193 wxString *arg1 = 0 ;
17194 wxLanguageInfo *result = 0 ;
17195 bool temp1 = false ;
17196 PyObject * obj0 = 0 ;
17197 char * kwnames[] = {
17198 (char *) "locale", NULL
17199 };
17200
17201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17202 {
17203 arg1 = wxString_in_helper(obj0);
17204 if (arg1 == NULL) SWIG_fail;
17205 temp1 = true;
17206 }
17207 {
17208 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17209 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17210 wxPyEndAllowThreads(__tstate);
17211 if (PyErr_Occurred()) SWIG_fail;
17212 }
17213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17214 {
17215 if (temp1)
17216 delete arg1;
17217 }
17218 return resultobj;
17219fail:
17220 {
17221 if (temp1)
17222 delete arg1;
17223 }
17224 return NULL;
17225}
17226
17227
17228SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17229 PyObject *resultobj = 0;
17230 wxLanguageInfo *arg1 = 0 ;
17231 void *argp1 = 0 ;
17232 int res1 = 0 ;
17233 PyObject * obj0 = 0 ;
17234 char * kwnames[] = {
17235 (char *) "info", NULL
17236 };
17237
17238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17239 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17240 if (!SWIG_IsOK(res1)) {
17241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17242 }
17243 if (!argp1) {
17244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17245 }
17246 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_Py_Void();
17254 return resultobj;
17255fail:
17256 return NULL;
17257}
17258
17259
17260SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj = 0;
17262 wxLocale *arg1 = (wxLocale *) 0 ;
17263 wxString *arg2 = 0 ;
17264 wxString const &arg3_defvalue = wxPyEmptyString ;
17265 wxString *arg3 = (wxString *) &arg3_defvalue ;
17266 wxString result;
17267 void *argp1 = 0 ;
17268 int res1 = 0 ;
17269 bool temp2 = false ;
17270 bool temp3 = false ;
17271 PyObject * obj0 = 0 ;
17272 PyObject * obj1 = 0 ;
17273 PyObject * obj2 = 0 ;
17274 char * kwnames[] = {
17275 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17276 };
17277
17278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17280 if (!SWIG_IsOK(res1)) {
17281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17282 }
17283 arg1 = reinterpret_cast< wxLocale * >(argp1);
17284 {
17285 arg2 = wxString_in_helper(obj1);
17286 if (arg2 == NULL) SWIG_fail;
17287 temp2 = true;
17288 }
17289 if (obj2) {
17290 {
17291 arg3 = wxString_in_helper(obj2);
17292 if (arg3 == NULL) SWIG_fail;
17293 temp3 = true;
17294 }
17295 }
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 {
17303#if wxUSE_UNICODE
17304 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17305#else
17306 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17307#endif
17308 }
17309 {
17310 if (temp2)
17311 delete arg2;
17312 }
17313 {
17314 if (temp3)
17315 delete arg3;
17316 }
17317 return resultobj;
17318fail:
17319 {
17320 if (temp2)
17321 delete arg2;
17322 }
17323 {
17324 if (temp3)
17325 delete arg3;
17326 }
17327 return NULL;
17328}
17329
17330
17331SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17332 PyObject *resultobj = 0;
17333 wxLocale *arg1 = (wxLocale *) 0 ;
17334 wxString *result = 0 ;
17335 void *argp1 = 0 ;
17336 int res1 = 0 ;
17337 PyObject *swig_obj[1] ;
17338
17339 if (!args) SWIG_fail;
17340 swig_obj[0] = args;
17341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17342 if (!SWIG_IsOK(res1)) {
17343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17344 }
17345 arg1 = reinterpret_cast< wxLocale * >(argp1);
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 {
17349 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17350 result = (wxString *) &_result_ref;
17351 }
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 {
17356#if wxUSE_UNICODE
17357 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17358#else
17359 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17360#endif
17361 }
17362 return resultobj;
17363fail:
17364 return NULL;
17365}
17366
17367
17368SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17369 PyObject *obj;
17370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17371 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17372 return SWIG_Py_Void();
17373}
17374
17375SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17376 return SWIG_Python_InitShadowInstance(args);
17377}
17378
17379SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj = 0;
17381 int arg1 = (int) -1 ;
17382 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17383 wxPyLocale *result = 0 ;
17384 int val1 ;
17385 int ecode1 = 0 ;
17386 int val2 ;
17387 int ecode2 = 0 ;
17388 PyObject * obj0 = 0 ;
17389 PyObject * obj1 = 0 ;
17390 char * kwnames[] = {
17391 (char *) "language",(char *) "flags", NULL
17392 };
17393
17394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17395 if (obj0) {
17396 ecode1 = SWIG_AsVal_int(obj0, &val1);
17397 if (!SWIG_IsOK(ecode1)) {
17398 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17399 }
17400 arg1 = static_cast< int >(val1);
17401 }
17402 if (obj1) {
17403 ecode2 = SWIG_AsVal_int(obj1, &val2);
17404 if (!SWIG_IsOK(ecode2)) {
17405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17406 }
17407 arg2 = static_cast< int >(val2);
17408 }
17409 {
17410 PyThreadState* __tstate = wxPyBeginAllowThreads();
17411 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17416 return resultobj;
17417fail:
17418 return NULL;
17419}
17420
17421
17422SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17423 PyObject *resultobj = 0;
17424 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17425 void *argp1 = 0 ;
17426 int res1 = 0 ;
17427 PyObject *swig_obj[1] ;
17428
17429 if (!args) SWIG_fail;
17430 swig_obj[0] = args;
17431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17432 if (!SWIG_IsOK(res1)) {
17433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17434 }
17435 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 delete arg1;
17439
554f62e9
RD
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
fc46b7f3 17443 resultobj = SWIG_Py_Void();
554f62e9
RD
17444 return resultobj;
17445fail:
554f62e9 17446 return NULL;
d55e5bfc
RD
17447}
17448
17449
fc46b7f3 17450SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17451 PyObject *resultobj = 0;
fc46b7f3
RD
17452 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17453 PyObject *arg2 = (PyObject *) 0 ;
17454 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17455 void *argp1 = 0 ;
17456 int res1 = 0 ;
17457 PyObject * obj0 = 0 ;
fc46b7f3
RD
17458 PyObject * obj1 = 0 ;
17459 PyObject * obj2 = 0 ;
554f62e9 17460 char * kwnames[] = {
fc46b7f3 17461 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17462 };
17463
fc46b7f3
RD
17464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17466 if (!SWIG_IsOK(res1)) {
fc46b7f3 17467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17468 }
fc46b7f3
RD
17469 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17470 arg2 = obj1;
17471 arg3 = obj2;
554f62e9
RD
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17474 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 resultobj = SWIG_Py_Void();
17479 return resultobj;
17480fail:
17481 return NULL;
17482}
17483
17484
fc46b7f3 17485SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17486 PyObject *resultobj = 0;
fc46b7f3
RD
17487 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17488 wxChar *arg2 = (wxChar *) 0 ;
17489 wxChar *arg3 = (wxChar *) NULL ;
17490 wxChar *result = 0 ;
554f62e9
RD
17491 void *argp1 = 0 ;
17492 int res1 = 0 ;
fc46b7f3
RD
17493 void *argp2 = 0 ;
17494 int res2 = 0 ;
17495 void *argp3 = 0 ;
17496 int res3 = 0 ;
554f62e9
RD
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 PyObject * obj2 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17502 };
17503
fc46b7f3
RD
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17506 if (!SWIG_IsOK(res1)) {
fc46b7f3 17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17508 }
fc46b7f3
RD
17509 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17511 if (!SWIG_IsOK(res2)) {
17512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17513 }
fc46b7f3 17514 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17515 if (obj2) {
fc46b7f3
RD
17516 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17517 if (!SWIG_IsOK(res3)) {
17518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17519 }
fc46b7f3 17520 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17521 }
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17524 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
fc46b7f3 17528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17529 return resultobj;
17530fail:
554f62e9 17531 return NULL;
d55e5bfc
RD
17532}
17533
17534
fc46b7f3 17535SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17536 PyObject *resultobj = 0;
fc46b7f3
RD
17537 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17538 wxChar *arg2 = (wxChar *) 0 ;
17539 wxChar *arg3 = (wxChar *) 0 ;
17540 size_t arg4 ;
17541 wxChar *arg5 = (wxChar *) NULL ;
17542 wxChar *result = 0 ;
554f62e9
RD
17543 void *argp1 = 0 ;
17544 int res1 = 0 ;
fc46b7f3
RD
17545 void *argp2 = 0 ;
17546 int res2 = 0 ;
17547 void *argp3 = 0 ;
17548 int res3 = 0 ;
17549 size_t val4 ;
17550 int ecode4 = 0 ;
17551 void *argp5 = 0 ;
17552 int res5 = 0 ;
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
17555 PyObject * obj2 = 0 ;
17556 PyObject * obj3 = 0 ;
17557 PyObject * obj4 = 0 ;
17558 char * kwnames[] = {
17559 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17560 };
554f62e9 17561
fc46b7f3
RD
17562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17564 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17566 }
17567 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17569 if (!SWIG_IsOK(res2)) {
17570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17571 }
17572 arg2 = reinterpret_cast< wxChar * >(argp2);
17573 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17574 if (!SWIG_IsOK(res3)) {
17575 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17576 }
17577 arg3 = reinterpret_cast< wxChar * >(argp3);
17578 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17579 if (!SWIG_IsOK(ecode4)) {
17580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17581 }
17582 arg4 = static_cast< size_t >(val4);
17583 if (obj4) {
17584 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17585 if (!SWIG_IsOK(res5)) {
17586 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17587 }
17588 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17589 }
554f62e9
RD
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17592 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17593 wxPyEndAllowThreads(__tstate);
17594 if (PyErr_Occurred()) SWIG_fail;
17595 }
fc46b7f3 17596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17597 return resultobj;
17598fail:
17599 return NULL;
d55e5bfc
RD
17600}
17601
17602
fc46b7f3 17603SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17604 PyObject *obj;
17605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17606 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17607 return SWIG_Py_Void();
d55e5bfc
RD
17608}
17609
fc46b7f3 17610SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17611 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17612}
17613
554f62e9
RD
17614SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17615 PyObject *resultobj = 0;
17616 wxLocale *result = 0 ;
17617
17618 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (wxLocale *)wxGetLocale();
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17626 return resultobj;
17627fail:
17628 return NULL;
d55e5bfc
RD
17629}
17630
17631
554f62e9
RD
17632SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17633 PyObject *resultobj = 0;
17634 wxString *arg1 = 0 ;
17635 wxString result;
17636 bool temp1 = false ;
17637
17638 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17639 {
17640 arg1 = wxString_in_helper(swig_obj[0]);
17641 if (arg1 == NULL) SWIG_fail;
17642 temp1 = true;
17643 }
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = wxGetTranslation((wxString const &)*arg1);
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 {
093d3ff1 17651#if wxUSE_UNICODE
554f62e9 17652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17653#else
554f62e9 17654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17655#endif
554f62e9
RD
17656 }
17657 {
17658 if (temp1)
17659 delete arg1;
17660 }
17661 return resultobj;
17662fail:
17663 {
17664 if (temp1)
17665 delete arg1;
17666 }
17667 return NULL;
d55e5bfc
RD
17668}
17669
17670
554f62e9 17671SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17672 PyObject *resultobj = 0;
17673 wxString *arg1 = 0 ;
17674 wxString *arg2 = 0 ;
17675 wxString result;
17676 bool temp1 = false ;
17677 bool temp2 = false ;
17678
17679 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17680 {
17681 arg1 = wxString_in_helper(swig_obj[0]);
17682 if (arg1 == NULL) SWIG_fail;
17683 temp1 = true;
17684 }
17685 {
17686 arg2 = wxString_in_helper(swig_obj[1]);
17687 if (arg2 == NULL) SWIG_fail;
17688 temp2 = true;
17689 }
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 {
17697#if wxUSE_UNICODE
17698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17699#else
17700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17701#endif
17702 }
17703 {
17704 if (temp1)
17705 delete arg1;
17706 }
17707 {
17708 if (temp2)
17709 delete arg2;
17710 }
17711 return resultobj;
17712fail:
17713 {
17714 if (temp1)
17715 delete arg1;
17716 }
17717 {
17718 if (temp2)
17719 delete arg2;
17720 }
17721 return NULL;
17722}
17723
17724
17725SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17726 PyObject *resultobj = 0;
17727 wxString *arg1 = 0 ;
17728 wxString *arg2 = 0 ;
17729 size_t arg3 ;
17730 wxString result;
17731 bool temp1 = false ;
17732 bool temp2 = false ;
17733 size_t val3 ;
17734 int ecode3 = 0 ;
17735
17736 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17737 {
17738 arg1 = wxString_in_helper(swig_obj[0]);
17739 if (arg1 == NULL) SWIG_fail;
17740 temp1 = true;
17741 }
17742 {
17743 arg2 = wxString_in_helper(swig_obj[1]);
17744 if (arg2 == NULL) SWIG_fail;
17745 temp2 = true;
17746 }
17747 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17748 if (!SWIG_IsOK(ecode3)) {
17749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17750 }
17751 arg3 = static_cast< size_t >(val3);
17752 {
17753 PyThreadState* __tstate = wxPyBeginAllowThreads();
17754 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17755 wxPyEndAllowThreads(__tstate);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
17758 {
093d3ff1 17759#if wxUSE_UNICODE
554f62e9 17760 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17761#else
554f62e9 17762 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17763#endif
554f62e9
RD
17764 }
17765 {
17766 if (temp1)
17767 delete arg1;
17768 }
17769 {
17770 if (temp2)
17771 delete arg2;
17772 }
17773 return resultobj;
17774fail:
17775 {
17776 if (temp1)
17777 delete arg1;
17778 }
17779 {
17780 if (temp2)
17781 delete arg2;
17782 }
17783 return NULL;
d55e5bfc
RD
17784}
17785
17786
fc46b7f3
RD
17787SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17788 PyObject *resultobj = 0;
17789 wxString *arg1 = 0 ;
17790 wxString *arg2 = 0 ;
17791 size_t arg3 ;
17792 wxString *arg4 = 0 ;
17793 wxString result;
17794 bool temp1 = false ;
17795 bool temp2 = false ;
17796 size_t val3 ;
17797 int ecode3 = 0 ;
17798 bool temp4 = false ;
17799
17800 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17801 {
17802 arg1 = wxString_in_helper(swig_obj[0]);
17803 if (arg1 == NULL) SWIG_fail;
17804 temp1 = true;
17805 }
17806 {
17807 arg2 = wxString_in_helper(swig_obj[1]);
17808 if (arg2 == NULL) SWIG_fail;
17809 temp2 = true;
17810 }
17811 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17814 }
17815 arg3 = static_cast< size_t >(val3);
17816 {
17817 arg4 = wxString_in_helper(swig_obj[3]);
17818 if (arg4 == NULL) SWIG_fail;
17819 temp4 = true;
17820 }
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 {
17828#if wxUSE_UNICODE
17829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17830#else
17831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17832#endif
17833 }
17834 {
17835 if (temp1)
17836 delete arg1;
17837 }
17838 {
17839 if (temp2)
17840 delete arg2;
17841 }
17842 {
17843 if (temp4)
17844 delete arg4;
17845 }
17846 return resultobj;
17847fail:
17848 {
17849 if (temp1)
17850 delete arg1;
17851 }
17852 {
17853 if (temp2)
17854 delete arg2;
17855 }
17856 {
17857 if (temp4)
17858 delete arg4;
17859 }
17860 return NULL;
17861}
17862
17863
554f62e9
RD
17864SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17865 int argc;
fc46b7f3 17866 PyObject *argv[5];
554f62e9 17867
fc46b7f3 17868 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17869 --argc;
17870 if (argc == 1) {
17871 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17872 }
fc46b7f3 17873 if (argc == 2) {
554f62e9
RD
17874 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17875 }
fc46b7f3
RD
17876 if (argc == 3) {
17877 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17878 }
17879 if (argc == 4) {
17880 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17881 }
554f62e9
RD
17882
17883fail:
17884 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17885 return NULL;
d55e5bfc
RD
17886}
17887
17888
554f62e9
RD
17889SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17890 PyObject *resultobj = 0;
17891 wxEncodingConverter *result = 0 ;
17892
17893 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (wxEncodingConverter *)new wxEncodingConverter();
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17901 return resultobj;
17902fail:
17903 return NULL;
d55e5bfc
RD
17904}
17905
17906
554f62e9
RD
17907SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17908 PyObject *resultobj = 0;
17909 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 PyObject *swig_obj[1] ;
17913
17914 if (!args) SWIG_fail;
17915 swig_obj[0] = args;
17916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17917 if (!SWIG_IsOK(res1)) {
17918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17919 }
17920 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 delete arg1;
d55e5bfc 17924
554f62e9
RD
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 resultobj = SWIG_Py_Void();
17929 return resultobj;
17930fail:
17931 return NULL;
17932}
17933
17934
17935SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17936 PyObject *resultobj = 0;
17937 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17938 wxFontEncoding arg2 ;
17939 wxFontEncoding arg3 ;
17940 int arg4 = (int) wxCONVERT_STRICT ;
17941 bool result;
17942 void *argp1 = 0 ;
17943 int res1 = 0 ;
17944 int val2 ;
17945 int ecode2 = 0 ;
17946 int val3 ;
17947 int ecode3 = 0 ;
17948 int val4 ;
17949 int ecode4 = 0 ;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 PyObject * obj2 = 0 ;
17953 PyObject * obj3 = 0 ;
17954 char * kwnames[] = {
17955 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17956 };
17957
17958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17960 if (!SWIG_IsOK(res1)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17962 }
17963 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17964 ecode2 = SWIG_AsVal_int(obj1, &val2);
17965 if (!SWIG_IsOK(ecode2)) {
17966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17967 }
17968 arg2 = static_cast< wxFontEncoding >(val2);
17969 ecode3 = SWIG_AsVal_int(obj2, &val3);
17970 if (!SWIG_IsOK(ecode3)) {
17971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17972 }
17973 arg3 = static_cast< wxFontEncoding >(val3);
17974 if (obj3) {
17975 ecode4 = SWIG_AsVal_int(obj3, &val4);
17976 if (!SWIG_IsOK(ecode4)) {
17977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17978 }
17979 arg4 = static_cast< int >(val4);
17980 }
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17984 wxPyEndAllowThreads(__tstate);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 {
17988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17989 }
17990 return resultobj;
17991fail:
17992 return NULL;
17993}
17994
17995
17996SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj = 0;
17998 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17999 wxString *arg2 = 0 ;
18000 wxString result;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 bool temp2 = false ;
18004 PyObject * obj0 = 0 ;
18005 PyObject * obj1 = 0 ;
18006 char * kwnames[] = {
18007 (char *) "self",(char *) "input", NULL
18008 };
18009
18010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18012 if (!SWIG_IsOK(res1)) {
18013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18014 }
18015 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18016 {
18017 arg2 = wxString_in_helper(obj1);
18018 if (arg2 == NULL) SWIG_fail;
18019 temp2 = true;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = (arg1)->Convert((wxString const &)*arg2);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
d55e5bfc 18028#if wxUSE_UNICODE
554f62e9 18029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 18030#else
554f62e9 18031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 18032#endif
554f62e9
RD
18033 }
18034 {
18035 if (temp2)
18036 delete arg2;
18037 }
18038 return resultobj;
18039fail:
18040 {
18041 if (temp2)
18042 delete arg2;
18043 }
18044 return NULL;
18045}
18046
18047
18048SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxFontEncoding arg1 ;
18051 int arg2 = (int) wxPLATFORM_CURRENT ;
18052 wxFontEncodingArray result;
18053 int val1 ;
18054 int ecode1 = 0 ;
18055 int val2 ;
18056 int ecode2 = 0 ;
18057 PyObject * obj0 = 0 ;
18058 PyObject * obj1 = 0 ;
18059 char * kwnames[] = {
18060 (char *) "enc",(char *) "platform", NULL
18061 };
18062
18063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18064 ecode1 = SWIG_AsVal_int(obj0, &val1);
18065 if (!SWIG_IsOK(ecode1)) {
18066 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18067 }
18068 arg1 = static_cast< wxFontEncoding >(val1);
18069 if (obj1) {
18070 ecode2 = SWIG_AsVal_int(obj1, &val2);
18071 if (!SWIG_IsOK(ecode2)) {
18072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18073 }
18074 arg2 = static_cast< int >(val2);
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18079 wxPyEndAllowThreads(__tstate);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 {
18083 resultobj = PyList_New(0);
18084 for (size_t i=0; i < (&result)->GetCount(); i++) {
18085 PyObject* number = PyInt_FromLong((&result)->Item(i));
18086 PyList_Append(resultobj, number);
18087 Py_DECREF(number);
d55e5bfc 18088 }
554f62e9
RD
18089 }
18090 return resultobj;
18091fail:
18092 return NULL;
d55e5bfc
RD
18093}
18094
18095
554f62e9
RD
18096SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxFontEncoding arg1 ;
18099 wxFontEncodingArray result;
18100 int val1 ;
18101 int ecode1 = 0 ;
18102 PyObject * obj0 = 0 ;
18103 char * kwnames[] = {
18104 (char *) "enc", NULL
18105 };
18106
18107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18108 ecode1 = SWIG_AsVal_int(obj0, &val1);
18109 if (!SWIG_IsOK(ecode1)) {
18110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18111 }
18112 arg1 = static_cast< wxFontEncoding >(val1);
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = wxEncodingConverter::GetAllEquivalents(arg1);
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 {
18120 resultobj = PyList_New(0);
18121 for (size_t i=0; i < (&result)->GetCount(); i++) {
18122 PyObject* number = PyInt_FromLong((&result)->Item(i));
18123 PyList_Append(resultobj, number);
18124 Py_DECREF(number);
d55e5bfc 18125 }
554f62e9
RD
18126 }
18127 return resultobj;
18128fail:
18129 return NULL;
18130}
18131
18132
18133SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18134 PyObject *resultobj = 0;
18135 wxFontEncoding arg1 ;
18136 wxFontEncoding arg2 ;
18137 bool result;
18138 int val1 ;
18139 int ecode1 = 0 ;
18140 int val2 ;
18141 int ecode2 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "encIn",(char *) "encOut", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18149 ecode1 = SWIG_AsVal_int(obj0, &val1);
18150 if (!SWIG_IsOK(ecode1)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18152 }
18153 arg1 = static_cast< wxFontEncoding >(val1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18157 }
18158 arg2 = static_cast< wxFontEncoding >(val2);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18167 }
18168 return resultobj;
18169fail:
18170 return NULL;
d55e5bfc
RD
18171}
18172
18173
554f62e9
RD
18174SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18175 PyObject *obj;
18176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18177 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18178 return SWIG_Py_Void();
d55e5bfc
RD
18179}
18180
554f62e9
RD
18181SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18182 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18183}
18184
554f62e9
RD
18185SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18186 PyObject *resultobj = 0;
18187 wxDC *arg1 = (wxDC *) 0 ;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 PyObject *swig_obj[1] ;
18191
18192 if (!args) SWIG_fail;
18193 swig_obj[0] = args;
18194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18195 if (!SWIG_IsOK(res1)) {
18196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18197 }
18198 arg1 = reinterpret_cast< wxDC * >(argp1);
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 delete arg1;
d55e5bfc 18202
554f62e9
RD
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 resultobj = SWIG_Py_Void();
18207 return resultobj;
18208fail:
18209 return NULL;
18210}
18211
18212
18213SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj = 0;
18215 wxDC *arg1 = (wxDC *) 0 ;
18216 int arg2 ;
18217 int arg3 ;
18218 wxColour *arg4 = 0 ;
18219 int arg5 = (int) wxFLOOD_SURFACE ;
18220 bool result;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 int val2 ;
18224 int ecode2 = 0 ;
18225 int val3 ;
18226 int ecode3 = 0 ;
18227 wxColour temp4 ;
18228 int val5 ;
18229 int ecode5 = 0 ;
18230 PyObject * obj0 = 0 ;
18231 PyObject * obj1 = 0 ;
18232 PyObject * obj2 = 0 ;
18233 PyObject * obj3 = 0 ;
18234 PyObject * obj4 = 0 ;
18235 char * kwnames[] = {
18236 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18237 };
18238
18239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18241 if (!SWIG_IsOK(res1)) {
18242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18243 }
18244 arg1 = reinterpret_cast< wxDC * >(argp1);
18245 ecode2 = SWIG_AsVal_int(obj1, &val2);
18246 if (!SWIG_IsOK(ecode2)) {
18247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18248 }
18249 arg2 = static_cast< int >(val2);
18250 ecode3 = SWIG_AsVal_int(obj2, &val3);
18251 if (!SWIG_IsOK(ecode3)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18253 }
18254 arg3 = static_cast< int >(val3);
18255 {
18256 arg4 = &temp4;
18257 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18258 }
18259 if (obj4) {
18260 ecode5 = SWIG_AsVal_int(obj4, &val5);
18261 if (!SWIG_IsOK(ecode5)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18263 }
18264 arg5 = static_cast< int >(val5);
18265 }
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 {
18273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18274 }
18275 return resultobj;
18276fail:
18277 return NULL;
18278}
18279
18280
18281SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 wxPoint *arg2 = 0 ;
18285 wxColour *arg3 = 0 ;
18286 int arg4 = (int) wxFLOOD_SURFACE ;
18287 bool result;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 wxPoint temp2 ;
18291 wxColour temp3 ;
18292 int val4 ;
18293 int ecode4 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 PyObject * obj2 = 0 ;
18297 PyObject * obj3 = 0 ;
18298 char * kwnames[] = {
18299 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18300 };
18301
18302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18304 if (!SWIG_IsOK(res1)) {
18305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18306 }
18307 arg1 = reinterpret_cast< wxDC * >(argp1);
18308 {
18309 arg2 = &temp2;
18310 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18311 }
18312 {
18313 arg3 = &temp3;
18314 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18315 }
18316 if (obj3) {
18317 ecode4 = SWIG_AsVal_int(obj3, &val4);
18318 if (!SWIG_IsOK(ecode4)) {
18319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18320 }
18321 arg4 = static_cast< int >(val4);
18322 }
18323 {
18324 PyThreadState* __tstate = wxPyBeginAllowThreads();
18325 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18326 wxPyEndAllowThreads(__tstate);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 {
18330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18331 }
18332 return resultobj;
18333fail:
18334 return NULL;
18335}
18336
18337
18338SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj = 0;
18340 wxDC *arg1 = (wxDC *) 0 ;
18341 wxRect *arg2 = 0 ;
18342 wxColour *arg3 = 0 ;
18343 wxColour *arg4 = 0 ;
18344 wxPoint *arg5 = 0 ;
18345 void *argp1 = 0 ;
18346 int res1 = 0 ;
18347 wxRect temp2 ;
18348 wxColour temp3 ;
18349 wxColour temp4 ;
18350 wxPoint temp5 ;
18351 PyObject * obj0 = 0 ;
18352 PyObject * obj1 = 0 ;
18353 PyObject * obj2 = 0 ;
18354 PyObject * obj3 = 0 ;
18355 PyObject * obj4 = 0 ;
18356 char * kwnames[] = {
18357 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18358 };
18359
18360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18362 if (!SWIG_IsOK(res1)) {
18363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18364 }
18365 arg1 = reinterpret_cast< wxDC * >(argp1);
18366 {
18367 arg2 = &temp2;
18368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18369 }
18370 {
18371 arg3 = &temp3;
18372 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18373 }
18374 {
18375 arg4 = &temp4;
18376 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18377 }
18378 {
18379 arg5 = &temp5;
18380 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18381 }
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
18388 resultobj = SWIG_Py_Void();
18389 return resultobj;
18390fail:
18391 return NULL;
18392}
18393
18394
18395SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj = 0;
18397 wxDC *arg1 = (wxDC *) 0 ;
18398 wxRect *arg2 = 0 ;
18399 wxColour *arg3 = 0 ;
18400 wxColour *arg4 = 0 ;
18401 wxDirection arg5 = (wxDirection) wxEAST ;
18402 void *argp1 = 0 ;
18403 int res1 = 0 ;
18404 wxRect temp2 ;
18405 wxColour temp3 ;
18406 wxColour temp4 ;
18407 int val5 ;
18408 int ecode5 = 0 ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 PyObject * obj2 = 0 ;
18412 PyObject * obj3 = 0 ;
18413 PyObject * obj4 = 0 ;
18414 char * kwnames[] = {
18415 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18416 };
18417
18418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18420 if (!SWIG_IsOK(res1)) {
18421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18422 }
18423 arg1 = reinterpret_cast< wxDC * >(argp1);
18424 {
18425 arg2 = &temp2;
18426 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18427 }
18428 {
18429 arg3 = &temp3;
18430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18431 }
18432 {
18433 arg4 = &temp4;
18434 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18435 }
18436 if (obj4) {
18437 ecode5 = SWIG_AsVal_int(obj4, &val5);
18438 if (!SWIG_IsOK(ecode5)) {
18439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18440 }
18441 arg5 = static_cast< wxDirection >(val5);
18442 }
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_Py_Void();
18450 return resultobj;
18451fail:
18452 return NULL;
18453}
18454
18455
18456SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxDC *arg1 = (wxDC *) 0 ;
18459 int arg2 ;
18460 int arg3 ;
18461 wxColour result;
18462 void *argp1 = 0 ;
18463 int res1 = 0 ;
18464 int val2 ;
18465 int ecode2 = 0 ;
18466 int val3 ;
18467 int ecode3 = 0 ;
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 PyObject * obj2 = 0 ;
18471 char * kwnames[] = {
18472 (char *) "self",(char *) "x",(char *) "y", NULL
18473 };
18474
18475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18477 if (!SWIG_IsOK(res1)) {
18478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18479 }
18480 arg1 = reinterpret_cast< wxDC * >(argp1);
18481 ecode2 = SWIG_AsVal_int(obj1, &val2);
18482 if (!SWIG_IsOK(ecode2)) {
18483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18484 }
18485 arg2 = static_cast< int >(val2);
18486 ecode3 = SWIG_AsVal_int(obj2, &val3);
18487 if (!SWIG_IsOK(ecode3)) {
18488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18489 }
18490 arg3 = static_cast< int >(val3);
18491 {
18492 PyThreadState* __tstate = wxPyBeginAllowThreads();
18493 result = wxDC_GetPixel(arg1,arg2,arg3);
18494 wxPyEndAllowThreads(__tstate);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 }
18497 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18498 return resultobj;
18499fail:
18500 return NULL;
18501}
18502
18503
18504SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18505 PyObject *resultobj = 0;
18506 wxDC *arg1 = (wxDC *) 0 ;
18507 wxPoint *arg2 = 0 ;
18508 wxColour result;
18509 void *argp1 = 0 ;
18510 int res1 = 0 ;
18511 wxPoint temp2 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "pt", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18520 if (!SWIG_IsOK(res1)) {
18521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18522 }
18523 arg1 = reinterpret_cast< wxDC * >(argp1);
18524 {
18525 arg2 = &temp2;
18526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18527 }
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18535 return resultobj;
18536fail:
18537 return NULL;
18538}
18539
18540
18541SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 int arg2 ;
18545 int arg3 ;
18546 int arg4 ;
18547 int arg5 ;
18548 void *argp1 = 0 ;
18549 int res1 = 0 ;
18550 int val2 ;
18551 int ecode2 = 0 ;
18552 int val3 ;
18553 int ecode3 = 0 ;
18554 int val4 ;
18555 int ecode4 = 0 ;
18556 int val5 ;
18557 int ecode5 = 0 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 PyObject * obj2 = 0 ;
18561 PyObject * obj3 = 0 ;
18562 PyObject * obj4 = 0 ;
18563 char * kwnames[] = {
18564 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18565 };
18566
18567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18569 if (!SWIG_IsOK(res1)) {
18570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18571 }
18572 arg1 = reinterpret_cast< wxDC * >(argp1);
18573 ecode2 = SWIG_AsVal_int(obj1, &val2);
18574 if (!SWIG_IsOK(ecode2)) {
18575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18576 }
18577 arg2 = static_cast< int >(val2);
18578 ecode3 = SWIG_AsVal_int(obj2, &val3);
18579 if (!SWIG_IsOK(ecode3)) {
18580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18581 }
18582 arg3 = static_cast< int >(val3);
18583 ecode4 = SWIG_AsVal_int(obj3, &val4);
18584 if (!SWIG_IsOK(ecode4)) {
18585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18586 }
18587 arg4 = static_cast< int >(val4);
18588 ecode5 = SWIG_AsVal_int(obj4, &val5);
18589 if (!SWIG_IsOK(ecode5)) {
18590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18591 }
18592 arg5 = static_cast< int >(val5);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_Py_Void();
18600 return resultobj;
18601fail:
18602 return NULL;
18603}
18604
18605
18606SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj = 0;
18608 wxDC *arg1 = (wxDC *) 0 ;
18609 wxPoint *arg2 = 0 ;
18610 wxPoint *arg3 = 0 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 wxPoint temp2 ;
18614 wxPoint temp3 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 PyObject * obj2 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18624 if (!SWIG_IsOK(res1)) {
18625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 arg3 = &temp3;
18634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_Py_Void();
18643 return resultobj;
18644fail:
18645 return NULL;
18646}
18647
18648
18649SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 int arg2 ;
18653 int arg3 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 int val2 ;
18657 int ecode2 = 0 ;
18658 int val3 ;
18659 int ecode3 = 0 ;
18660 PyObject * obj0 = 0 ;
18661 PyObject * obj1 = 0 ;
18662 PyObject * obj2 = 0 ;
18663 char * kwnames[] = {
18664 (char *) "self",(char *) "x",(char *) "y", NULL
18665 };
18666
18667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18669 if (!SWIG_IsOK(res1)) {
18670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18671 }
18672 arg1 = reinterpret_cast< wxDC * >(argp1);
18673 ecode2 = SWIG_AsVal_int(obj1, &val2);
18674 if (!SWIG_IsOK(ecode2)) {
18675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18676 }
18677 arg2 = static_cast< int >(val2);
18678 ecode3 = SWIG_AsVal_int(obj2, &val3);
18679 if (!SWIG_IsOK(ecode3)) {
18680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18681 }
18682 arg3 = static_cast< int >(val3);
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 (arg1)->CrossHair(arg2,arg3);
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 resultobj = SWIG_Py_Void();
18690 return resultobj;
18691fail:
18692 return NULL;
18693}
18694
18695
18696SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18697 PyObject *resultobj = 0;
18698 wxDC *arg1 = (wxDC *) 0 ;
18699 wxPoint *arg2 = 0 ;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 wxPoint temp2 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 char * kwnames[] = {
18706 (char *) "self",(char *) "pt", NULL
18707 };
18708
18709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18713 }
18714 arg1 = reinterpret_cast< wxDC * >(argp1);
18715 {
18716 arg2 = &temp2;
18717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18718 }
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->CrossHair((wxPoint const &)*arg2);
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727fail:
18728 return NULL;
18729}
18730
18731
18732SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = 0;
18734 wxDC *arg1 = (wxDC *) 0 ;
18735 int arg2 ;
18736 int arg3 ;
18737 int arg4 ;
18738 int arg5 ;
18739 int arg6 ;
18740 int arg7 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 int val2 ;
18744 int ecode2 = 0 ;
18745 int val3 ;
18746 int ecode3 = 0 ;
18747 int val4 ;
18748 int ecode4 = 0 ;
18749 int val5 ;
18750 int ecode5 = 0 ;
18751 int val6 ;
18752 int ecode6 = 0 ;
18753 int val7 ;
18754 int ecode7 = 0 ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 PyObject * obj2 = 0 ;
18758 PyObject * obj3 = 0 ;
18759 PyObject * obj4 = 0 ;
18760 PyObject * obj5 = 0 ;
18761 PyObject * obj6 = 0 ;
18762 char * kwnames[] = {
18763 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18764 };
18765
18766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18768 if (!SWIG_IsOK(res1)) {
18769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18770 }
18771 arg1 = reinterpret_cast< wxDC * >(argp1);
18772 ecode2 = SWIG_AsVal_int(obj1, &val2);
18773 if (!SWIG_IsOK(ecode2)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18775 }
18776 arg2 = static_cast< int >(val2);
18777 ecode3 = SWIG_AsVal_int(obj2, &val3);
18778 if (!SWIG_IsOK(ecode3)) {
18779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18780 }
18781 arg3 = static_cast< int >(val3);
18782 ecode4 = SWIG_AsVal_int(obj3, &val4);
18783 if (!SWIG_IsOK(ecode4)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18785 }
18786 arg4 = static_cast< int >(val4);
18787 ecode5 = SWIG_AsVal_int(obj4, &val5);
18788 if (!SWIG_IsOK(ecode5)) {
18789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18790 }
18791 arg5 = static_cast< int >(val5);
18792 ecode6 = SWIG_AsVal_int(obj5, &val6);
18793 if (!SWIG_IsOK(ecode6)) {
18794 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18795 }
18796 arg6 = static_cast< int >(val6);
18797 ecode7 = SWIG_AsVal_int(obj6, &val7);
18798 if (!SWIG_IsOK(ecode7)) {
18799 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18800 }
18801 arg7 = static_cast< int >(val7);
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 resultobj = SWIG_Py_Void();
18809 return resultobj;
18810fail:
18811 return NULL;
18812}
18813
18814
18815SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj = 0;
18817 wxDC *arg1 = (wxDC *) 0 ;
18818 wxPoint *arg2 = 0 ;
18819 wxPoint *arg3 = 0 ;
18820 wxPoint *arg4 = 0 ;
18821 void *argp1 = 0 ;
18822 int res1 = 0 ;
18823 wxPoint temp2 ;
18824 wxPoint temp3 ;
18825 wxPoint temp4 ;
18826 PyObject * obj0 = 0 ;
18827 PyObject * obj1 = 0 ;
18828 PyObject * obj2 = 0 ;
18829 PyObject * obj3 = 0 ;
18830 char * kwnames[] = {
18831 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18832 };
18833
18834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18836 if (!SWIG_IsOK(res1)) {
18837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18838 }
18839 arg1 = reinterpret_cast< wxDC * >(argp1);
18840 {
18841 arg2 = &temp2;
18842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18843 }
18844 {
18845 arg3 = &temp3;
18846 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18847 }
18848 {
18849 arg4 = &temp4;
18850 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18851 }
18852 {
18853 PyThreadState* __tstate = wxPyBeginAllowThreads();
18854 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18855 wxPyEndAllowThreads(__tstate);
18856 if (PyErr_Occurred()) SWIG_fail;
18857 }
18858 resultobj = SWIG_Py_Void();
18859 return resultobj;
18860fail:
18861 return NULL;
18862}
18863
18864
18865SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18866 PyObject *resultobj = 0;
18867 wxDC *arg1 = (wxDC *) 0 ;
18868 int arg2 ;
18869 int arg3 ;
18870 int arg4 ;
18871 int arg5 ;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 int val2 ;
18875 int ecode2 = 0 ;
18876 int val3 ;
18877 int ecode3 = 0 ;
18878 int val4 ;
18879 int ecode4 = 0 ;
18880 int val5 ;
18881 int ecode5 = 0 ;
18882 PyObject * obj0 = 0 ;
18883 PyObject * obj1 = 0 ;
18884 PyObject * obj2 = 0 ;
18885 PyObject * obj3 = 0 ;
18886 PyObject * obj4 = 0 ;
18887 char * kwnames[] = {
18888 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18889 };
18890
18891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18893 if (!SWIG_IsOK(res1)) {
18894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18895 }
18896 arg1 = reinterpret_cast< wxDC * >(argp1);
18897 ecode2 = SWIG_AsVal_int(obj1, &val2);
18898 if (!SWIG_IsOK(ecode2)) {
18899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18900 }
18901 arg2 = static_cast< int >(val2);
18902 ecode3 = SWIG_AsVal_int(obj2, &val3);
18903 if (!SWIG_IsOK(ecode3)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18905 }
18906 arg3 = static_cast< int >(val3);
18907 ecode4 = SWIG_AsVal_int(obj3, &val4);
18908 if (!SWIG_IsOK(ecode4)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18910 }
18911 arg4 = static_cast< int >(val4);
18912 ecode5 = SWIG_AsVal_int(obj4, &val5);
18913 if (!SWIG_IsOK(ecode5)) {
18914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18915 }
18916 arg5 = static_cast< int >(val5);
18917 {
18918 PyThreadState* __tstate = wxPyBeginAllowThreads();
18919 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 resultobj = SWIG_Py_Void();
18924 return resultobj;
18925fail:
18926 return NULL;
18927}
18928
18929
18930SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj = 0;
18932 wxDC *arg1 = (wxDC *) 0 ;
18933 wxRect *arg2 = 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 wxRect temp2 ;
18937 PyObject * obj0 = 0 ;
18938 PyObject * obj1 = 0 ;
18939 char * kwnames[] = {
18940 (char *) "self",(char *) "rect", NULL
18941 };
18942
18943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 arg2 = &temp2;
18951 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18952 }
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 resultobj = SWIG_Py_Void();
18960 return resultobj;
18961fail:
18962 return NULL;
18963}
18964
18965
18966SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18967 PyObject *resultobj = 0;
18968 wxDC *arg1 = (wxDC *) 0 ;
18969 int arg2 ;
18970 int arg3 ;
18971 int arg4 ;
18972 int arg5 ;
18973 double arg6 ;
18974 double arg7 ;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 int val2 ;
18978 int ecode2 = 0 ;
18979 int val3 ;
18980 int ecode3 = 0 ;
18981 int val4 ;
18982 int ecode4 = 0 ;
18983 int val5 ;
18984 int ecode5 = 0 ;
18985 double val6 ;
18986 int ecode6 = 0 ;
18987 double val7 ;
18988 int ecode7 = 0 ;
18989 PyObject * obj0 = 0 ;
18990 PyObject * obj1 = 0 ;
18991 PyObject * obj2 = 0 ;
18992 PyObject * obj3 = 0 ;
18993 PyObject * obj4 = 0 ;
18994 PyObject * obj5 = 0 ;
18995 PyObject * obj6 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19004 }
19005 arg1 = reinterpret_cast< wxDC * >(argp1);
19006 ecode2 = SWIG_AsVal_int(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19009 }
19010 arg2 = static_cast< int >(val2);
19011 ecode3 = SWIG_AsVal_int(obj2, &val3);
19012 if (!SWIG_IsOK(ecode3)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19014 }
19015 arg3 = static_cast< int >(val3);
19016 ecode4 = SWIG_AsVal_int(obj3, &val4);
19017 if (!SWIG_IsOK(ecode4)) {
19018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19019 }
19020 arg4 = static_cast< int >(val4);
19021 ecode5 = SWIG_AsVal_int(obj4, &val5);
19022 if (!SWIG_IsOK(ecode5)) {
19023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19024 }
19025 arg5 = static_cast< int >(val5);
19026 ecode6 = SWIG_AsVal_double(obj5, &val6);
19027 if (!SWIG_IsOK(ecode6)) {
19028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19029 }
19030 arg6 = static_cast< double >(val6);
19031 ecode7 = SWIG_AsVal_double(obj6, &val7);
19032 if (!SWIG_IsOK(ecode7)) {
19033 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19034 }
19035 arg7 = static_cast< double >(val7);
19036 {
19037 PyThreadState* __tstate = wxPyBeginAllowThreads();
19038 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19039 wxPyEndAllowThreads(__tstate);
19040 if (PyErr_Occurred()) SWIG_fail;
19041 }
19042 resultobj = SWIG_Py_Void();
19043 return resultobj;
19044fail:
19045 return NULL;
19046}
19047
19048
19049SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19050 PyObject *resultobj = 0;
19051 wxDC *arg1 = (wxDC *) 0 ;
19052 wxPoint *arg2 = 0 ;
19053 wxSize *arg3 = 0 ;
19054 double arg4 ;
19055 double arg5 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 wxPoint temp2 ;
19059 wxSize temp3 ;
19060 double val4 ;
19061 int ecode4 = 0 ;
19062 double val5 ;
19063 int ecode5 = 0 ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 PyObject * obj2 = 0 ;
19067 PyObject * obj3 = 0 ;
19068 PyObject * obj4 = 0 ;
19069 char * kwnames[] = {
19070 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19071 };
19072
19073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 {
19080 arg2 = &temp2;
19081 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19082 }
19083 {
19084 arg3 = &temp3;
19085 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19086 }
19087 ecode4 = SWIG_AsVal_double(obj3, &val4);
19088 if (!SWIG_IsOK(ecode4)) {
19089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19090 }
19091 arg4 = static_cast< double >(val4);
19092 ecode5 = SWIG_AsVal_double(obj4, &val5);
19093 if (!SWIG_IsOK(ecode5)) {
19094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19095 }
19096 arg5 = static_cast< double >(val5);
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19100 wxPyEndAllowThreads(__tstate);
19101 if (PyErr_Occurred()) SWIG_fail;
19102 }
19103 resultobj = SWIG_Py_Void();
19104 return resultobj;
19105fail:
19106 return NULL;
19107}
19108
19109
19110SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19111 PyObject *resultobj = 0;
19112 wxDC *arg1 = (wxDC *) 0 ;
19113 int arg2 ;
19114 int arg3 ;
19115 void *argp1 = 0 ;
19116 int res1 = 0 ;
19117 int val2 ;
19118 int ecode2 = 0 ;
19119 int val3 ;
19120 int ecode3 = 0 ;
19121 PyObject * obj0 = 0 ;
19122 PyObject * obj1 = 0 ;
19123 PyObject * obj2 = 0 ;
19124 char * kwnames[] = {
19125 (char *) "self",(char *) "x",(char *) "y", NULL
19126 };
19127
19128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19130 if (!SWIG_IsOK(res1)) {
19131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19132 }
19133 arg1 = reinterpret_cast< wxDC * >(argp1);
19134 ecode2 = SWIG_AsVal_int(obj1, &val2);
19135 if (!SWIG_IsOK(ecode2)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19137 }
19138 arg2 = static_cast< int >(val2);
19139 ecode3 = SWIG_AsVal_int(obj2, &val3);
19140 if (!SWIG_IsOK(ecode3)) {
19141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19142 }
19143 arg3 = static_cast< int >(val3);
19144 {
19145 PyThreadState* __tstate = wxPyBeginAllowThreads();
19146 (arg1)->DrawPoint(arg2,arg3);
19147 wxPyEndAllowThreads(__tstate);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 }
19150 resultobj = SWIG_Py_Void();
19151 return resultobj;
19152fail:
19153 return NULL;
19154}
19155
19156
19157SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19158 PyObject *resultobj = 0;
19159 wxDC *arg1 = (wxDC *) 0 ;
19160 wxPoint *arg2 = 0 ;
19161 void *argp1 = 0 ;
19162 int res1 = 0 ;
19163 wxPoint temp2 ;
19164 PyObject * obj0 = 0 ;
19165 PyObject * obj1 = 0 ;
19166 char * kwnames[] = {
19167 (char *) "self",(char *) "pt", NULL
19168 };
19169
19170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19172 if (!SWIG_IsOK(res1)) {
19173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19174 }
19175 arg1 = reinterpret_cast< wxDC * >(argp1);
19176 {
19177 arg2 = &temp2;
19178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19179 }
19180 {
19181 PyThreadState* __tstate = wxPyBeginAllowThreads();
19182 (arg1)->DrawPoint((wxPoint const &)*arg2);
19183 wxPyEndAllowThreads(__tstate);
19184 if (PyErr_Occurred()) SWIG_fail;
19185 }
19186 resultobj = SWIG_Py_Void();
19187 return resultobj;
19188fail:
19189 return NULL;
19190}
19191
19192
19193SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19194 PyObject *resultobj = 0;
19195 wxDC *arg1 = (wxDC *) 0 ;
19196 int arg2 ;
19197 int arg3 ;
19198 int arg4 ;
19199 int arg5 ;
19200 void *argp1 = 0 ;
19201 int res1 = 0 ;
19202 int val2 ;
19203 int ecode2 = 0 ;
19204 int val3 ;
19205 int ecode3 = 0 ;
19206 int val4 ;
19207 int ecode4 = 0 ;
19208 int val5 ;
19209 int ecode5 = 0 ;
19210 PyObject * obj0 = 0 ;
19211 PyObject * obj1 = 0 ;
19212 PyObject * obj2 = 0 ;
19213 PyObject * obj3 = 0 ;
19214 PyObject * obj4 = 0 ;
19215 char * kwnames[] = {
19216 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19217 };
19218
19219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19221 if (!SWIG_IsOK(res1)) {
19222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19223 }
19224 arg1 = reinterpret_cast< wxDC * >(argp1);
19225 ecode2 = SWIG_AsVal_int(obj1, &val2);
19226 if (!SWIG_IsOK(ecode2)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19228 }
19229 arg2 = static_cast< int >(val2);
19230 ecode3 = SWIG_AsVal_int(obj2, &val3);
19231 if (!SWIG_IsOK(ecode3)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19233 }
19234 arg3 = static_cast< int >(val3);
19235 ecode4 = SWIG_AsVal_int(obj3, &val4);
19236 if (!SWIG_IsOK(ecode4)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19238 }
19239 arg4 = static_cast< int >(val4);
19240 ecode5 = SWIG_AsVal_int(obj4, &val5);
19241 if (!SWIG_IsOK(ecode5)) {
19242 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19243 }
19244 arg5 = static_cast< int >(val5);
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_Py_Void();
19252 return resultobj;
19253fail:
19254 return NULL;
19255}
19256
19257
19258SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj = 0;
19260 wxDC *arg1 = (wxDC *) 0 ;
19261 wxRect *arg2 = 0 ;
19262 void *argp1 = 0 ;
19263 int res1 = 0 ;
19264 wxRect temp2 ;
19265 PyObject * obj0 = 0 ;
19266 PyObject * obj1 = 0 ;
19267 char * kwnames[] = {
19268 (char *) "self",(char *) "rect", NULL
19269 };
19270
19271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19273 if (!SWIG_IsOK(res1)) {
19274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19275 }
19276 arg1 = reinterpret_cast< wxDC * >(argp1);
19277 {
19278 arg2 = &temp2;
19279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19280 }
19281 {
19282 PyThreadState* __tstate = wxPyBeginAllowThreads();
19283 (arg1)->DrawRectangle((wxRect const &)*arg2);
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
19287 resultobj = SWIG_Py_Void();
19288 return resultobj;
19289fail:
19290 return NULL;
19291}
19292
19293
19294SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj = 0;
19296 wxDC *arg1 = (wxDC *) 0 ;
19297 wxPoint *arg2 = 0 ;
19298 wxSize *arg3 = 0 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 wxPoint temp2 ;
19302 wxSize temp3 ;
19303 PyObject * obj0 = 0 ;
19304 PyObject * obj1 = 0 ;
19305 PyObject * obj2 = 0 ;
19306 char * kwnames[] = {
19307 (char *) "self",(char *) "pt",(char *) "sz", NULL
19308 };
19309
19310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19314 }
19315 arg1 = reinterpret_cast< wxDC * >(argp1);
19316 {
19317 arg2 = &temp2;
19318 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19319 }
19320 {
19321 arg3 = &temp3;
19322 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19323 }
19324 {
19325 PyThreadState* __tstate = wxPyBeginAllowThreads();
19326 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19327 wxPyEndAllowThreads(__tstate);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
19330 resultobj = SWIG_Py_Void();
19331 return resultobj;
19332fail:
19333 return NULL;
19334}
19335
19336
19337SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19338 PyObject *resultobj = 0;
19339 wxDC *arg1 = (wxDC *) 0 ;
19340 int arg2 ;
19341 int arg3 ;
19342 int arg4 ;
19343 int arg5 ;
19344 double arg6 ;
19345 void *argp1 = 0 ;
19346 int res1 = 0 ;
19347 int val2 ;
19348 int ecode2 = 0 ;
19349 int val3 ;
19350 int ecode3 = 0 ;
19351 int val4 ;
19352 int ecode4 = 0 ;
19353 int val5 ;
19354 int ecode5 = 0 ;
19355 double val6 ;
19356 int ecode6 = 0 ;
19357 PyObject * obj0 = 0 ;
19358 PyObject * obj1 = 0 ;
19359 PyObject * obj2 = 0 ;
19360 PyObject * obj3 = 0 ;
19361 PyObject * obj4 = 0 ;
19362 PyObject * obj5 = 0 ;
19363 char * kwnames[] = {
19364 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19365 };
19366
19367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19369 if (!SWIG_IsOK(res1)) {
19370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19371 }
19372 arg1 = reinterpret_cast< wxDC * >(argp1);
19373 ecode2 = SWIG_AsVal_int(obj1, &val2);
19374 if (!SWIG_IsOK(ecode2)) {
19375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19376 }
19377 arg2 = static_cast< int >(val2);
19378 ecode3 = SWIG_AsVal_int(obj2, &val3);
19379 if (!SWIG_IsOK(ecode3)) {
19380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19381 }
19382 arg3 = static_cast< int >(val3);
19383 ecode4 = SWIG_AsVal_int(obj3, &val4);
19384 if (!SWIG_IsOK(ecode4)) {
19385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19386 }
19387 arg4 = static_cast< int >(val4);
19388 ecode5 = SWIG_AsVal_int(obj4, &val5);
19389 if (!SWIG_IsOK(ecode5)) {
19390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19391 }
19392 arg5 = static_cast< int >(val5);
19393 ecode6 = SWIG_AsVal_double(obj5, &val6);
19394 if (!SWIG_IsOK(ecode6)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19396 }
19397 arg6 = static_cast< double >(val6);
19398 {
19399 PyThreadState* __tstate = wxPyBeginAllowThreads();
19400 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_Py_Void();
19405 return resultobj;
19406fail:
19407 return NULL;
19408}
19409
19410
19411SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19412 PyObject *resultobj = 0;
19413 wxDC *arg1 = (wxDC *) 0 ;
19414 wxRect *arg2 = 0 ;
19415 double arg3 ;
19416 void *argp1 = 0 ;
19417 int res1 = 0 ;
19418 wxRect temp2 ;
19419 double val3 ;
19420 int ecode3 = 0 ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 PyObject * obj2 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "self",(char *) "r",(char *) "radius", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19432 }
19433 arg1 = reinterpret_cast< wxDC * >(argp1);
19434 {
19435 arg2 = &temp2;
19436 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19437 }
19438 ecode3 = SWIG_AsVal_double(obj2, &val3);
19439 if (!SWIG_IsOK(ecode3)) {
19440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19441 }
19442 arg3 = static_cast< double >(val3);
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 resultobj = SWIG_Py_Void();
19450 return resultobj;
19451fail:
19452 return NULL;
19453}
19454
19455
19456SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj = 0;
19458 wxDC *arg1 = (wxDC *) 0 ;
19459 wxPoint *arg2 = 0 ;
19460 wxSize *arg3 = 0 ;
19461 double arg4 ;
19462 void *argp1 = 0 ;
19463 int res1 = 0 ;
19464 wxPoint temp2 ;
19465 wxSize temp3 ;
19466 double val4 ;
19467 int ecode4 = 0 ;
19468 PyObject * obj0 = 0 ;
19469 PyObject * obj1 = 0 ;
19470 PyObject * obj2 = 0 ;
19471 PyObject * obj3 = 0 ;
19472 char * kwnames[] = {
19473 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19474 };
19475
19476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19478 if (!SWIG_IsOK(res1)) {
19479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19480 }
19481 arg1 = reinterpret_cast< wxDC * >(argp1);
19482 {
19483 arg2 = &temp2;
19484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19485 }
19486 {
19487 arg3 = &temp3;
19488 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19489 }
19490 ecode4 = SWIG_AsVal_double(obj3, &val4);
19491 if (!SWIG_IsOK(ecode4)) {
19492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19493 }
19494 arg4 = static_cast< double >(val4);
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 resultobj = SWIG_Py_Void();
19502 return resultobj;
19503fail:
19504 return NULL;
19505}
19506
19507
19508SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19509 PyObject *resultobj = 0;
19510 wxDC *arg1 = (wxDC *) 0 ;
19511 int arg2 ;
19512 int arg3 ;
19513 int arg4 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 int val2 ;
19517 int ecode2 = 0 ;
19518 int val3 ;
19519 int ecode3 = 0 ;
19520 int val4 ;
19521 int ecode4 = 0 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 PyObject * obj2 = 0 ;
19525 PyObject * obj3 = 0 ;
19526 char * kwnames[] = {
19527 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19528 };
19529
19530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19532 if (!SWIG_IsOK(res1)) {
19533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19534 }
19535 arg1 = reinterpret_cast< wxDC * >(argp1);
19536 ecode2 = SWIG_AsVal_int(obj1, &val2);
19537 if (!SWIG_IsOK(ecode2)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19539 }
19540 arg2 = static_cast< int >(val2);
19541 ecode3 = SWIG_AsVal_int(obj2, &val3);
19542 if (!SWIG_IsOK(ecode3)) {
19543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19544 }
19545 arg3 = static_cast< int >(val3);
19546 ecode4 = SWIG_AsVal_int(obj3, &val4);
19547 if (!SWIG_IsOK(ecode4)) {
19548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19549 }
19550 arg4 = static_cast< int >(val4);
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 (arg1)->DrawCircle(arg2,arg3,arg4);
19554 wxPyEndAllowThreads(__tstate);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 resultobj = SWIG_Py_Void();
19558 return resultobj;
19559fail:
19560 return NULL;
19561}
19562
19563
19564SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj = 0;
19566 wxDC *arg1 = (wxDC *) 0 ;
19567 wxPoint *arg2 = 0 ;
19568 int arg3 ;
19569 void *argp1 = 0 ;
19570 int res1 = 0 ;
19571 wxPoint temp2 ;
19572 int val3 ;
19573 int ecode3 = 0 ;
19574 PyObject * obj0 = 0 ;
19575 PyObject * obj1 = 0 ;
19576 PyObject * obj2 = 0 ;
19577 char * kwnames[] = {
19578 (char *) "self",(char *) "pt",(char *) "radius", NULL
19579 };
19580
19581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19583 if (!SWIG_IsOK(res1)) {
19584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19585 }
19586 arg1 = reinterpret_cast< wxDC * >(argp1);
19587 {
19588 arg2 = &temp2;
19589 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19590 }
19591 ecode3 = SWIG_AsVal_int(obj2, &val3);
19592 if (!SWIG_IsOK(ecode3)) {
19593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19594 }
19595 arg3 = static_cast< int >(val3);
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_Py_Void();
19603 return resultobj;
19604fail:
19605 return NULL;
19606}
19607
19608
19609SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj = 0;
19611 wxDC *arg1 = (wxDC *) 0 ;
19612 int arg2 ;
19613 int arg3 ;
19614 int arg4 ;
19615 int arg5 ;
19616 void *argp1 = 0 ;
19617 int res1 = 0 ;
19618 int val2 ;
19619 int ecode2 = 0 ;
19620 int val3 ;
19621 int ecode3 = 0 ;
19622 int val4 ;
19623 int ecode4 = 0 ;
19624 int val5 ;
19625 int ecode5 = 0 ;
19626 PyObject * obj0 = 0 ;
19627 PyObject * obj1 = 0 ;
19628 PyObject * obj2 = 0 ;
19629 PyObject * obj3 = 0 ;
19630 PyObject * obj4 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19639 }
19640 arg1 = reinterpret_cast< wxDC * >(argp1);
19641 ecode2 = SWIG_AsVal_int(obj1, &val2);
19642 if (!SWIG_IsOK(ecode2)) {
19643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19644 }
19645 arg2 = static_cast< int >(val2);
19646 ecode3 = SWIG_AsVal_int(obj2, &val3);
19647 if (!SWIG_IsOK(ecode3)) {
19648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19649 }
19650 arg3 = static_cast< int >(val3);
19651 ecode4 = SWIG_AsVal_int(obj3, &val4);
19652 if (!SWIG_IsOK(ecode4)) {
19653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19654 }
19655 arg4 = static_cast< int >(val4);
19656 ecode5 = SWIG_AsVal_int(obj4, &val5);
19657 if (!SWIG_IsOK(ecode5)) {
19658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19659 }
19660 arg5 = static_cast< int >(val5);
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_Py_Void();
19668 return resultobj;
19669fail:
19670 return NULL;
19671}
19672
19673
19674SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj = 0;
19676 wxDC *arg1 = (wxDC *) 0 ;
19677 wxRect *arg2 = 0 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 wxRect temp2 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 char * kwnames[] = {
19684 (char *) "self",(char *) "rect", NULL
19685 };
19686
19687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19691 }
19692 arg1 = reinterpret_cast< wxDC * >(argp1);
19693 {
19694 arg2 = &temp2;
19695 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19696 }
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 (arg1)->DrawEllipse((wxRect const &)*arg2);
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 resultobj = SWIG_Py_Void();
19704 return resultobj;
19705fail:
19706 return NULL;
19707}
19708
19709
19710SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj = 0;
19712 wxDC *arg1 = (wxDC *) 0 ;
19713 wxPoint *arg2 = 0 ;
19714 wxSize *arg3 = 0 ;
19715 void *argp1 = 0 ;
19716 int res1 = 0 ;
19717 wxPoint temp2 ;
19718 wxSize temp3 ;
19719 PyObject * obj0 = 0 ;
19720 PyObject * obj1 = 0 ;
19721 PyObject * obj2 = 0 ;
19722 char * kwnames[] = {
19723 (char *) "self",(char *) "pt",(char *) "sz", NULL
19724 };
19725
19726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19728 if (!SWIG_IsOK(res1)) {
19729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19730 }
19731 arg1 = reinterpret_cast< wxDC * >(argp1);
19732 {
19733 arg2 = &temp2;
19734 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19735 }
19736 {
19737 arg3 = &temp3;
19738 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19739 }
19740 {
19741 PyThreadState* __tstate = wxPyBeginAllowThreads();
19742 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19743 wxPyEndAllowThreads(__tstate);
19744 if (PyErr_Occurred()) SWIG_fail;
19745 }
19746 resultobj = SWIG_Py_Void();
19747 return resultobj;
19748fail:
19749 return NULL;
19750}
19751
19752
19753SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxDC *arg1 = (wxDC *) 0 ;
19756 wxIcon *arg2 = 0 ;
19757 int arg3 ;
19758 int arg4 ;
19759 void *argp1 = 0 ;
19760 int res1 = 0 ;
19761 void *argp2 = 0 ;
19762 int res2 = 0 ;
19763 int val3 ;
19764 int ecode3 = 0 ;
19765 int val4 ;
19766 int ecode4 = 0 ;
19767 PyObject * obj0 = 0 ;
19768 PyObject * obj1 = 0 ;
19769 PyObject * obj2 = 0 ;
19770 PyObject * obj3 = 0 ;
19771 char * kwnames[] = {
19772 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19773 };
19774
19775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19777 if (!SWIG_IsOK(res1)) {
19778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19779 }
19780 arg1 = reinterpret_cast< wxDC * >(argp1);
19781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19782 if (!SWIG_IsOK(res2)) {
19783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19784 }
19785 if (!argp2) {
19786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19787 }
19788 arg2 = reinterpret_cast< wxIcon * >(argp2);
19789 ecode3 = SWIG_AsVal_int(obj2, &val3);
19790 if (!SWIG_IsOK(ecode3)) {
19791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19792 }
19793 arg3 = static_cast< int >(val3);
19794 ecode4 = SWIG_AsVal_int(obj3, &val4);
19795 if (!SWIG_IsOK(ecode4)) {
19796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19797 }
19798 arg4 = static_cast< int >(val4);
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 resultobj = SWIG_Py_Void();
19806 return resultobj;
19807fail:
19808 return NULL;
19809}
19810
19811
19812SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj = 0;
19814 wxDC *arg1 = (wxDC *) 0 ;
19815 wxIcon *arg2 = 0 ;
19816 wxPoint *arg3 = 0 ;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 void *argp2 = 0 ;
19820 int res2 = 0 ;
19821 wxPoint temp3 ;
19822 PyObject * obj0 = 0 ;
19823 PyObject * obj1 = 0 ;
19824 PyObject * obj2 = 0 ;
19825 char * kwnames[] = {
19826 (char *) "self",(char *) "icon",(char *) "pt", NULL
19827 };
19828
19829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19831 if (!SWIG_IsOK(res1)) {
19832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19833 }
19834 arg1 = reinterpret_cast< wxDC * >(argp1);
19835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19836 if (!SWIG_IsOK(res2)) {
19837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19838 }
19839 if (!argp2) {
19840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19841 }
19842 arg2 = reinterpret_cast< wxIcon * >(argp2);
19843 {
19844 arg3 = &temp3;
19845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19846 }
19847 {
19848 PyThreadState* __tstate = wxPyBeginAllowThreads();
19849 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_Py_Void();
19854 return resultobj;
19855fail:
19856 return NULL;
19857}
19858
19859
19860SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj = 0;
19862 wxDC *arg1 = (wxDC *) 0 ;
19863 wxBitmap *arg2 = 0 ;
19864 int arg3 ;
19865 int arg4 ;
19866 bool arg5 = (bool) false ;
19867 void *argp1 = 0 ;
19868 int res1 = 0 ;
19869 void *argp2 = 0 ;
19870 int res2 = 0 ;
19871 int val3 ;
19872 int ecode3 = 0 ;
19873 int val4 ;
19874 int ecode4 = 0 ;
19875 bool val5 ;
19876 int ecode5 = 0 ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 PyObject * obj3 = 0 ;
19881 PyObject * obj4 = 0 ;
19882 char * kwnames[] = {
19883 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19884 };
19885
19886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19888 if (!SWIG_IsOK(res1)) {
19889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19890 }
19891 arg1 = reinterpret_cast< wxDC * >(argp1);
19892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19893 if (!SWIG_IsOK(res2)) {
19894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19895 }
19896 if (!argp2) {
19897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19898 }
19899 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19900 ecode3 = SWIG_AsVal_int(obj2, &val3);
19901 if (!SWIG_IsOK(ecode3)) {
19902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19903 }
19904 arg3 = static_cast< int >(val3);
19905 ecode4 = SWIG_AsVal_int(obj3, &val4);
19906 if (!SWIG_IsOK(ecode4)) {
19907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19908 }
19909 arg4 = static_cast< int >(val4);
19910 if (obj4) {
19911 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19912 if (!SWIG_IsOK(ecode5)) {
19913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19914 }
19915 arg5 = static_cast< bool >(val5);
19916 }
19917 {
19918 PyThreadState* __tstate = wxPyBeginAllowThreads();
19919 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19920 wxPyEndAllowThreads(__tstate);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 resultobj = SWIG_Py_Void();
19924 return resultobj;
19925fail:
19926 return NULL;
19927}
19928
19929
19930SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj = 0;
19932 wxDC *arg1 = (wxDC *) 0 ;
19933 wxBitmap *arg2 = 0 ;
19934 wxPoint *arg3 = 0 ;
19935 bool arg4 = (bool) false ;
19936 void *argp1 = 0 ;
19937 int res1 = 0 ;
19938 void *argp2 = 0 ;
19939 int res2 = 0 ;
19940 wxPoint temp3 ;
19941 bool val4 ;
19942 int ecode4 = 0 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 PyObject * obj2 = 0 ;
19946 PyObject * obj3 = 0 ;
19947 char * kwnames[] = {
19948 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19949 };
19950
19951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19953 if (!SWIG_IsOK(res1)) {
19954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19955 }
19956 arg1 = reinterpret_cast< wxDC * >(argp1);
19957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19958 if (!SWIG_IsOK(res2)) {
19959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19960 }
19961 if (!argp2) {
19962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19963 }
19964 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19965 {
19966 arg3 = &temp3;
19967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19968 }
19969 if (obj3) {
19970 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19971 if (!SWIG_IsOK(ecode4)) {
19972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19973 }
19974 arg4 = static_cast< bool >(val4);
19975 }
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = SWIG_Py_Void();
19983 return resultobj;
19984fail:
19985 return NULL;
19986}
19987
19988
19989SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj = 0;
19991 wxDC *arg1 = (wxDC *) 0 ;
19992 wxString *arg2 = 0 ;
19993 int arg3 ;
19994 int arg4 ;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 bool temp2 = false ;
19998 int val3 ;
19999 int ecode3 = 0 ;
20000 int val4 ;
20001 int ecode4 = 0 ;
20002 PyObject * obj0 = 0 ;
20003 PyObject * obj1 = 0 ;
20004 PyObject * obj2 = 0 ;
20005 PyObject * obj3 = 0 ;
20006 char * kwnames[] = {
20007 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20008 };
20009
20010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20012 if (!SWIG_IsOK(res1)) {
20013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20014 }
20015 arg1 = reinterpret_cast< wxDC * >(argp1);
20016 {
20017 arg2 = wxString_in_helper(obj1);
20018 if (arg2 == NULL) SWIG_fail;
20019 temp2 = true;
20020 }
20021 ecode3 = SWIG_AsVal_int(obj2, &val3);
20022 if (!SWIG_IsOK(ecode3)) {
20023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20024 }
20025 arg3 = static_cast< int >(val3);
20026 ecode4 = SWIG_AsVal_int(obj3, &val4);
20027 if (!SWIG_IsOK(ecode4)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20029 }
20030 arg4 = static_cast< int >(val4);
20031 {
20032 PyThreadState* __tstate = wxPyBeginAllowThreads();
20033 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 resultobj = SWIG_Py_Void();
20038 {
20039 if (temp2)
20040 delete arg2;
20041 }
20042 return resultobj;
20043fail:
20044 {
20045 if (temp2)
20046 delete arg2;
20047 }
20048 return NULL;
20049}
20050
20051
20052SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20053 PyObject *resultobj = 0;
20054 wxDC *arg1 = (wxDC *) 0 ;
20055 wxString *arg2 = 0 ;
20056 wxPoint *arg3 = 0 ;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 bool temp2 = false ;
20060 wxPoint temp3 ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 PyObject * obj2 = 0 ;
20064 char * kwnames[] = {
20065 (char *) "self",(char *) "text",(char *) "pt", NULL
20066 };
20067
20068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20070 if (!SWIG_IsOK(res1)) {
20071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20072 }
20073 arg1 = reinterpret_cast< wxDC * >(argp1);
20074 {
20075 arg2 = wxString_in_helper(obj1);
20076 if (arg2 == NULL) SWIG_fail;
20077 temp2 = true;
20078 }
20079 {
20080 arg3 = &temp3;
20081 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20082 }
20083 {
20084 PyThreadState* __tstate = wxPyBeginAllowThreads();
20085 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20086 wxPyEndAllowThreads(__tstate);
20087 if (PyErr_Occurred()) SWIG_fail;
20088 }
20089 resultobj = SWIG_Py_Void();
20090 {
20091 if (temp2)
20092 delete arg2;
20093 }
20094 return resultobj;
20095fail:
20096 {
20097 if (temp2)
20098 delete arg2;
20099 }
20100 return NULL;
20101}
20102
20103
20104SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20105 PyObject *resultobj = 0;
20106 wxDC *arg1 = (wxDC *) 0 ;
20107 wxString *arg2 = 0 ;
20108 int arg3 ;
20109 int arg4 ;
20110 double arg5 ;
20111 void *argp1 = 0 ;
20112 int res1 = 0 ;
20113 bool temp2 = false ;
20114 int val3 ;
20115 int ecode3 = 0 ;
20116 int val4 ;
20117 int ecode4 = 0 ;
20118 double val5 ;
20119 int ecode5 = 0 ;
20120 PyObject * obj0 = 0 ;
20121 PyObject * obj1 = 0 ;
20122 PyObject * obj2 = 0 ;
20123 PyObject * obj3 = 0 ;
20124 PyObject * obj4 = 0 ;
20125 char * kwnames[] = {
20126 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20127 };
20128
20129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20131 if (!SWIG_IsOK(res1)) {
20132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20133 }
20134 arg1 = reinterpret_cast< wxDC * >(argp1);
20135 {
20136 arg2 = wxString_in_helper(obj1);
20137 if (arg2 == NULL) SWIG_fail;
20138 temp2 = true;
20139 }
20140 ecode3 = SWIG_AsVal_int(obj2, &val3);
20141 if (!SWIG_IsOK(ecode3)) {
20142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20143 }
20144 arg3 = static_cast< int >(val3);
20145 ecode4 = SWIG_AsVal_int(obj3, &val4);
20146 if (!SWIG_IsOK(ecode4)) {
20147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20148 }
20149 arg4 = static_cast< int >(val4);
20150 ecode5 = SWIG_AsVal_double(obj4, &val5);
20151 if (!SWIG_IsOK(ecode5)) {
20152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20153 }
20154 arg5 = static_cast< double >(val5);
20155 {
20156 PyThreadState* __tstate = wxPyBeginAllowThreads();
20157 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20158 wxPyEndAllowThreads(__tstate);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 }
20161 resultobj = SWIG_Py_Void();
20162 {
20163 if (temp2)
20164 delete arg2;
20165 }
20166 return resultobj;
20167fail:
20168 {
20169 if (temp2)
20170 delete arg2;
20171 }
20172 return NULL;
20173}
20174
20175
20176SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20177 PyObject *resultobj = 0;
20178 wxDC *arg1 = (wxDC *) 0 ;
20179 wxString *arg2 = 0 ;
20180 wxPoint *arg3 = 0 ;
20181 double arg4 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 bool temp2 = false ;
20185 wxPoint temp3 ;
20186 double val4 ;
20187 int ecode4 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 PyObject * obj2 = 0 ;
20191 PyObject * obj3 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 {
20203 arg2 = wxString_in_helper(obj1);
20204 if (arg2 == NULL) SWIG_fail;
20205 temp2 = true;
20206 }
20207 {
20208 arg3 = &temp3;
20209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20210 }
20211 ecode4 = SWIG_AsVal_double(obj3, &val4);
20212 if (!SWIG_IsOK(ecode4)) {
20213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20214 }
20215 arg4 = static_cast< double >(val4);
20216 {
20217 PyThreadState* __tstate = wxPyBeginAllowThreads();
20218 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 resultobj = SWIG_Py_Void();
20223 {
20224 if (temp2)
20225 delete arg2;
20226 }
20227 return resultobj;
20228fail:
20229 {
20230 if (temp2)
20231 delete arg2;
20232 }
20233 return NULL;
20234}
20235
20236
20237SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20238 PyObject *resultobj = 0;
20239 wxDC *arg1 = (wxDC *) 0 ;
20240 int arg2 ;
20241 int arg3 ;
20242 int arg4 ;
20243 int arg5 ;
20244 wxDC *arg6 = (wxDC *) 0 ;
20245 int arg7 ;
20246 int arg8 ;
20247 int arg9 = (int) wxCOPY ;
20248 bool arg10 = (bool) false ;
20249 int arg11 = (int) -1 ;
20250 int arg12 = (int) -1 ;
20251 bool result;
20252 void *argp1 = 0 ;
20253 int res1 = 0 ;
20254 int val2 ;
20255 int ecode2 = 0 ;
20256 int val3 ;
20257 int ecode3 = 0 ;
20258 int val4 ;
20259 int ecode4 = 0 ;
20260 int val5 ;
20261 int ecode5 = 0 ;
20262 void *argp6 = 0 ;
20263 int res6 = 0 ;
20264 int val7 ;
20265 int ecode7 = 0 ;
20266 int val8 ;
20267 int ecode8 = 0 ;
20268 int val9 ;
20269 int ecode9 = 0 ;
20270 bool val10 ;
20271 int ecode10 = 0 ;
20272 int val11 ;
20273 int ecode11 = 0 ;
20274 int val12 ;
20275 int ecode12 = 0 ;
20276 PyObject * obj0 = 0 ;
20277 PyObject * obj1 = 0 ;
20278 PyObject * obj2 = 0 ;
20279 PyObject * obj3 = 0 ;
20280 PyObject * obj4 = 0 ;
20281 PyObject * obj5 = 0 ;
20282 PyObject * obj6 = 0 ;
20283 PyObject * obj7 = 0 ;
20284 PyObject * obj8 = 0 ;
20285 PyObject * obj9 = 0 ;
20286 PyObject * obj10 = 0 ;
20287 PyObject * obj11 = 0 ;
20288 char * kwnames[] = {
20289 (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
20290 };
20291
20292 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;
20293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20294 if (!SWIG_IsOK(res1)) {
20295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20296 }
20297 arg1 = reinterpret_cast< wxDC * >(argp1);
20298 ecode2 = SWIG_AsVal_int(obj1, &val2);
20299 if (!SWIG_IsOK(ecode2)) {
20300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20301 }
20302 arg2 = static_cast< int >(val2);
20303 ecode3 = SWIG_AsVal_int(obj2, &val3);
20304 if (!SWIG_IsOK(ecode3)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20306 }
20307 arg3 = static_cast< int >(val3);
20308 ecode4 = SWIG_AsVal_int(obj3, &val4);
20309 if (!SWIG_IsOK(ecode4)) {
20310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20311 }
20312 arg4 = static_cast< int >(val4);
20313 ecode5 = SWIG_AsVal_int(obj4, &val5);
20314 if (!SWIG_IsOK(ecode5)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20316 }
20317 arg5 = static_cast< int >(val5);
20318 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20319 if (!SWIG_IsOK(res6)) {
20320 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20321 }
20322 arg6 = reinterpret_cast< wxDC * >(argp6);
20323 ecode7 = SWIG_AsVal_int(obj6, &val7);
20324 if (!SWIG_IsOK(ecode7)) {
20325 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20326 }
20327 arg7 = static_cast< int >(val7);
20328 ecode8 = SWIG_AsVal_int(obj7, &val8);
20329 if (!SWIG_IsOK(ecode8)) {
20330 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20331 }
20332 arg8 = static_cast< int >(val8);
20333 if (obj8) {
20334 ecode9 = SWIG_AsVal_int(obj8, &val9);
20335 if (!SWIG_IsOK(ecode9)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20337 }
20338 arg9 = static_cast< int >(val9);
20339 }
20340 if (obj9) {
20341 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20342 if (!SWIG_IsOK(ecode10)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20344 }
20345 arg10 = static_cast< bool >(val10);
20346 }
20347 if (obj10) {
20348 ecode11 = SWIG_AsVal_int(obj10, &val11);
20349 if (!SWIG_IsOK(ecode11)) {
20350 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20351 }
20352 arg11 = static_cast< int >(val11);
20353 }
20354 if (obj11) {
20355 ecode12 = SWIG_AsVal_int(obj11, &val12);
20356 if (!SWIG_IsOK(ecode12)) {
20357 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20358 }
20359 arg12 = static_cast< int >(val12);
20360 }
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 {
20368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20369 }
20370 return resultobj;
20371fail:
20372 return NULL;
20373}
20374
20375
20376SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20377 PyObject *resultobj = 0;
20378 wxDC *arg1 = (wxDC *) 0 ;
20379 wxPoint *arg2 = 0 ;
20380 wxSize *arg3 = 0 ;
20381 wxDC *arg4 = (wxDC *) 0 ;
20382 wxPoint *arg5 = 0 ;
20383 int arg6 = (int) wxCOPY ;
20384 bool arg7 = (bool) false ;
20385 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20386 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20387 bool result;
20388 void *argp1 = 0 ;
20389 int res1 = 0 ;
20390 wxPoint temp2 ;
20391 wxSize temp3 ;
20392 void *argp4 = 0 ;
20393 int res4 = 0 ;
20394 wxPoint temp5 ;
20395 int val6 ;
20396 int ecode6 = 0 ;
20397 bool val7 ;
20398 int ecode7 = 0 ;
20399 wxPoint temp8 ;
20400 PyObject * obj0 = 0 ;
20401 PyObject * obj1 = 0 ;
20402 PyObject * obj2 = 0 ;
20403 PyObject * obj3 = 0 ;
20404 PyObject * obj4 = 0 ;
20405 PyObject * obj5 = 0 ;
20406 PyObject * obj6 = 0 ;
20407 PyObject * obj7 = 0 ;
20408 char * kwnames[] = {
20409 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20410 };
20411
20412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20416 }
20417 arg1 = reinterpret_cast< wxDC * >(argp1);
20418 {
20419 arg2 = &temp2;
20420 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20421 }
20422 {
20423 arg3 = &temp3;
20424 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20425 }
20426 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20427 if (!SWIG_IsOK(res4)) {
20428 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20429 }
20430 arg4 = reinterpret_cast< wxDC * >(argp4);
20431 {
20432 arg5 = &temp5;
20433 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20434 }
20435 if (obj5) {
20436 ecode6 = SWIG_AsVal_int(obj5, &val6);
20437 if (!SWIG_IsOK(ecode6)) {
20438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20439 }
20440 arg6 = static_cast< int >(val6);
20441 }
20442 if (obj6) {
20443 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20444 if (!SWIG_IsOK(ecode7)) {
20445 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20446 }
20447 arg7 = static_cast< bool >(val7);
20448 }
20449 if (obj7) {
093d3ff1 20450 {
554f62e9
RD
20451 arg8 = &temp8;
20452 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20453 }
554f62e9
RD
20454 }
20455 {
20456 PyThreadState* __tstate = wxPyBeginAllowThreads();
20457 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 {
20462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20463 }
20464 return resultobj;
20465fail:
20466 return NULL;
20467}
20468
20469
8f514ab4
RD
20470SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj = 0;
20472 wxDC *arg1 = (wxDC *) 0 ;
20473 wxRect *arg2 = (wxRect *) NULL ;
20474 SwigValueWrapper<wxBitmap > result;
20475 void *argp1 = 0 ;
20476 int res1 = 0 ;
20477 void *argp2 = 0 ;
20478 int res2 = 0 ;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481 char * kwnames[] = {
20482 (char *) "self",(char *) "subrect", NULL
20483 };
20484
20485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 if (obj1) {
20492 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20493 if (!SWIG_IsOK(res2)) {
20494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20495 }
20496 arg2 = reinterpret_cast< wxRect * >(argp2);
20497 }
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20501 wxPyEndAllowThreads(__tstate);
20502 if (PyErr_Occurred()) SWIG_fail;
20503 }
20504 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20505 return resultobj;
20506fail:
20507 return NULL;
20508}
20509
20510
554f62e9
RD
20511SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20512 PyObject *resultobj = 0;
20513 wxDC *arg1 = (wxDC *) 0 ;
20514 int arg2 ;
20515 int arg3 ;
20516 int arg4 ;
20517 int arg5 ;
20518 void *argp1 = 0 ;
20519 int res1 = 0 ;
20520 int val2 ;
20521 int ecode2 = 0 ;
20522 int val3 ;
20523 int ecode3 = 0 ;
20524 int val4 ;
20525 int ecode4 = 0 ;
20526 int val5 ;
20527 int ecode5 = 0 ;
20528 PyObject * obj0 = 0 ;
20529 PyObject * obj1 = 0 ;
20530 PyObject * obj2 = 0 ;
20531 PyObject * obj3 = 0 ;
20532 PyObject * obj4 = 0 ;
20533 char * kwnames[] = {
20534 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20535 };
20536
20537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20541 }
20542 arg1 = reinterpret_cast< wxDC * >(argp1);
20543 ecode2 = SWIG_AsVal_int(obj1, &val2);
20544 if (!SWIG_IsOK(ecode2)) {
20545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20546 }
20547 arg2 = static_cast< int >(val2);
20548 ecode3 = SWIG_AsVal_int(obj2, &val3);
20549 if (!SWIG_IsOK(ecode3)) {
20550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20551 }
20552 arg3 = static_cast< int >(val3);
20553 ecode4 = SWIG_AsVal_int(obj3, &val4);
20554 if (!SWIG_IsOK(ecode4)) {
20555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20556 }
20557 arg4 = static_cast< int >(val4);
20558 ecode5 = SWIG_AsVal_int(obj4, &val5);
20559 if (!SWIG_IsOK(ecode5)) {
20560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20561 }
20562 arg5 = static_cast< int >(val5);
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 resultobj = SWIG_Py_Void();
20570 return resultobj;
20571fail:
20572 return NULL;
20573}
20574
20575
20576SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20577 PyObject *resultobj = 0;
20578 wxDC *arg1 = (wxDC *) 0 ;
20579 wxPoint *arg2 = 0 ;
20580 wxSize *arg3 = 0 ;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 wxPoint temp2 ;
20584 wxSize temp3 ;
20585 PyObject * obj0 = 0 ;
20586 PyObject * obj1 = 0 ;
20587 PyObject * obj2 = 0 ;
20588 char * kwnames[] = {
20589 (char *) "self",(char *) "pt",(char *) "sz", NULL
20590 };
20591
20592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20594 if (!SWIG_IsOK(res1)) {
20595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20596 }
20597 arg1 = reinterpret_cast< wxDC * >(argp1);
20598 {
20599 arg2 = &temp2;
20600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20601 }
20602 {
20603 arg3 = &temp3;
20604 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20605 }
20606 {
20607 PyThreadState* __tstate = wxPyBeginAllowThreads();
20608 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 resultobj = SWIG_Py_Void();
20613 return resultobj;
20614fail:
20615 return NULL;
20616}
20617
20618
20619SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj = 0;
20621 wxDC *arg1 = (wxDC *) 0 ;
20622 wxRegion *arg2 = 0 ;
20623 void *argp1 = 0 ;
20624 int res1 = 0 ;
20625 void *argp2 = 0 ;
20626 int res2 = 0 ;
20627 PyObject * obj0 = 0 ;
20628 PyObject * obj1 = 0 ;
20629 char * kwnames[] = {
20630 (char *) "self",(char *) "region", NULL
20631 };
20632
20633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) 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_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20637 }
20638 arg1 = reinterpret_cast< wxDC * >(argp1);
20639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20640 if (!SWIG_IsOK(res2)) {
20641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20642 }
20643 if (!argp2) {
20644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20645 }
20646 arg2 = reinterpret_cast< wxRegion * >(argp2);
20647 {
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
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_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20661 PyObject *resultobj = 0;
20662 wxDC *arg1 = (wxDC *) 0 ;
20663 wxRect *arg2 = 0 ;
20664 void *argp1 = 0 ;
20665 int res1 = 0 ;
20666 wxRect temp2 ;
20667 PyObject * obj0 = 0 ;
20668 PyObject * obj1 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "self",(char *) "rect", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20677 }
20678 arg1 = reinterpret_cast< wxDC * >(argp1);
20679 {
20680 arg2 = &temp2;
20681 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20682 }
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_Py_Void();
20690 return resultobj;
20691fail:
20692 return NULL;
20693}
20694
20695
20696SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20697 PyObject *resultobj = 0;
20698 wxDC *arg1 = (wxDC *) 0 ;
20699 int arg2 ;
20700 wxPoint *arg3 = (wxPoint *) 0 ;
20701 int arg4 = (int) 0 ;
20702 int arg5 = (int) 0 ;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 int val4 ;
20706 int ecode4 = 0 ;
20707 int val5 ;
20708 int ecode5 = 0 ;
20709 PyObject * obj0 = 0 ;
20710 PyObject * obj1 = 0 ;
20711 PyObject * obj2 = 0 ;
20712 PyObject * obj3 = 0 ;
20713 char * kwnames[] = {
20714 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20715 };
20716
20717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20719 if (!SWIG_IsOK(res1)) {
20720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20721 }
20722 arg1 = reinterpret_cast< wxDC * >(argp1);
20723 {
20724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20725 if (arg3 == NULL) SWIG_fail;
20726 }
20727 if (obj2) {
20728 ecode4 = SWIG_AsVal_int(obj2, &val4);
20729 if (!SWIG_IsOK(ecode4)) {
20730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20731 }
20732 arg4 = static_cast< int >(val4);
20733 }
20734 if (obj3) {
20735 ecode5 = SWIG_AsVal_int(obj3, &val5);
20736 if (!SWIG_IsOK(ecode5)) {
20737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20738 }
20739 arg5 = static_cast< int >(val5);
20740 }
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 resultobj = SWIG_Py_Void();
20748 {
20749 if (arg3) delete [] arg3;
20750 }
20751 return resultobj;
20752fail:
20753 {
20754 if (arg3) delete [] arg3;
20755 }
20756 return NULL;
20757}
20758
20759
20760SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj = 0;
20762 wxDC *arg1 = (wxDC *) 0 ;
20763 int arg2 ;
20764 wxPoint *arg3 = (wxPoint *) 0 ;
20765 int arg4 = (int) 0 ;
20766 int arg5 = (int) 0 ;
20767 int arg6 = (int) wxODDEVEN_RULE ;
20768 void *argp1 = 0 ;
20769 int res1 = 0 ;
20770 int val4 ;
20771 int ecode4 = 0 ;
20772 int val5 ;
20773 int ecode5 = 0 ;
20774 int val6 ;
20775 int ecode6 = 0 ;
20776 PyObject * obj0 = 0 ;
20777 PyObject * obj1 = 0 ;
20778 PyObject * obj2 = 0 ;
20779 PyObject * obj3 = 0 ;
20780 PyObject * obj4 = 0 ;
20781 char * kwnames[] = {
20782 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20783 };
20784
20785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20793 if (arg3 == NULL) SWIG_fail;
20794 }
20795 if (obj2) {
20796 ecode4 = SWIG_AsVal_int(obj2, &val4);
20797 if (!SWIG_IsOK(ecode4)) {
20798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20799 }
20800 arg4 = static_cast< int >(val4);
20801 }
20802 if (obj3) {
20803 ecode5 = SWIG_AsVal_int(obj3, &val5);
20804 if (!SWIG_IsOK(ecode5)) {
20805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20806 }
20807 arg5 = static_cast< int >(val5);
20808 }
20809 if (obj4) {
20810 ecode6 = SWIG_AsVal_int(obj4, &val6);
20811 if (!SWIG_IsOK(ecode6)) {
20812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20813 }
20814 arg6 = static_cast< int >(val6);
20815 }
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 resultobj = SWIG_Py_Void();
20823 {
20824 if (arg3) delete [] arg3;
20825 }
20826 return resultobj;
20827fail:
20828 {
20829 if (arg3) delete [] arg3;
20830 }
20831 return NULL;
20832}
20833
20834
20835SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20836 PyObject *resultobj = 0;
20837 wxDC *arg1 = (wxDC *) 0 ;
20838 wxString *arg2 = 0 ;
20839 wxRect *arg3 = 0 ;
20840 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20841 int arg5 = (int) -1 ;
20842 void *argp1 = 0 ;
20843 int res1 = 0 ;
20844 bool temp2 = false ;
20845 wxRect temp3 ;
20846 int val4 ;
20847 int ecode4 = 0 ;
20848 int val5 ;
20849 int ecode5 = 0 ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 PyObject * obj2 = 0 ;
20853 PyObject * obj3 = 0 ;
20854 PyObject * obj4 = 0 ;
20855 char * kwnames[] = {
20856 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20857 };
20858
20859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20861 if (!SWIG_IsOK(res1)) {
20862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20863 }
20864 arg1 = reinterpret_cast< wxDC * >(argp1);
20865 {
20866 arg2 = wxString_in_helper(obj1);
20867 if (arg2 == NULL) SWIG_fail;
20868 temp2 = true;
20869 }
20870 {
20871 arg3 = &temp3;
20872 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20873 }
20874 if (obj3) {
20875 ecode4 = SWIG_AsVal_int(obj3, &val4);
20876 if (!SWIG_IsOK(ecode4)) {
20877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20878 }
20879 arg4 = static_cast< int >(val4);
20880 }
20881 if (obj4) {
20882 ecode5 = SWIG_AsVal_int(obj4, &val5);
20883 if (!SWIG_IsOK(ecode5)) {
20884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20885 }
20886 arg5 = static_cast< int >(val5);
20887 }
20888 {
20889 PyThreadState* __tstate = wxPyBeginAllowThreads();
20890 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20891 wxPyEndAllowThreads(__tstate);
20892 if (PyErr_Occurred()) SWIG_fail;
20893 }
20894 resultobj = SWIG_Py_Void();
20895 {
20896 if (temp2)
20897 delete arg2;
20898 }
20899 return resultobj;
20900fail:
20901 {
20902 if (temp2)
20903 delete arg2;
20904 }
20905 return NULL;
20906}
20907
20908
20909SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = 0;
20911 wxDC *arg1 = (wxDC *) 0 ;
20912 wxString *arg2 = 0 ;
20913 wxBitmap *arg3 = 0 ;
20914 wxRect *arg4 = 0 ;
20915 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20916 int arg6 = (int) -1 ;
20917 wxRect result;
20918 void *argp1 = 0 ;
20919 int res1 = 0 ;
20920 bool temp2 = false ;
20921 void *argp3 = 0 ;
20922 int res3 = 0 ;
20923 wxRect temp4 ;
20924 int val5 ;
20925 int ecode5 = 0 ;
20926 int val6 ;
20927 int ecode6 = 0 ;
20928 PyObject * obj0 = 0 ;
20929 PyObject * obj1 = 0 ;
20930 PyObject * obj2 = 0 ;
20931 PyObject * obj3 = 0 ;
20932 PyObject * obj4 = 0 ;
20933 PyObject * obj5 = 0 ;
20934 char * kwnames[] = {
20935 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20936 };
20937
20938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20940 if (!SWIG_IsOK(res1)) {
20941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20942 }
20943 arg1 = reinterpret_cast< wxDC * >(argp1);
20944 {
20945 arg2 = wxString_in_helper(obj1);
20946 if (arg2 == NULL) SWIG_fail;
20947 temp2 = true;
20948 }
20949 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20950 if (!SWIG_IsOK(res3)) {
20951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20952 }
20953 if (!argp3) {
20954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20955 }
20956 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20957 {
20958 arg4 = &temp4;
20959 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20960 }
20961 if (obj4) {
20962 ecode5 = SWIG_AsVal_int(obj4, &val5);
20963 if (!SWIG_IsOK(ecode5)) {
20964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20965 }
20966 arg5 = static_cast< int >(val5);
20967 }
20968 if (obj5) {
20969 ecode6 = SWIG_AsVal_int(obj5, &val6);
20970 if (!SWIG_IsOK(ecode6)) {
20971 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20972 }
20973 arg6 = static_cast< int >(val6);
20974 }
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20978 wxPyEndAllowThreads(__tstate);
20979 if (PyErr_Occurred()) SWIG_fail;
20980 }
20981 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20982 {
20983 if (temp2)
20984 delete arg2;
20985 }
20986 return resultobj;
20987fail:
20988 {
20989 if (temp2)
20990 delete arg2;
20991 }
20992 return NULL;
20993}
20994
20995
20996SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxDC *arg1 = (wxDC *) 0 ;
20999 int arg2 ;
21000 wxPoint *arg3 = (wxPoint *) 0 ;
21001 void *argp1 = 0 ;
21002 int res1 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "points", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21013 }
21014 arg1 = reinterpret_cast< wxDC * >(argp1);
21015 {
21016 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21017 if (arg3 == NULL) SWIG_fail;
21018 }
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 (arg1)->DrawSpline(arg2,arg3);
21022 wxPyEndAllowThreads(__tstate);
21023 if (PyErr_Occurred()) SWIG_fail;
21024 }
21025 resultobj = SWIG_Py_Void();
21026 {
21027 if (arg3) delete [] arg3;
21028 }
21029 return resultobj;
21030fail:
21031 {
21032 if (arg3) delete [] arg3;
21033 }
21034 return NULL;
21035}
21036
21037
21038SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 void *argp1 = 0 ;
21042 int res1 = 0 ;
21043 PyObject *swig_obj[1] ;
21044
21045 if (!args) SWIG_fail;
21046 swig_obj[0] = args;
21047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21048 if (!SWIG_IsOK(res1)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21050 }
21051 arg1 = reinterpret_cast< wxDC * >(argp1);
21052 {
21053 PyThreadState* __tstate = wxPyBeginAllowThreads();
21054 (arg1)->Clear();
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 resultobj = SWIG_Py_Void();
21059 return resultobj;
21060fail:
21061 return NULL;
21062}
21063
21064
21065SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj = 0;
21067 wxDC *arg1 = (wxDC *) 0 ;
21068 wxString *arg2 = 0 ;
21069 bool result;
21070 void *argp1 = 0 ;
21071 int res1 = 0 ;
21072 bool temp2 = false ;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21075 char * kwnames[] = {
21076 (char *) "self",(char *) "message", NULL
21077 };
21078
21079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21081 if (!SWIG_IsOK(res1)) {
21082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21083 }
21084 arg1 = reinterpret_cast< wxDC * >(argp1);
21085 {
21086 arg2 = wxString_in_helper(obj1);
21087 if (arg2 == NULL) SWIG_fail;
21088 temp2 = true;
21089 }
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 {
21097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21098 }
21099 {
21100 if (temp2)
21101 delete arg2;
21102 }
21103 return resultobj;
21104fail:
21105 {
21106 if (temp2)
21107 delete arg2;
21108 }
21109 return NULL;
21110}
21111
21112
21113SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21114 PyObject *resultobj = 0;
21115 wxDC *arg1 = (wxDC *) 0 ;
21116 void *argp1 = 0 ;
21117 int res1 = 0 ;
21118 PyObject *swig_obj[1] ;
21119
21120 if (!args) SWIG_fail;
21121 swig_obj[0] = args;
21122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21123 if (!SWIG_IsOK(res1)) {
21124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21125 }
21126 arg1 = reinterpret_cast< wxDC * >(argp1);
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 (arg1)->EndDoc();
21130 wxPyEndAllowThreads(__tstate);
21131 if (PyErr_Occurred()) SWIG_fail;
21132 }
21133 resultobj = SWIG_Py_Void();
21134 return resultobj;
21135fail:
21136 return NULL;
21137}
21138
21139
21140SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21141 PyObject *resultobj = 0;
21142 wxDC *arg1 = (wxDC *) 0 ;
21143 void *argp1 = 0 ;
21144 int res1 = 0 ;
21145 PyObject *swig_obj[1] ;
21146
21147 if (!args) SWIG_fail;
21148 swig_obj[0] = args;
21149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21150 if (!SWIG_IsOK(res1)) {
21151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21152 }
21153 arg1 = reinterpret_cast< wxDC * >(argp1);
21154 {
21155 PyThreadState* __tstate = wxPyBeginAllowThreads();
21156 (arg1)->StartPage();
21157 wxPyEndAllowThreads(__tstate);
21158 if (PyErr_Occurred()) SWIG_fail;
21159 }
21160 resultobj = SWIG_Py_Void();
21161 return resultobj;
21162fail:
21163 return NULL;
21164}
21165
21166
21167SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21168 PyObject *resultobj = 0;
21169 wxDC *arg1 = (wxDC *) 0 ;
21170 void *argp1 = 0 ;
21171 int res1 = 0 ;
21172 PyObject *swig_obj[1] ;
21173
21174 if (!args) SWIG_fail;
21175 swig_obj[0] = args;
21176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21177 if (!SWIG_IsOK(res1)) {
21178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21179 }
21180 arg1 = reinterpret_cast< wxDC * >(argp1);
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 (arg1)->EndPage();
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 resultobj = SWIG_Py_Void();
21188 return resultobj;
21189fail:
21190 return NULL;
21191}
21192
21193
21194SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21195 PyObject *resultobj = 0;
21196 wxDC *arg1 = (wxDC *) 0 ;
21197 wxFont *arg2 = 0 ;
21198 void *argp1 = 0 ;
21199 int res1 = 0 ;
21200 void *argp2 = 0 ;
21201 int res2 = 0 ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 char * kwnames[] = {
21205 (char *) "self",(char *) "font", NULL
21206 };
21207
21208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21210 if (!SWIG_IsOK(res1)) {
21211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21212 }
21213 arg1 = reinterpret_cast< wxDC * >(argp1);
21214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21215 if (!SWIG_IsOK(res2)) {
21216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21217 }
21218 if (!argp2) {
21219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21220 }
21221 arg2 = reinterpret_cast< wxFont * >(argp2);
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 (arg1)->SetFont((wxFont const &)*arg2);
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_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21236 PyObject *resultobj = 0;
21237 wxDC *arg1 = (wxDC *) 0 ;
21238 wxPen *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 *) "pen", NULL
21247 };
21248
21249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",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_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21253 }
21254 arg1 = reinterpret_cast< wxDC * >(argp1);
21255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21256 if (!SWIG_IsOK(res2)) {
21257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21258 }
21259 if (!argp2) {
21260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21261 }
21262 arg2 = reinterpret_cast< wxPen * >(argp2);
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 (arg1)->SetPen((wxPen 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_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21277 PyObject *resultobj = 0;
21278 wxDC *arg1 = (wxDC *) 0 ;
21279 wxBrush *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 *) "brush", NULL
21288 };
21289
21290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",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_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21294 }
21295 arg1 = reinterpret_cast< wxDC * >(argp1);
21296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21297 if (!SWIG_IsOK(res2)) {
21298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21299 }
21300 if (!argp2) {
21301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21302 }
21303 arg2 = reinterpret_cast< wxBrush * >(argp2);
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 (arg1)->SetBrush((wxBrush 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_SetBackground(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_SetBackground",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_SetBackground" "', 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_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21340 }
21341 if (!argp2) {
21342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21343 }
21344 arg2 = reinterpret_cast< wxBrush * >(argp2);
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 (arg1)->SetBackground((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_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 wxDC *arg1 = (wxDC *) 0 ;
21361 int arg2 ;
21362 void *argp1 = 0 ;
21363 int res1 = 0 ;
21364 int val2 ;
21365 int ecode2 = 0 ;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char * kwnames[] = {
21369 (char *) "self",(char *) "mode", NULL
21370 };
21371
21372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",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_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21376 }
21377 arg1 = reinterpret_cast< wxDC * >(argp1);
21378 ecode2 = SWIG_AsVal_int(obj1, &val2);
21379 if (!SWIG_IsOK(ecode2)) {
21380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21381 }
21382 arg2 = static_cast< int >(val2);
21383 {
21384 PyThreadState* __tstate = wxPyBeginAllowThreads();
21385 (arg1)->SetBackgroundMode(arg2);
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 resultobj = SWIG_Py_Void();
21390 return resultobj;
21391fail:
21392 return NULL;
21393}
21394
21395
21396SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 wxPalette *arg2 = 0 ;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 void *argp2 = 0 ;
21403 int res2 = 0 ;
21404 PyObject * obj0 = 0 ;
21405 PyObject * obj1 = 0 ;
21406 char * kwnames[] = {
21407 (char *) "self",(char *) "palette", NULL
21408 };
21409
21410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21412 if (!SWIG_IsOK(res1)) {
21413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21414 }
21415 arg1 = reinterpret_cast< wxDC * >(argp1);
21416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21417 if (!SWIG_IsOK(res2)) {
21418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21419 }
21420 if (!argp2) {
21421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21422 }
21423 arg2 = reinterpret_cast< wxPalette * >(argp2);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 (arg1)->SetPalette((wxPalette const &)*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_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 PyObject *swig_obj[1] ;
21443
21444 if (!args) SWIG_fail;
21445 swig_obj[0] = args;
21446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21447 if (!SWIG_IsOK(res1)) {
21448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21449 }
21450 arg1 = reinterpret_cast< wxDC * >(argp1);
21451 {
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 (arg1)->DestroyClippingRegion();
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_Py_Void();
21458 return resultobj;
21459fail:
21460 return NULL;
21461}
21462
21463
21464SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21465 PyObject *resultobj = 0;
21466 wxDC *arg1 = (wxDC *) 0 ;
21467 int *arg2 = (int *) 0 ;
21468 int *arg3 = (int *) 0 ;
21469 int *arg4 = (int *) 0 ;
21470 int *arg5 = (int *) 0 ;
21471 void *argp1 = 0 ;
21472 int res1 = 0 ;
21473 int temp2 ;
21474 int res2 = SWIG_TMPOBJ ;
21475 int temp3 ;
21476 int res3 = SWIG_TMPOBJ ;
21477 int temp4 ;
21478 int res4 = SWIG_TMPOBJ ;
21479 int temp5 ;
21480 int res5 = SWIG_TMPOBJ ;
21481 PyObject *swig_obj[1] ;
21482
21483 arg2 = &temp2;
21484 arg3 = &temp3;
21485 arg4 = &temp4;
21486 arg5 = &temp5;
21487 if (!args) SWIG_fail;
21488 swig_obj[0] = args;
21489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21490 if (!SWIG_IsOK(res1)) {
21491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21492 }
21493 arg1 = reinterpret_cast< wxDC * >(argp1);
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 resultobj = SWIG_Py_Void();
21501 if (SWIG_IsTmpObj(res2)) {
21502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21503 } else {
21504 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21506 }
21507 if (SWIG_IsTmpObj(res3)) {
21508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21509 } else {
21510 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21512 }
21513 if (SWIG_IsTmpObj(res4)) {
21514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21515 } else {
21516 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21518 }
21519 if (SWIG_IsTmpObj(res5)) {
21520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21521 } else {
21522 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21524 }
21525 return resultobj;
21526fail:
21527 return NULL;
21528}
21529
21530
21531SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21532 PyObject *resultobj = 0;
21533 wxDC *arg1 = (wxDC *) 0 ;
21534 wxRect result;
21535 void *argp1 = 0 ;
21536 int res1 = 0 ;
21537 PyObject *swig_obj[1] ;
21538
21539 if (!args) SWIG_fail;
21540 swig_obj[0] = args;
21541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21542 if (!SWIG_IsOK(res1)) {
21543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21544 }
21545 arg1 = reinterpret_cast< wxDC * >(argp1);
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = wxDC_GetClippingRect(arg1);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21553 return resultobj;
21554fail:
21555 return NULL;
21556}
21557
21558
21559SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21560 PyObject *resultobj = 0;
21561 wxDC *arg1 = (wxDC *) 0 ;
21562 int result;
21563 void *argp1 = 0 ;
21564 int res1 = 0 ;
21565 PyObject *swig_obj[1] ;
21566
21567 if (!args) SWIG_fail;
21568 swig_obj[0] = args;
21569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21570 if (!SWIG_IsOK(res1)) {
21571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21572 }
21573 arg1 = reinterpret_cast< wxDC * >(argp1);
21574 {
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = (int)((wxDC const *)arg1)->GetCharHeight();
21577 wxPyEndAllowThreads(__tstate);
21578 if (PyErr_Occurred()) SWIG_fail;
21579 }
21580 resultobj = SWIG_From_int(static_cast< int >(result));
21581 return resultobj;
21582fail:
21583 return NULL;
21584}
21585
21586
21587SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21588 PyObject *resultobj = 0;
21589 wxDC *arg1 = (wxDC *) 0 ;
21590 int result;
21591 void *argp1 = 0 ;
21592 int res1 = 0 ;
21593 PyObject *swig_obj[1] ;
21594
21595 if (!args) SWIG_fail;
21596 swig_obj[0] = args;
21597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21598 if (!SWIG_IsOK(res1)) {
21599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21600 }
21601 arg1 = reinterpret_cast< wxDC * >(argp1);
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = (int)((wxDC const *)arg1)->GetCharWidth();
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 resultobj = SWIG_From_int(static_cast< int >(result));
21609 return resultobj;
21610fail:
21611 return NULL;
21612}
21613
21614
21615SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21616 PyObject *resultobj = 0;
21617 wxDC *arg1 = (wxDC *) 0 ;
21618 wxString *arg2 = 0 ;
21619 int *arg3 = (int *) 0 ;
21620 int *arg4 = (int *) 0 ;
21621 void *argp1 = 0 ;
21622 int res1 = 0 ;
21623 bool temp2 = false ;
21624 int temp3 ;
21625 int res3 = SWIG_TMPOBJ ;
21626 int temp4 ;
21627 int res4 = SWIG_TMPOBJ ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char * kwnames[] = {
21631 (char *) "self",(char *) "string", NULL
21632 };
21633
21634 arg3 = &temp3;
21635 arg4 = &temp4;
21636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 arg2 = wxString_in_helper(obj1);
21644 if (arg2 == NULL) SWIG_fail;
21645 temp2 = true;
21646 }
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 resultobj = SWIG_Py_Void();
21654 if (SWIG_IsTmpObj(res3)) {
21655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21656 } else {
21657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21659 }
21660 if (SWIG_IsTmpObj(res4)) {
21661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21662 } else {
21663 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21665 }
21666 {
21667 if (temp2)
21668 delete arg2;
21669 }
21670 return resultobj;
21671fail:
21672 {
21673 if (temp2)
21674 delete arg2;
21675 }
21676 return NULL;
21677}
21678
21679
21680SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj = 0;
21682 wxDC *arg1 = (wxDC *) 0 ;
21683 wxString *arg2 = 0 ;
21684 int *arg3 = (int *) 0 ;
21685 int *arg4 = (int *) 0 ;
21686 int *arg5 = (int *) 0 ;
21687 int *arg6 = (int *) 0 ;
21688 wxFont *arg7 = (wxFont *) NULL ;
21689 void *argp1 = 0 ;
21690 int res1 = 0 ;
21691 bool temp2 = false ;
21692 int temp3 ;
21693 int res3 = SWIG_TMPOBJ ;
21694 int temp4 ;
21695 int res4 = SWIG_TMPOBJ ;
21696 int temp5 ;
21697 int res5 = SWIG_TMPOBJ ;
21698 int temp6 ;
21699 int res6 = SWIG_TMPOBJ ;
21700 void *argp7 = 0 ;
21701 int res7 = 0 ;
21702 PyObject * obj0 = 0 ;
21703 PyObject * obj1 = 0 ;
21704 PyObject * obj2 = 0 ;
21705 char * kwnames[] = {
21706 (char *) "self",(char *) "string",(char *) "font", NULL
21707 };
21708
21709 arg3 = &temp3;
21710 arg4 = &temp4;
21711 arg5 = &temp5;
21712 arg6 = &temp6;
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21717 }
21718 arg1 = reinterpret_cast< wxDC * >(argp1);
21719 {
21720 arg2 = wxString_in_helper(obj1);
21721 if (arg2 == NULL) SWIG_fail;
21722 temp2 = true;
21723 }
21724 if (obj2) {
21725 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21726 if (!SWIG_IsOK(res7)) {
21727 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21728 }
554f62e9
RD
21729 arg7 = reinterpret_cast< wxFont * >(argp7);
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 resultobj = SWIG_Py_Void();
21738 if (SWIG_IsTmpObj(res3)) {
21739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21740 } else {
21741 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21743 }
21744 if (SWIG_IsTmpObj(res4)) {
21745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21746 } else {
21747 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21749 }
21750 if (SWIG_IsTmpObj(res5)) {
21751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21752 } else {
21753 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21755 }
21756 if (SWIG_IsTmpObj(res6)) {
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21758 } else {
21759 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21761 }
21762 {
21763 if (temp2)
21764 delete arg2;
21765 }
21766 return resultobj;
21767fail:
21768 {
21769 if (temp2)
21770 delete arg2;
21771 }
21772 return NULL;
21773}
21774
21775
21776SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj = 0;
21778 wxDC *arg1 = (wxDC *) 0 ;
21779 wxString *arg2 = 0 ;
21780 int *arg3 = (int *) 0 ;
21781 int *arg4 = (int *) 0 ;
21782 int *arg5 = (int *) 0 ;
21783 wxFont *arg6 = (wxFont *) NULL ;
21784 void *argp1 = 0 ;
21785 int res1 = 0 ;
21786 bool temp2 = false ;
21787 int temp3 ;
21788 int res3 = SWIG_TMPOBJ ;
21789 int temp4 ;
21790 int res4 = SWIG_TMPOBJ ;
21791 int temp5 ;
21792 int res5 = SWIG_TMPOBJ ;
21793 void *argp6 = 0 ;
21794 int res6 = 0 ;
21795 PyObject * obj0 = 0 ;
21796 PyObject * obj1 = 0 ;
21797 PyObject * obj2 = 0 ;
21798 char * kwnames[] = {
21799 (char *) "self",(char *) "text",(char *) "font", NULL
21800 };
21801
21802 arg3 = &temp3;
21803 arg4 = &temp4;
21804 arg5 = &temp5;
21805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21807 if (!SWIG_IsOK(res1)) {
21808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21809 }
21810 arg1 = reinterpret_cast< wxDC * >(argp1);
21811 {
21812 arg2 = wxString_in_helper(obj1);
21813 if (arg2 == NULL) SWIG_fail;
21814 temp2 = true;
21815 }
21816 if (obj2) {
21817 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21818 if (!SWIG_IsOK(res6)) {
21819 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21820 }
554f62e9
RD
21821 arg6 = reinterpret_cast< wxFont * >(argp6);
21822 }
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_Py_Void();
21830 if (SWIG_IsTmpObj(res3)) {
21831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21832 } else {
21833 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21835 }
21836 if (SWIG_IsTmpObj(res4)) {
21837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21838 } else {
21839 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21841 }
21842 if (SWIG_IsTmpObj(res5)) {
21843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21844 } else {
21845 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21847 }
21848 {
21849 if (temp2)
21850 delete arg2;
21851 }
21852 return resultobj;
21853fail:
21854 {
21855 if (temp2)
21856 delete arg2;
21857 }
21858 return NULL;
21859}
21860
21861
21862SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj = 0;
21864 wxDC *arg1 = (wxDC *) 0 ;
21865 wxString *arg2 = 0 ;
21866 wxArrayInt result;
21867 void *argp1 = 0 ;
21868 int res1 = 0 ;
21869 bool temp2 = false ;
21870 PyObject * obj0 = 0 ;
21871 PyObject * obj1 = 0 ;
21872 char * kwnames[] = {
21873 (char *) "self",(char *) "text", NULL
21874 };
21875
21876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 arg2 = wxString_in_helper(obj1);
21884 if (arg2 == NULL) SWIG_fail;
21885 temp2 = true;
21886 }
21887 {
21888 PyThreadState* __tstate = wxPyBeginAllowThreads();
21889 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21890 wxPyEndAllowThreads(__tstate);
21891 if (PyErr_Occurred()) SWIG_fail;
21892 }
21893 {
b39fe951 21894 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21895 }
21896 {
21897 if (temp2)
21898 delete arg2;
21899 }
21900 return resultobj;
21901fail:
21902 {
21903 if (temp2)
21904 delete arg2;
21905 }
21906 return NULL;
21907}
21908
21909
21910SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21911 PyObject *resultobj = 0;
21912 wxDC *arg1 = (wxDC *) 0 ;
21913 wxSize result;
21914 void *argp1 = 0 ;
21915 int res1 = 0 ;
21916 PyObject *swig_obj[1] ;
21917
21918 if (!args) SWIG_fail;
21919 swig_obj[0] = args;
21920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21921 if (!SWIG_IsOK(res1)) {
21922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21923 }
21924 arg1 = reinterpret_cast< wxDC * >(argp1);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 result = (arg1)->GetSize();
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21932 return resultobj;
21933fail:
21934 return NULL;
21935}
21936
21937
21938SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxDC *arg1 = (wxDC *) 0 ;
21941 int *arg2 = (int *) 0 ;
21942 int *arg3 = (int *) 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 int temp2 ;
21946 int res2 = SWIG_TMPOBJ ;
21947 int temp3 ;
21948 int res3 = SWIG_TMPOBJ ;
21949 PyObject *swig_obj[1] ;
21950
21951 arg2 = &temp2;
21952 arg3 = &temp3;
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21958 }
21959 arg1 = reinterpret_cast< wxDC * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 (arg1)->GetSize(arg2,arg3);
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_Py_Void();
21967 if (SWIG_IsTmpObj(res2)) {
21968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21969 } else {
21970 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21972 }
21973 if (SWIG_IsTmpObj(res3)) {
21974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21975 } else {
21976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21978 }
21979 return resultobj;
21980fail:
21981 return NULL;
21982}
21983
21984
21985SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 wxSize result;
21989 void *argp1 = 0 ;
21990 int res1 = 0 ;
21991 PyObject *swig_obj[1] ;
21992
21993 if (!args) SWIG_fail;
21994 swig_obj[0] = args;
21995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21998 }
21999 arg1 = reinterpret_cast< wxDC * >(argp1);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = ((wxDC const *)arg1)->GetSizeMM();
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22007 return resultobj;
22008fail:
22009 return NULL;
22010}
22011
22012
22013SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxDC *arg1 = (wxDC *) 0 ;
22016 int *arg2 = (int *) 0 ;
22017 int *arg3 = (int *) 0 ;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 int temp2 ;
22021 int res2 = SWIG_TMPOBJ ;
22022 int temp3 ;
22023 int res3 = SWIG_TMPOBJ ;
22024 PyObject *swig_obj[1] ;
22025
22026 arg2 = &temp2;
22027 arg3 = &temp3;
22028 if (!args) SWIG_fail;
22029 swig_obj[0] = args;
22030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxDC * >(argp1);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 resultobj = SWIG_Py_Void();
22042 if (SWIG_IsTmpObj(res2)) {
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22044 } else {
22045 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22047 }
22048 if (SWIG_IsTmpObj(res3)) {
22049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22050 } else {
22051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22053 }
22054 return resultobj;
22055fail:
22056 return NULL;
22057}
22058
22059
22060SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj = 0;
22062 wxDC *arg1 = (wxDC *) 0 ;
22063 int arg2 ;
22064 int result;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int val2 ;
22068 int ecode2 = 0 ;
22069 PyObject * obj0 = 0 ;
22070 PyObject * obj1 = 0 ;
22071 char * kwnames[] = {
22072 (char *) "self",(char *) "x", NULL
22073 };
22074
22075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22077 if (!SWIG_IsOK(res1)) {
22078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22079 }
22080 arg1 = reinterpret_cast< wxDC * >(argp1);
22081 ecode2 = SWIG_AsVal_int(obj1, &val2);
22082 if (!SWIG_IsOK(ecode2)) {
22083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22084 }
22085 arg2 = static_cast< int >(val2);
22086 {
22087 PyThreadState* __tstate = wxPyBeginAllowThreads();
22088 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 resultobj = SWIG_From_int(static_cast< int >(result));
22093 return resultobj;
22094fail:
22095 return NULL;
22096}
22097
22098
22099SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22100 PyObject *resultobj = 0;
22101 wxDC *arg1 = (wxDC *) 0 ;
22102 int arg2 ;
22103 int result;
22104 void *argp1 = 0 ;
22105 int res1 = 0 ;
22106 int val2 ;
22107 int ecode2 = 0 ;
22108 PyObject * obj0 = 0 ;
22109 PyObject * obj1 = 0 ;
22110 char * kwnames[] = {
22111 (char *) "self",(char *) "y", NULL
22112 };
22113
22114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22116 if (!SWIG_IsOK(res1)) {
22117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22118 }
22119 arg1 = reinterpret_cast< wxDC * >(argp1);
22120 ecode2 = SWIG_AsVal_int(obj1, &val2);
22121 if (!SWIG_IsOK(ecode2)) {
22122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22123 }
22124 arg2 = static_cast< int >(val2);
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_From_int(static_cast< int >(result));
22132 return resultobj;
22133fail:
22134 return NULL;
22135}
22136
22137
22138SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj = 0;
22140 wxDC *arg1 = (wxDC *) 0 ;
22141 int arg2 ;
22142 int result;
22143 void *argp1 = 0 ;
22144 int res1 = 0 ;
22145 int val2 ;
22146 int ecode2 = 0 ;
22147 PyObject * obj0 = 0 ;
22148 PyObject * obj1 = 0 ;
22149 char * kwnames[] = {
22150 (char *) "self",(char *) "x", NULL
22151 };
22152
22153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22155 if (!SWIG_IsOK(res1)) {
22156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22157 }
22158 arg1 = reinterpret_cast< wxDC * >(argp1);
22159 ecode2 = SWIG_AsVal_int(obj1, &val2);
22160 if (!SWIG_IsOK(ecode2)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22162 }
22163 arg2 = static_cast< int >(val2);
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22167 wxPyEndAllowThreads(__tstate);
22168 if (PyErr_Occurred()) SWIG_fail;
22169 }
22170 resultobj = SWIG_From_int(static_cast< int >(result));
22171 return resultobj;
22172fail:
22173 return NULL;
22174}
22175
22176
22177SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj = 0;
22179 wxDC *arg1 = (wxDC *) 0 ;
22180 int arg2 ;
22181 int result;
22182 void *argp1 = 0 ;
22183 int res1 = 0 ;
22184 int val2 ;
22185 int ecode2 = 0 ;
22186 PyObject * obj0 = 0 ;
22187 PyObject * obj1 = 0 ;
22188 char * kwnames[] = {
22189 (char *) "self",(char *) "y", NULL
22190 };
22191
22192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 ecode2 = SWIG_AsVal_int(obj1, &val2);
22199 if (!SWIG_IsOK(ecode2)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22201 }
22202 arg2 = static_cast< int >(val2);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_From_int(static_cast< int >(result));
22210 return resultobj;
22211fail:
22212 return NULL;
22213}
22214
22215
22216SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22217 PyObject *resultobj = 0;
22218 wxDC *arg1 = (wxDC *) 0 ;
22219 int arg2 ;
22220 int result;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 int val2 ;
22224 int ecode2 = 0 ;
22225 PyObject * obj0 = 0 ;
22226 PyObject * obj1 = 0 ;
22227 char * kwnames[] = {
22228 (char *) "self",(char *) "x", NULL
22229 };
22230
22231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 ecode2 = SWIG_AsVal_int(obj1, &val2);
22238 if (!SWIG_IsOK(ecode2)) {
22239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22240 }
22241 arg2 = static_cast< int >(val2);
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22245 wxPyEndAllowThreads(__tstate);
22246 if (PyErr_Occurred()) SWIG_fail;
22247 }
22248 resultobj = SWIG_From_int(static_cast< int >(result));
22249 return resultobj;
22250fail:
22251 return NULL;
22252}
22253
22254
22255SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22256 PyObject *resultobj = 0;
22257 wxDC *arg1 = (wxDC *) 0 ;
22258 int arg2 ;
22259 int result;
22260 void *argp1 = 0 ;
22261 int res1 = 0 ;
22262 int val2 ;
22263 int ecode2 = 0 ;
22264 PyObject * obj0 = 0 ;
22265 PyObject * obj1 = 0 ;
22266 char * kwnames[] = {
22267 (char *) "self",(char *) "y", NULL
22268 };
22269
22270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22274 }
22275 arg1 = reinterpret_cast< wxDC * >(argp1);
22276 ecode2 = SWIG_AsVal_int(obj1, &val2);
22277 if (!SWIG_IsOK(ecode2)) {
22278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22279 }
22280 arg2 = static_cast< int >(val2);
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_From_int(static_cast< int >(result));
22288 return resultobj;
22289fail:
22290 return NULL;
22291}
22292
22293
22294SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22295 PyObject *resultobj = 0;
22296 wxDC *arg1 = (wxDC *) 0 ;
22297 int arg2 ;
22298 int result;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 int val2 ;
22302 int ecode2 = 0 ;
22303 PyObject * obj0 = 0 ;
22304 PyObject * obj1 = 0 ;
22305 char * kwnames[] = {
22306 (char *) "self",(char *) "x", NULL
22307 };
22308
22309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22311 if (!SWIG_IsOK(res1)) {
22312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22313 }
22314 arg1 = reinterpret_cast< wxDC * >(argp1);
22315 ecode2 = SWIG_AsVal_int(obj1, &val2);
22316 if (!SWIG_IsOK(ecode2)) {
22317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22318 }
22319 arg2 = static_cast< int >(val2);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 resultobj = SWIG_From_int(static_cast< int >(result));
22327 return resultobj;
22328fail:
22329 return NULL;
22330}
22331
22332
22333SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22334 PyObject *resultobj = 0;
22335 wxDC *arg1 = (wxDC *) 0 ;
22336 int arg2 ;
22337 int result;
22338 void *argp1 = 0 ;
22339 int res1 = 0 ;
22340 int val2 ;
22341 int ecode2 = 0 ;
22342 PyObject * obj0 = 0 ;
22343 PyObject * obj1 = 0 ;
22344 char * kwnames[] = {
22345 (char *) "self",(char *) "y", NULL
22346 };
22347
22348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22352 }
22353 arg1 = reinterpret_cast< wxDC * >(argp1);
22354 ecode2 = SWIG_AsVal_int(obj1, &val2);
22355 if (!SWIG_IsOK(ecode2)) {
22356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22357 }
22358 arg2 = static_cast< int >(val2);
22359 {
22360 PyThreadState* __tstate = wxPyBeginAllowThreads();
22361 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22362 wxPyEndAllowThreads(__tstate);
22363 if (PyErr_Occurred()) SWIG_fail;
22364 }
22365 resultobj = SWIG_From_int(static_cast< int >(result));
22366 return resultobj;
22367fail:
22368 return NULL;
22369}
22370
22371
22372SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22373 PyObject *resultobj = 0;
22374 wxDC *arg1 = (wxDC *) 0 ;
22375 bool result;
22376 void *argp1 = 0 ;
22377 int res1 = 0 ;
22378 PyObject *swig_obj[1] ;
22379
22380 if (!args) SWIG_fail;
22381 swig_obj[0] = args;
22382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 {
22394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22395 }
22396 return resultobj;
22397fail:
22398 return NULL;
22399}
22400
22401
22402SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22403 PyObject *resultobj = 0;
22404 wxDC *arg1 = (wxDC *) 0 ;
22405 bool result;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 PyObject *swig_obj[1] ;
22409
22410 if (!args) SWIG_fail;
22411 swig_obj[0] = args;
22412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22413 if (!SWIG_IsOK(res1)) {
22414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22415 }
22416 arg1 = reinterpret_cast< wxDC * >(argp1);
22417 {
22418 PyThreadState* __tstate = wxPyBeginAllowThreads();
22419 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 {
22424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22425 }
22426 return resultobj;
22427fail:
22428 return NULL;
22429}
22430
22431
22432SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22433 PyObject *resultobj = 0;
22434 wxDC *arg1 = (wxDC *) 0 ;
22435 int result;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 PyObject *swig_obj[1] ;
22439
22440 if (!args) SWIG_fail;
22441 swig_obj[0] = args;
22442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22445 }
22446 arg1 = reinterpret_cast< wxDC * >(argp1);
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = (int)((wxDC const *)arg1)->GetDepth();
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 resultobj = SWIG_From_int(static_cast< int >(result));
22454 return resultobj;
22455fail:
22456 return NULL;
22457}
22458
22459
22460SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22461 PyObject *resultobj = 0;
22462 wxDC *arg1 = (wxDC *) 0 ;
22463 wxSize result;
22464 void *argp1 = 0 ;
22465 int res1 = 0 ;
22466 PyObject *swig_obj[1] ;
22467
22468 if (!args) SWIG_fail;
22469 swig_obj[0] = args;
22470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22473 }
22474 arg1 = reinterpret_cast< wxDC * >(argp1);
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 result = ((wxDC const *)arg1)->GetPPI();
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22482 return resultobj;
22483fail:
22484 return NULL;
22485}
22486
22487
b39fe951 22488SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22489 PyObject *resultobj = 0;
22490 wxDC *arg1 = (wxDC *) 0 ;
22491 bool result;
22492 void *argp1 = 0 ;
22493 int res1 = 0 ;
22494 PyObject *swig_obj[1] ;
22495
22496 if (!args) SWIG_fail;
22497 swig_obj[0] = args;
22498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22499 if (!SWIG_IsOK(res1)) {
b39fe951 22500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22501 }
22502 arg1 = reinterpret_cast< wxDC * >(argp1);
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22505 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22511 }
22512 return resultobj;
22513fail:
22514 return NULL;
22515}
22516
22517
22518SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22519 PyObject *resultobj = 0;
22520 wxDC *arg1 = (wxDC *) 0 ;
22521 int result;
22522 void *argp1 = 0 ;
22523 int res1 = 0 ;
22524 PyObject *swig_obj[1] ;
22525
22526 if (!args) SWIG_fail;
22527 swig_obj[0] = args;
22528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22529 if (!SWIG_IsOK(res1)) {
22530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22531 }
22532 arg1 = reinterpret_cast< wxDC * >(argp1);
22533 {
22534 PyThreadState* __tstate = wxPyBeginAllowThreads();
22535 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22536 wxPyEndAllowThreads(__tstate);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 }
22539 resultobj = SWIG_From_int(static_cast< int >(result));
22540 return resultobj;
22541fail:
22542 return NULL;
22543}
22544
22545
22546SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22547 PyObject *resultobj = 0;
22548 wxDC *arg1 = (wxDC *) 0 ;
22549 wxBrush *result = 0 ;
22550 void *argp1 = 0 ;
22551 int res1 = 0 ;
22552 PyObject *swig_obj[1] ;
22553
22554 if (!args) SWIG_fail;
22555 swig_obj[0] = args;
22556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22557 if (!SWIG_IsOK(res1)) {
22558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22559 }
22560 arg1 = reinterpret_cast< wxDC * >(argp1);
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22563 {
554f62e9
RD
22564 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22565 result = (wxBrush *) &_result_ref;
093d3ff1 22566 }
554f62e9
RD
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 {
22571 wxBrush* resultptr = new wxBrush(*result);
22572 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22573 }
22574 return resultobj;
22575fail:
22576 return NULL;
22577}
22578
22579
22580SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxDC *arg1 = (wxDC *) 0 ;
22583 wxBrush *result = 0 ;
22584 void *argp1 = 0 ;
22585 int res1 = 0 ;
22586 PyObject *swig_obj[1] ;
22587
22588 if (!args) SWIG_fail;
22589 swig_obj[0] = args;
22590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22593 }
22594 arg1 = reinterpret_cast< wxDC * >(argp1);
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22597 {
554f62e9
RD
22598 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22599 result = (wxBrush *) &_result_ref;
093d3ff1 22600 }
554f62e9
RD
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 {
22605 wxBrush* resultptr = new wxBrush(*result);
22606 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22607 }
22608 return resultobj;
22609fail:
22610 return NULL;
22611}
22612
22613
22614SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22615 PyObject *resultobj = 0;
22616 wxDC *arg1 = (wxDC *) 0 ;
22617 wxFont *result = 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 PyObject *swig_obj[1] ;
22621
22622 if (!args) SWIG_fail;
22623 swig_obj[0] = args;
22624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22625 if (!SWIG_IsOK(res1)) {
22626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22627 }
22628 arg1 = reinterpret_cast< wxDC * >(argp1);
22629 {
22630 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22631 {
554f62e9
RD
22632 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22633 result = (wxFont *) &_result_ref;
093d3ff1 22634 }
554f62e9
RD
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 {
22639 wxFont* resultptr = new wxFont(*result);
22640 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22641 }
22642 return resultobj;
22643fail:
22644 return NULL;
22645}
22646
22647
22648SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22649 PyObject *resultobj = 0;
22650 wxDC *arg1 = (wxDC *) 0 ;
22651 wxPen *result = 0 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 PyObject *swig_obj[1] ;
22655
22656 if (!args) SWIG_fail;
22657 swig_obj[0] = args;
22658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22659 if (!SWIG_IsOK(res1)) {
22660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22661 }
22662 arg1 = reinterpret_cast< wxDC * >(argp1);
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22665 {
554f62e9
RD
22666 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22667 result = (wxPen *) &_result_ref;
093d3ff1 22668 }
554f62e9
RD
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 wxPen* resultptr = new wxPen(*result);
22674 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22675 }
22676 return resultobj;
22677fail:
22678 return NULL;
22679}
22680
22681
22682SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *resultobj = 0;
22684 wxDC *arg1 = (wxDC *) 0 ;
22685 wxColour *result = 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22695 }
22696 arg1 = reinterpret_cast< wxDC * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22699 {
554f62e9
RD
22700 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22701 result = (wxColour *) &_result_ref;
093d3ff1 22702 }
554f62e9
RD
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22707 return resultobj;
22708fail:
22709 return NULL;
22710}
22711
22712
22713SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22714 PyObject *resultobj = 0;
22715 wxDC *arg1 = (wxDC *) 0 ;
22716 wxColour *result = 0 ;
22717 void *argp1 = 0 ;
22718 int res1 = 0 ;
22719 PyObject *swig_obj[1] ;
22720
22721 if (!args) SWIG_fail;
22722 swig_obj[0] = args;
22723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22726 }
22727 arg1 = reinterpret_cast< wxDC * >(argp1);
22728 {
22729 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22730 {
554f62e9
RD
22731 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22732 result = (wxColour *) &_result_ref;
093d3ff1 22733 }
554f62e9
RD
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22738 return resultobj;
22739fail:
22740 return NULL;
22741}
22742
22743
22744SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj = 0;
22746 wxDC *arg1 = (wxDC *) 0 ;
22747 wxColour *arg2 = 0 ;
22748 void *argp1 = 0 ;
22749 int res1 = 0 ;
22750 wxColour temp2 ;
22751 PyObject * obj0 = 0 ;
22752 PyObject * obj1 = 0 ;
22753 char * kwnames[] = {
22754 (char *) "self",(char *) "colour", NULL
22755 };
22756
22757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22759 if (!SWIG_IsOK(res1)) {
22760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22761 }
22762 arg1 = reinterpret_cast< wxDC * >(argp1);
22763 {
22764 arg2 = &temp2;
22765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22766 }
22767 {
22768 PyThreadState* __tstate = wxPyBeginAllowThreads();
22769 (arg1)->SetTextForeground((wxColour const &)*arg2);
22770 wxPyEndAllowThreads(__tstate);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 }
22773 resultobj = SWIG_Py_Void();
22774 return resultobj;
22775fail:
22776 return NULL;
22777}
22778
22779
22780SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22781 PyObject *resultobj = 0;
22782 wxDC *arg1 = (wxDC *) 0 ;
22783 wxColour *arg2 = 0 ;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 wxColour temp2 ;
22787 PyObject * obj0 = 0 ;
22788 PyObject * obj1 = 0 ;
22789 char * kwnames[] = {
22790 (char *) "self",(char *) "colour", NULL
22791 };
22792
22793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22795 if (!SWIG_IsOK(res1)) {
22796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22797 }
22798 arg1 = reinterpret_cast< wxDC * >(argp1);
22799 {
22800 arg2 = &temp2;
22801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22802 }
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 (arg1)->SetTextBackground((wxColour const &)*arg2);
22806 wxPyEndAllowThreads(__tstate);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 }
22809 resultobj = SWIG_Py_Void();
22810 return resultobj;
22811fail:
22812 return NULL;
22813}
22814
22815
22816SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22817 PyObject *resultobj = 0;
22818 wxDC *arg1 = (wxDC *) 0 ;
22819 int result;
22820 void *argp1 = 0 ;
22821 int res1 = 0 ;
22822 PyObject *swig_obj[1] ;
22823
22824 if (!args) SWIG_fail;
22825 swig_obj[0] = args;
22826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22827 if (!SWIG_IsOK(res1)) {
22828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22829 }
22830 arg1 = reinterpret_cast< wxDC * >(argp1);
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 result = (int)((wxDC const *)arg1)->GetMapMode();
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_From_int(static_cast< int >(result));
22838 return resultobj;
22839fail:
22840 return NULL;
22841}
22842
22843
22844SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj = 0;
22846 wxDC *arg1 = (wxDC *) 0 ;
22847 int arg2 ;
22848 void *argp1 = 0 ;
22849 int res1 = 0 ;
22850 int val2 ;
22851 int ecode2 = 0 ;
22852 PyObject * obj0 = 0 ;
22853 PyObject * obj1 = 0 ;
22854 char * kwnames[] = {
22855 (char *) "self",(char *) "mode", NULL
22856 };
22857
22858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22860 if (!SWIG_IsOK(res1)) {
22861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22862 }
22863 arg1 = reinterpret_cast< wxDC * >(argp1);
22864 ecode2 = SWIG_AsVal_int(obj1, &val2);
22865 if (!SWIG_IsOK(ecode2)) {
22866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22867 }
22868 arg2 = static_cast< int >(val2);
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 (arg1)->SetMapMode(arg2);
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = SWIG_Py_Void();
22876 return resultobj;
22877fail:
22878 return NULL;
22879}
22880
22881
22882SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 double *arg2 = (double *) 0 ;
22886 double *arg3 = (double *) 0 ;
22887 void *argp1 = 0 ;
22888 int res1 = 0 ;
22889 double temp2 ;
22890 int res2 = SWIG_TMPOBJ ;
22891 double temp3 ;
22892 int res3 = SWIG_TMPOBJ ;
22893 PyObject *swig_obj[1] ;
22894
22895 arg2 = &temp2;
22896 arg3 = &temp3;
22897 if (!args) SWIG_fail;
22898 swig_obj[0] = args;
22899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22902 }
22903 arg1 = reinterpret_cast< wxDC * >(argp1);
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = SWIG_Py_Void();
22911 if (SWIG_IsTmpObj(res2)) {
22912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22913 } else {
22914 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22916 }
22917 if (SWIG_IsTmpObj(res3)) {
22918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22919 } else {
22920 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22922 }
22923 return resultobj;
22924fail:
22925 return NULL;
22926}
22927
22928
22929SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22930 PyObject *resultobj = 0;
22931 wxDC *arg1 = (wxDC *) 0 ;
22932 double arg2 ;
22933 double arg3 ;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 double val2 ;
22937 int ecode2 = 0 ;
22938 double val3 ;
22939 int ecode3 = 0 ;
22940 PyObject * obj0 = 0 ;
22941 PyObject * obj1 = 0 ;
22942 PyObject * obj2 = 0 ;
22943 char * kwnames[] = {
22944 (char *) "self",(char *) "x",(char *) "y", NULL
22945 };
22946
22947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22949 if (!SWIG_IsOK(res1)) {
22950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22951 }
22952 arg1 = reinterpret_cast< wxDC * >(argp1);
22953 ecode2 = SWIG_AsVal_double(obj1, &val2);
22954 if (!SWIG_IsOK(ecode2)) {
22955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22956 }
22957 arg2 = static_cast< double >(val2);
22958 ecode3 = SWIG_AsVal_double(obj2, &val3);
22959 if (!SWIG_IsOK(ecode3)) {
22960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22961 }
22962 arg3 = static_cast< double >(val3);
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 (arg1)->SetUserScale(arg2,arg3);
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971fail:
22972 return NULL;
22973}
22974
22975
22976SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 double *arg2 = (double *) 0 ;
22980 double *arg3 = (double *) 0 ;
22981 void *argp1 = 0 ;
22982 int res1 = 0 ;
22983 double temp2 ;
22984 int res2 = SWIG_TMPOBJ ;
22985 double temp3 ;
22986 int res3 = SWIG_TMPOBJ ;
22987 PyObject *swig_obj[1] ;
22988
22989 arg2 = &temp2;
22990 arg3 = &temp3;
22991 if (!args) SWIG_fail;
22992 swig_obj[0] = args;
22993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 (arg1)->GetLogicalScale(arg2,arg3);
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_Py_Void();
23005 if (SWIG_IsTmpObj(res2)) {
23006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23007 } else {
23008 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23010 }
23011 if (SWIG_IsTmpObj(res3)) {
23012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23013 } else {
23014 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23016 }
23017 return resultobj;
23018fail:
23019 return NULL;
23020}
23021
23022
23023SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj = 0;
23025 wxDC *arg1 = (wxDC *) 0 ;
23026 double arg2 ;
23027 double arg3 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 double val2 ;
23031 int ecode2 = 0 ;
23032 double val3 ;
23033 int ecode3 = 0 ;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 char * kwnames[] = {
23038 (char *) "self",(char *) "x",(char *) "y", NULL
23039 };
23040
23041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 ecode2 = SWIG_AsVal_double(obj1, &val2);
23048 if (!SWIG_IsOK(ecode2)) {
23049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23050 }
23051 arg2 = static_cast< double >(val2);
23052 ecode3 = SWIG_AsVal_double(obj2, &val3);
23053 if (!SWIG_IsOK(ecode3)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23055 }
23056 arg3 = static_cast< double >(val3);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 (arg1)->SetLogicalScale(arg2,arg3);
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_Py_Void();
23064 return resultobj;
23065fail:
23066 return NULL;
23067}
23068
23069
23070SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 wxPoint result;
23074 void *argp1 = 0 ;
23075 int res1 = 0 ;
23076 PyObject *swig_obj[1] ;
23077
23078 if (!args) SWIG_fail;
23079 swig_obj[0] = args;
23080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23081 if (!SWIG_IsOK(res1)) {
23082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23083 }
23084 arg1 = reinterpret_cast< wxDC * >(argp1);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23092 return resultobj;
23093fail:
23094 return NULL;
23095}
23096
23097
23098SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23099 PyObject *resultobj = 0;
23100 wxDC *arg1 = (wxDC *) 0 ;
23101 int *arg2 = (int *) 0 ;
23102 int *arg3 = (int *) 0 ;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 int temp2 ;
23106 int res2 = SWIG_TMPOBJ ;
23107 int temp3 ;
23108 int res3 = SWIG_TMPOBJ ;
23109 PyObject *swig_obj[1] ;
23110
23111 arg2 = &temp2;
23112 arg3 = &temp3;
23113 if (!args) SWIG_fail;
23114 swig_obj[0] = args;
23115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23116 if (!SWIG_IsOK(res1)) {
23117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23118 }
23119 arg1 = reinterpret_cast< wxDC * >(argp1);
23120 {
23121 PyThreadState* __tstate = wxPyBeginAllowThreads();
23122 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23123 wxPyEndAllowThreads(__tstate);
23124 if (PyErr_Occurred()) SWIG_fail;
23125 }
23126 resultobj = SWIG_Py_Void();
23127 if (SWIG_IsTmpObj(res2)) {
23128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23129 } else {
23130 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23132 }
23133 if (SWIG_IsTmpObj(res3)) {
23134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23135 } else {
23136 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23138 }
23139 return resultobj;
23140fail:
23141 return NULL;
23142}
23143
23144
23145SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj = 0;
23147 wxDC *arg1 = (wxDC *) 0 ;
23148 int arg2 ;
23149 int arg3 ;
23150 void *argp1 = 0 ;
23151 int res1 = 0 ;
23152 int val2 ;
23153 int ecode2 = 0 ;
23154 int val3 ;
23155 int ecode3 = 0 ;
23156 PyObject * obj0 = 0 ;
23157 PyObject * obj1 = 0 ;
23158 PyObject * obj2 = 0 ;
23159 char * kwnames[] = {
23160 (char *) "self",(char *) "x",(char *) "y", NULL
23161 };
23162
23163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23165 if (!SWIG_IsOK(res1)) {
23166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23167 }
23168 arg1 = reinterpret_cast< wxDC * >(argp1);
23169 ecode2 = SWIG_AsVal_int(obj1, &val2);
23170 if (!SWIG_IsOK(ecode2)) {
23171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23172 }
23173 arg2 = static_cast< int >(val2);
23174 ecode3 = SWIG_AsVal_int(obj2, &val3);
23175 if (!SWIG_IsOK(ecode3)) {
23176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23177 }
23178 arg3 = static_cast< int >(val3);
23179 {
23180 PyThreadState* __tstate = wxPyBeginAllowThreads();
23181 (arg1)->SetLogicalOrigin(arg2,arg3);
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 resultobj = SWIG_Py_Void();
23186 return resultobj;
23187fail:
23188 return NULL;
23189}
23190
23191
23192SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23193 PyObject *resultobj = 0;
23194 wxDC *arg1 = (wxDC *) 0 ;
23195 wxPoint *arg2 = 0 ;
23196 void *argp1 = 0 ;
23197 int res1 = 0 ;
23198 wxPoint temp2 ;
23199 PyObject * obj0 = 0 ;
23200 PyObject * obj1 = 0 ;
23201 char * kwnames[] = {
23202 (char *) "self",(char *) "point", NULL
23203 };
23204
23205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23207 if (!SWIG_IsOK(res1)) {
23208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23209 }
23210 arg1 = reinterpret_cast< wxDC * >(argp1);
23211 {
23212 arg2 = &temp2;
23213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23214 }
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 resultobj = SWIG_Py_Void();
23222 return resultobj;
23223fail:
23224 return NULL;
23225}
23226
23227
23228SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23229 PyObject *resultobj = 0;
23230 wxDC *arg1 = (wxDC *) 0 ;
23231 wxPoint result;
23232 void *argp1 = 0 ;
23233 int res1 = 0 ;
23234 PyObject *swig_obj[1] ;
23235
23236 if (!args) SWIG_fail;
23237 swig_obj[0] = args;
23238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23239 if (!SWIG_IsOK(res1)) {
23240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23241 }
23242 arg1 = reinterpret_cast< wxDC * >(argp1);
23243 {
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23246 wxPyEndAllowThreads(__tstate);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 }
23249 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23250 return resultobj;
23251fail:
23252 return NULL;
23253}
23254
23255
23256SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23257 PyObject *resultobj = 0;
23258 wxDC *arg1 = (wxDC *) 0 ;
23259 int *arg2 = (int *) 0 ;
23260 int *arg3 = (int *) 0 ;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 int temp2 ;
23264 int res2 = SWIG_TMPOBJ ;
23265 int temp3 ;
23266 int res3 = SWIG_TMPOBJ ;
23267 PyObject *swig_obj[1] ;
23268
23269 arg2 = &temp2;
23270 arg3 = &temp3;
23271 if (!args) SWIG_fail;
23272 swig_obj[0] = args;
23273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23274 if (!SWIG_IsOK(res1)) {
23275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23276 }
23277 arg1 = reinterpret_cast< wxDC * >(argp1);
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23281 wxPyEndAllowThreads(__tstate);
23282 if (PyErr_Occurred()) SWIG_fail;
23283 }
23284 resultobj = SWIG_Py_Void();
23285 if (SWIG_IsTmpObj(res2)) {
23286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23287 } else {
23288 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23290 }
23291 if (SWIG_IsTmpObj(res3)) {
23292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23293 } else {
23294 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23296 }
23297 return resultobj;
23298fail:
23299 return NULL;
23300}
23301
23302
23303SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23304 PyObject *resultobj = 0;
23305 wxDC *arg1 = (wxDC *) 0 ;
23306 int arg2 ;
23307 int arg3 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 int val2 ;
23311 int ecode2 = 0 ;
23312 int val3 ;
23313 int ecode3 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 PyObject * obj2 = 0 ;
23317 char * kwnames[] = {
23318 (char *) "self",(char *) "x",(char *) "y", NULL
23319 };
23320
23321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23323 if (!SWIG_IsOK(res1)) {
23324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23325 }
23326 arg1 = reinterpret_cast< wxDC * >(argp1);
23327 ecode2 = SWIG_AsVal_int(obj1, &val2);
23328 if (!SWIG_IsOK(ecode2)) {
23329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23330 }
23331 arg2 = static_cast< int >(val2);
23332 ecode3 = SWIG_AsVal_int(obj2, &val3);
23333 if (!SWIG_IsOK(ecode3)) {
23334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23335 }
23336 arg3 = static_cast< int >(val3);
23337 {
23338 PyThreadState* __tstate = wxPyBeginAllowThreads();
23339 (arg1)->SetDeviceOrigin(arg2,arg3);
23340 wxPyEndAllowThreads(__tstate);
23341 if (PyErr_Occurred()) SWIG_fail;
23342 }
23343 resultobj = SWIG_Py_Void();
23344 return resultobj;
23345fail:
23346 return NULL;
23347}
23348
23349
23350SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23351 PyObject *resultobj = 0;
23352 wxDC *arg1 = (wxDC *) 0 ;
23353 wxPoint *arg2 = 0 ;
23354 void *argp1 = 0 ;
23355 int res1 = 0 ;
23356 wxPoint temp2 ;
23357 PyObject * obj0 = 0 ;
23358 PyObject * obj1 = 0 ;
23359 char * kwnames[] = {
23360 (char *) "self",(char *) "point", NULL
23361 };
23362
23363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23365 if (!SWIG_IsOK(res1)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23367 }
23368 arg1 = reinterpret_cast< wxDC * >(argp1);
23369 {
23370 arg2 = &temp2;
23371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23372 }
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = SWIG_Py_Void();
23380 return resultobj;
23381fail:
23382 return NULL;
23383}
23384
23385
23386SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxDC *arg1 = (wxDC *) 0 ;
23389 bool arg2 ;
23390 bool arg3 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 bool val2 ;
23394 int ecode2 = 0 ;
23395 bool val3 ;
23396 int ecode3 = 0 ;
23397 PyObject * obj0 = 0 ;
23398 PyObject * obj1 = 0 ;
23399 PyObject * obj2 = 0 ;
23400 char * kwnames[] = {
23401 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23402 };
23403
23404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) 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_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23408 }
23409 arg1 = reinterpret_cast< wxDC * >(argp1);
23410 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23411 if (!SWIG_IsOK(ecode2)) {
23412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23413 }
23414 arg2 = static_cast< bool >(val2);
23415 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23416 if (!SWIG_IsOK(ecode3)) {
23417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23418 }
23419 arg3 = static_cast< bool >(val3);
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 (arg1)->SetAxisOrientation(arg2,arg3);
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 return resultobj;
23428fail:
23429 return NULL;
23430}
23431
23432
23433SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23434 PyObject *resultobj = 0;
23435 wxDC *arg1 = (wxDC *) 0 ;
23436 int result;
23437 void *argp1 = 0 ;
23438 int res1 = 0 ;
23439 PyObject *swig_obj[1] ;
23440
23441 if (!args) SWIG_fail;
23442 swig_obj[0] = args;
23443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23446 }
23447 arg1 = reinterpret_cast< wxDC * >(argp1);
23448 {
23449 PyThreadState* __tstate = wxPyBeginAllowThreads();
23450 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23451 wxPyEndAllowThreads(__tstate);
23452 if (PyErr_Occurred()) SWIG_fail;
23453 }
23454 resultobj = SWIG_From_int(static_cast< int >(result));
23455 return resultobj;
23456fail:
23457 return NULL;
23458}
23459
23460
23461SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23462 PyObject *resultobj = 0;
23463 wxDC *arg1 = (wxDC *) 0 ;
23464 int arg2 ;
23465 void *argp1 = 0 ;
23466 int res1 = 0 ;
23467 int val2 ;
23468 int ecode2 = 0 ;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471 char * kwnames[] = {
23472 (char *) "self",(char *) "function", NULL
23473 };
23474
23475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23477 if (!SWIG_IsOK(res1)) {
23478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23479 }
23480 arg1 = reinterpret_cast< wxDC * >(argp1);
23481 ecode2 = SWIG_AsVal_int(obj1, &val2);
23482 if (!SWIG_IsOK(ecode2)) {
23483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23484 }
23485 arg2 = static_cast< int >(val2);
23486 {
23487 PyThreadState* __tstate = wxPyBeginAllowThreads();
23488 (arg1)->SetLogicalFunction(arg2);
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 resultobj = SWIG_Py_Void();
23493 return resultobj;
23494fail:
23495 return NULL;
23496}
23497
23498
23499SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23500 PyObject *resultobj = 0;
23501 wxDC *arg1 = (wxDC *) 0 ;
23502 void *argp1 = 0 ;
23503 int res1 = 0 ;
23504 PyObject *swig_obj[1] ;
23505
23506 if (!args) SWIG_fail;
23507 swig_obj[0] = args;
23508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23509 if (!SWIG_IsOK(res1)) {
23510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23511 }
23512 arg1 = reinterpret_cast< wxDC * >(argp1);
23513 {
23514 PyThreadState* __tstate = wxPyBeginAllowThreads();
23515 (arg1)->ComputeScaleAndOrigin();
23516 wxPyEndAllowThreads(__tstate);
23517 if (PyErr_Occurred()) SWIG_fail;
23518 }
23519 resultobj = SWIG_Py_Void();
23520 return resultobj;
23521fail:
23522 return NULL;
23523}
23524
23525
23526SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23527 PyObject *resultobj = 0;
23528 wxDC *arg1 = (wxDC *) 0 ;
23529 int arg2 ;
23530 int arg3 ;
23531 void *argp1 = 0 ;
23532 int res1 = 0 ;
23533 int val2 ;
23534 int ecode2 = 0 ;
23535 int val3 ;
23536 int ecode3 = 0 ;
23537 PyObject * obj0 = 0 ;
23538 PyObject * obj1 = 0 ;
23539 PyObject * obj2 = 0 ;
23540 char * kwnames[] = {
23541 (char *) "self",(char *) "x",(char *) "y", NULL
23542 };
23543
23544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23548 }
23549 arg1 = reinterpret_cast< wxDC * >(argp1);
23550 ecode2 = SWIG_AsVal_int(obj1, &val2);
23551 if (!SWIG_IsOK(ecode2)) {
23552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23553 }
23554 arg2 = static_cast< int >(val2);
23555 ecode3 = SWIG_AsVal_int(obj2, &val3);
23556 if (!SWIG_IsOK(ecode3)) {
23557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23558 }
23559 arg3 = static_cast< int >(val3);
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 (arg1)->CalcBoundingBox(arg2,arg3);
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 resultobj = SWIG_Py_Void();
23567 return resultobj;
23568fail:
23569 return NULL;
23570}
23571
23572
23573SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23574 PyObject *resultobj = 0;
23575 wxDC *arg1 = (wxDC *) 0 ;
23576 wxPoint *arg2 = 0 ;
23577 void *argp1 = 0 ;
23578 int res1 = 0 ;
23579 wxPoint temp2 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 char * kwnames[] = {
23583 (char *) "self",(char *) "point", NULL
23584 };
23585
23586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23590 }
23591 arg1 = reinterpret_cast< wxDC * >(argp1);
23592 {
23593 arg2 = &temp2;
23594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23595 }
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 resultobj = SWIG_Py_Void();
23603 return resultobj;
23604fail:
23605 return NULL;
23606}
23607
23608
23609SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23610 PyObject *resultobj = 0;
23611 wxDC *arg1 = (wxDC *) 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 PyObject *swig_obj[1] ;
23615
23616 if (!args) SWIG_fail;
23617 swig_obj[0] = args;
23618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23619 if (!SWIG_IsOK(res1)) {
23620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23621 }
23622 arg1 = reinterpret_cast< wxDC * >(argp1);
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 (arg1)->ResetBoundingBox();
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 resultobj = SWIG_Py_Void();
23630 return resultobj;
23631fail:
23632 return NULL;
23633}
23634
23635
23636SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23637 PyObject *resultobj = 0;
23638 wxDC *arg1 = (wxDC *) 0 ;
23639 int result;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 PyObject *swig_obj[1] ;
23643
23644 if (!args) SWIG_fail;
23645 swig_obj[0] = args;
23646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23649 }
23650 arg1 = reinterpret_cast< wxDC * >(argp1);
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = (int)((wxDC const *)arg1)->MinX();
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 resultobj = SWIG_From_int(static_cast< int >(result));
23658 return resultobj;
23659fail:
23660 return NULL;
23661}
23662
23663
23664SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23665 PyObject *resultobj = 0;
23666 wxDC *arg1 = (wxDC *) 0 ;
23667 int result;
23668 void *argp1 = 0 ;
23669 int res1 = 0 ;
23670 PyObject *swig_obj[1] ;
23671
23672 if (!args) SWIG_fail;
23673 swig_obj[0] = args;
23674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23675 if (!SWIG_IsOK(res1)) {
23676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23677 }
23678 arg1 = reinterpret_cast< wxDC * >(argp1);
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = (int)((wxDC const *)arg1)->MaxX();
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 resultobj = SWIG_From_int(static_cast< int >(result));
23686 return resultobj;
23687fail:
23688 return NULL;
23689}
23690
23691
23692SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23693 PyObject *resultobj = 0;
23694 wxDC *arg1 = (wxDC *) 0 ;
23695 int result;
23696 void *argp1 = 0 ;
23697 int res1 = 0 ;
23698 PyObject *swig_obj[1] ;
23699
23700 if (!args) SWIG_fail;
23701 swig_obj[0] = args;
23702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23703 if (!SWIG_IsOK(res1)) {
23704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23705 }
23706 arg1 = reinterpret_cast< wxDC * >(argp1);
23707 {
23708 PyThreadState* __tstate = wxPyBeginAllowThreads();
23709 result = (int)((wxDC const *)arg1)->MinY();
23710 wxPyEndAllowThreads(__tstate);
23711 if (PyErr_Occurred()) SWIG_fail;
23712 }
23713 resultobj = SWIG_From_int(static_cast< int >(result));
23714 return resultobj;
23715fail:
23716 return NULL;
23717}
23718
23719
23720SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23721 PyObject *resultobj = 0;
23722 wxDC *arg1 = (wxDC *) 0 ;
23723 int result;
23724 void *argp1 = 0 ;
23725 int res1 = 0 ;
23726 PyObject *swig_obj[1] ;
23727
23728 if (!args) SWIG_fail;
23729 swig_obj[0] = args;
23730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23731 if (!SWIG_IsOK(res1)) {
23732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23733 }
23734 arg1 = reinterpret_cast< wxDC * >(argp1);
23735 {
23736 PyThreadState* __tstate = wxPyBeginAllowThreads();
23737 result = (int)((wxDC const *)arg1)->MaxY();
23738 wxPyEndAllowThreads(__tstate);
23739 if (PyErr_Occurred()) SWIG_fail;
23740 }
23741 resultobj = SWIG_From_int(static_cast< int >(result));
23742 return resultobj;
23743fail:
23744 return NULL;
23745}
23746
23747
23748SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23749 PyObject *resultobj = 0;
23750 wxDC *arg1 = (wxDC *) 0 ;
23751 int *arg2 = (int *) 0 ;
23752 int *arg3 = (int *) 0 ;
23753 int *arg4 = (int *) 0 ;
23754 int *arg5 = (int *) 0 ;
23755 void *argp1 = 0 ;
23756 int res1 = 0 ;
23757 int temp2 ;
23758 int res2 = SWIG_TMPOBJ ;
23759 int temp3 ;
23760 int res3 = SWIG_TMPOBJ ;
23761 int temp4 ;
23762 int res4 = SWIG_TMPOBJ ;
23763 int temp5 ;
23764 int res5 = SWIG_TMPOBJ ;
23765 PyObject *swig_obj[1] ;
23766
23767 arg2 = &temp2;
23768 arg3 = &temp3;
23769 arg4 = &temp4;
23770 arg5 = &temp5;
23771 if (!args) SWIG_fail;
23772 swig_obj[0] = args;
23773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23774 if (!SWIG_IsOK(res1)) {
23775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23776 }
23777 arg1 = reinterpret_cast< wxDC * >(argp1);
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23781 wxPyEndAllowThreads(__tstate);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 }
23784 resultobj = SWIG_Py_Void();
23785 if (SWIG_IsTmpObj(res2)) {
23786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23787 } else {
23788 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23790 }
23791 if (SWIG_IsTmpObj(res3)) {
23792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23793 } else {
23794 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23796 }
23797 if (SWIG_IsTmpObj(res4)) {
23798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23799 } else {
23800 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23802 }
23803 if (SWIG_IsTmpObj(res5)) {
23804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23805 } else {
23806 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23807 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23808 }
23809 return resultobj;
23810fail:
23811 return NULL;
23812}
23813
23814
b39fe951
RD
23815SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23816 PyObject *resultobj = 0;
23817 wxDC *arg1 = (wxDC *) 0 ;
23818 wxLayoutDirection result;
23819 void *argp1 = 0 ;
23820 int res1 = 0 ;
23821 PyObject *swig_obj[1] ;
23822
23823 if (!args) SWIG_fail;
23824 swig_obj[0] = args;
23825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23828 }
23829 arg1 = reinterpret_cast< wxDC * >(argp1);
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 resultobj = SWIG_From_int(static_cast< int >(result));
23837 return resultobj;
23838fail:
23839 return NULL;
23840}
23841
23842
23843SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj = 0;
23845 wxDC *arg1 = (wxDC *) 0 ;
23846 wxLayoutDirection arg2 ;
23847 void *argp1 = 0 ;
23848 int res1 = 0 ;
23849 int val2 ;
23850 int ecode2 = 0 ;
23851 PyObject * obj0 = 0 ;
23852 PyObject * obj1 = 0 ;
23853 char * kwnames[] = {
23854 (char *) "self",(char *) "dir", NULL
23855 };
23856
23857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23861 }
23862 arg1 = reinterpret_cast< wxDC * >(argp1);
23863 ecode2 = SWIG_AsVal_int(obj1, &val2);
23864 if (!SWIG_IsOK(ecode2)) {
23865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23866 }
23867 arg2 = static_cast< wxLayoutDirection >(val2);
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 (arg1)->SetLayoutDirection(arg2);
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 resultobj = SWIG_Py_Void();
23875 return resultobj;
23876fail:
23877 return NULL;
23878}
23879
23880
554f62e9
RD
23881SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23882 PyObject *resultobj = 0;
23883 wxDC *arg1 = (wxDC *) 0 ;
23884 long result;
23885 void *argp1 = 0 ;
23886 int res1 = 0 ;
23887 PyObject *swig_obj[1] ;
23888
23889 if (!args) SWIG_fail;
23890 swig_obj[0] = args;
23891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23892 if (!SWIG_IsOK(res1)) {
23893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23894 }
23895 arg1 = reinterpret_cast< wxDC * >(argp1);
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (long)(arg1)->GetHDC();
23899 wxPyEndAllowThreads(__tstate);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 }
23902 resultobj = SWIG_From_long(static_cast< long >(result));
23903 return resultobj;
23904fail:
23905 return NULL;
23906}
23907
23908
23909SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23910 PyObject *resultobj = 0;
23911 wxDC *arg1 = (wxDC *) 0 ;
23912 PyObject *arg2 = (PyObject *) 0 ;
23913 PyObject *arg3 = (PyObject *) 0 ;
23914 PyObject *arg4 = (PyObject *) 0 ;
23915 PyObject *result = 0 ;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 PyObject * obj0 = 0 ;
23919 PyObject * obj1 = 0 ;
23920 PyObject * obj2 = 0 ;
23921 PyObject * obj3 = 0 ;
23922 char * kwnames[] = {
23923 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23924 };
23925
23926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23928 if (!SWIG_IsOK(res1)) {
23929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23930 }
23931 arg1 = reinterpret_cast< wxDC * >(argp1);
23932 arg2 = obj1;
23933 arg3 = obj2;
23934 arg4 = obj3;
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 resultobj = result;
23942 return resultobj;
23943fail:
23944 return NULL;
23945}
23946
23947
23948SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23949 PyObject *resultobj = 0;
23950 wxDC *arg1 = (wxDC *) 0 ;
23951 PyObject *arg2 = (PyObject *) 0 ;
23952 PyObject *arg3 = (PyObject *) 0 ;
23953 PyObject *arg4 = (PyObject *) 0 ;
23954 PyObject *result = 0 ;
23955 void *argp1 = 0 ;
23956 int res1 = 0 ;
23957 PyObject * obj0 = 0 ;
23958 PyObject * obj1 = 0 ;
23959 PyObject * obj2 = 0 ;
23960 PyObject * obj3 = 0 ;
23961 char * kwnames[] = {
23962 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23963 };
23964
23965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23967 if (!SWIG_IsOK(res1)) {
23968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23969 }
23970 arg1 = reinterpret_cast< wxDC * >(argp1);
23971 arg2 = obj1;
23972 arg3 = obj2;
23973 arg4 = obj3;
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 resultobj = result;
23981 return resultobj;
23982fail:
23983 return NULL;
23984}
23985
23986
23987SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23988 PyObject *resultobj = 0;
23989 wxDC *arg1 = (wxDC *) 0 ;
23990 PyObject *arg2 = (PyObject *) 0 ;
23991 PyObject *arg3 = (PyObject *) 0 ;
23992 PyObject *arg4 = (PyObject *) 0 ;
23993 PyObject *result = 0 ;
23994 void *argp1 = 0 ;
23995 int res1 = 0 ;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 PyObject * obj2 = 0 ;
23999 PyObject * obj3 = 0 ;
24000 char * kwnames[] = {
24001 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24002 };
24003
24004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24006 if (!SWIG_IsOK(res1)) {
24007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24008 }
24009 arg1 = reinterpret_cast< wxDC * >(argp1);
24010 arg2 = obj1;
24011 arg3 = obj2;
24012 arg4 = obj3;
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = result;
24020 return resultobj;
24021fail:
24022 return NULL;
24023}
24024
24025
24026SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxDC *arg1 = (wxDC *) 0 ;
24029 PyObject *arg2 = (PyObject *) 0 ;
24030 PyObject *arg3 = (PyObject *) 0 ;
24031 PyObject *arg4 = (PyObject *) 0 ;
24032 PyObject *result = 0 ;
24033 void *argp1 = 0 ;
24034 int res1 = 0 ;
24035 PyObject * obj0 = 0 ;
24036 PyObject * obj1 = 0 ;
24037 PyObject * obj2 = 0 ;
24038 PyObject * obj3 = 0 ;
24039 char * kwnames[] = {
24040 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24041 };
24042
24043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24045 if (!SWIG_IsOK(res1)) {
24046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24047 }
24048 arg1 = reinterpret_cast< wxDC * >(argp1);
24049 arg2 = obj1;
24050 arg3 = obj2;
24051 arg4 = obj3;
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 resultobj = result;
24059 return resultobj;
24060fail:
24061 return NULL;
24062}
24063
24064
24065SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24066 PyObject *resultobj = 0;
24067 wxDC *arg1 = (wxDC *) 0 ;
24068 PyObject *arg2 = (PyObject *) 0 ;
24069 PyObject *arg3 = (PyObject *) 0 ;
24070 PyObject *arg4 = (PyObject *) 0 ;
24071 PyObject *result = 0 ;
24072 void *argp1 = 0 ;
24073 int res1 = 0 ;
24074 PyObject * obj0 = 0 ;
24075 PyObject * obj1 = 0 ;
24076 PyObject * obj2 = 0 ;
24077 PyObject * obj3 = 0 ;
24078 char * kwnames[] = {
24079 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24080 };
24081
24082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24084 if (!SWIG_IsOK(res1)) {
24085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24086 }
24087 arg1 = reinterpret_cast< wxDC * >(argp1);
24088 arg2 = obj1;
24089 arg3 = obj2;
24090 arg4 = obj3;
24091 {
24092 PyThreadState* __tstate = wxPyBeginAllowThreads();
24093 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24094 wxPyEndAllowThreads(__tstate);
24095 if (PyErr_Occurred()) SWIG_fail;
24096 }
24097 resultobj = result;
24098 return resultobj;
24099fail:
24100 return NULL;
24101}
24102
24103
24104SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj = 0;
24106 wxDC *arg1 = (wxDC *) 0 ;
24107 PyObject *arg2 = (PyObject *) 0 ;
24108 PyObject *arg3 = (PyObject *) 0 ;
24109 PyObject *arg4 = (PyObject *) 0 ;
24110 PyObject *arg5 = (PyObject *) 0 ;
24111 PyObject *result = 0 ;
24112 void *argp1 = 0 ;
24113 int res1 = 0 ;
24114 PyObject * obj0 = 0 ;
24115 PyObject * obj1 = 0 ;
24116 PyObject * obj2 = 0 ;
24117 PyObject * obj3 = 0 ;
24118 PyObject * obj4 = 0 ;
24119 char * kwnames[] = {
24120 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24121 };
24122
24123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24127 }
24128 arg1 = reinterpret_cast< wxDC * >(argp1);
24129 arg2 = obj1;
24130 arg3 = obj2;
24131 arg4 = obj3;
24132 arg5 = obj4;
24133 {
24134 PyThreadState* __tstate = wxPyBeginAllowThreads();
24135 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24136 wxPyEndAllowThreads(__tstate);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 }
24139 resultobj = result;
24140 return resultobj;
24141fail:
24142 return NULL;
24143}
24144
24145
24146SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24147 PyObject *obj;
24148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24149 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24150 return SWIG_Py_Void();
24151}
24152
70d7cb34
RD
24153SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj = 0;
24155 wxDC *arg1 = 0 ;
24156 wxColour *arg2 = 0 ;
24157 wxDCTextColourChanger *result = 0 ;
24158 void *argp1 = 0 ;
24159 int res1 = 0 ;
24160 wxColour temp2 ;
24161 PyObject * obj0 = 0 ;
24162 PyObject * obj1 = 0 ;
24163 char * kwnames[] = {
24164 (char *) "dc",(char *) "col", NULL
24165 };
24166
24167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24168 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24169 if (!SWIG_IsOK(res1)) {
24170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24171 }
24172 if (!argp1) {
24173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24174 }
24175 arg1 = reinterpret_cast< wxDC * >(argp1);
24176 {
24177 arg2 = &temp2;
24178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24179 }
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24187 return resultobj;
24188fail:
24189 return NULL;
24190}
24191
24192
24193SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24196 void *argp1 = 0 ;
24197 int res1 = 0 ;
24198 PyObject *swig_obj[1] ;
24199
24200 if (!args) SWIG_fail;
24201 swig_obj[0] = args;
24202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24205 }
24206 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24207 {
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 delete arg1;
24210
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_Py_Void();
24215 return resultobj;
24216fail:
24217 return NULL;
24218}
24219
24220
24221SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *obj;
24223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24224 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24225 return SWIG_Py_Void();
24226}
24227
24228SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24229 return SWIG_Python_InitShadowInstance(args);
24230}
24231
24232SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24233 PyObject *resultobj = 0;
24234 wxDC *arg1 = 0 ;
24235 wxPen *arg2 = 0 ;
24236 wxDCPenChanger *result = 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 void *argp2 = 0 ;
24240 int res2 = 0 ;
24241 PyObject * obj0 = 0 ;
24242 PyObject * obj1 = 0 ;
24243 char * kwnames[] = {
24244 (char *) "dc",(char *) "pen", NULL
24245 };
24246
24247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24248 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24249 if (!SWIG_IsOK(res1)) {
24250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24251 }
24252 if (!argp1) {
24253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24254 }
24255 arg1 = reinterpret_cast< wxDC * >(argp1);
24256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24257 if (!SWIG_IsOK(res2)) {
24258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24259 }
24260 if (!argp2) {
24261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24262 }
24263 arg2 = reinterpret_cast< wxPen * >(argp2);
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24271 return resultobj;
24272fail:
24273 return NULL;
24274}
24275
24276
24277SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24280 void *argp1 = 0 ;
24281 int res1 = 0 ;
24282 PyObject *swig_obj[1] ;
24283
24284 if (!args) SWIG_fail;
24285 swig_obj[0] = args;
24286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24287 if (!SWIG_IsOK(res1)) {
24288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24289 }
24290 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 delete arg1;
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_Py_Void();
24299 return resultobj;
24300fail:
24301 return NULL;
24302}
24303
24304
24305SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24306 PyObject *obj;
24307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24308 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24309 return SWIG_Py_Void();
24310}
24311
24312SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24313 return SWIG_Python_InitShadowInstance(args);
24314}
24315
24316SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24317 PyObject *resultobj = 0;
24318 wxDC *arg1 = 0 ;
24319 wxBrush *arg2 = 0 ;
24320 wxDCBrushChanger *result = 0 ;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 void *argp2 = 0 ;
24324 int res2 = 0 ;
24325 PyObject * obj0 = 0 ;
24326 PyObject * obj1 = 0 ;
24327 char * kwnames[] = {
24328 (char *) "dc",(char *) "brush", NULL
24329 };
24330
24331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24332 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24333 if (!SWIG_IsOK(res1)) {
24334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24335 }
24336 if (!argp1) {
24337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24338 }
24339 arg1 = reinterpret_cast< wxDC * >(argp1);
24340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24341 if (!SWIG_IsOK(res2)) {
24342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24343 }
24344 if (!argp2) {
24345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24346 }
24347 arg2 = reinterpret_cast< wxBrush * >(argp2);
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24351 wxPyEndAllowThreads(__tstate);
24352 if (PyErr_Occurred()) SWIG_fail;
24353 }
24354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24355 return resultobj;
24356fail:
24357 return NULL;
24358}
24359
24360
24361SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24362 PyObject *resultobj = 0;
24363 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 PyObject *swig_obj[1] ;
24367
24368 if (!args) SWIG_fail;
24369 swig_obj[0] = args;
24370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24371 if (!SWIG_IsOK(res1)) {
24372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24373 }
24374 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24375 {
24376 PyThreadState* __tstate = wxPyBeginAllowThreads();
24377 delete arg1;
24378
24379 wxPyEndAllowThreads(__tstate);
24380 if (PyErr_Occurred()) SWIG_fail;
24381 }
24382 resultobj = SWIG_Py_Void();
24383 return resultobj;
24384fail:
24385 return NULL;
24386}
24387
24388
24389SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24390 PyObject *obj;
24391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24392 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24393 return SWIG_Py_Void();
24394}
24395
24396SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24397 return SWIG_Python_InitShadowInstance(args);
24398}
24399
24400SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24401 PyObject *resultobj = 0;
24402 wxDC *arg1 = 0 ;
24403 wxRegion *arg2 = 0 ;
24404 wxDCClipper *result = 0 ;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 void *argp2 = 0 ;
24408 int res2 = 0 ;
24409
24410 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24414 }
24415 if (!argp1) {
24416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24417 }
24418 arg1 = reinterpret_cast< wxDC * >(argp1);
24419 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24420 if (!SWIG_IsOK(res2)) {
24421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24422 }
24423 if (!argp2) {
24424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24425 }
24426 arg2 = reinterpret_cast< wxRegion * >(argp2);
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24430 wxPyEndAllowThreads(__tstate);
24431 if (PyErr_Occurred()) SWIG_fail;
24432 }
24433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24434 return resultobj;
24435fail:
24436 return NULL;
24437}
24438
24439
24440SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24441 PyObject *resultobj = 0;
24442 wxDC *arg1 = 0 ;
24443 wxRect *arg2 = 0 ;
24444 wxDCClipper *result = 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 wxRect temp2 ;
24448
24449 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24453 }
24454 if (!argp1) {
24455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24456 }
24457 arg1 = reinterpret_cast< wxDC * >(argp1);
24458 {
24459 arg2 = &temp2;
24460 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24461 }
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24469 return resultobj;
24470fail:
24471 return NULL;
24472}
24473
24474
24475SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24476 PyObject *resultobj = 0;
24477 wxDC *arg1 = 0 ;
24478 int arg2 ;
24479 int arg3 ;
24480 int arg4 ;
24481 int arg5 ;
24482 wxDCClipper *result = 0 ;
24483 void *argp1 = 0 ;
24484 int res1 = 0 ;
24485 int val2 ;
24486 int ecode2 = 0 ;
24487 int val3 ;
24488 int ecode3 = 0 ;
24489 int val4 ;
24490 int ecode4 = 0 ;
24491 int val5 ;
24492 int ecode5 = 0 ;
24493
24494 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24498 }
24499 if (!argp1) {
24500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24501 }
24502 arg1 = reinterpret_cast< wxDC * >(argp1);
24503 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24504 if (!SWIG_IsOK(ecode2)) {
24505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24506 }
24507 arg2 = static_cast< int >(val2);
24508 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24509 if (!SWIG_IsOK(ecode3)) {
24510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24511 }
24512 arg3 = static_cast< int >(val3);
24513 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24514 if (!SWIG_IsOK(ecode4)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24516 }
24517 arg4 = static_cast< int >(val4);
24518 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24519 if (!SWIG_IsOK(ecode5)) {
24520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24521 }
24522 arg5 = static_cast< int >(val5);
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24526 wxPyEndAllowThreads(__tstate);
24527 if (PyErr_Occurred()) SWIG_fail;
24528 }
24529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24530 return resultobj;
24531fail:
24532 return NULL;
24533}
24534
24535
24536SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24537 int argc;
24538 PyObject *argv[6];
24539
24540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24541 --argc;
24542 if (argc == 2) {
24543 int _v = 0;
24544 {
24545 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24546 _v = SWIG_CheckState(res);
24547 }
24548 if (!_v) goto check_1;
24549 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24550 }
24551check_1:
24552
24553 if (argc == 2) {
24554 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24555 }
24556 if (argc == 5) {
24557 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24558 }
24559
24560fail:
24561 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24562 return NULL;
24563}
24564
24565
24566SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24567 PyObject *resultobj = 0;
24568 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 PyObject *swig_obj[1] ;
24572
24573 if (!args) SWIG_fail;
24574 swig_obj[0] = args;
24575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24576 if (!SWIG_IsOK(res1)) {
24577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24578 }
24579 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 delete arg1;
24583
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 resultobj = SWIG_Py_Void();
24588 return resultobj;
24589fail:
24590 return NULL;
24591}
24592
24593
24594SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24595 PyObject *obj;
24596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24597 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24598 return SWIG_Py_Void();
24599}
24600
24601SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 return SWIG_Python_InitShadowInstance(args);
24603}
24604
8e99bda9 24605SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 24606 PyObject *resultobj = 0;
8f514ab4 24607 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 24608 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
554f62e9 24609 wxMemoryDC *result = 0 ;
8e99bda9
RD
24610 void *argp1 = 0 ;
24611 int res1 = 0 ;
24612 PyObject * obj0 = 0 ;
24613 char * kwnames[] = {
24614 (char *) "bitmap", NULL
24615 };
554f62e9 24616
8e99bda9
RD
24617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24618 if (obj0) {
8f514ab4 24619 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 24620 if (!SWIG_IsOK(res1)) {
8f514ab4 24621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
24622 }
24623 if (!argp1) {
8f514ab4 24624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
24625 }
24626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24627 }
554f62e9
RD
24628 {
24629 if (!wxPyCheckForApp()) SWIG_fail;
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24631 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
554f62e9
RD
24632 wxPyEndAllowThreads(__tstate);
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24636 return resultobj;
24637fail:
24638 return NULL;
24639}
24640
24641
24642SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxDC *arg1 = (wxDC *) 0 ;
24645 wxMemoryDC *result = 0 ;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "oldDC", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24657 }
24658 arg1 = reinterpret_cast< wxDC * >(argp1);
24659 {
24660 if (!wxPyCheckForApp()) SWIG_fail;
24661 PyThreadState* __tstate = wxPyBeginAllowThreads();
24662 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24667 return resultobj;
24668fail:
24669 return NULL;
24670}
24671
24672
24673SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj = 0;
24675 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24676 wxBitmap *arg2 = 0 ;
24677 void *argp1 = 0 ;
24678 int res1 = 0 ;
24679 void *argp2 = 0 ;
24680 int res2 = 0 ;
24681 PyObject * obj0 = 0 ;
24682 PyObject * obj1 = 0 ;
24683 char * kwnames[] = {
24684 (char *) "self",(char *) "bitmap", NULL
24685 };
24686
24687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24691 }
24692 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
24693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24694 if (!SWIG_IsOK(res2)) {
24695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24696 }
24697 if (!argp2) {
24698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24699 }
24700 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24701 {
24702 PyThreadState* __tstate = wxPyBeginAllowThreads();
24703 (arg1)->SelectObject(*arg2);
24704 wxPyEndAllowThreads(__tstate);
24705 if (PyErr_Occurred()) SWIG_fail;
24706 }
24707 resultobj = SWIG_Py_Void();
24708 return resultobj;
24709fail:
24710 return NULL;
24711}
24712
24713
24714SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj = 0;
24716 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24717 wxBitmap *arg2 = 0 ;
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 void *argp2 = 0 ;
24721 int res2 = 0 ;
24722 PyObject * obj0 = 0 ;
24723 PyObject * obj1 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "self",(char *) "bmp", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24732 }
24733 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
554f62e9
RD
24734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24735 if (!SWIG_IsOK(res2)) {
8f514ab4 24736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
554f62e9
RD
24737 }
24738 if (!argp2) {
8f514ab4 24739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
554f62e9
RD
24740 }
24741 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24742 {
24743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24744 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
554f62e9
RD
24745 wxPyEndAllowThreads(__tstate);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 resultobj = SWIG_Py_Void();
24749 return resultobj;
24750fail:
24751 return NULL;
24752}
24753
24754
24755SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24756 PyObject *obj;
24757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24758 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24759 return SWIG_Py_Void();
24760}
24761
24762SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24763 return SWIG_Python_InitShadowInstance(args);
24764}
24765
24f6c4e8
RD
24766SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24767 PyObject *resultobj = 0;
24768 wxScreenDC *result = 0 ;
24769
24770 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24771 {
24772 if (!wxPyCheckForApp()) SWIG_fail;
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = (wxScreenDC *)new wxScreenDC();
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24779 return resultobj;
24780fail:
24781 return NULL;
24782}
24783
24784
24785SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj = 0;
24787 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24788 wxWindow *arg2 = (wxWindow *) 0 ;
24789 bool result;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 void *argp2 = 0 ;
24793 int res2 = 0 ;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 char * kwnames[] = {
24797 (char *) "self",(char *) "window", NULL
24798 };
24799
24800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24802 if (!SWIG_IsOK(res1)) {
24803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24804 }
24805 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24807 if (!SWIG_IsOK(res2)) {
24808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24809 }
24810 arg2 = reinterpret_cast< wxWindow * >(argp2);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 {
24818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24819 }
24820 return resultobj;
24821fail:
24822 return NULL;
24823}
24824
24825
24826SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj = 0;
24828 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24829 wxRect *arg2 = (wxRect *) NULL ;
24830 bool result;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 void *argp2 = 0 ;
24834 int res2 = 0 ;
24835 PyObject * obj0 = 0 ;
24836 PyObject * obj1 = 0 ;
24837 char * kwnames[] = {
24838 (char *) "self",(char *) "rect", NULL
24839 };
24840
24841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24845 }
24846 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24847 if (obj1) {
24848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24849 if (!SWIG_IsOK(res2)) {
24850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24851 }
24852 arg2 = reinterpret_cast< wxRect * >(argp2);
24853 }
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 {
24861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24862 }
24863 return resultobj;
24864fail:
24865 return NULL;
24866}
24867
24868
24869SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24870 PyObject *resultobj = 0;
24871 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24872 bool result;
24873 void *argp1 = 0 ;
24874 int res1 = 0 ;
24875 PyObject *swig_obj[1] ;
24876
24877 if (!args) SWIG_fail;
24878 swig_obj[0] = args;
24879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24880 if (!SWIG_IsOK(res1)) {
24881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24882 }
24883 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24884 {
24885 PyThreadState* __tstate = wxPyBeginAllowThreads();
24886 result = (bool)(arg1)->EndDrawingOnTop();
24887 wxPyEndAllowThreads(__tstate);
24888 if (PyErr_Occurred()) SWIG_fail;
24889 }
24890 {
24891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24892 }
24893 return resultobj;
24894fail:
24895 return NULL;
24896}
24897
24898
24899SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24900 PyObject *obj;
24901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24902 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24903 return SWIG_Py_Void();
24904}
24905
24906SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24907 return SWIG_Python_InitShadowInstance(args);
24908}
24909
24910SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj = 0;
24912 wxWindow *arg1 = (wxWindow *) 0 ;
24913 wxWindowDC *result = 0 ;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 PyObject * obj0 = 0 ;
24917 char * kwnames[] = {
24918 (char *) "win", NULL
24919 };
24920
24921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24923 if (!SWIG_IsOK(res1)) {
24924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24925 }
24926 arg1 = reinterpret_cast< wxWindow * >(argp1);
24927 {
24928 if (!wxPyCheckForApp()) SWIG_fail;
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 result = (wxWindowDC *)new wxWindowDC(arg1);
24931 wxPyEndAllowThreads(__tstate);
24932 if (PyErr_Occurred()) SWIG_fail;
24933 }
24934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24935 return resultobj;
24936fail:
24937 return NULL;
24938}
24939
24940
24941SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24942 PyObject *obj;
24943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24944 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24945 return SWIG_Py_Void();
24946}
24947
24948SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24949 return SWIG_Python_InitShadowInstance(args);
24950}
24951
24952SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24953 PyObject *resultobj = 0;
24954 wxWindow *arg1 = (wxWindow *) 0 ;
24955 wxClientDC *result = 0 ;
24956 void *argp1 = 0 ;
24957 int res1 = 0 ;
24958 PyObject * obj0 = 0 ;
24959 char * kwnames[] = {
24960 (char *) "win", NULL
24961 };
24962
24963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24965 if (!SWIG_IsOK(res1)) {
24966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24967 }
24968 arg1 = reinterpret_cast< wxWindow * >(argp1);
24969 {
24970 if (!wxPyCheckForApp()) SWIG_fail;
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (wxClientDC *)new wxClientDC(arg1);
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24977 return resultobj;
24978fail:
24979 return NULL;
24980}
24981
24982
24983SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24984 PyObject *obj;
24985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24986 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24987 return SWIG_Py_Void();
24988}
24989
24990SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24991 return SWIG_Python_InitShadowInstance(args);
24992}
24993
24994SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj = 0;
24996 wxWindow *arg1 = (wxWindow *) 0 ;
24997 wxPaintDC *result = 0 ;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 PyObject * obj0 = 0 ;
25001 char * kwnames[] = {
25002 (char *) "win", NULL
25003 };
25004
25005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25007 if (!SWIG_IsOK(res1)) {
25008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25009 }
25010 arg1 = reinterpret_cast< wxWindow * >(argp1);
25011 {
25012 if (!wxPyCheckForApp()) SWIG_fail;
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 result = (wxPaintDC *)new wxPaintDC(arg1);
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25019 return resultobj;
25020fail:
25021 return NULL;
25022}
25023
25024
25025SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25026 PyObject *obj;
25027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25028 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25029 return SWIG_Py_Void();
25030}
25031
25032SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 return SWIG_Python_InitShadowInstance(args);
25034}
25035
554f62e9
RD
25036SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25037 PyObject *resultobj = 0;
25038 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 25039 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25040 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25041 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25042 wxBufferedDC *result = 0 ;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 void *argp2 = 0 ;
25046 int res2 = 0 ;
25047 int val3 ;
25048 int ecode3 = 0 ;
25049
25050 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25052 if (!SWIG_IsOK(res1)) {
25053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25054 }
25055 arg1 = reinterpret_cast< wxDC * >(argp1);
25056 if (swig_obj[1]) {
b6df5cf9 25057 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25058 if (!SWIG_IsOK(res2)) {
b6df5cf9 25059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25060 }
554f62e9 25061 if (!argp2) {
b6df5cf9 25062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25063 }
554f62e9
RD
25064 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25065 }
25066 if (swig_obj[2]) {
25067 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25068 if (!SWIG_IsOK(ecode3)) {
25069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25070 }
25071 arg3 = static_cast< int >(val3);
25072 }
25073 {
25074 if (!wxPyCheckForApp()) SWIG_fail;
25075 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25076 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
554f62e9
RD
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25081 return resultobj;
25082fail:
25083 return NULL;
25084}
25085
25086
25087SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25088 PyObject *resultobj = 0;
25089 wxDC *arg1 = (wxDC *) 0 ;
25090 wxSize *arg2 = 0 ;
25091 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25092 wxBufferedDC *result = 0 ;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 wxSize temp2 ;
25096 int val3 ;
25097 int ecode3 = 0 ;
25098
25099 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25103 }
25104 arg1 = reinterpret_cast< wxDC * >(argp1);
25105 {
25106 arg2 = &temp2;
25107 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25108 }
25109 if (swig_obj[2]) {
25110 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25111 if (!SWIG_IsOK(ecode3)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25113 }
25114 arg3 = static_cast< int >(val3);
25115 }
25116 {
25117 if (!wxPyCheckForApp()) SWIG_fail;
25118 PyThreadState* __tstate = wxPyBeginAllowThreads();
25119 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25124 return resultobj;
25125fail:
25126 return NULL;
25127}
25128
25129
25130SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25131 int argc;
8e99bda9 25132 PyObject *argv[4];
554f62e9 25133
8e99bda9 25134 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
25135 --argc;
25136 if ((argc >= 1) && (argc <= 3)) {
25137 int _v = 0;
25138 if (argc > 1) {
25139 {
b6df5cf9
RD
25140 void *vptr = 0;
25141 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
554f62e9
RD
25142 _v = SWIG_CheckState(res);
25143 }
25144 if (!_v) goto check_1;
093d3ff1 25145 }
554f62e9
RD
25146 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25147 }
25148check_1:
25149
25150 if ((argc >= 2) && (argc <= 3)) {
25151 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25152 }
25153
25154fail:
25155 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25156 return NULL;
25157}
25158
25159
25160SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25161 PyObject *resultobj = 0;
25162 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 PyObject *swig_obj[1] ;
25166
25167 if (!args) SWIG_fail;
25168 swig_obj[0] = args;
25169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25172 }
25173 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 delete arg1;
25177
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 resultobj = SWIG_Py_Void();
25182 return resultobj;
25183fail:
25184 return NULL;
25185}
25186
25187
25188SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25189 PyObject *resultobj = 0;
25190 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 PyObject *swig_obj[1] ;
25194
25195 if (!args) SWIG_fail;
25196 swig_obj[0] = args;
25197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25198 if (!SWIG_IsOK(res1)) {
25199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25200 }
25201 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25202 {
25203 PyThreadState* __tstate = wxPyBeginAllowThreads();
25204 (arg1)->UnMask();
25205 wxPyEndAllowThreads(__tstate);
25206 if (PyErr_Occurred()) SWIG_fail;
25207 }
25208 resultobj = SWIG_Py_Void();
25209 return resultobj;
25210fail:
25211 return NULL;
25212}
25213
25214
b6df5cf9
RD
25215SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25216 PyObject *resultobj = 0;
25217 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25218 int arg2 ;
25219 void *argp1 = 0 ;
25220 int res1 = 0 ;
25221 int val2 ;
25222 int ecode2 = 0 ;
25223 PyObject * obj0 = 0 ;
25224 PyObject * obj1 = 0 ;
25225 char * kwnames[] = {
25226 (char *) "self",(char *) "style", NULL
25227 };
25228
25229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25233 }
25234 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25235 ecode2 = SWIG_AsVal_int(obj1, &val2);
25236 if (!SWIG_IsOK(ecode2)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25238 }
25239 arg2 = static_cast< int >(val2);
25240 {
25241 PyThreadState* __tstate = wxPyBeginAllowThreads();
25242 (arg1)->SetStyle(arg2);
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 resultobj = SWIG_Py_Void();
25247 return resultobj;
25248fail:
25249 return NULL;
25250}
25251
25252
25253SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25254 PyObject *resultobj = 0;
25255 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25256 int result;
25257 void *argp1 = 0 ;
25258 int res1 = 0 ;
25259 PyObject *swig_obj[1] ;
25260
25261 if (!args) SWIG_fail;
25262 swig_obj[0] = args;
25263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25264 if (!SWIG_IsOK(res1)) {
25265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25266 }
25267 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25268 {
25269 PyThreadState* __tstate = wxPyBeginAllowThreads();
25270 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25271 wxPyEndAllowThreads(__tstate);
25272 if (PyErr_Occurred()) SWIG_fail;
25273 }
25274 resultobj = SWIG_From_int(static_cast< int >(result));
25275 return resultobj;
25276fail:
25277 return NULL;
25278}
25279
25280
554f62e9
RD
25281SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25282 PyObject *obj;
25283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25284 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25285 return SWIG_Py_Void();
25286}
25287
25288SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25289 return SWIG_Python_InitShadowInstance(args);
25290}
25291
25292SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25293 PyObject *resultobj = 0;
25294 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 25295 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25296 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25297 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25298 wxBufferedPaintDC *result = 0 ;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 void *argp2 = 0 ;
25302 int res2 = 0 ;
25303 int val3 ;
25304 int ecode3 = 0 ;
25305 PyObject * obj0 = 0 ;
25306 PyObject * obj1 = 0 ;
25307 PyObject * obj2 = 0 ;
25308 char * kwnames[] = {
25309 (char *) "window",(char *) "buffer",(char *) "style", NULL
25310 };
25311
25312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25314 if (!SWIG_IsOK(res1)) {
25315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25316 }
25317 arg1 = reinterpret_cast< wxWindow * >(argp1);
25318 if (obj1) {
b6df5cf9 25319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25320 if (!SWIG_IsOK(res2)) {
b6df5cf9 25321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25322 }
554f62e9 25323 if (!argp2) {
b6df5cf9 25324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25325 }
554f62e9
RD
25326 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25327 }
25328 if (obj2) {
25329 ecode3 = SWIG_AsVal_int(obj2, &val3);
25330 if (!SWIG_IsOK(ecode3)) {
25331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25332 }
25333 arg3 = static_cast< int >(val3);
25334 }
25335 {
25336 if (!wxPyCheckForApp()) SWIG_fail;
25337 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25338 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
554f62e9
RD
25339 wxPyEndAllowThreads(__tstate);
25340 if (PyErr_Occurred()) SWIG_fail;
25341 }
25342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25343 return resultobj;
25344fail:
25345 return NULL;
25346}
25347
25348
25349SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25350 PyObject *obj;
25351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25352 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25353 return SWIG_Py_Void();
25354}
25355
25356SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25357 return SWIG_Python_InitShadowInstance(args);
25358}
25359
24f6c4e8 25360SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25361 PyObject *resultobj = 0;
25362 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25363 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25364 void *argp1 = 0 ;
25365 int res1 = 0 ;
25366 PyObject * obj0 = 0 ;
25367 char * kwnames[] = {
25368 (char *) "win", NULL
25369 };
25370
24f6c4e8 25371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25373 if (!SWIG_IsOK(res1)) {
24f6c4e8 25374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25375 }
25376 arg1 = reinterpret_cast< wxWindow * >(argp1);
25377 {
554f62e9 25378 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25379 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25380 wxPyEndAllowThreads(__tstate);
25381 if (PyErr_Occurred()) SWIG_fail;
25382 }
24f6c4e8 25383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25384 return resultobj;
25385fail:
25386 return NULL;
25387}
25388
25389
24f6c4e8 25390SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25391 PyObject *obj;
25392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25393 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25394 return SWIG_Py_Void();
25395}
25396
24f6c4e8 25397SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25398 return SWIG_Python_InitShadowInstance(args);
25399}
25400
8e99bda9
RD
25401SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxWindow *arg1 = (wxWindow *) 0 ;
25404 wxDC *result = 0 ;
25405 void *argp1 = 0 ;
25406 int res1 = 0 ;
25407 PyObject * obj0 = 0 ;
25408 char * kwnames[] = {
25409 (char *) "window", NULL
25410 };
25411
25412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25414 if (!SWIG_IsOK(res1)) {
25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25416 }
25417 arg1 = reinterpret_cast< wxWindow * >(argp1);
25418 {
25419 PyThreadState* __tstate = wxPyBeginAllowThreads();
25420 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 {
25425 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25426 }
25427 return resultobj;
25428fail:
25429 return NULL;
25430}
25431
25432
554f62e9
RD
25433SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25434 PyObject *resultobj = 0;
25435 wxDC *arg1 = 0 ;
25436 bool arg2 ;
25437 wxMirrorDC *result = 0 ;
25438 void *argp1 = 0 ;
25439 int res1 = 0 ;
25440 bool val2 ;
25441 int ecode2 = 0 ;
25442 PyObject * obj0 = 0 ;
25443 PyObject * obj1 = 0 ;
25444 char * kwnames[] = {
25445 (char *) "dc",(char *) "mirror", NULL
25446 };
25447
25448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25449 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25450 if (!SWIG_IsOK(res1)) {
25451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25452 }
25453 if (!argp1) {
25454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25455 }
25456 arg1 = reinterpret_cast< wxDC * >(argp1);
25457 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25458 if (!SWIG_IsOK(ecode2)) {
25459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25460 }
25461 arg2 = static_cast< bool >(val2);
25462 {
25463 if (!wxPyCheckForApp()) SWIG_fail;
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25466 wxPyEndAllowThreads(__tstate);
25467 if (PyErr_Occurred()) SWIG_fail;
25468 }
25469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25470 return resultobj;
25471fail:
25472 return NULL;
25473}
25474
25475
25476SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25477 PyObject *obj;
25478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25479 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25480 return SWIG_Py_Void();
25481}
25482
25483SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25484 return SWIG_Python_InitShadowInstance(args);
25485}
25486
25487SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25488 PyObject *resultobj = 0;
25489 wxPrintData *arg1 = 0 ;
25490 wxPostScriptDC *result = 0 ;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 PyObject * obj0 = 0 ;
25494 char * kwnames[] = {
25495 (char *) "printData", NULL
25496 };
25497
25498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25499 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25500 if (!SWIG_IsOK(res1)) {
25501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25502 }
25503 if (!argp1) {
25504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25505 }
25506 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25507 {
25508 if (!wxPyCheckForApp()) SWIG_fail;
25509 PyThreadState* __tstate = wxPyBeginAllowThreads();
25510 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25515 return resultobj;
25516fail:
25517 return NULL;
25518}
25519
25520
25521SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25522 PyObject *resultobj = 0;
25523 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25524 wxPrintData *result = 0 ;
25525 void *argp1 = 0 ;
25526 int res1 = 0 ;
25527 PyObject *swig_obj[1] ;
25528
25529 if (!args) SWIG_fail;
25530 swig_obj[0] = args;
25531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25532 if (!SWIG_IsOK(res1)) {
25533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25534 }
25535 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25536 {
25537 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25538 {
554f62e9
RD
25539 wxPrintData &_result_ref = (arg1)->GetPrintData();
25540 result = (wxPrintData *) &_result_ref;
093d3ff1 25541 }
554f62e9
RD
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25546 return resultobj;
25547fail:
25548 return NULL;
25549}
25550
25551
25552SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25555 wxPrintData *arg2 = 0 ;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 void *argp2 = 0 ;
25559 int res2 = 0 ;
25560 PyObject * obj0 = 0 ;
25561 PyObject * obj1 = 0 ;
25562 char * kwnames[] = {
25563 (char *) "self",(char *) "data", NULL
25564 };
25565
25566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25568 if (!SWIG_IsOK(res1)) {
25569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25570 }
25571 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25573 if (!SWIG_IsOK(res2)) {
25574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25575 }
25576 if (!argp2) {
25577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25578 }
25579 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25580 {
25581 PyThreadState* __tstate = wxPyBeginAllowThreads();
25582 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_Py_Void();
25587 return resultobj;
25588fail:
25589 return NULL;
25590}
25591
25592
25593SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 int arg1 ;
25596 int val1 ;
25597 int ecode1 = 0 ;
25598 PyObject * obj0 = 0 ;
25599 char * kwnames[] = {
25600 (char *) "ppi", NULL
25601 };
25602
25603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25604 ecode1 = SWIG_AsVal_int(obj0, &val1);
25605 if (!SWIG_IsOK(ecode1)) {
25606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25607 }
25608 arg1 = static_cast< int >(val1);
25609 {
25610 PyThreadState* __tstate = wxPyBeginAllowThreads();
25611 wxPostScriptDC::SetResolution(arg1);
25612 wxPyEndAllowThreads(__tstate);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 resultobj = SWIG_Py_Void();
25616 return resultobj;
25617fail:
25618 return NULL;
25619}
25620
25621
25622SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25623 PyObject *resultobj = 0;
25624 int result;
25625
25626 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25627 {
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 result = (int)wxPostScriptDC::GetResolution();
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_From_int(static_cast< int >(result));
25634 return resultobj;
25635fail:
25636 return NULL;
25637}
25638
25639
25640SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25641 PyObject *obj;
25642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25643 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25644 return SWIG_Py_Void();
25645}
25646
25647SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25648 return SWIG_Python_InitShadowInstance(args);
25649}
25650
25651SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25652 PyObject *resultobj = 0;
25653 wxString const &arg1_defvalue = wxPyEmptyString ;
25654 wxString *arg1 = (wxString *) &arg1_defvalue ;
25655 wxMetaFile *result = 0 ;
25656 bool temp1 = false ;
25657 PyObject * obj0 = 0 ;
25658 char * kwnames[] = {
25659 (char *) "filename", NULL
25660 };
25661
25662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25663 if (obj0) {
093d3ff1 25664 {
554f62e9
RD
25665 arg1 = wxString_in_helper(obj0);
25666 if (arg1 == NULL) SWIG_fail;
25667 temp1 = true;
093d3ff1 25668 }
554f62e9
RD
25669 }
25670 {
25671 if (!wxPyCheckForApp()) SWIG_fail;
25672 PyThreadState* __tstate = wxPyBeginAllowThreads();
25673 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25674 wxPyEndAllowThreads(__tstate);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25678 {
25679 if (temp1)
25680 delete arg1;
25681 }
25682 return resultobj;
25683fail:
25684 {
25685 if (temp1)
25686 delete arg1;
25687 }
25688 return NULL;
25689}
25690
25691
25692SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25693 PyObject *resultobj = 0;
25694 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25695 void *argp1 = 0 ;
25696 int res1 = 0 ;
25697 PyObject *swig_obj[1] ;
25698
25699 if (!args) SWIG_fail;
25700 swig_obj[0] = args;
25701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25702 if (!SWIG_IsOK(res1)) {
25703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25704 }
25705 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25706 {
25707 PyThreadState* __tstate = wxPyBeginAllowThreads();
25708 delete arg1;
25709
25710 wxPyEndAllowThreads(__tstate);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 resultobj = SWIG_Py_Void();
25714 return resultobj;
25715fail:
25716 return NULL;
25717}
25718
25719
b39fe951 25720SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25721 PyObject *resultobj = 0;
25722 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25723 bool result;
25724 void *argp1 = 0 ;
25725 int res1 = 0 ;
25726 PyObject *swig_obj[1] ;
25727
25728 if (!args) SWIG_fail;
25729 swig_obj[0] = args;
25730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25731 if (!SWIG_IsOK(res1)) {
b39fe951 25732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
25733 }
25734 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25735 {
25736 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25737 result = (bool)(arg1)->IsOk();
554f62e9
RD
25738 wxPyEndAllowThreads(__tstate);
25739 if (PyErr_Occurred()) SWIG_fail;
25740 }
25741 {
25742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25743 }
25744 return resultobj;
25745fail:
25746 return NULL;
25747}
25748
25749
25750SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25751 PyObject *resultobj = 0;
25752 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25753 int arg2 = (int) 0 ;
25754 int arg3 = (int) 0 ;
25755 bool result;
25756 void *argp1 = 0 ;
25757 int res1 = 0 ;
25758 int val2 ;
25759 int ecode2 = 0 ;
25760 int val3 ;
25761 int ecode3 = 0 ;
25762 PyObject * obj0 = 0 ;
25763 PyObject * obj1 = 0 ;
25764 PyObject * obj2 = 0 ;
25765 char * kwnames[] = {
25766 (char *) "self",(char *) "width",(char *) "height", NULL
25767 };
25768
25769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25773 }
25774 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25775 if (obj1) {
25776 ecode2 = SWIG_AsVal_int(obj1, &val2);
25777 if (!SWIG_IsOK(ecode2)) {
25778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25779 }
25780 arg2 = static_cast< int >(val2);
25781 }
25782 if (obj2) {
25783 ecode3 = SWIG_AsVal_int(obj2, &val3);
25784 if (!SWIG_IsOK(ecode3)) {
25785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25786 }
25787 arg3 = static_cast< int >(val3);
25788 }
25789 {
25790 PyThreadState* __tstate = wxPyBeginAllowThreads();
25791 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25792 wxPyEndAllowThreads(__tstate);
25793 if (PyErr_Occurred()) SWIG_fail;
25794 }
25795 {
25796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25797 }
25798 return resultobj;
25799fail:
25800 return NULL;
25801}
25802
25803
25804SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25805 PyObject *resultobj = 0;
25806 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25807 wxSize result;
25808 void *argp1 = 0 ;
25809 int res1 = 0 ;
25810 PyObject *swig_obj[1] ;
25811
25812 if (!args) SWIG_fail;
25813 swig_obj[0] = args;
25814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25815 if (!SWIG_IsOK(res1)) {
25816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25817 }
25818 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25819 {
25820 PyThreadState* __tstate = wxPyBeginAllowThreads();
25821 result = (arg1)->GetSize();
25822 wxPyEndAllowThreads(__tstate);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25826 return resultobj;
25827fail:
25828 return NULL;
25829}
25830
25831
25832SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25833 PyObject *resultobj = 0;
25834 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25835 int result;
25836 void *argp1 = 0 ;
25837 int res1 = 0 ;
25838 PyObject *swig_obj[1] ;
25839
25840 if (!args) SWIG_fail;
25841 swig_obj[0] = args;
25842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25843 if (!SWIG_IsOK(res1)) {
25844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25845 }
25846 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25847 {
25848 PyThreadState* __tstate = wxPyBeginAllowThreads();
25849 result = (int)(arg1)->GetWidth();
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 resultobj = SWIG_From_int(static_cast< int >(result));
25854 return resultobj;
25855fail:
25856 return NULL;
25857}
25858
25859
25860SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861 PyObject *resultobj = 0;
25862 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25863 int result;
25864 void *argp1 = 0 ;
25865 int res1 = 0 ;
25866 PyObject *swig_obj[1] ;
25867
25868 if (!args) SWIG_fail;
25869 swig_obj[0] = args;
25870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25871 if (!SWIG_IsOK(res1)) {
25872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25873 }
25874 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25875 {
25876 PyThreadState* __tstate = wxPyBeginAllowThreads();
25877 result = (int)(arg1)->GetHeight();
25878 wxPyEndAllowThreads(__tstate);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 }
25881 resultobj = SWIG_From_int(static_cast< int >(result));
25882 return resultobj;
25883fail:
25884 return NULL;
25885}
25886
25887
25888SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25889 PyObject *resultobj = 0;
25890 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25891 wxString *result = 0 ;
25892 void *argp1 = 0 ;
25893 int res1 = 0 ;
25894 PyObject *swig_obj[1] ;
25895
25896 if (!args) SWIG_fail;
25897 swig_obj[0] = args;
25898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25899 if (!SWIG_IsOK(res1)) {
25900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25901 }
25902 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25905 {
554f62e9
RD
25906 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25907 result = (wxString *) &_result_ref;
e2950dbb 25908 }
554f62e9
RD
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 {
25913#if wxUSE_UNICODE
25914 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25915#else
25916 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25917#endif
25918 }
25919 return resultobj;
25920fail:
25921 return NULL;
25922}
25923
25924
25925SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25926 PyObject *obj;
25927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25928 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25929 return SWIG_Py_Void();
25930}
25931
25932SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25933 return SWIG_Python_InitShadowInstance(args);
25934}
25935
25936SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25937 PyObject *resultobj = 0;
25938 wxString const &arg1_defvalue = wxPyEmptyString ;
25939 wxString *arg1 = (wxString *) &arg1_defvalue ;
25940 int arg2 = (int) 0 ;
25941 int arg3 = (int) 0 ;
25942 wxString const &arg4_defvalue = wxPyEmptyString ;
25943 wxString *arg4 = (wxString *) &arg4_defvalue ;
25944 wxMetaFileDC *result = 0 ;
25945 bool temp1 = false ;
25946 int val2 ;
25947 int ecode2 = 0 ;
25948 int val3 ;
25949 int ecode3 = 0 ;
25950 bool temp4 = false ;
25951 PyObject * obj0 = 0 ;
25952 PyObject * obj1 = 0 ;
25953 PyObject * obj2 = 0 ;
25954 PyObject * obj3 = 0 ;
25955 char * kwnames[] = {
25956 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25957 };
25958
25959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25960 if (obj0) {
e2950dbb 25961 {
554f62e9
RD
25962 arg1 = wxString_in_helper(obj0);
25963 if (arg1 == NULL) SWIG_fail;
25964 temp1 = true;
e2950dbb 25965 }
554f62e9
RD
25966 }
25967 if (obj1) {
25968 ecode2 = SWIG_AsVal_int(obj1, &val2);
25969 if (!SWIG_IsOK(ecode2)) {
25970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25971 }
25972 arg2 = static_cast< int >(val2);
25973 }
25974 if (obj2) {
25975 ecode3 = SWIG_AsVal_int(obj2, &val3);
25976 if (!SWIG_IsOK(ecode3)) {
25977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25978 }
25979 arg3 = static_cast< int >(val3);
25980 }
25981 if (obj3) {
093d3ff1 25982 {
554f62e9
RD
25983 arg4 = wxString_in_helper(obj3);
25984 if (arg4 == NULL) SWIG_fail;
25985 temp4 = true;
093d3ff1 25986 }
554f62e9
RD
25987 }
25988 {
25989 if (!wxPyCheckForApp()) SWIG_fail;
25990 PyThreadState* __tstate = wxPyBeginAllowThreads();
25991 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25996 {
25997 if (temp1)
25998 delete arg1;
25999 }
26000 {
26001 if (temp4)
26002 delete arg4;
26003 }
26004 return resultobj;
26005fail:
26006 {
26007 if (temp1)
26008 delete arg1;
26009 }
26010 {
26011 if (temp4)
26012 delete arg4;
26013 }
26014 return NULL;
26015}
26016
26017
26018SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26019 PyObject *resultobj = 0;
26020 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26021 wxMetaFile *result = 0 ;
26022 void *argp1 = 0 ;
26023 int res1 = 0 ;
26024 PyObject *swig_obj[1] ;
26025
26026 if (!args) SWIG_fail;
26027 swig_obj[0] = args;
26028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26029 if (!SWIG_IsOK(res1)) {
26030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26031 }
26032 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26033 {
26034 PyThreadState* __tstate = wxPyBeginAllowThreads();
26035 result = (wxMetaFile *)(arg1)->Close();
26036 wxPyEndAllowThreads(__tstate);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 }
26039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26040 return resultobj;
26041fail:
26042 return NULL;
26043}
26044
26045
26046SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26047 PyObject *obj;
26048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26049 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26050 return SWIG_Py_Void();
26051}
26052
26053SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26054 return SWIG_Python_InitShadowInstance(args);
26055}
26056
26057SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26058 PyObject *resultobj = 0;
26059 wxPrintData *arg1 = 0 ;
26060 wxPrinterDC *result = 0 ;
26061 void *argp1 = 0 ;
26062 int res1 = 0 ;
26063 PyObject * obj0 = 0 ;
26064 char * kwnames[] = {
26065 (char *) "printData", NULL
26066 };
26067
26068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26069 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26070 if (!SWIG_IsOK(res1)) {
26071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26072 }
26073 if (!argp1) {
26074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26075 }
26076 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26077 {
26078 if (!wxPyCheckForApp()) SWIG_fail;
26079 PyThreadState* __tstate = wxPyBeginAllowThreads();
26080 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26081 wxPyEndAllowThreads(__tstate);
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26085 return resultobj;
26086fail:
26087 return NULL;
26088}
26089
26090
26091SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *obj;
26093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26094 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26095 return SWIG_Py_Void();
26096}
26097
26098SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26099 return SWIG_Python_InitShadowInstance(args);
26100}
26101
70d7cb34
RD
26102SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26103 PyObject *resultobj = 0;
26104 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26105 wxGraphicsObject *result = 0 ;
26106 void *argp1 = 0 ;
26107 int res1 = 0 ;
26108 PyObject * obj0 = 0 ;
26109 char * kwnames[] = {
26110 (char *) "renderer", NULL
26111 };
26112
26113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26114 if (obj0) {
26115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26116 if (!SWIG_IsOK(res1)) {
26117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26118 }
26119 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26120 }
26121 {
26122 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26126 return resultobj;
26127fail:
26128 return NULL;
26129}
26130
26131
26132SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26133 PyObject *resultobj = 0;
26134 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26135 void *argp1 = 0 ;
26136 int res1 = 0 ;
26137 PyObject *swig_obj[1] ;
26138
26139 if (!args) SWIG_fail;
26140 swig_obj[0] = args;
26141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26142 if (!SWIG_IsOK(res1)) {
26143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26144 }
26145 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26146 {
26147 delete arg1;
26148
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 resultobj = SWIG_Py_Void();
26152 return resultobj;
26153fail:
26154 return NULL;
26155}
26156
26157
26158SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26159 PyObject *resultobj = 0;
26160 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26161 bool result;
26162 void *argp1 = 0 ;
26163 int res1 = 0 ;
26164 PyObject *swig_obj[1] ;
26165
26166 if (!args) SWIG_fail;
26167 swig_obj[0] = args;
26168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26169 if (!SWIG_IsOK(res1)) {
26170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26171 }
26172 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26173 {
26174 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 {
26178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26179 }
26180 return resultobj;
26181fail:
26182 return NULL;
26183}
26184
26185
26186SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26187 PyObject *resultobj = 0;
26188 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26189 wxGraphicsRenderer *result = 0 ;
26190 void *argp1 = 0 ;
26191 int res1 = 0 ;
26192 PyObject *swig_obj[1] ;
26193
26194 if (!args) SWIG_fail;
26195 swig_obj[0] = args;
26196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26197 if (!SWIG_IsOK(res1)) {
26198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26199 }
26200 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26201 {
26202 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26206 return resultobj;
26207fail:
26208 return NULL;
26209}
26210
26211
26212SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26213 PyObject *obj;
26214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26215 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26216 return SWIG_Py_Void();
26217}
26218
26219SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26220 return SWIG_Python_InitShadowInstance(args);
26221}
26222
26223SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26224 PyObject *resultobj = 0;
26225 wxGraphicsPen *result = 0 ;
26226
26227 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26228 {
26229 result = (wxGraphicsPen *)new wxGraphicsPen();
26230 if (PyErr_Occurred()) SWIG_fail;
26231 }
26232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26233 return resultobj;
26234fail:
26235 return NULL;
26236}
26237
26238
26239SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26240 PyObject *resultobj = 0;
26241 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26242 void *argp1 = 0 ;
26243 int res1 = 0 ;
26244 PyObject *swig_obj[1] ;
26245
26246 if (!args) SWIG_fail;
26247 swig_obj[0] = args;
26248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26249 if (!SWIG_IsOK(res1)) {
26250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26251 }
26252 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26253 {
26254 delete arg1;
26255
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 resultobj = SWIG_Py_Void();
26259 return resultobj;
26260fail:
26261 return NULL;
26262}
26263
26264
26265SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26266 PyObject *obj;
26267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26268 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26269 return SWIG_Py_Void();
26270}
26271
26272SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26273 return SWIG_Python_InitShadowInstance(args);
26274}
26275
26276SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26277 PyObject *resultobj = 0;
26278 wxGraphicsBrush *result = 0 ;
26279
26280 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26281 {
26282 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26286 return resultobj;
26287fail:
26288 return NULL;
26289}
26290
26291
26292SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26293 PyObject *resultobj = 0;
26294 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26295 void *argp1 = 0 ;
26296 int res1 = 0 ;
26297 PyObject *swig_obj[1] ;
26298
26299 if (!args) SWIG_fail;
26300 swig_obj[0] = args;
26301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26302 if (!SWIG_IsOK(res1)) {
26303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26304 }
26305 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26306 {
26307 delete arg1;
26308
26309 if (PyErr_Occurred()) SWIG_fail;
26310 }
26311 resultobj = SWIG_Py_Void();
26312 return resultobj;
26313fail:
26314 return NULL;
26315}
26316
26317
26318SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26319 PyObject *obj;
26320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26321 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26322 return SWIG_Py_Void();
26323}
26324
26325SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26326 return SWIG_Python_InitShadowInstance(args);
26327}
26328
26329SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26330 PyObject *resultobj = 0;
26331 wxGraphicsFont *result = 0 ;
26332
26333 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26334 {
26335 result = (wxGraphicsFont *)new wxGraphicsFont();
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26339 return resultobj;
26340fail:
26341 return NULL;
26342}
26343
26344
26345SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26346 PyObject *resultobj = 0;
26347 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26348 void *argp1 = 0 ;
26349 int res1 = 0 ;
26350 PyObject *swig_obj[1] ;
26351
26352 if (!args) SWIG_fail;
26353 swig_obj[0] = args;
26354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26355 if (!SWIG_IsOK(res1)) {
26356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26357 }
26358 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26359 {
26360 delete arg1;
26361
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_Py_Void();
26365 return resultobj;
26366fail:
26367 return NULL;
26368}
26369
26370
26371SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26372 PyObject *obj;
26373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26375 return SWIG_Py_Void();
26376}
26377
26378SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26379 return SWIG_Python_InitShadowInstance(args);
26380}
26381
8f514ab4
RD
26382SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26383 PyObject *resultobj = 0;
26384 wxGraphicsMatrix *result = 0 ;
26385
26386 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26387 {
26388 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26389 if (PyErr_Occurred()) SWIG_fail;
26390 }
26391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26392 return resultobj;
26393fail:
26394 return NULL;
26395}
26396
26397
5c8c7dd3 26398SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26399 PyObject *resultobj = 0;
5c8c7dd3 26400 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26401 void *argp1 = 0 ;
26402 int res1 = 0 ;
26403 PyObject *swig_obj[1] ;
26404
26405 if (!args) SWIG_fail;
26406 swig_obj[0] = args;
5c8c7dd3 26407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
554f62e9 26408 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26410 }
5c8c7dd3 26411 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26412 {
554f62e9
RD
26413 delete arg1;
26414
554f62e9
RD
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419fail:
26420 return NULL;
26421}
26422
26423
5c8c7dd3 26424SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26425 PyObject *resultobj = 0;
5c8c7dd3
RD
26426 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26427 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26428 void *argp1 = 0 ;
26429 int res1 = 0 ;
5c8c7dd3
RD
26430 void *argp2 = 0 ;
26431 int res2 = 0 ;
26432 PyObject * obj0 = 0 ;
26433 PyObject * obj1 = 0 ;
26434 char * kwnames[] = {
26435 (char *) "self",(char *) "t", NULL
26436 };
70d7cb34 26437
5c8c7dd3
RD
26438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26440 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26442 }
5c8c7dd3
RD
26443 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26445 if (!SWIG_IsOK(res2)) {
26446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26447 }
26448 if (!argp2) {
26449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26450 }
26451 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26452 {
5c8c7dd3 26453 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
5c8c7dd3 26456 resultobj = SWIG_Py_Void();
70d7cb34
RD
26457 return resultobj;
26458fail:
26459 return NULL;
26460}
26461
26462
5c8c7dd3 26463SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26464 PyObject *resultobj = 0;
5c8c7dd3
RD
26465 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26466 wxGraphicsMatrix *arg2 = 0 ;
554f62e9
RD
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
5c8c7dd3
RD
26469 void *argp2 = 0 ;
26470 int res2 = 0 ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 char * kwnames[] = {
26474 (char *) "self",(char *) "t", NULL
26475 };
554f62e9 26476
5c8c7dd3
RD
26477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26479 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26481 }
5c8c7dd3
RD
26482 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26484 if (!SWIG_IsOK(res2)) {
26485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26486 }
26487 if (!argp2) {
26488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26489 }
26490 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
554f62e9 26491 {
5c8c7dd3 26492 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
554f62e9
RD
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
72ef6efb 26495 resultobj = SWIG_Py_Void();
554f62e9
RD
26496 return resultobj;
26497fail:
26498 return NULL;
26499}
26500
26501
5c8c7dd3 26502SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26503 PyObject *resultobj = 0;
5c8c7dd3
RD
26504 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26505 wxDouble arg2 = (wxDouble) 1.0 ;
26506 wxDouble arg3 = (wxDouble) 0.0 ;
26507 wxDouble arg4 = (wxDouble) 0.0 ;
26508 wxDouble arg5 = (wxDouble) 1.0 ;
26509 wxDouble arg6 = (wxDouble) 0.0 ;
26510 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26511 void *argp1 = 0 ;
26512 int res1 = 0 ;
5c8c7dd3
RD
26513 double val2 ;
26514 int ecode2 = 0 ;
26515 double val3 ;
26516 int ecode3 = 0 ;
26517 double val4 ;
26518 int ecode4 = 0 ;
26519 double val5 ;
26520 int ecode5 = 0 ;
26521 double val6 ;
26522 int ecode6 = 0 ;
26523 double val7 ;
26524 int ecode7 = 0 ;
26525 PyObject * obj0 = 0 ;
26526 PyObject * obj1 = 0 ;
26527 PyObject * obj2 = 0 ;
26528 PyObject * obj3 = 0 ;
26529 PyObject * obj4 = 0 ;
26530 PyObject * obj5 = 0 ;
26531 PyObject * obj6 = 0 ;
26532 char * kwnames[] = {
26533 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26534 };
70d7cb34 26535
5c8c7dd3
RD
26536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26538 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26540 }
5c8c7dd3
RD
26541 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26542 if (obj1) {
26543 ecode2 = SWIG_AsVal_double(obj1, &val2);
26544 if (!SWIG_IsOK(ecode2)) {
26545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26546 }
26547 arg2 = static_cast< wxDouble >(val2);
26548 }
26549 if (obj2) {
26550 ecode3 = SWIG_AsVal_double(obj2, &val3);
26551 if (!SWIG_IsOK(ecode3)) {
26552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26553 }
26554 arg3 = static_cast< wxDouble >(val3);
26555 }
26556 if (obj3) {
26557 ecode4 = SWIG_AsVal_double(obj3, &val4);
26558 if (!SWIG_IsOK(ecode4)) {
26559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26560 }
26561 arg4 = static_cast< wxDouble >(val4);
26562 }
26563 if (obj4) {
26564 ecode5 = SWIG_AsVal_double(obj4, &val5);
26565 if (!SWIG_IsOK(ecode5)) {
26566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26567 }
26568 arg5 = static_cast< wxDouble >(val5);
26569 }
26570 if (obj5) {
26571 ecode6 = SWIG_AsVal_double(obj5, &val6);
26572 if (!SWIG_IsOK(ecode6)) {
26573 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26574 }
26575 arg6 = static_cast< wxDouble >(val6);
26576 }
26577 if (obj6) {
26578 ecode7 = SWIG_AsVal_double(obj6, &val7);
26579 if (!SWIG_IsOK(ecode7)) {
26580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26581 }
26582 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26583 }
26584 {
5c8c7dd3 26585 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590fail:
26591 return NULL;
26592}
26593
26594
5c8c7dd3 26595SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26596 PyObject *resultobj = 0;
5c8c7dd3 26597 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
5c8c7dd3 26600 PyObject *swig_obj[1] ;
554f62e9 26601
5c8c7dd3
RD
26602 if (!args) SWIG_fail;
26603 swig_obj[0] = args;
26604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26605 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26607 }
5c8c7dd3 26608 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26609 {
5c8c7dd3 26610 (arg1)->Invert();
554f62e9
RD
26611 if (PyErr_Occurred()) SWIG_fail;
26612 }
72ef6efb 26613 resultobj = SWIG_Py_Void();
554f62e9
RD
26614 return resultobj;
26615fail:
26616 return NULL;
26617}
26618
26619
5c8c7dd3 26620SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26621 PyObject *resultobj = 0;
5c8c7dd3
RD
26622 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26623 wxGraphicsMatrix *arg2 = 0 ;
26624 bool result;
70d7cb34
RD
26625 void *argp1 = 0 ;
26626 int res1 = 0 ;
5c8c7dd3
RD
26627 void *argp2 = 0 ;
26628 int res2 = 0 ;
26629 PyObject * obj0 = 0 ;
26630 PyObject * obj1 = 0 ;
26631 char * kwnames[] = {
26632 (char *) "self",(char *) "t", NULL
26633 };
70d7cb34 26634
5c8c7dd3
RD
26635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26637 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26639 }
5c8c7dd3
RD
26640 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26642 if (!SWIG_IsOK(res2)) {
26643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26644 }
26645 if (!argp2) {
26646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26647 }
5c8c7dd3 26648 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26649 {
5c8c7dd3 26650 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
5c8c7dd3
RD
26653 {
26654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26655 }
70d7cb34
RD
26656 return resultobj;
26657fail:
26658 return NULL;
26659}
26660
26661
5c8c7dd3
RD
26662SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26663 PyObject *resultobj = 0;
26664 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26665 bool result;
26666 void *argp1 = 0 ;
26667 int res1 = 0 ;
26668 PyObject *swig_obj[1] ;
70d7cb34 26669
5c8c7dd3
RD
26670 if (!args) SWIG_fail;
26671 swig_obj[0] = args;
26672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26673 if (!SWIG_IsOK(res1)) {
8f514ab4 26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26675 }
5c8c7dd3
RD
26676 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26677 {
8f514ab4 26678 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26679 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26680 }
5c8c7dd3
RD
26681 {
26682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26683 }
26684 return resultobj;
70d7cb34 26685fail:
70d7cb34
RD
26686 return NULL;
26687}
26688
26689
5c8c7dd3 26690SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26691 PyObject *resultobj = 0;
5c8c7dd3 26692 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26693 wxDouble arg2 ;
26694 wxDouble arg3 ;
554f62e9
RD
26695 void *argp1 = 0 ;
26696 int res1 = 0 ;
72ef6efb
RD
26697 double val2 ;
26698 int ecode2 = 0 ;
26699 double val3 ;
26700 int ecode3 = 0 ;
5c8c7dd3
RD
26701 PyObject * obj0 = 0 ;
26702 PyObject * obj1 = 0 ;
26703 PyObject * obj2 = 0 ;
26704 char * kwnames[] = {
26705 (char *) "self",(char *) "dx",(char *) "dy", NULL
26706 };
72ef6efb 26707
5c8c7dd3
RD
26708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26710 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26712 }
5c8c7dd3
RD
26713 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26714 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26715 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26717 }
26718 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26719 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26720 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26722 }
26723 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26724 {
5c8c7dd3 26725 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 resultobj = SWIG_Py_Void();
26729 return resultobj;
26730fail:
26731 return NULL;
26732}
26733
26734
5c8c7dd3 26735SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26736 PyObject *resultobj = 0;
5c8c7dd3
RD
26737 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26738 wxDouble arg2 ;
26739 wxDouble arg3 ;
70d7cb34
RD
26740 void *argp1 = 0 ;
26741 int res1 = 0 ;
5c8c7dd3
RD
26742 double val2 ;
26743 int ecode2 = 0 ;
26744 double val3 ;
26745 int ecode3 = 0 ;
26746 PyObject * obj0 = 0 ;
26747 PyObject * obj1 = 0 ;
26748 PyObject * obj2 = 0 ;
26749 char * kwnames[] = {
26750 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26751 };
70d7cb34 26752
5c8c7dd3
RD
26753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26755 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26757 }
5c8c7dd3
RD
26758 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26759 ecode2 = SWIG_AsVal_double(obj1, &val2);
26760 if (!SWIG_IsOK(ecode2)) {
26761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26762 }
26763 arg2 = static_cast< wxDouble >(val2);
26764 ecode3 = SWIG_AsVal_double(obj2, &val3);
26765 if (!SWIG_IsOK(ecode3)) {
26766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26767 }
26768 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26769 {
5c8c7dd3 26770 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 resultobj = SWIG_Py_Void();
26774 return resultobj;
26775fail:
26776 return NULL;
26777}
26778
26779
5c8c7dd3 26780SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26781 PyObject *resultobj = 0;
5c8c7dd3
RD
26782 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26783 wxDouble arg2 ;
70d7cb34
RD
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
5c8c7dd3
RD
26786 double val2 ;
26787 int ecode2 = 0 ;
70d7cb34
RD
26788 PyObject * obj0 = 0 ;
26789 PyObject * obj1 = 0 ;
26790 char * kwnames[] = {
5c8c7dd3 26791 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26792 };
26793
5c8c7dd3
RD
26794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26796 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26798 }
5c8c7dd3
RD
26799 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26800 ecode2 = SWIG_AsVal_double(obj1, &val2);
26801 if (!SWIG_IsOK(ecode2)) {
26802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26803 }
26804 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26805 {
5c8c7dd3 26806 (arg1)->Rotate(arg2);
70d7cb34
RD
26807 if (PyErr_Occurred()) SWIG_fail;
26808 }
26809 resultobj = SWIG_Py_Void();
26810 return resultobj;
26811fail:
26812 return NULL;
26813}
26814
26815
5c8c7dd3 26816SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26817 PyObject *resultobj = 0;
5c8c7dd3
RD
26818 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26819 wxDouble *arg2 = (wxDouble *) 0 ;
26820 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
5c8c7dd3
RD
26823 wxDouble temp2 ;
26824 int res2 = 0 ;
26825 wxDouble temp3 ;
26826 int res3 = 0 ;
26827 PyObject * obj0 = 0 ;
26828 PyObject * obj1 = 0 ;
26829 PyObject * obj2 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26832 };
72ef6efb 26833
5c8c7dd3
RD
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26836 if (!SWIG_IsOK(res1)) {
8f514ab4 26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26838 }
5c8c7dd3
RD
26839 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26840 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26841 double val;
26842 int ecode = SWIG_AsVal_double(obj1, &val);
26843 if (!SWIG_IsOK(ecode)) {
26844 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26845 }
26846 temp2 = static_cast< wxDouble >(val);
26847 arg2 = &temp2;
26848 res2 = SWIG_AddTmpMask(ecode);
26849 }
26850 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26851 double val;
26852 int ecode = SWIG_AsVal_double(obj2, &val);
26853 if (!SWIG_IsOK(ecode)) {
26854 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26855 }
26856 temp3 = static_cast< wxDouble >(val);
26857 arg3 = &temp3;
26858 res3 = SWIG_AddTmpMask(ecode);
26859 }
26860 {
8f514ab4 26861 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26865 if (SWIG_IsTmpObj(res2)) {
26866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26867 } else {
26868 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26870 }
26871 if (SWIG_IsTmpObj(res3)) {
26872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26873 } else {
26874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26876 }
72ef6efb
RD
26877 return resultobj;
26878fail:
26879 return NULL;
26880}
26881
26882
5c8c7dd3
RD
26883SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26884 PyObject *resultobj = 0;
26885 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26886 wxDouble *arg2 = (wxDouble *) 0 ;
26887 wxDouble *arg3 = (wxDouble *) 0 ;
26888 void *argp1 = 0 ;
26889 int res1 = 0 ;
26890 wxDouble temp2 ;
26891 int res2 = 0 ;
26892 wxDouble temp3 ;
26893 int res3 = 0 ;
26894 PyObject * obj0 = 0 ;
26895 PyObject * obj1 = 0 ;
26896 PyObject * obj2 = 0 ;
26897 char * kwnames[] = {
26898 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26899 };
26900
26901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26903 if (!SWIG_IsOK(res1)) {
8f514ab4 26904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26905 }
26906 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26907 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26908 double val;
26909 int ecode = SWIG_AsVal_double(obj1, &val);
26910 if (!SWIG_IsOK(ecode)) {
26911 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26912 }
26913 temp2 = static_cast< wxDouble >(val);
26914 arg2 = &temp2;
26915 res2 = SWIG_AddTmpMask(ecode);
26916 }
26917 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26918 double val;
26919 int ecode = SWIG_AsVal_double(obj2, &val);
26920 if (!SWIG_IsOK(ecode)) {
26921 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26922 }
26923 temp3 = static_cast< wxDouble >(val);
26924 arg3 = &temp3;
26925 res3 = SWIG_AddTmpMask(ecode);
26926 }
26927 {
8f514ab4 26928 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_Py_Void();
26932 if (SWIG_IsTmpObj(res2)) {
26933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26934 } else {
26935 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26937 }
26938 if (SWIG_IsTmpObj(res3)) {
26939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26940 } else {
26941 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26943 }
26944 return resultobj;
26945fail:
26946 return NULL;
26947}
26948
26949
26950SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26951 PyObject *resultobj = 0;
26952 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26953 void *result = 0 ;
26954 void *argp1 = 0 ;
26955 int res1 = 0 ;
26956 PyObject *swig_obj[1] ;
26957
26958 if (!args) SWIG_fail;
26959 swig_obj[0] = args;
26960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26961 if (!SWIG_IsOK(res1)) {
26962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26963 }
26964 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26965 {
26966 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26970 return resultobj;
26971fail:
26972 return NULL;
26973}
26974
26975
26976SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26977 PyObject *obj;
26978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26979 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26980 return SWIG_Py_Void();
26981}
26982
8f514ab4
RD
26983SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26984 return SWIG_Python_InitShadowInstance(args);
26985}
26986
26987SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26988 PyObject *resultobj = 0;
26989 wxGraphicsPath *result = 0 ;
26990
26991 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26992 {
26993 if (!wxPyCheckForApp()) SWIG_fail;
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 result = (wxGraphicsPath *)new wxGraphicsPath();
26996 wxPyEndAllowThreads(__tstate);
26997 if (PyErr_Occurred()) SWIG_fail;
26998 }
26999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
27000 return resultobj;
27001fail:
27002 return NULL;
27003}
27004
27005
5c8c7dd3 27006SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
27007 PyObject *resultobj = 0;
27008 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
27009 void *argp1 = 0 ;
27010 int res1 = 0 ;
27011 PyObject *swig_obj[1] ;
27012
27013 if (!args) SWIG_fail;
27014 swig_obj[0] = args;
5c8c7dd3 27015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 27016 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
27018 }
27019 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27020 {
5c8c7dd3
RD
27021 delete arg1;
27022
72ef6efb
RD
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
5c8c7dd3 27025 resultobj = SWIG_Py_Void();
70d7cb34
RD
27026 return resultobj;
27027fail:
27028 return NULL;
27029}
27030
27031
5c8c7dd3 27032SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27033 PyObject *resultobj = 0;
27034 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27035 wxDouble arg2 ;
27036 wxDouble arg3 ;
70d7cb34
RD
27037 void *argp1 = 0 ;
27038 int res1 = 0 ;
27039 double val2 ;
27040 int ecode2 = 0 ;
27041 double val3 ;
27042 int ecode3 = 0 ;
70d7cb34 27043
5c8c7dd3 27044 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
27045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27046 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27048 }
27049 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27050 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27051 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27053 }
27054 arg2 = static_cast< wxDouble >(val2);
27055 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27056 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27058 }
27059 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27060 {
5c8c7dd3 27061 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 resultobj = SWIG_Py_Void();
27065 return resultobj;
27066fail:
27067 return NULL;
27068}
27069
27070
5c8c7dd3 27071SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27072 PyObject *resultobj = 0;
27073 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27074 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27075 void *argp1 = 0 ;
27076 int res1 = 0 ;
27077 wxPoint2D temp2 ;
70d7cb34 27078
5c8c7dd3 27079 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
27080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27081 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27083 }
27084 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27085 {
27086 arg2 = &temp2;
27087 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27088 }
70d7cb34 27089 {
5c8c7dd3 27090 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 resultobj = SWIG_Py_Void();
27094 return resultobj;
27095fail:
27096 return NULL;
27097}
27098
27099
5c8c7dd3 27100SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 27101 int argc;
5c8c7dd3 27102 PyObject *argv[4];
70d7cb34 27103
5c8c7dd3 27104 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 27105 --argc;
5c8c7dd3
RD
27106 if (argc == 2) {
27107 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27108 }
5c8c7dd3
RD
27109 if (argc == 3) {
27110 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
27111 }
27112
27113fail:
5c8c7dd3 27114 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
27115 return NULL;
27116}
27117
27118
5c8c7dd3 27119SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27120 PyObject *resultobj = 0;
27121 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27122 wxDouble arg2 ;
27123 wxDouble arg3 ;
70d7cb34
RD
27124 void *argp1 = 0 ;
27125 int res1 = 0 ;
27126 double val2 ;
27127 int ecode2 = 0 ;
27128 double val3 ;
27129 int ecode3 = 0 ;
70d7cb34 27130
5c8c7dd3
RD
27131 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27133 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27135 }
27136 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27137 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27138 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27140 }
27141 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27142 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27143 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27145 }
27146 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27147 {
5c8c7dd3 27148 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 resultobj = SWIG_Py_Void();
27152 return resultobj;
27153fail:
27154 return NULL;
27155}
27156
27157
5c8c7dd3 27158SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27159 PyObject *resultobj = 0;
27160 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27161 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27162 void *argp1 = 0 ;
27163 int res1 = 0 ;
5c8c7dd3 27164 wxPoint2D temp2 ;
70d7cb34 27165
5c8c7dd3
RD
27166 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27168 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27170 }
27171 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27172 {
5c8c7dd3
RD
27173 arg2 = &temp2;
27174 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27175 }
27176 {
27177 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27178 if (PyErr_Occurred()) SWIG_fail;
27179 }
27180 resultobj = SWIG_Py_Void();
27181 return resultobj;
27182fail:
27183 return NULL;
27184}
27185
27186
5c8c7dd3
RD
27187SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27188 int argc;
27189 PyObject *argv[4];
70d7cb34 27190
5c8c7dd3
RD
27191 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27192 --argc;
27193 if (argc == 2) {
27194 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 27195 }
5c8c7dd3
RD
27196 if (argc == 3) {
27197 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 27198 }
5c8c7dd3 27199
70d7cb34 27200fail:
5c8c7dd3 27201 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
27202 return NULL;
27203}
27204
27205
5c8c7dd3 27206SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27207 PyObject *resultobj = 0;
27208 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27209 wxDouble arg2 ;
27210 wxDouble arg3 ;
27211 wxDouble arg4 ;
27212 wxDouble arg5 ;
27213 wxDouble arg6 ;
5c8c7dd3 27214 wxDouble arg7 ;
70d7cb34
RD
27215 void *argp1 = 0 ;
27216 int res1 = 0 ;
27217 double val2 ;
27218 int ecode2 = 0 ;
27219 double val3 ;
27220 int ecode3 = 0 ;
27221 double val4 ;
27222 int ecode4 = 0 ;
27223 double val5 ;
27224 int ecode5 = 0 ;
27225 double val6 ;
27226 int ecode6 = 0 ;
5c8c7dd3
RD
27227 double val7 ;
27228 int ecode7 = 0 ;
70d7cb34 27229
5c8c7dd3
RD
27230 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27232 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27234 }
27235 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27236 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27237 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27239 }
27240 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27241 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27242 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27244 }
27245 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 27246 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 27247 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 27248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
27249 }
27250 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 27251 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 27252 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 27253 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
27254 }
27255 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 27256 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 27257 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 27258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
27259 }
27260 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
27261 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27262 if (!SWIG_IsOK(ecode7)) {
27263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27264 }
27265 arg7 = static_cast< wxDouble >(val7);
70d7cb34 27266 {
5c8c7dd3 27267 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 resultobj = SWIG_Py_Void();
27271 return resultobj;
27272fail:
27273 return NULL;
27274}
27275
27276
5c8c7dd3 27277SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27278 PyObject *resultobj = 0;
27279 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27280 wxPoint2D *arg2 = 0 ;
27281 wxPoint2D *arg3 = 0 ;
27282 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
27283 void *argp1 = 0 ;
27284 int res1 = 0 ;
5c8c7dd3
RD
27285 wxPoint2D temp2 ;
27286 wxPoint2D temp3 ;
27287 wxPoint2D temp4 ;
70d7cb34 27288
5c8c7dd3
RD
27289 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27291 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27293 }
27294 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27295 {
5c8c7dd3
RD
27296 arg2 = &temp2;
27297 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27298 }
5c8c7dd3
RD
27299 {
27300 arg3 = &temp3;
27301 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 27302 }
70d7cb34 27303 {
5c8c7dd3
RD
27304 arg4 = &temp4;
27305 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27306 }
27307 {
27308 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_Py_Void();
27312 return resultobj;
27313fail:
27314 return NULL;
27315}
27316
27317
5c8c7dd3
RD
27318SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27319 int argc;
27320 PyObject *argv[8];
70d7cb34 27321
5c8c7dd3
RD
27322 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27323 --argc;
27324 if (argc == 4) {
27325 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27326 }
5c8c7dd3
RD
27327 if (argc == 7) {
27328 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27329 }
5c8c7dd3 27330
70d7cb34 27331fail:
5c8c7dd3 27332 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27333 return NULL;
27334}
27335
27336
5c8c7dd3 27337SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27338 PyObject *resultobj = 0;
27339 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27340 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27341 void *argp1 = 0 ;
27342 int res1 = 0 ;
5c8c7dd3
RD
27343 void *argp2 = 0 ;
27344 int res2 = 0 ;
70d7cb34
RD
27345 PyObject * obj0 = 0 ;
27346 PyObject * obj1 = 0 ;
27347 char * kwnames[] = {
5c8c7dd3 27348 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27349 };
27350
5c8c7dd3 27351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27353 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27355 }
27356 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27358 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27360 }
27361 if (!argp2) {
27362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27363 }
5c8c7dd3 27364 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27365 {
5c8c7dd3 27366 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27367 if (PyErr_Occurred()) SWIG_fail;
27368 }
27369 resultobj = SWIG_Py_Void();
27370 return resultobj;
27371fail:
27372 return NULL;
27373}
27374
27375
5c8c7dd3 27376SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27377 PyObject *resultobj = 0;
27378 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27379 void *argp1 = 0 ;
27380 int res1 = 0 ;
5c8c7dd3 27381 PyObject *swig_obj[1] ;
70d7cb34 27382
5c8c7dd3
RD
27383 if (!args) SWIG_fail;
27384 swig_obj[0] = args;
27385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27386 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27388 }
27389 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27390 {
5c8c7dd3 27391 (arg1)->CloseSubpath();
70d7cb34
RD
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_Py_Void();
27395 return resultobj;
27396fail:
27397 return NULL;
27398}
27399
27400
5c8c7dd3 27401SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27402 PyObject *resultobj = 0;
27403 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27404 wxPoint2D result;
70d7cb34
RD
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 PyObject *swig_obj[1] ;
27408
27409 if (!args) SWIG_fail;
27410 swig_obj[0] = args;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
8f514ab4 27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27414 }
27415 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27416 {
8f514ab4 27417 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27418 if (PyErr_Occurred()) SWIG_fail;
27419 }
5c8c7dd3 27420 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27421 return resultobj;
27422fail:
27423 return NULL;
27424}
27425
27426
5c8c7dd3 27427SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27428 PyObject *resultobj = 0;
27429 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27430 wxDouble arg2 ;
27431 wxDouble arg3 ;
5c8c7dd3
RD
27432 wxDouble arg4 ;
27433 wxDouble arg5 ;
27434 wxDouble arg6 ;
27435 bool arg7 ;
70d7cb34
RD
27436 void *argp1 = 0 ;
27437 int res1 = 0 ;
27438 double val2 ;
27439 int ecode2 = 0 ;
27440 double val3 ;
27441 int ecode3 = 0 ;
5c8c7dd3 27442 double val4 ;
70d7cb34 27443 int ecode4 = 0 ;
5c8c7dd3
RD
27444 double val5 ;
27445 int ecode5 = 0 ;
27446 double val6 ;
27447 int ecode6 = 0 ;
27448 bool val7 ;
27449 int ecode7 = 0 ;
70d7cb34 27450
5c8c7dd3 27451 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27455 }
27456 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27457 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27458 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27460 }
27461 arg2 = static_cast< wxDouble >(val2);
27462 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27463 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27465 }
27466 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27467 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27468 if (!SWIG_IsOK(ecode4)) {
27469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27470 }
27471 arg4 = static_cast< wxDouble >(val4);
27472 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27473 if (!SWIG_IsOK(ecode5)) {
27474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27475 }
27476 arg5 = static_cast< wxDouble >(val5);
27477 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27478 if (!SWIG_IsOK(ecode6)) {
27479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27480 }
27481 arg6 = static_cast< wxDouble >(val6);
27482 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27483 if (!SWIG_IsOK(ecode7)) {
27484 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27485 }
27486 arg7 = static_cast< bool >(val7);
70d7cb34 27487 {
5c8c7dd3 27488 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27489 if (PyErr_Occurred()) SWIG_fail;
27490 }
5c8c7dd3 27491 resultobj = SWIG_Py_Void();
70d7cb34
RD
27492 return resultobj;
27493fail:
27494 return NULL;
27495}
27496
27497
5c8c7dd3 27498SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27499 PyObject *resultobj = 0;
27500 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27501 wxPoint2D *arg2 = 0 ;
27502 wxDouble arg3 ;
27503 wxDouble arg4 ;
27504 wxDouble arg5 ;
27505 bool arg6 ;
70d7cb34
RD
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
5c8c7dd3
RD
27508 wxPoint2D temp2 ;
27509 double val3 ;
70d7cb34 27510 int ecode3 = 0 ;
5c8c7dd3
RD
27511 double val4 ;
27512 int ecode4 = 0 ;
27513 double val5 ;
27514 int ecode5 = 0 ;
27515 bool val6 ;
27516 int ecode6 = 0 ;
70d7cb34 27517
5c8c7dd3 27518 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27520 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27522 }
27523 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27524 {
5c8c7dd3
RD
27525 arg2 = &temp2;
27526 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27527 }
5c8c7dd3
RD
27528 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27529 if (!SWIG_IsOK(ecode3)) {
27530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27531 }
27532 arg3 = static_cast< wxDouble >(val3);
27533 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27534 if (!SWIG_IsOK(ecode4)) {
27535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27536 }
27537 arg4 = static_cast< wxDouble >(val4);
27538 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27539 if (!SWIG_IsOK(ecode5)) {
27540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27541 }
27542 arg5 = static_cast< wxDouble >(val5);
27543 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27544 if (!SWIG_IsOK(ecode6)) {
27545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27546 }
27547 arg6 = static_cast< bool >(val6);
70d7cb34 27548 {
5c8c7dd3
RD
27549 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27550 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27551 }
5c8c7dd3 27552 resultobj = SWIG_Py_Void();
70d7cb34
RD
27553 return resultobj;
27554fail:
27555 return NULL;
27556}
27557
27558
5c8c7dd3 27559SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27560 int argc;
5c8c7dd3 27561 PyObject *argv[8];
70d7cb34 27562
5c8c7dd3 27563 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27564 --argc;
5c8c7dd3
RD
27565 if (argc == 6) {
27566 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27567 }
5c8c7dd3
RD
27568 if (argc == 7) {
27569 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27570 }
27571
27572fail:
5c8c7dd3 27573 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27574 return NULL;
27575}
27576
27577
5c8c7dd3 27578SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27579 PyObject *resultobj = 0;
5c8c7dd3
RD
27580 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27581 wxDouble arg2 ;
27582 wxDouble arg3 ;
27583 wxDouble arg4 ;
27584 wxDouble arg5 ;
70d7cb34
RD
27585 void *argp1 = 0 ;
27586 int res1 = 0 ;
5c8c7dd3
RD
27587 double val2 ;
27588 int ecode2 = 0 ;
27589 double val3 ;
27590 int ecode3 = 0 ;
27591 double val4 ;
27592 int ecode4 = 0 ;
27593 double val5 ;
27594 int ecode5 = 0 ;
27595 PyObject * obj0 = 0 ;
27596 PyObject * obj1 = 0 ;
27597 PyObject * obj2 = 0 ;
27598 PyObject * obj3 = 0 ;
27599 PyObject * obj4 = 0 ;
27600 char * kwnames[] = {
27601 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27602 };
70d7cb34 27603
5c8c7dd3
RD
27604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27606 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27608 }
5c8c7dd3
RD
27609 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27610 ecode2 = SWIG_AsVal_double(obj1, &val2);
27611 if (!SWIG_IsOK(ecode2)) {
27612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27613 }
27614 arg2 = static_cast< wxDouble >(val2);
27615 ecode3 = SWIG_AsVal_double(obj2, &val3);
27616 if (!SWIG_IsOK(ecode3)) {
27617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27618 }
27619 arg3 = static_cast< wxDouble >(val3);
27620 ecode4 = SWIG_AsVal_double(obj3, &val4);
27621 if (!SWIG_IsOK(ecode4)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27623 }
27624 arg4 = static_cast< wxDouble >(val4);
27625 ecode5 = SWIG_AsVal_double(obj4, &val5);
27626 if (!SWIG_IsOK(ecode5)) {
27627 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27628 }
27629 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27630 {
5c8c7dd3 27631 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27632 if (PyErr_Occurred()) SWIG_fail;
27633 }
27634 resultobj = SWIG_Py_Void();
27635 return resultobj;
27636fail:
27637 return NULL;
27638}
27639
27640
5c8c7dd3 27641SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27642 PyObject *resultobj = 0;
5c8c7dd3
RD
27643 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27644 wxDouble arg2 ;
27645 wxDouble arg3 ;
27646 wxDouble arg4 ;
27647 wxDouble arg5 ;
70d7cb34
RD
27648 void *argp1 = 0 ;
27649 int res1 = 0 ;
5c8c7dd3
RD
27650 double val2 ;
27651 int ecode2 = 0 ;
27652 double val3 ;
27653 int ecode3 = 0 ;
27654 double val4 ;
27655 int ecode4 = 0 ;
27656 double val5 ;
27657 int ecode5 = 0 ;
70d7cb34
RD
27658 PyObject * obj0 = 0 ;
27659 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27660 PyObject * obj2 = 0 ;
27661 PyObject * obj3 = 0 ;
27662 PyObject * obj4 = 0 ;
70d7cb34 27663 char * kwnames[] = {
5c8c7dd3 27664 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27665 };
27666
5c8c7dd3
RD
27667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27669 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27671 }
5c8c7dd3
RD
27672 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27673 ecode2 = SWIG_AsVal_double(obj1, &val2);
27674 if (!SWIG_IsOK(ecode2)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27676 }
27677 arg2 = static_cast< wxDouble >(val2);
27678 ecode3 = SWIG_AsVal_double(obj2, &val3);
27679 if (!SWIG_IsOK(ecode3)) {
27680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27681 }
27682 arg3 = static_cast< wxDouble >(val3);
27683 ecode4 = SWIG_AsVal_double(obj3, &val4);
27684 if (!SWIG_IsOK(ecode4)) {
27685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27686 }
27687 arg4 = static_cast< wxDouble >(val4);
27688 ecode5 = SWIG_AsVal_double(obj4, &val5);
27689 if (!SWIG_IsOK(ecode5)) {
27690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27691 }
27692 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27693 {
5c8c7dd3 27694 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27695 if (PyErr_Occurred()) SWIG_fail;
27696 }
27697 resultobj = SWIG_Py_Void();
27698 return resultobj;
27699fail:
27700 return NULL;
27701}
27702
27703
5c8c7dd3 27704SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27705 PyObject *resultobj = 0;
5c8c7dd3
RD
27706 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27707 wxDouble arg2 ;
27708 wxDouble arg3 ;
27709 wxDouble arg4 ;
70d7cb34
RD
27710 void *argp1 = 0 ;
27711 int res1 = 0 ;
5c8c7dd3
RD
27712 double val2 ;
27713 int ecode2 = 0 ;
27714 double val3 ;
27715 int ecode3 = 0 ;
27716 double val4 ;
27717 int ecode4 = 0 ;
70d7cb34
RD
27718 PyObject * obj0 = 0 ;
27719 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27720 PyObject * obj2 = 0 ;
27721 PyObject * obj3 = 0 ;
70d7cb34 27722 char * kwnames[] = {
5c8c7dd3 27723 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27724 };
27725
5c8c7dd3
RD
27726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27728 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27730 }
5c8c7dd3
RD
27731 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27732 ecode2 = SWIG_AsVal_double(obj1, &val2);
27733 if (!SWIG_IsOK(ecode2)) {
27734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27735 }
27736 arg2 = static_cast< wxDouble >(val2);
27737 ecode3 = SWIG_AsVal_double(obj2, &val3);
27738 if (!SWIG_IsOK(ecode3)) {
27739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27740 }
27741 arg3 = static_cast< wxDouble >(val3);
27742 ecode4 = SWIG_AsVal_double(obj3, &val4);
27743 if (!SWIG_IsOK(ecode4)) {
27744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27745 }
27746 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27747 {
5c8c7dd3 27748 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 resultobj = SWIG_Py_Void();
27752 return resultobj;
27753fail:
27754 return NULL;
27755}
27756
27757
5c8c7dd3 27758SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27759 PyObject *resultobj = 0;
5c8c7dd3
RD
27760 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27761 wxDouble arg2 ;
27762 wxDouble arg3 ;
27763 wxDouble arg4 ;
27764 wxDouble arg5 ;
27765 wxDouble arg6 ;
70d7cb34
RD
27766 void *argp1 = 0 ;
27767 int res1 = 0 ;
27768 double val2 ;
27769 int ecode2 = 0 ;
27770 double val3 ;
27771 int ecode3 = 0 ;
27772 double val4 ;
27773 int ecode4 = 0 ;
27774 double val5 ;
27775 int ecode5 = 0 ;
27776 double val6 ;
27777 int ecode6 = 0 ;
70d7cb34
RD
27778 PyObject * obj0 = 0 ;
27779 PyObject * obj1 = 0 ;
27780 PyObject * obj2 = 0 ;
27781 PyObject * obj3 = 0 ;
27782 PyObject * obj4 = 0 ;
27783 PyObject * obj5 = 0 ;
70d7cb34 27784 char * kwnames[] = {
5c8c7dd3 27785 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27786 };
27787
5c8c7dd3
RD
27788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27790 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27792 }
5c8c7dd3
RD
27793 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27794 ecode2 = SWIG_AsVal_double(obj1, &val2);
27795 if (!SWIG_IsOK(ecode2)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27797 }
27798 arg2 = static_cast< wxDouble >(val2);
27799 ecode3 = SWIG_AsVal_double(obj2, &val3);
27800 if (!SWIG_IsOK(ecode3)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27802 }
27803 arg3 = static_cast< wxDouble >(val3);
27804 ecode4 = SWIG_AsVal_double(obj3, &val4);
27805 if (!SWIG_IsOK(ecode4)) {
27806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27807 }
27808 arg4 = static_cast< wxDouble >(val4);
27809 ecode5 = SWIG_AsVal_double(obj4, &val5);
27810 if (!SWIG_IsOK(ecode5)) {
27811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27812 }
27813 arg5 = static_cast< wxDouble >(val5);
27814 ecode6 = SWIG_AsVal_double(obj5, &val6);
27815 if (!SWIG_IsOK(ecode6)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27817 }
27818 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27819 {
5c8c7dd3 27820 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27821 if (PyErr_Occurred()) SWIG_fail;
27822 }
27823 resultobj = SWIG_Py_Void();
27824 return resultobj;
27825fail:
27826 return NULL;
27827}
27828
27829
5c8c7dd3 27830SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27831 PyObject *resultobj = 0;
5c8c7dd3
RD
27832 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27833 wxDouble arg2 ;
27834 wxDouble arg3 ;
27835 wxDouble arg4 ;
27836 wxDouble arg5 ;
70d7cb34
RD
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
5c8c7dd3
RD
27839 double val2 ;
27840 int ecode2 = 0 ;
27841 double val3 ;
27842 int ecode3 = 0 ;
27843 double val4 ;
27844 int ecode4 = 0 ;
27845 double val5 ;
27846 int ecode5 = 0 ;
27847 PyObject * obj0 = 0 ;
27848 PyObject * obj1 = 0 ;
27849 PyObject * obj2 = 0 ;
27850 PyObject * obj3 = 0 ;
27851 PyObject * obj4 = 0 ;
27852 char * kwnames[] = {
27853 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27854 };
70d7cb34 27855
5c8c7dd3
RD
27856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27858 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27860 }
5c8c7dd3
RD
27861 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27862 ecode2 = SWIG_AsVal_double(obj1, &val2);
27863 if (!SWIG_IsOK(ecode2)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27865 }
27866 arg2 = static_cast< wxDouble >(val2);
27867 ecode3 = SWIG_AsVal_double(obj2, &val3);
27868 if (!SWIG_IsOK(ecode3)) {
27869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27870 }
27871 arg3 = static_cast< wxDouble >(val3);
27872 ecode4 = SWIG_AsVal_double(obj3, &val4);
27873 if (!SWIG_IsOK(ecode4)) {
27874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27875 }
27876 arg4 = static_cast< wxDouble >(val4);
27877 ecode5 = SWIG_AsVal_double(obj4, &val5);
27878 if (!SWIG_IsOK(ecode5)) {
27879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27880 }
27881 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27882 {
5c8c7dd3 27883 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27884 if (PyErr_Occurred()) SWIG_fail;
27885 }
27886 resultobj = SWIG_Py_Void();
27887 return resultobj;
27888fail:
27889 return NULL;
27890}
27891
27892
5c8c7dd3 27893SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27894 PyObject *resultobj = 0;
5c8c7dd3
RD
27895 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27896 wxDouble arg2 ;
27897 wxDouble arg3 ;
27898 wxDouble arg4 ;
27899 wxDouble arg5 ;
27900 wxDouble arg6 ;
70d7cb34
RD
27901 void *argp1 = 0 ;
27902 int res1 = 0 ;
5c8c7dd3
RD
27903 double val2 ;
27904 int ecode2 = 0 ;
27905 double val3 ;
27906 int ecode3 = 0 ;
27907 double val4 ;
27908 int ecode4 = 0 ;
27909 double val5 ;
27910 int ecode5 = 0 ;
27911 double val6 ;
27912 int ecode6 = 0 ;
70d7cb34
RD
27913 PyObject * obj0 = 0 ;
27914 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27915 PyObject * obj2 = 0 ;
27916 PyObject * obj3 = 0 ;
27917 PyObject * obj4 = 0 ;
27918 PyObject * obj5 = 0 ;
70d7cb34 27919 char * kwnames[] = {
5c8c7dd3 27920 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27921 };
27922
5c8c7dd3
RD
27923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27925 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27927 }
5c8c7dd3
RD
27928 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27929 ecode2 = SWIG_AsVal_double(obj1, &val2);
27930 if (!SWIG_IsOK(ecode2)) {
27931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27932 }
27933 arg2 = static_cast< wxDouble >(val2);
27934 ecode3 = SWIG_AsVal_double(obj2, &val3);
27935 if (!SWIG_IsOK(ecode3)) {
27936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27937 }
27938 arg3 = static_cast< wxDouble >(val3);
27939 ecode4 = SWIG_AsVal_double(obj3, &val4);
27940 if (!SWIG_IsOK(ecode4)) {
27941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27942 }
27943 arg4 = static_cast< wxDouble >(val4);
27944 ecode5 = SWIG_AsVal_double(obj4, &val5);
27945 if (!SWIG_IsOK(ecode5)) {
27946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27947 }
27948 arg5 = static_cast< wxDouble >(val5);
27949 ecode6 = SWIG_AsVal_double(obj5, &val6);
27950 if (!SWIG_IsOK(ecode6)) {
27951 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27952 }
27953 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27954 {
5c8c7dd3 27955 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
5c8c7dd3 27958 resultobj = SWIG_Py_Void();
70d7cb34
RD
27959 return resultobj;
27960fail:
27961 return NULL;
27962}
27963
27964
5c8c7dd3 27965SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27966 PyObject *resultobj = 0;
5c8c7dd3
RD
27967 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27968 void *result = 0 ;
70d7cb34
RD
27969 void *argp1 = 0 ;
27970 int res1 = 0 ;
27971 PyObject *swig_obj[1] ;
27972
27973 if (!args) SWIG_fail;
27974 swig_obj[0] = args;
5c8c7dd3 27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27976 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27978 }
5c8c7dd3 27979 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27980 {
5c8c7dd3 27981 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
5c8c7dd3 27984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27985 return resultobj;
27986fail:
27987 return NULL;
27988}
27989
27990
5c8c7dd3 27991SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27992 PyObject *resultobj = 0;
5c8c7dd3
RD
27993 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27994 void *arg2 = (void *) 0 ;
70d7cb34
RD
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
5c8c7dd3 27997 int res2 ;
70d7cb34
RD
27998 PyObject * obj0 = 0 ;
27999 PyObject * obj1 = 0 ;
70d7cb34 28000 char * kwnames[] = {
5c8c7dd3 28001 (char *) "self",(char *) "p", NULL
70d7cb34
RD
28002 };
28003
5c8c7dd3
RD
28004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28006 if (!SWIG_IsOK(res1)) {
8f514ab4 28007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
28008 }
28009 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28010 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28011 if (!SWIG_IsOK(res2)) {
28012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 28013 }
70d7cb34 28014 {
8f514ab4 28015 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 resultobj = SWIG_Py_Void();
28019 return resultobj;
28020fail:
28021 return NULL;
28022}
28023
28024
5c8c7dd3 28025SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28026 PyObject *resultobj = 0;
5c8c7dd3
RD
28027 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28028 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
5c8c7dd3
RD
28031 void *argp2 = 0 ;
28032 int res2 = 0 ;
70d7cb34
RD
28033 PyObject * obj0 = 0 ;
28034 PyObject * obj1 = 0 ;
70d7cb34 28035 char * kwnames[] = {
5c8c7dd3 28036 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
28037 };
28038
5c8c7dd3
RD
28039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28041 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28043 }
5c8c7dd3
RD
28044 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28046 if (!SWIG_IsOK(res2)) {
28047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28048 }
28049 if (!argp2) {
28050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28051 }
28052 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 28053 {
5c8c7dd3 28054 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 resultobj = SWIG_Py_Void();
28058 return resultobj;
28059fail:
28060 return NULL;
28061}
28062
28063
5c8c7dd3 28064SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 28065 PyObject *resultobj = 0;
5c8c7dd3
RD
28066 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28067 wxRect2DDouble result;
70d7cb34
RD
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
5c8c7dd3 28070 PyObject *swig_obj[1] ;
70d7cb34 28071
5c8c7dd3
RD
28072 if (!args) SWIG_fail;
28073 swig_obj[0] = args;
28074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28075 if (!SWIG_IsOK(res1)) {
8f514ab4 28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28077 }
5c8c7dd3 28078 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28079 {
8f514ab4 28080 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
28081 if (PyErr_Occurred()) SWIG_fail;
28082 }
5c8c7dd3 28083 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
28084 return resultobj;
28085fail:
28086 return NULL;
28087}
28088
28089
5c8c7dd3 28090SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28091 PyObject *resultobj = 0;
5c8c7dd3
RD
28092 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28093 wxDouble arg2 ;
28094 wxDouble arg3 ;
8f514ab4 28095 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28096 bool result;
70d7cb34
RD
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
5c8c7dd3
RD
28099 double val2 ;
28100 int ecode2 = 0 ;
28101 double val3 ;
28102 int ecode3 = 0 ;
28103 int val4 ;
28104 int ecode4 = 0 ;
70d7cb34 28105
5c8c7dd3
RD
28106 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28108 if (!SWIG_IsOK(res1)) {
8f514ab4 28109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28110 }
5c8c7dd3
RD
28111 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28112 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28113 if (!SWIG_IsOK(ecode2)) {
28114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28115 }
28116 arg2 = static_cast< wxDouble >(val2);
28117 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28118 if (!SWIG_IsOK(ecode3)) {
28119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28120 }
28121 arg3 = static_cast< wxDouble >(val3);
28122 if (swig_obj[3]) {
28123 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28124 if (!SWIG_IsOK(ecode4)) {
28125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28126 }
28127 arg4 = static_cast< int >(val4);
70d7cb34
RD
28128 }
28129 {
8f514ab4 28130 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
28131 if (PyErr_Occurred()) SWIG_fail;
28132 }
5c8c7dd3
RD
28133 {
28134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28135 }
28136 return resultobj;
28137fail:
28138 return NULL;
28139}
28140
28141
5c8c7dd3 28142SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28143 PyObject *resultobj = 0;
5c8c7dd3
RD
28144 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28145 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 28146 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28147 bool result;
70d7cb34
RD
28148 void *argp1 = 0 ;
28149 int res1 = 0 ;
5c8c7dd3 28150 void *argp2 = 0 ;
70d7cb34 28151 int res2 = 0 ;
5c8c7dd3
RD
28152 int val3 ;
28153 int ecode3 = 0 ;
70d7cb34 28154
5c8c7dd3
RD
28155 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28157 if (!SWIG_IsOK(res1)) {
8f514ab4 28158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28159 }
5c8c7dd3
RD
28160 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28161 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28162 if (!SWIG_IsOK(res2)) {
28163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 28164 }
5c8c7dd3
RD
28165 if (!argp2) {
28166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28167 }
28168 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28169 if (swig_obj[2]) {
28170 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28171 if (!SWIG_IsOK(ecode3)) {
28172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28173 }
28174 arg3 = static_cast< int >(val3);
70d7cb34
RD
28175 }
28176 {
8f514ab4 28177 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
28178 if (PyErr_Occurred()) SWIG_fail;
28179 }
5c8c7dd3
RD
28180 {
28181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28182 }
28183 return resultobj;
28184fail:
28185 return NULL;
28186}
28187
28188
5c8c7dd3
RD
28189SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28190 int argc;
28191 PyObject *argv[5];
70d7cb34 28192
5c8c7dd3
RD
28193 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28194 --argc;
28195 if ((argc >= 2) && (argc <= 3)) {
28196 int _v = 0;
28197 {
28198 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28199 _v = SWIG_CheckState(res);
28200 }
28201 if (!_v) goto check_1;
28202 if (argc > 2) {
28203 {
28204 {
28205 int res = SWIG_AsVal_int(argv[2], NULL);
28206 _v = SWIG_CheckState(res);
28207 }
28208 }
28209 if (!_v) goto check_1;
28210 }
28211 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 28212 }
5c8c7dd3
RD
28213check_1:
28214
28215 if ((argc >= 3) && (argc <= 4)) {
28216 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 28217 }
5c8c7dd3 28218
70d7cb34 28219fail:
5c8c7dd3 28220 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
28221 return NULL;
28222}
28223
28224
5c8c7dd3 28225SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
28226 PyObject *obj;
28227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 28228 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
28229 return SWIG_Py_Void();
28230}
28231
8f514ab4
RD
28232SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28233 return SWIG_Python_InitShadowInstance(args);
28234}
28235
5c8c7dd3
RD
28236SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28237 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28238 return 1;
28239}
28240
28241
28242SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28243 PyObject *pyobj = 0;
28244
28245 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28246 return pyobj;
28247}
28248
28249
28250SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28251 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28252 return 1;
28253}
28254
28255
28256SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28257 PyObject *pyobj = 0;
28258
28259 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28260 return pyobj;
28261}
28262
28263
28264SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28265 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28266 return 1;
28267}
28268
28269
28270SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28271 PyObject *pyobj = 0;
28272
28273 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28274 return pyobj;
28275}
28276
28277
28278SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28279 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28280 return 1;
28281}
28282
28283
28284SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28285 PyObject *pyobj = 0;
28286
28287 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28288 return pyobj;
28289}
28290
28291
28292SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28293 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28294 return 1;
28295}
28296
28297
28298SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28299 PyObject *pyobj = 0;
28300
28301 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28302 return pyobj;
28303}
28304
28305
70d7cb34
RD
28306SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307 PyObject *resultobj = 0;
28308 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28309 void *argp1 = 0 ;
28310 int res1 = 0 ;
28311 PyObject *swig_obj[1] ;
28312
28313 if (!args) SWIG_fail;
28314 swig_obj[0] = args;
28315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28316 if (!SWIG_IsOK(res1)) {
28317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28318 }
28319 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28320 {
28321 delete arg1;
28322
28323 if (PyErr_Occurred()) SWIG_fail;
28324 }
28325 resultobj = SWIG_Py_Void();
28326 return resultobj;
28327fail:
28328 return NULL;
28329}
28330
28331
28332SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28333 PyObject *resultobj = 0;
28334 wxWindowDC *arg1 = 0 ;
28335 wxGraphicsContext *result = 0 ;
28336 void *argp1 = 0 ;
28337 int res1 = 0 ;
28338
28339 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28341 if (!SWIG_IsOK(res1)) {
28342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28343 }
28344 if (!argp1) {
28345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28346 }
28347 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28348 {
28349 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28350 if (PyErr_Occurred()) SWIG_fail;
28351 }
28352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28353 return resultobj;
28354fail:
28355 return NULL;
28356}
28357
28358
28359SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28360 PyObject *resultobj = 0;
28361 wxWindow *arg1 = (wxWindow *) 0 ;
28362 wxGraphicsContext *result = 0 ;
28363 void *argp1 = 0 ;
28364 int res1 = 0 ;
28365
28366 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28368 if (!SWIG_IsOK(res1)) {
28369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28370 }
28371 arg1 = reinterpret_cast< wxWindow * >(argp1);
28372 {
28373 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28374 if (PyErr_Occurred()) SWIG_fail;
28375 }
28376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28377 return resultobj;
28378fail:
28379 return NULL;
28380}
28381
28382
28383SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28384 int argc;
28385 PyObject *argv[2];
28386
28387 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28388 --argc;
28389 if (argc == 1) {
28390 int _v = 0;
28391 {
28392 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28393 _v = SWIG_CheckState(res);
28394 }
28395 if (!_v) goto check_1;
28396 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28397 }
28398check_1:
28399
28400 if (argc == 1) {
28401 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28402 }
28403
28404fail:
28405 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28406 return NULL;
28407}
28408
28409
28410SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28411 PyObject *resultobj = 0;
28412 void *arg1 = (void *) 0 ;
28413 wxGraphicsContext *result = 0 ;
28414 int res1 ;
28415 PyObject * obj0 = 0 ;
28416 char * kwnames[] = {
28417 (char *) "context", NULL
28418 };
28419
28420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28421 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28422 if (!SWIG_IsOK(res1)) {
28423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28424 }
28425 {
28426 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28427 if (PyErr_Occurred()) SWIG_fail;
28428 }
28429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28430 return resultobj;
28431fail:
28432 return NULL;
28433}
28434
28435
28436SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28437 PyObject *resultobj = 0;
28438 void *arg1 = (void *) 0 ;
28439 wxGraphicsContext *result = 0 ;
28440 int res1 ;
28441 PyObject * obj0 = 0 ;
28442 char * kwnames[] = {
28443 (char *) "window", NULL
28444 };
28445
28446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28447 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28450 }
28451 {
28452 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28453 if (PyErr_Occurred()) SWIG_fail;
28454 }
28455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28456 return resultobj;
28457fail:
28458 return NULL;
28459}
28460
28461
28462SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28463 PyObject *resultobj = 0;
28464 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28465 wxGraphicsPath result;
70d7cb34
RD
28466 void *argp1 = 0 ;
28467 int res1 = 0 ;
28468 PyObject *swig_obj[1] ;
28469
28470 if (!args) SWIG_fail;
28471 swig_obj[0] = args;
28472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28473 if (!SWIG_IsOK(res1)) {
28474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28475 }
28476 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28477 {
5c8c7dd3 28478 result = (arg1)->CreatePath();
70d7cb34
RD
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
5c8c7dd3 28481 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28482 return resultobj;
28483fail:
28484 return NULL;
28485}
28486
28487
70d7cb34 28488SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28489 PyObject *resultobj = 0;
70d7cb34
RD
28490 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28491 wxPen *arg2 = 0 ;
28492 wxGraphicsPen result;
72ef6efb
RD
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
70d7cb34
RD
28495 void *argp2 = 0 ;
28496 int res2 = 0 ;
72ef6efb
RD
28497 PyObject * obj0 = 0 ;
28498 PyObject * obj1 = 0 ;
72ef6efb 28499 char * kwnames[] = {
70d7cb34 28500 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28501 };
28502
70d7cb34
RD
28503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28505 if (!SWIG_IsOK(res1)) {
70d7cb34 28506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28507 }
70d7cb34
RD
28508 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28510 if (!SWIG_IsOK(res2)) {
28511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28512 }
28513 if (!argp2) {
28514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28515 }
28516 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28517 {
70d7cb34 28518 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
70d7cb34 28521 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28522 return resultobj;
28523fail:
28524 return NULL;
28525}
28526
28527
70d7cb34 28528SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28529 PyObject *resultobj = 0;
70d7cb34
RD
28530 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28531 wxBrush *arg2 = 0 ;
28532 wxGraphicsBrush result;
72ef6efb
RD
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
70d7cb34
RD
28535 void *argp2 = 0 ;
28536 int res2 = 0 ;
72ef6efb
RD
28537 PyObject * obj0 = 0 ;
28538 PyObject * obj1 = 0 ;
72ef6efb 28539 char * kwnames[] = {
70d7cb34 28540 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28541 };
28542
70d7cb34
RD
28543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28545 if (!SWIG_IsOK(res1)) {
70d7cb34 28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28547 }
70d7cb34
RD
28548 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28550 if (!SWIG_IsOK(res2)) {
28551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28552 }
28553 if (!argp2) {
28554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28555 }
28556 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28557 {
70d7cb34 28558 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28559 if (PyErr_Occurred()) SWIG_fail;
28560 }
70d7cb34 28561 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28562 return resultobj;
28563fail:
28564 return NULL;
28565}
28566
28567
70d7cb34 28568SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28569 PyObject *resultobj = 0;
70d7cb34 28570 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28571 wxDouble arg2 ;
28572 wxDouble arg3 ;
28573 wxDouble arg4 ;
28574 wxDouble arg5 ;
70d7cb34
RD
28575 wxColour *arg6 = 0 ;
28576 wxColour *arg7 = 0 ;
28577 wxGraphicsBrush result;
72ef6efb
RD
28578 void *argp1 = 0 ;
28579 int res1 = 0 ;
28580 double val2 ;
28581 int ecode2 = 0 ;
28582 double val3 ;
28583 int ecode3 = 0 ;
28584 double val4 ;
28585 int ecode4 = 0 ;
28586 double val5 ;
28587 int ecode5 = 0 ;
70d7cb34
RD
28588 wxColour temp6 ;
28589 wxColour temp7 ;
72ef6efb
RD
28590 PyObject * obj0 = 0 ;
28591 PyObject * obj1 = 0 ;
28592 PyObject * obj2 = 0 ;
28593 PyObject * obj3 = 0 ;
28594 PyObject * obj4 = 0 ;
70d7cb34
RD
28595 PyObject * obj5 = 0 ;
28596 PyObject * obj6 = 0 ;
72ef6efb 28597 char * kwnames[] = {
70d7cb34 28598 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28599 };
28600
70d7cb34
RD
28601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28603 if (!SWIG_IsOK(res1)) {
70d7cb34 28604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28605 }
70d7cb34 28606 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28607 ecode2 = SWIG_AsVal_double(obj1, &val2);
28608 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28610 }
28611 arg2 = static_cast< wxDouble >(val2);
28612 ecode3 = SWIG_AsVal_double(obj2, &val3);
28613 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28615 }
28616 arg3 = static_cast< wxDouble >(val3);
28617 ecode4 = SWIG_AsVal_double(obj3, &val4);
28618 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28620 }
28621 arg4 = static_cast< wxDouble >(val4);
28622 ecode5 = SWIG_AsVal_double(obj4, &val5);
28623 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28625 }
28626 arg5 = static_cast< wxDouble >(val5);
28627 {
70d7cb34
RD
28628 arg6 = &temp6;
28629 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28630 }
70d7cb34
RD
28631 {
28632 arg7 = &temp7;
28633 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28634 }
72ef6efb 28635 {
70d7cb34 28636 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
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_CreateRadialGradientBrush(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 ;
28653 wxDouble arg6 ;
70d7cb34
RD
28654 wxColour *arg7 = 0 ;
28655 wxColour *arg8 = 0 ;
28656 wxGraphicsBrush result;
72ef6efb
RD
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 double val2 ;
28660 int ecode2 = 0 ;
28661 double val3 ;
28662 int ecode3 = 0 ;
28663 double val4 ;
28664 int ecode4 = 0 ;
28665 double val5 ;
28666 int ecode5 = 0 ;
28667 double val6 ;
28668 int ecode6 = 0 ;
70d7cb34
RD
28669 wxColour temp7 ;
28670 wxColour temp8 ;
72ef6efb
RD
28671 PyObject * obj0 = 0 ;
28672 PyObject * obj1 = 0 ;
28673 PyObject * obj2 = 0 ;
28674 PyObject * obj3 = 0 ;
28675 PyObject * obj4 = 0 ;
28676 PyObject * obj5 = 0 ;
70d7cb34
RD
28677 PyObject * obj6 = 0 ;
28678 PyObject * obj7 = 0 ;
72ef6efb 28679 char * kwnames[] = {
70d7cb34 28680 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28681 };
28682
70d7cb34
RD
28683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28685 if (!SWIG_IsOK(res1)) {
70d7cb34 28686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28687 }
70d7cb34 28688 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28689 ecode2 = SWIG_AsVal_double(obj1, &val2);
28690 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28692 }
28693 arg2 = static_cast< wxDouble >(val2);
28694 ecode3 = SWIG_AsVal_double(obj2, &val3);
28695 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28697 }
28698 arg3 = static_cast< wxDouble >(val3);
28699 ecode4 = SWIG_AsVal_double(obj3, &val4);
28700 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28702 }
28703 arg4 = static_cast< wxDouble >(val4);
28704 ecode5 = SWIG_AsVal_double(obj4, &val5);
28705 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28707 }
28708 arg5 = static_cast< wxDouble >(val5);
28709 ecode6 = SWIG_AsVal_double(obj5, &val6);
28710 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28712 }
28713 arg6 = static_cast< wxDouble >(val6);
28714 {
70d7cb34
RD
28715 arg7 = &temp7;
28716 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28717 }
28718 {
28719 arg8 = &temp8;
28720 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28721 }
28722 {
28723 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
70d7cb34 28726 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28727 return resultobj;
28728fail:
28729 return NULL;
28730}
28731
28732
70d7cb34 28733SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28734 PyObject *resultobj = 0;
28735 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28736 wxFont *arg2 = 0 ;
28737 wxColour const &arg3_defvalue = *wxBLACK ;
28738 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28739 wxGraphicsFont result;
72ef6efb
RD
28740 void *argp1 = 0 ;
28741 int res1 = 0 ;
70d7cb34
RD
28742 void *argp2 = 0 ;
28743 int res2 = 0 ;
28744 wxColour temp3 ;
28745 PyObject * obj0 = 0 ;
28746 PyObject * obj1 = 0 ;
28747 PyObject * obj2 = 0 ;
28748 char * kwnames[] = {
28749 (char *) "self",(char *) "font",(char *) "col", NULL
28750 };
72ef6efb 28751
70d7cb34
RD
28752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28754 if (!SWIG_IsOK(res1)) {
70d7cb34 28755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28756 }
28757 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28759 if (!SWIG_IsOK(res2)) {
28760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28761 }
70d7cb34
RD
28762 if (!argp2) {
28763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28764 }
70d7cb34
RD
28765 arg2 = reinterpret_cast< wxFont * >(argp2);
28766 if (obj2) {
28767 {
28768 arg3 = &temp3;
28769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28770 }
72ef6efb 28771 }
72ef6efb 28772 {
70d7cb34 28773 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28774 if (PyErr_Occurred()) SWIG_fail;
28775 }
70d7cb34 28776 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28777 return resultobj;
28778fail:
28779 return NULL;
28780}
28781
28782
70d7cb34 28783SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28784 PyObject *resultobj = 0;
70d7cb34
RD
28785 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28786 wxDouble arg2 = (wxDouble) 1.0 ;
28787 wxDouble arg3 = (wxDouble) 0.0 ;
28788 wxDouble arg4 = (wxDouble) 0.0 ;
28789 wxDouble arg5 = (wxDouble) 1.0 ;
28790 wxDouble arg6 = (wxDouble) 0.0 ;
28791 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28792 wxGraphicsMatrix result;
0a27f394
RD
28793 void *argp1 = 0 ;
28794 int res1 = 0 ;
70d7cb34
RD
28795 double val2 ;
28796 int ecode2 = 0 ;
28797 double val3 ;
28798 int ecode3 = 0 ;
28799 double val4 ;
28800 int ecode4 = 0 ;
28801 double val5 ;
28802 int ecode5 = 0 ;
28803 double val6 ;
28804 int ecode6 = 0 ;
28805 double val7 ;
28806 int ecode7 = 0 ;
28807 PyObject * obj0 = 0 ;
28808 PyObject * obj1 = 0 ;
28809 PyObject * obj2 = 0 ;
28810 PyObject * obj3 = 0 ;
28811 PyObject * obj4 = 0 ;
28812 PyObject * obj5 = 0 ;
28813 PyObject * obj6 = 0 ;
28814 char * kwnames[] = {
28815 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28816 };
0a27f394 28817
70d7cb34
RD
28818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28820 if (!SWIG_IsOK(res1)) {
70d7cb34 28821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28822 }
70d7cb34
RD
28823 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28824 if (obj1) {
28825 ecode2 = SWIG_AsVal_double(obj1, &val2);
28826 if (!SWIG_IsOK(ecode2)) {
28827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28828 }
28829 arg2 = static_cast< wxDouble >(val2);
0a27f394 28830 }
70d7cb34
RD
28831 if (obj2) {
28832 ecode3 = SWIG_AsVal_double(obj2, &val3);
28833 if (!SWIG_IsOK(ecode3)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28835 }
28836 arg3 = static_cast< wxDouble >(val3);
0a27f394 28837 }
70d7cb34
RD
28838 if (obj3) {
28839 ecode4 = SWIG_AsVal_double(obj3, &val4);
28840 if (!SWIG_IsOK(ecode4)) {
28841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28842 }
28843 arg4 = static_cast< wxDouble >(val4);
0a27f394 28844 }
70d7cb34
RD
28845 if (obj4) {
28846 ecode5 = SWIG_AsVal_double(obj4, &val5);
28847 if (!SWIG_IsOK(ecode5)) {
28848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28849 }
28850 arg5 = static_cast< wxDouble >(val5);
0a27f394 28851 }
70d7cb34
RD
28852 if (obj5) {
28853 ecode6 = SWIG_AsVal_double(obj5, &val6);
28854 if (!SWIG_IsOK(ecode6)) {
28855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28856 }
28857 arg6 = static_cast< wxDouble >(val6);
0a27f394 28858 }
70d7cb34
RD
28859 if (obj6) {
28860 ecode7 = SWIG_AsVal_double(obj6, &val7);
28861 if (!SWIG_IsOK(ecode7)) {
28862 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28863 }
28864 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28865 }
72ef6efb 28866 {
5c8c7dd3 28867 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
5c8c7dd3 28870 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28871 return resultobj;
28872fail:
28873 return NULL;
28874}
28875
28876
28877SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28878 PyObject *resultobj = 0;
28879 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28880 void *argp1 = 0 ;
28881 int res1 = 0 ;
28882 PyObject *swig_obj[1] ;
28883
28884 if (!args) SWIG_fail;
28885 swig_obj[0] = args;
28886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28887 if (!SWIG_IsOK(res1)) {
28888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28889 }
28890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28891 {
72ef6efb 28892 (arg1)->PushState();
72ef6efb
RD
28893 if (PyErr_Occurred()) SWIG_fail;
28894 }
28895 resultobj = SWIG_Py_Void();
28896 return resultobj;
28897fail:
28898 return NULL;
28899}
28900
28901
28902SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28903 PyObject *resultobj = 0;
28904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 PyObject *swig_obj[1] ;
28908
28909 if (!args) SWIG_fail;
28910 swig_obj[0] = args;
28911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28914 }
28915 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28916 {
72ef6efb 28917 (arg1)->PopState();
72ef6efb
RD
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 resultobj = SWIG_Py_Void();
28921 return resultobj;
28922fail:
28923 return NULL;
28924}
28925
28926
0a27f394 28927SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28928 PyObject *resultobj = 0;
28929 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28930 wxRegion *arg2 = 0 ;
28931 void *argp1 = 0 ;
28932 int res1 = 0 ;
28933 void *argp2 = 0 ;
28934 int res2 = 0 ;
28935 PyObject * obj0 = 0 ;
28936 PyObject * obj1 = 0 ;
28937 char * kwnames[] = {
28938 (char *) "self",(char *) "region", NULL
28939 };
28940
0a27f394 28941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28943 if (!SWIG_IsOK(res1)) {
0a27f394 28944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28945 }
28946 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28948 if (!SWIG_IsOK(res2)) {
0a27f394 28949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28950 }
28951 if (!argp2) {
0a27f394 28952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28953 }
28954 arg2 = reinterpret_cast< wxRegion * >(argp2);
28955 {
72ef6efb 28956 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28957 if (PyErr_Occurred()) SWIG_fail;
28958 }
28959 resultobj = SWIG_Py_Void();
28960 return resultobj;
28961fail:
28962 return NULL;
28963}
28964
28965
0a27f394
RD
28966SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28967 PyObject *resultobj = 0;
28968 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28969 wxDouble arg2 ;
28970 wxDouble arg3 ;
28971 wxDouble arg4 ;
28972 wxDouble arg5 ;
28973 void *argp1 = 0 ;
28974 int res1 = 0 ;
28975 double val2 ;
28976 int ecode2 = 0 ;
28977 double val3 ;
28978 int ecode3 = 0 ;
28979 double val4 ;
28980 int ecode4 = 0 ;
28981 double val5 ;
28982 int ecode5 = 0 ;
28983 PyObject * obj0 = 0 ;
28984 PyObject * obj1 = 0 ;
28985 PyObject * obj2 = 0 ;
28986 PyObject * obj3 = 0 ;
28987 PyObject * obj4 = 0 ;
28988 char * kwnames[] = {
28989 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28990 };
28991
28992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28996 }
28997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28998 ecode2 = SWIG_AsVal_double(obj1, &val2);
28999 if (!SWIG_IsOK(ecode2)) {
29000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29001 }
29002 arg2 = static_cast< wxDouble >(val2);
29003 ecode3 = SWIG_AsVal_double(obj2, &val3);
29004 if (!SWIG_IsOK(ecode3)) {
29005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29006 }
29007 arg3 = static_cast< wxDouble >(val3);
29008 ecode4 = SWIG_AsVal_double(obj3, &val4);
29009 if (!SWIG_IsOK(ecode4)) {
29010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29011 }
29012 arg4 = static_cast< wxDouble >(val4);
29013 ecode5 = SWIG_AsVal_double(obj4, &val5);
29014 if (!SWIG_IsOK(ecode5)) {
29015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29016 }
29017 arg5 = static_cast< wxDouble >(val5);
29018 {
29019 (arg1)->Clip(arg2,arg3,arg4,arg5);
29020 if (PyErr_Occurred()) SWIG_fail;
29021 }
29022 resultobj = SWIG_Py_Void();
29023 return resultobj;
29024fail:
29025 return NULL;
29026}
29027
29028
29029SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29030 PyObject *resultobj = 0;
29031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29032 void *argp1 = 0 ;
29033 int res1 = 0 ;
29034 PyObject *swig_obj[1] ;
29035
29036 if (!args) SWIG_fail;
29037 swig_obj[0] = args;
29038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29039 if (!SWIG_IsOK(res1)) {
29040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29041 }
29042 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29043 {
29044 (arg1)->ResetClip();
29045 if (PyErr_Occurred()) SWIG_fail;
29046 }
29047 resultobj = SWIG_Py_Void();
29048 return resultobj;
29049fail:
29050 return NULL;
29051}
29052
29053
29054SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29055 PyObject *resultobj = 0;
29056 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29057 void *result = 0 ;
29058 void *argp1 = 0 ;
29059 int res1 = 0 ;
29060 PyObject *swig_obj[1] ;
29061
29062 if (!args) SWIG_fail;
29063 swig_obj[0] = args;
29064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29065 if (!SWIG_IsOK(res1)) {
29066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29067 }
29068 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29069 {
29070 result = (void *)(arg1)->GetNativeContext();
29071 if (PyErr_Occurred()) SWIG_fail;
29072 }
29073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29074 return resultobj;
29075fail:
29076 return NULL;
29077}
29078
29079
72ef6efb
RD
29080SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29081 PyObject *resultobj = 0;
29082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29083 wxDouble arg2 ;
29084 wxDouble arg3 ;
29085 void *argp1 = 0 ;
29086 int res1 = 0 ;
29087 double val2 ;
29088 int ecode2 = 0 ;
29089 double val3 ;
29090 int ecode3 = 0 ;
29091 PyObject * obj0 = 0 ;
29092 PyObject * obj1 = 0 ;
29093 PyObject * obj2 = 0 ;
29094 char * kwnames[] = {
29095 (char *) "self",(char *) "dx",(char *) "dy", NULL
29096 };
29097
29098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29100 if (!SWIG_IsOK(res1)) {
29101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29102 }
29103 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29104 ecode2 = SWIG_AsVal_double(obj1, &val2);
29105 if (!SWIG_IsOK(ecode2)) {
29106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29107 }
29108 arg2 = static_cast< wxDouble >(val2);
29109 ecode3 = SWIG_AsVal_double(obj2, &val3);
29110 if (!SWIG_IsOK(ecode3)) {
29111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29112 }
29113 arg3 = static_cast< wxDouble >(val3);
29114 {
72ef6efb 29115 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
29116 if (PyErr_Occurred()) SWIG_fail;
29117 }
29118 resultobj = SWIG_Py_Void();
29119 return resultobj;
29120fail:
29121 return NULL;
29122}
29123
29124
29125SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29126 PyObject *resultobj = 0;
29127 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29128 wxDouble arg2 ;
29129 wxDouble arg3 ;
29130 void *argp1 = 0 ;
29131 int res1 = 0 ;
29132 double val2 ;
29133 int ecode2 = 0 ;
29134 double val3 ;
29135 int ecode3 = 0 ;
29136 PyObject * obj0 = 0 ;
29137 PyObject * obj1 = 0 ;
29138 PyObject * obj2 = 0 ;
29139 char * kwnames[] = {
29140 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29141 };
29142
29143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29145 if (!SWIG_IsOK(res1)) {
29146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29147 }
29148 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29149 ecode2 = SWIG_AsVal_double(obj1, &val2);
29150 if (!SWIG_IsOK(ecode2)) {
29151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29152 }
29153 arg2 = static_cast< wxDouble >(val2);
29154 ecode3 = SWIG_AsVal_double(obj2, &val3);
29155 if (!SWIG_IsOK(ecode3)) {
29156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29157 }
29158 arg3 = static_cast< wxDouble >(val3);
29159 {
72ef6efb 29160 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
29161 if (PyErr_Occurred()) SWIG_fail;
29162 }
29163 resultobj = SWIG_Py_Void();
29164 return resultobj;
29165fail:
29166 return NULL;
29167}
29168
29169
29170SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29171 PyObject *resultobj = 0;
29172 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29173 wxDouble arg2 ;
29174 void *argp1 = 0 ;
29175 int res1 = 0 ;
29176 double val2 ;
29177 int ecode2 = 0 ;
29178 PyObject * obj0 = 0 ;
29179 PyObject * obj1 = 0 ;
29180 char * kwnames[] = {
29181 (char *) "self",(char *) "angle", NULL
29182 };
29183
29184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29186 if (!SWIG_IsOK(res1)) {
29187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29188 }
29189 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29190 ecode2 = SWIG_AsVal_double(obj1, &val2);
29191 if (!SWIG_IsOK(ecode2)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29193 }
29194 arg2 = static_cast< wxDouble >(val2);
29195 {
72ef6efb 29196 (arg1)->Rotate(arg2);
72ef6efb
RD
29197 if (PyErr_Occurred()) SWIG_fail;
29198 }
29199 resultobj = SWIG_Py_Void();
29200 return resultobj;
29201fail:
29202 return NULL;
29203}
29204
29205
5c8c7dd3
RD
29206SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29207 PyObject *resultobj = 0;
29208 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29209 wxGraphicsMatrix *arg2 = 0 ;
29210 void *argp1 = 0 ;
29211 int res1 = 0 ;
29212 void *argp2 = 0 ;
29213 int res2 = 0 ;
29214 PyObject * obj0 = 0 ;
29215 PyObject * obj1 = 0 ;
29216 char * kwnames[] = {
29217 (char *) "self",(char *) "matrix", NULL
29218 };
29219
29220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29222 if (!SWIG_IsOK(res1)) {
29223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29224 }
29225 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29227 if (!SWIG_IsOK(res2)) {
29228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29229 }
29230 if (!argp2) {
29231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29232 }
29233 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29234 {
29235 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29236 if (PyErr_Occurred()) SWIG_fail;
29237 }
29238 resultobj = SWIG_Py_Void();
29239 return resultobj;
29240fail:
29241 return NULL;
29242}
29243
29244
29245SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29246 PyObject *resultobj = 0;
29247 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29248 wxGraphicsMatrix *arg2 = 0 ;
29249 void *argp1 = 0 ;
29250 int res1 = 0 ;
29251 void *argp2 = 0 ;
29252 int res2 = 0 ;
29253 PyObject * obj0 = 0 ;
29254 PyObject * obj1 = 0 ;
29255 char * kwnames[] = {
29256 (char *) "self",(char *) "matrix", NULL
29257 };
29258
29259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29261 if (!SWIG_IsOK(res1)) {
29262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29263 }
29264 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29266 if (!SWIG_IsOK(res2)) {
29267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29268 }
29269 if (!argp2) {
29270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29271 }
29272 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29273 {
29274 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29275 if (PyErr_Occurred()) SWIG_fail;
29276 }
29277 resultobj = SWIG_Py_Void();
29278 return resultobj;
29279fail:
29280 return NULL;
29281}
29282
29283
29284SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29285 PyObject *resultobj = 0;
29286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29287 wxGraphicsMatrix result;
29288 void *argp1 = 0 ;
29289 int res1 = 0 ;
29290 PyObject *swig_obj[1] ;
29291
29292 if (!args) SWIG_fail;
29293 swig_obj[0] = args;
29294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29295 if (!SWIG_IsOK(res1)) {
29296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29297 }
29298 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29299 {
29300 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29304 return resultobj;
29305fail:
29306 return NULL;
29307}
29308
29309
70d7cb34
RD
29310SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29311 PyObject *resultobj = 0;
29312 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29313 wxGraphicsPen *arg2 = 0 ;
29314 void *argp1 = 0 ;
29315 int res1 = 0 ;
29316 void *argp2 = 0 ;
29317 int res2 = 0 ;
29318
29319 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29321 if (!SWIG_IsOK(res1)) {
29322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29323 }
29324 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29325 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29326 if (!SWIG_IsOK(res2)) {
29327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29328 }
29329 if (!argp2) {
29330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29331 }
29332 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29333 {
29334 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 resultobj = SWIG_Py_Void();
29338 return resultobj;
29339fail:
29340 return NULL;
29341}
29342
29343
29344SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29345 PyObject *resultobj = 0;
29346 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29347 wxPen *arg2 = 0 ;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 void *argp2 = 0 ;
29351 int res2 = 0 ;
72ef6efb 29352
70d7cb34
RD
29353 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29355 if (!SWIG_IsOK(res1)) {
29356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29357 }
29358 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29359 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29360 if (!SWIG_IsOK(res2)) {
29361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29362 }
29363 if (!argp2) {
29364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29365 }
29366 arg2 = reinterpret_cast< wxPen * >(argp2);
29367 {
72ef6efb 29368 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 resultobj = SWIG_Py_Void();
29372 return resultobj;
29373fail:
29374 return NULL;
29375}
29376
29377
70d7cb34
RD
29378SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29379 int argc;
29380 PyObject *argv[3];
29381
29382 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29383 --argc;
29384 if (argc == 2) {
29385 int _v = 0;
29386 {
29387 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29388 _v = SWIG_CheckState(res);
29389 }
29390 if (!_v) goto check_1;
29391 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29392 }
29393check_1:
29394
29395 if (argc == 2) {
29396 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29397 }
29398
29399fail:
29400 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29401 return NULL;
29402}
29403
29404
29405SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29406 PyObject *resultobj = 0;
29407 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29408 wxGraphicsBrush *arg2 = 0 ;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 void *argp2 = 0 ;
29412 int res2 = 0 ;
29413
29414 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29416 if (!SWIG_IsOK(res1)) {
29417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29418 }
29419 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29420 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29421 if (!SWIG_IsOK(res2)) {
29422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29423 }
29424 if (!argp2) {
29425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29426 }
29427 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29428 {
29429 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29430 if (PyErr_Occurred()) SWIG_fail;
29431 }
29432 resultobj = SWIG_Py_Void();
29433 return resultobj;
29434fail:
29435 return NULL;
29436}
29437
29438
29439SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29440 PyObject *resultobj = 0;
29441 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29442 wxBrush *arg2 = 0 ;
29443 void *argp1 = 0 ;
29444 int res1 = 0 ;
29445 void *argp2 = 0 ;
29446 int res2 = 0 ;
72ef6efb 29447
70d7cb34
RD
29448 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29450 if (!SWIG_IsOK(res1)) {
29451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29452 }
29453 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29454 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29455 if (!SWIG_IsOK(res2)) {
29456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29457 }
29458 if (!argp2) {
29459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29460 }
29461 arg2 = reinterpret_cast< wxBrush * >(argp2);
29462 {
72ef6efb 29463 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_Py_Void();
29467 return resultobj;
29468fail:
29469 return NULL;
29470}
29471
29472
70d7cb34
RD
29473SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29474 int argc;
29475 PyObject *argv[3];
72ef6efb 29476
70d7cb34
RD
29477 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29478 --argc;
29479 if (argc == 2) {
29480 int _v = 0;
29481 {
29482 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29483 _v = SWIG_CheckState(res);
29484 }
29485 if (!_v) goto check_1;
29486 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29487 }
70d7cb34
RD
29488check_1:
29489
29490 if (argc == 2) {
29491 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29492 }
70d7cb34 29493
72ef6efb 29494fail:
70d7cb34 29495 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29496 return NULL;
29497}
29498
29499
70d7cb34 29500SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29501 PyObject *resultobj = 0;
29502 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29503 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29504 void *argp1 = 0 ;
29505 int res1 = 0 ;
70d7cb34
RD
29506 void *argp2 = 0 ;
29507 int res2 = 0 ;
72ef6efb 29508
70d7cb34
RD
29509 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29511 if (!SWIG_IsOK(res1)) {
70d7cb34 29512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29513 }
29514 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29515 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29516 if (!SWIG_IsOK(res2)) {
29517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29518 }
70d7cb34
RD
29519 if (!argp2) {
29520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29521 }
70d7cb34 29522 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29523 {
70d7cb34 29524 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 resultobj = SWIG_Py_Void();
29528 return resultobj;
29529fail:
29530 return NULL;
29531}
29532
29533
70d7cb34 29534SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29535 PyObject *resultobj = 0;
29536 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29537 wxFont *arg2 = 0 ;
70d7cb34
RD
29538 wxColour const &arg3_defvalue = *wxBLACK ;
29539 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29540 void *argp1 = 0 ;
29541 int res1 = 0 ;
29542 void *argp2 = 0 ;
29543 int res2 = 0 ;
70d7cb34 29544 wxColour temp3 ;
72ef6efb 29545
70d7cb34
RD
29546 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29548 if (!SWIG_IsOK(res1)) {
29549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29550 }
29551 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29552 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29553 if (!SWIG_IsOK(res2)) {
29554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29555 }
29556 if (!argp2) {
29557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29558 }
29559 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29560 if (swig_obj[2]) {
29561 {
29562 arg3 = &temp3;
29563 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29564 }
29565 }
72ef6efb 29566 {
70d7cb34 29567 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_Py_Void();
29571 return resultobj;
29572fail:
29573 return NULL;
29574}
29575
29576
70d7cb34
RD
29577SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29578 int argc;
29579 PyObject *argv[4];
72ef6efb 29580
70d7cb34
RD
29581 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29582 --argc;
29583 if (argc == 2) {
29584 int _v = 0;
29585 {
29586 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29587 _v = SWIG_CheckState(res);
29588 }
29589 if (!_v) goto check_1;
29590 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29591 }
70d7cb34
RD
29592check_1:
29593
29594 if ((argc >= 2) && (argc <= 3)) {
29595 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29596 }
70d7cb34 29597
72ef6efb 29598fail:
70d7cb34 29599 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29600 return NULL;
29601}
29602
29603
29604SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29605 PyObject *resultobj = 0;
29606 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29607 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29608 void *argp1 = 0 ;
29609 int res1 = 0 ;
29610 void *argp2 = 0 ;
29611 int res2 = 0 ;
29612 PyObject * obj0 = 0 ;
29613 PyObject * obj1 = 0 ;
29614 char * kwnames[] = {
29615 (char *) "self",(char *) "path", NULL
29616 };
29617
29618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29620 if (!SWIG_IsOK(res1)) {
29621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29622 }
29623 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29625 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29627 }
29628 if (!argp2) {
29629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29630 }
29631 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29632 {
5c8c7dd3 29633 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29634 if (PyErr_Occurred()) SWIG_fail;
29635 }
29636 resultobj = SWIG_Py_Void();
29637 return resultobj;
29638fail:
29639 return NULL;
29640}
29641
29642
29643SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29644 PyObject *resultobj = 0;
29645 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29646 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29647 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29648 void *argp1 = 0 ;
29649 int res1 = 0 ;
29650 void *argp2 = 0 ;
29651 int res2 = 0 ;
29652 int val3 ;
29653 int ecode3 = 0 ;
29654 PyObject * obj0 = 0 ;
29655 PyObject * obj1 = 0 ;
29656 PyObject * obj2 = 0 ;
29657 char * kwnames[] = {
29658 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29659 };
29660
29661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29663 if (!SWIG_IsOK(res1)) {
29664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29665 }
29666 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29668 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29670 }
29671 if (!argp2) {
29672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29673 }
29674 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29675 if (obj2) {
29676 ecode3 = SWIG_AsVal_int(obj2, &val3);
29677 if (!SWIG_IsOK(ecode3)) {
29678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29679 }
29680 arg3 = static_cast< int >(val3);
29681 }
29682 {
5c8c7dd3 29683 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_Py_Void();
29687 return resultobj;
29688fail:
29689 return NULL;
29690}
29691
29692
29693SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29694 PyObject *resultobj = 0;
29695 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29696 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29697 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29698 void *argp1 = 0 ;
29699 int res1 = 0 ;
29700 void *argp2 = 0 ;
29701 int res2 = 0 ;
29702 int val3 ;
29703 int ecode3 = 0 ;
29704 PyObject * obj0 = 0 ;
29705 PyObject * obj1 = 0 ;
29706 PyObject * obj2 = 0 ;
29707 char * kwnames[] = {
29708 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29709 };
29710
29711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29713 if (!SWIG_IsOK(res1)) {
29714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29715 }
29716 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29718 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29720 }
29721 if (!argp2) {
29722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29723 }
29724 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29725 if (obj2) {
29726 ecode3 = SWIG_AsVal_int(obj2, &val3);
29727 if (!SWIG_IsOK(ecode3)) {
29728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29729 }
29730 arg3 = static_cast< int >(val3);
29731 }
29732 {
5c8c7dd3 29733 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29734 if (PyErr_Occurred()) SWIG_fail;
29735 }
29736 resultobj = SWIG_Py_Void();
29737 return resultobj;
29738fail:
29739 return NULL;
29740}
29741
29742
b39fe951 29743SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29744 PyObject *resultobj = 0;
29745 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29746 wxString *arg2 = 0 ;
29747 wxDouble arg3 ;
29748 wxDouble arg4 ;
29749 void *argp1 = 0 ;
29750 int res1 = 0 ;
29751 bool temp2 = false ;
29752 double val3 ;
29753 int ecode3 = 0 ;
29754 double val4 ;
29755 int ecode4 = 0 ;
b39fe951
RD
29756 PyObject * obj0 = 0 ;
29757 PyObject * obj1 = 0 ;
29758 PyObject * obj2 = 0 ;
29759 PyObject * obj3 = 0 ;
29760 char * kwnames[] = {
29761 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29762 };
72ef6efb 29763
b39fe951
RD
29764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29766 if (!SWIG_IsOK(res1)) {
29767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29768 }
29769 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29770 {
b39fe951 29771 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29772 if (arg2 == NULL) SWIG_fail;
29773 temp2 = true;
29774 }
b39fe951 29775 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29776 if (!SWIG_IsOK(ecode3)) {
29777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29778 }
29779 arg3 = static_cast< wxDouble >(val3);
b39fe951 29780 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29781 if (!SWIG_IsOK(ecode4)) {
29782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29783 }
29784 arg4 = static_cast< wxDouble >(val4);
29785 {
72ef6efb 29786 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 resultobj = SWIG_Py_Void();
29790 {
29791 if (temp2)
29792 delete arg2;
29793 }
29794 return resultobj;
29795fail:
29796 {
29797 if (temp2)
29798 delete arg2;
29799 }
29800 return NULL;
29801}
29802
29803
b39fe951 29804SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29805 PyObject *resultobj = 0;
29806 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29807 wxString *arg2 = 0 ;
29808 wxDouble arg3 ;
29809 wxDouble arg4 ;
29810 wxDouble arg5 ;
29811 void *argp1 = 0 ;
29812 int res1 = 0 ;
29813 bool temp2 = false ;
29814 double val3 ;
29815 int ecode3 = 0 ;
29816 double val4 ;
29817 int ecode4 = 0 ;
29818 double val5 ;
29819 int ecode5 = 0 ;
b39fe951
RD
29820 PyObject * obj0 = 0 ;
29821 PyObject * obj1 = 0 ;
29822 PyObject * obj2 = 0 ;
29823 PyObject * obj3 = 0 ;
29824 PyObject * obj4 = 0 ;
29825 char * kwnames[] = {
29826 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29827 };
72ef6efb 29828
b39fe951
RD
29829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29831 if (!SWIG_IsOK(res1)) {
b39fe951 29832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29833 }
29834 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29835 {
b39fe951 29836 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29837 if (arg2 == NULL) SWIG_fail;
29838 temp2 = true;
29839 }
b39fe951 29840 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29841 if (!SWIG_IsOK(ecode3)) {
b39fe951 29842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29843 }
29844 arg3 = static_cast< wxDouble >(val3);
b39fe951 29845 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29846 if (!SWIG_IsOK(ecode4)) {
b39fe951 29847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29848 }
29849 arg4 = static_cast< wxDouble >(val4);
b39fe951 29850 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29851 if (!SWIG_IsOK(ecode5)) {
b39fe951 29852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29853 }
29854 arg5 = static_cast< wxDouble >(val5);
29855 {
72ef6efb 29856 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29857 if (PyErr_Occurred()) SWIG_fail;
29858 }
29859 resultobj = SWIG_Py_Void();
29860 {
29861 if (temp2)
29862 delete arg2;
29863 }
29864 return resultobj;
29865fail:
29866 {
29867 if (temp2)
29868 delete arg2;
29869 }
29870 return NULL;
29871}
29872
29873
be68621e 29874SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29875 PyObject *resultobj = 0;
29876 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29877 wxString *arg2 = 0 ;
29878 wxDouble *arg3 = (wxDouble *) 0 ;
29879 wxDouble *arg4 = (wxDouble *) 0 ;
29880 wxDouble *arg5 = (wxDouble *) 0 ;
29881 wxDouble *arg6 = (wxDouble *) 0 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 bool temp2 = false ;
29885 wxDouble temp3 ;
29886 int res3 = SWIG_TMPOBJ ;
29887 wxDouble temp4 ;
29888 int res4 = SWIG_TMPOBJ ;
29889 wxDouble temp5 ;
29890 int res5 = SWIG_TMPOBJ ;
29891 wxDouble temp6 ;
29892 int res6 = SWIG_TMPOBJ ;
29893 PyObject * obj0 = 0 ;
29894 PyObject * obj1 = 0 ;
29895 char * kwnames[] = {
29896 (char *) "self",(char *) "text", NULL
29897 };
29898
29899 arg3 = &temp3;
29900 arg4 = &temp4;
29901 arg5 = &temp5;
29902 arg6 = &temp6;
be68621e 29903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29905 if (!SWIG_IsOK(res1)) {
be68621e 29906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29907 }
29908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29909 {
29910 arg2 = wxString_in_helper(obj1);
29911 if (arg2 == NULL) SWIG_fail;
29912 temp2 = true;
29913 }
29914 {
72ef6efb 29915 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 resultobj = SWIG_Py_Void();
29919 if (SWIG_IsTmpObj(res3)) {
29920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29921 } else {
29922 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29924 }
29925 if (SWIG_IsTmpObj(res4)) {
29926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29927 } else {
29928 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29930 }
29931 if (SWIG_IsTmpObj(res5)) {
29932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29933 } else {
29934 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29936 }
29937 if (SWIG_IsTmpObj(res6)) {
29938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29939 } else {
29940 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29942 }
29943 {
29944 if (temp2)
29945 delete arg2;
29946 }
29947 return resultobj;
29948fail:
29949 {
29950 if (temp2)
29951 delete arg2;
29952 }
29953 return NULL;
29954}
29955
29956
be68621e
RD
29957SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29958 PyObject *resultobj = 0;
29959 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29960 wxString *arg2 = 0 ;
29961 PyObject *result = 0 ;
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
29964 bool temp2 = false ;
29965 PyObject * obj0 = 0 ;
29966 PyObject * obj1 = 0 ;
29967 char * kwnames[] = {
29968 (char *) "self",(char *) "text", NULL
29969 };
29970
29971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29973 if (!SWIG_IsOK(res1)) {
29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29975 }
29976 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29977 {
29978 arg2 = wxString_in_helper(obj1);
29979 if (arg2 == NULL) SWIG_fail;
29980 temp2 = true;
29981 }
29982 {
29983 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29984 if (PyErr_Occurred()) SWIG_fail;
29985 }
29986 resultobj = result;
29987 {
29988 if (temp2)
29989 delete arg2;
29990 }
29991 return resultobj;
29992fail:
29993 {
29994 if (temp2)
29995 delete arg2;
29996 }
29997 return NULL;
29998}
29999
30000
72ef6efb
RD
30001SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj = 0;
30003 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30004 wxString *arg2 = 0 ;
b39fe951 30005 wxArrayDouble result;
72ef6efb
RD
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 bool temp2 = false ;
72ef6efb
RD
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
72ef6efb 30011 char * kwnames[] = {
b39fe951 30012 (char *) "self",(char *) "text", NULL
72ef6efb
RD
30013 };
30014
b39fe951 30015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
30016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30017 if (!SWIG_IsOK(res1)) {
b39fe951 30018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30019 }
30020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30021 {
30022 arg2 = wxString_in_helper(obj1);
30023 if (arg2 == NULL) SWIG_fail;
30024 temp2 = true;
30025 }
72ef6efb 30026 {
b39fe951 30027 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
30028 if (PyErr_Occurred()) SWIG_fail;
30029 }
b39fe951
RD
30030 {
30031 resultobj = wxArrayDouble2PyList_helper(result);
30032 }
72ef6efb
RD
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
30047SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj = 0;
30049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30050 wxBitmap *arg2 = 0 ;
30051 wxDouble arg3 ;
30052 wxDouble arg4 ;
30053 wxDouble arg5 ;
30054 wxDouble arg6 ;
30055 void *argp1 = 0 ;
30056 int res1 = 0 ;
30057 void *argp2 = 0 ;
30058 int res2 = 0 ;
30059 double val3 ;
30060 int ecode3 = 0 ;
30061 double val4 ;
30062 int ecode4 = 0 ;
30063 double val5 ;
30064 int ecode5 = 0 ;
30065 double val6 ;
30066 int ecode6 = 0 ;
30067 PyObject * obj0 = 0 ;
30068 PyObject * obj1 = 0 ;
30069 PyObject * obj2 = 0 ;
30070 PyObject * obj3 = 0 ;
30071 PyObject * obj4 = 0 ;
30072 PyObject * obj5 = 0 ;
30073 char * kwnames[] = {
30074 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30075 };
30076
30077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30079 if (!SWIG_IsOK(res1)) {
30080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30081 }
30082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30084 if (!SWIG_IsOK(res2)) {
30085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30086 }
30087 if (!argp2) {
30088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30089 }
30090 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30091 ecode3 = SWIG_AsVal_double(obj2, &val3);
30092 if (!SWIG_IsOK(ecode3)) {
30093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30094 }
30095 arg3 = static_cast< wxDouble >(val3);
30096 ecode4 = SWIG_AsVal_double(obj3, &val4);
30097 if (!SWIG_IsOK(ecode4)) {
30098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30099 }
30100 arg4 = static_cast< wxDouble >(val4);
30101 ecode5 = SWIG_AsVal_double(obj4, &val5);
30102 if (!SWIG_IsOK(ecode5)) {
30103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30104 }
30105 arg5 = static_cast< wxDouble >(val5);
30106 ecode6 = SWIG_AsVal_double(obj5, &val6);
30107 if (!SWIG_IsOK(ecode6)) {
30108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30109 }
30110 arg6 = static_cast< wxDouble >(val6);
30111 {
72ef6efb 30112 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 resultobj = SWIG_Py_Void();
30116 return resultobj;
30117fail:
30118 return NULL;
30119}
30120
30121
30122SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30123 PyObject *resultobj = 0;
30124 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30125 wxIcon *arg2 = 0 ;
30126 wxDouble arg3 ;
30127 wxDouble arg4 ;
30128 wxDouble arg5 ;
30129 wxDouble arg6 ;
30130 void *argp1 = 0 ;
30131 int res1 = 0 ;
30132 void *argp2 = 0 ;
30133 int res2 = 0 ;
30134 double val3 ;
30135 int ecode3 = 0 ;
30136 double val4 ;
30137 int ecode4 = 0 ;
30138 double val5 ;
30139 int ecode5 = 0 ;
70d7cb34
RD
30140 double val6 ;
30141 int ecode6 = 0 ;
30142 PyObject * obj0 = 0 ;
30143 PyObject * obj1 = 0 ;
30144 PyObject * obj2 = 0 ;
30145 PyObject * obj3 = 0 ;
30146 PyObject * obj4 = 0 ;
30147 PyObject * obj5 = 0 ;
30148 char * kwnames[] = {
30149 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30150 };
30151
30152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30154 if (!SWIG_IsOK(res1)) {
30155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30156 }
30157 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30159 if (!SWIG_IsOK(res2)) {
30160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30161 }
30162 if (!argp2) {
30163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30164 }
30165 arg2 = reinterpret_cast< wxIcon * >(argp2);
30166 ecode3 = SWIG_AsVal_double(obj2, &val3);
30167 if (!SWIG_IsOK(ecode3)) {
30168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30169 }
30170 arg3 = static_cast< wxDouble >(val3);
30171 ecode4 = SWIG_AsVal_double(obj3, &val4);
30172 if (!SWIG_IsOK(ecode4)) {
30173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30174 }
30175 arg4 = static_cast< wxDouble >(val4);
30176 ecode5 = SWIG_AsVal_double(obj4, &val5);
30177 if (!SWIG_IsOK(ecode5)) {
30178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30179 }
30180 arg5 = static_cast< wxDouble >(val5);
30181 ecode6 = SWIG_AsVal_double(obj5, &val6);
30182 if (!SWIG_IsOK(ecode6)) {
30183 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30184 }
30185 arg6 = static_cast< wxDouble >(val6);
30186 {
30187 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = SWIG_Py_Void();
30191 return resultobj;
30192fail:
30193 return NULL;
30194}
30195
30196
30197SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj = 0;
30199 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30200 wxDouble arg2 ;
30201 wxDouble arg3 ;
30202 wxDouble arg4 ;
30203 wxDouble arg5 ;
30204 void *argp1 = 0 ;
30205 int res1 = 0 ;
30206 double val2 ;
30207 int ecode2 = 0 ;
30208 double val3 ;
30209 int ecode3 = 0 ;
30210 double val4 ;
30211 int ecode4 = 0 ;
30212 double val5 ;
30213 int ecode5 = 0 ;
30214 PyObject * obj0 = 0 ;
30215 PyObject * obj1 = 0 ;
30216 PyObject * obj2 = 0 ;
30217 PyObject * obj3 = 0 ;
30218 PyObject * obj4 = 0 ;
30219 char * kwnames[] = {
30220 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30221 };
30222
30223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30225 if (!SWIG_IsOK(res1)) {
30226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30227 }
30228 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30229 ecode2 = SWIG_AsVal_double(obj1, &val2);
30230 if (!SWIG_IsOK(ecode2)) {
30231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30232 }
30233 arg2 = static_cast< wxDouble >(val2);
30234 ecode3 = SWIG_AsVal_double(obj2, &val3);
30235 if (!SWIG_IsOK(ecode3)) {
30236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30237 }
30238 arg3 = static_cast< wxDouble >(val3);
30239 ecode4 = SWIG_AsVal_double(obj3, &val4);
30240 if (!SWIG_IsOK(ecode4)) {
30241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30242 }
30243 arg4 = static_cast< wxDouble >(val4);
30244 ecode5 = SWIG_AsVal_double(obj4, &val5);
30245 if (!SWIG_IsOK(ecode5)) {
30246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30247 }
30248 arg5 = static_cast< wxDouble >(val5);
30249 {
30250 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30251 if (PyErr_Occurred()) SWIG_fail;
30252 }
30253 resultobj = SWIG_Py_Void();
30254 return resultobj;
30255fail:
30256 return NULL;
30257}
30258
30259
30260SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30261 PyObject *resultobj = 0;
30262 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30263 size_t arg2 ;
30264 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30265 void *argp1 = 0 ;
30266 int res1 = 0 ;
30267 PyObject * obj0 = 0 ;
30268 PyObject * obj1 = 0 ;
30269 char * kwnames[] = {
30270 (char *) "self",(char *) "points", NULL
30271 };
30272
30273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30275 if (!SWIG_IsOK(res1)) {
30276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30277 }
30278 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30279 {
30280 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30281 if (arg3 == NULL) SWIG_fail;
30282 }
30283 {
30284 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30285 if (PyErr_Occurred()) SWIG_fail;
30286 }
30287 resultobj = SWIG_Py_Void();
30288 {
30289 if (arg3) delete [] arg3;
30290 }
30291 return resultobj;
30292fail:
30293 {
30294 if (arg3) delete [] arg3;
30295 }
30296 return NULL;
30297}
30298
30299
30300SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30301 PyObject *resultobj = 0;
30302 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30303 PyObject *arg2 = (PyObject *) 0 ;
30304 PyObject *arg3 = (PyObject *) 0 ;
30305 void *argp1 = 0 ;
30306 int res1 = 0 ;
30307 PyObject * obj0 = 0 ;
30308 PyObject * obj1 = 0 ;
30309 PyObject * obj2 = 0 ;
30310 char * kwnames[] = {
30311 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30312 };
30313
30314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30316 if (!SWIG_IsOK(res1)) {
30317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30318 }
30319 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30320 arg2 = obj1;
30321 arg3 = obj2;
30322 {
30323 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 resultobj = SWIG_Py_Void();
30327 return resultobj;
30328fail:
30329 return NULL;
30330}
30331
30332
30333SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30334 PyObject *resultobj = 0;
30335 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30336 size_t arg2 ;
30337 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30338 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30339 void *argp1 = 0 ;
30340 int res1 = 0 ;
30341 int val4 ;
30342 int ecode4 = 0 ;
30343 PyObject * obj0 = 0 ;
30344 PyObject * obj1 = 0 ;
30345 PyObject * obj2 = 0 ;
30346 char * kwnames[] = {
30347 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30348 };
30349
30350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30352 if (!SWIG_IsOK(res1)) {
30353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30354 }
30355 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30356 {
30357 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30358 if (arg3 == NULL) SWIG_fail;
30359 }
30360 if (obj2) {
30361 ecode4 = SWIG_AsVal_int(obj2, &val4);
30362 if (!SWIG_IsOK(ecode4)) {
30363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30364 }
30365 arg4 = static_cast< int >(val4);
30366 }
30367 {
30368 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30369 if (PyErr_Occurred()) SWIG_fail;
30370 }
30371 resultobj = SWIG_Py_Void();
30372 {
30373 if (arg3) delete [] arg3;
30374 }
30375 return resultobj;
30376fail:
30377 {
30378 if (arg3) delete [] arg3;
30379 }
30380 return NULL;
30381}
30382
30383
30384SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30385 PyObject *resultobj = 0;
30386 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30387 wxDouble arg2 ;
30388 wxDouble arg3 ;
30389 wxDouble arg4 ;
30390 wxDouble arg5 ;
30391 void *argp1 = 0 ;
30392 int res1 = 0 ;
30393 double val2 ;
30394 int ecode2 = 0 ;
30395 double val3 ;
30396 int ecode3 = 0 ;
30397 double val4 ;
30398 int ecode4 = 0 ;
30399 double val5 ;
30400 int ecode5 = 0 ;
30401 PyObject * obj0 = 0 ;
30402 PyObject * obj1 = 0 ;
30403 PyObject * obj2 = 0 ;
30404 PyObject * obj3 = 0 ;
30405 PyObject * obj4 = 0 ;
30406 char * kwnames[] = {
30407 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30408 };
30409
30410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30412 if (!SWIG_IsOK(res1)) {
30413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30414 }
30415 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30416 ecode2 = SWIG_AsVal_double(obj1, &val2);
30417 if (!SWIG_IsOK(ecode2)) {
30418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30419 }
30420 arg2 = static_cast< wxDouble >(val2);
30421 ecode3 = SWIG_AsVal_double(obj2, &val3);
30422 if (!SWIG_IsOK(ecode3)) {
30423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30424 }
30425 arg3 = static_cast< wxDouble >(val3);
30426 ecode4 = SWIG_AsVal_double(obj3, &val4);
30427 if (!SWIG_IsOK(ecode4)) {
30428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30429 }
30430 arg4 = static_cast< wxDouble >(val4);
30431 ecode5 = SWIG_AsVal_double(obj4, &val5);
30432 if (!SWIG_IsOK(ecode5)) {
30433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30434 }
30435 arg5 = static_cast< wxDouble >(val5);
30436 {
30437 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30438 if (PyErr_Occurred()) SWIG_fail;
30439 }
30440 resultobj = SWIG_Py_Void();
30441 return resultobj;
30442fail:
30443 return NULL;
30444}
30445
30446
30447SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30448 PyObject *resultobj = 0;
30449 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30450 wxDouble arg2 ;
30451 wxDouble arg3 ;
30452 wxDouble arg4 ;
30453 wxDouble arg5 ;
30454 void *argp1 = 0 ;
30455 int res1 = 0 ;
30456 double val2 ;
30457 int ecode2 = 0 ;
30458 double val3 ;
30459 int ecode3 = 0 ;
30460 double val4 ;
30461 int ecode4 = 0 ;
30462 double val5 ;
30463 int ecode5 = 0 ;
72ef6efb
RD
30464 PyObject * obj0 = 0 ;
30465 PyObject * obj1 = 0 ;
30466 PyObject * obj2 = 0 ;
30467 PyObject * obj3 = 0 ;
30468 PyObject * obj4 = 0 ;
72ef6efb 30469 char * kwnames[] = {
70d7cb34 30470 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30471 };
30472
70d7cb34 30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
70d7cb34 30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30477 }
30478 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30479 ecode2 = SWIG_AsVal_double(obj1, &val2);
30480 if (!SWIG_IsOK(ecode2)) {
30481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30482 }
30483 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30484 ecode3 = SWIG_AsVal_double(obj2, &val3);
30485 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30487 }
30488 arg3 = static_cast< wxDouble >(val3);
30489 ecode4 = SWIG_AsVal_double(obj3, &val4);
30490 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30492 }
30493 arg4 = static_cast< wxDouble >(val4);
30494 ecode5 = SWIG_AsVal_double(obj4, &val5);
30495 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30497 }
30498 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30499 {
70d7cb34 30500 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 resultobj = SWIG_Py_Void();
30504 return resultobj;
30505fail:
30506 return NULL;
30507}
30508
30509
70d7cb34 30510SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30511 PyObject *resultobj = 0;
30512 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30513 wxDouble arg2 ;
30514 wxDouble arg3 ;
30515 wxDouble arg4 ;
30516 wxDouble arg5 ;
70d7cb34 30517 wxDouble arg6 ;
72ef6efb
RD
30518 void *argp1 = 0 ;
30519 int res1 = 0 ;
30520 double val2 ;
30521 int ecode2 = 0 ;
30522 double val3 ;
30523 int ecode3 = 0 ;
30524 double val4 ;
30525 int ecode4 = 0 ;
30526 double val5 ;
30527 int ecode5 = 0 ;
70d7cb34
RD
30528 double val6 ;
30529 int ecode6 = 0 ;
72ef6efb
RD
30530 PyObject * obj0 = 0 ;
30531 PyObject * obj1 = 0 ;
30532 PyObject * obj2 = 0 ;
30533 PyObject * obj3 = 0 ;
30534 PyObject * obj4 = 0 ;
70d7cb34 30535 PyObject * obj5 = 0 ;
72ef6efb 30536 char * kwnames[] = {
70d7cb34 30537 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30538 };
30539
70d7cb34 30540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30542 if (!SWIG_IsOK(res1)) {
70d7cb34 30543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30544 }
30545 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30546 ecode2 = SWIG_AsVal_double(obj1, &val2);
30547 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30549 }
30550 arg2 = static_cast< wxDouble >(val2);
30551 ecode3 = SWIG_AsVal_double(obj2, &val3);
30552 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30554 }
30555 arg3 = static_cast< wxDouble >(val3);
30556 ecode4 = SWIG_AsVal_double(obj3, &val4);
30557 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30559 }
30560 arg4 = static_cast< wxDouble >(val4);
30561 ecode5 = SWIG_AsVal_double(obj4, &val5);
30562 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30564 }
30565 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30566 ecode6 = SWIG_AsVal_double(obj5, &val6);
30567 if (!SWIG_IsOK(ecode6)) {
30568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30569 }
30570 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30571 {
70d7cb34 30572 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 resultobj = SWIG_Py_Void();
30576 return resultobj;
30577fail:
30578 return NULL;
30579}
30580
30581
70d7cb34 30582SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30583 PyObject *resultobj = 0;
30584 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30585 bool result;
72ef6efb
RD
30586 void *argp1 = 0 ;
30587 int res1 = 0 ;
70d7cb34 30588 PyObject *swig_obj[1] ;
72ef6efb 30589
70d7cb34
RD
30590 if (!args) SWIG_fail;
30591 swig_obj[0] = args;
30592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30593 if (!SWIG_IsOK(res1)) {
70d7cb34 30594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30595 }
30596 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30597 {
70d7cb34
RD
30598 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30599 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30600 }
72ef6efb 30601 {
70d7cb34
RD
30602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30603 }
30604 return resultobj;
30605fail:
30606 return NULL;
30607}
30608
30609
30610SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30611 PyObject *obj;
30612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30613 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30614 return SWIG_Py_Void();
30615}
30616
30617SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30618 PyObject *resultobj = 0;
30619 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30620 void *argp1 = 0 ;
30621 int res1 = 0 ;
30622 PyObject *swig_obj[1] ;
30623
30624 if (!args) SWIG_fail;
30625 swig_obj[0] = args;
30626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30627 if (!SWIG_IsOK(res1)) {
30628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30629 }
30630 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30631 {
30632 delete arg1;
30633
72ef6efb
RD
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 resultobj = SWIG_Py_Void();
70d7cb34
RD
30637 return resultobj;
30638fail:
30639 return NULL;
30640}
30641
30642
30643SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30644 PyObject *resultobj = 0;
30645 wxGraphicsRenderer *result = 0 ;
30646
30647 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30648 {
70d7cb34
RD
30649 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30650 if (PyErr_Occurred()) SWIG_fail;
30651 }
30652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30653 return resultobj;
30654fail:
30655 return NULL;
30656}
30657
30658
30659SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30660 PyObject *resultobj = 0;
30661 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30662 wxWindowDC *arg2 = 0 ;
30663 wxGraphicsContext *result = 0 ;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 void *argp2 = 0 ;
30667 int res2 = 0 ;
30668
30669 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30671 if (!SWIG_IsOK(res1)) {
30672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30673 }
30674 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30675 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30676 if (!SWIG_IsOK(res2)) {
30677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30678 }
30679 if (!argp2) {
30680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30681 }
30682 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30683 {
30684 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30685 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30686 }
70d7cb34 30687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30688 return resultobj;
30689fail:
70d7cb34
RD
30690 return NULL;
30691}
30692
30693
30694SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30695 PyObject *resultobj = 0;
30696 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30697 wxWindow *arg2 = (wxWindow *) 0 ;
30698 wxGraphicsContext *result = 0 ;
30699 void *argp1 = 0 ;
30700 int res1 = 0 ;
30701 void *argp2 = 0 ;
30702 int res2 = 0 ;
30703
30704 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30706 if (!SWIG_IsOK(res1)) {
30707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30708 }
30709 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30710 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30711 if (!SWIG_IsOK(res2)) {
30712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30713 }
30714 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30715 {
70d7cb34
RD
30716 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30717 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30718 }
70d7cb34
RD
30719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30720 return resultobj;
30721fail:
72ef6efb
RD
30722 return NULL;
30723}
30724
30725
70d7cb34
RD
30726SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30727 int argc;
30728 PyObject *argv[3];
30729
30730 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30731 --argc;
30732 if (argc == 2) {
30733 int _v = 0;
30734 {
30735 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30736 _v = SWIG_CheckState(res);
30737 }
30738 if (!_v) goto check_1;
30739 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30740 }
30741check_1:
30742
30743 if (argc == 2) {
30744 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30745 }
30746
30747fail:
30748 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30749 return NULL;
30750}
30751
30752
30753SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30754 PyObject *resultobj = 0;
70d7cb34
RD
30755 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30756 void *arg2 = (void *) 0 ;
30757 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30758 void *argp1 = 0 ;
30759 int res1 = 0 ;
70d7cb34 30760 int res2 ;
b39fe951
RD
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
b39fe951 30763 char * kwnames[] = {
70d7cb34 30764 (char *) "self",(char *) "context", NULL
b39fe951 30765 };
72ef6efb 30766
70d7cb34
RD
30767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30769 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30771 }
30772 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30773 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30774 if (!SWIG_IsOK(res2)) {
30775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30776 }
72ef6efb 30777 {
70d7cb34 30778 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
70d7cb34 30781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30782 return resultobj;
30783fail:
30784 return NULL;
30785}
30786
30787
70d7cb34 30788SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30789 PyObject *resultobj = 0;
70d7cb34
RD
30790 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30791 void *arg2 = (void *) 0 ;
30792 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
70d7cb34 30795 int res2 ;
72ef6efb
RD
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
72ef6efb 30798 char * kwnames[] = {
70d7cb34 30799 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30800 };
30801
70d7cb34
RD
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30804 if (!SWIG_IsOK(res1)) {
70d7cb34 30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30806 }
70d7cb34
RD
30807 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30808 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30809 if (!SWIG_IsOK(res2)) {
30810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30811 }
30812 {
70d7cb34 30813 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30814 if (PyErr_Occurred()) SWIG_fail;
30815 }
70d7cb34 30816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30817 return resultobj;
30818fail:
70d7cb34
RD
30819 return NULL;
30820}
30821
30822
30823SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30824 PyObject *resultobj = 0;
30825 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30826 wxGraphicsPath result;
70d7cb34
RD
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 PyObject *swig_obj[1] ;
30830
30831 if (!args) SWIG_fail;
30832 swig_obj[0] = args;
30833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30834 if (!SWIG_IsOK(res1)) {
30835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30836 }
30837 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30838 {
5c8c7dd3 30839 result = (arg1)->CreatePath();
70d7cb34 30840 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30841 }
5c8c7dd3 30842 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30843 return resultobj;
30844fail:
72ef6efb
RD
30845 return NULL;
30846}
30847
30848
70d7cb34 30849SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30850 PyObject *resultobj = 0;
70d7cb34
RD
30851 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30852 wxDouble arg2 = (wxDouble) 1.0 ;
30853 wxDouble arg3 = (wxDouble) 0.0 ;
30854 wxDouble arg4 = (wxDouble) 0.0 ;
30855 wxDouble arg5 = (wxDouble) 1.0 ;
30856 wxDouble arg6 = (wxDouble) 0.0 ;
30857 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30858 wxGraphicsMatrix result;
72ef6efb
RD
30859 void *argp1 = 0 ;
30860 int res1 = 0 ;
30861 double val2 ;
30862 int ecode2 = 0 ;
30863 double val3 ;
30864 int ecode3 = 0 ;
30865 double val4 ;
30866 int ecode4 = 0 ;
30867 double val5 ;
30868 int ecode5 = 0 ;
70d7cb34
RD
30869 double val6 ;
30870 int ecode6 = 0 ;
30871 double val7 ;
30872 int ecode7 = 0 ;
72ef6efb
RD
30873 PyObject * obj0 = 0 ;
30874 PyObject * obj1 = 0 ;
30875 PyObject * obj2 = 0 ;
30876 PyObject * obj3 = 0 ;
30877 PyObject * obj4 = 0 ;
70d7cb34
RD
30878 PyObject * obj5 = 0 ;
30879 PyObject * obj6 = 0 ;
72ef6efb 30880 char * kwnames[] = {
70d7cb34 30881 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30882 };
30883
70d7cb34
RD
30884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30886 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30888 }
30889 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30890 if (obj1) {
30891 ecode2 = SWIG_AsVal_double(obj1, &val2);
30892 if (!SWIG_IsOK(ecode2)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30894 }
30895 arg2 = static_cast< wxDouble >(val2);
30896 }
30897 if (obj2) {
30898 ecode3 = SWIG_AsVal_double(obj2, &val3);
30899 if (!SWIG_IsOK(ecode3)) {
30900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30901 }
30902 arg3 = static_cast< wxDouble >(val3);
30903 }
30904 if (obj3) {
30905 ecode4 = SWIG_AsVal_double(obj3, &val4);
30906 if (!SWIG_IsOK(ecode4)) {
30907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30908 }
30909 arg4 = static_cast< wxDouble >(val4);
30910 }
30911 if (obj4) {
30912 ecode5 = SWIG_AsVal_double(obj4, &val5);
30913 if (!SWIG_IsOK(ecode5)) {
30914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30915 }
30916 arg5 = static_cast< wxDouble >(val5);
30917 }
30918 if (obj5) {
30919 ecode6 = SWIG_AsVal_double(obj5, &val6);
30920 if (!SWIG_IsOK(ecode6)) {
30921 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30922 }
30923 arg6 = static_cast< wxDouble >(val6);
30924 }
30925 if (obj6) {
30926 ecode7 = SWIG_AsVal_double(obj6, &val7);
30927 if (!SWIG_IsOK(ecode7)) {
30928 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30929 }
30930 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30931 }
72ef6efb 30932 {
5c8c7dd3 30933 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30934 if (PyErr_Occurred()) SWIG_fail;
30935 }
5c8c7dd3 30936 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30937 return resultobj;
30938fail:
30939 return NULL;
30940}
30941
30942
70d7cb34 30943SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30944 PyObject *resultobj = 0;
70d7cb34
RD
30945 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30946 wxPen *arg2 = 0 ;
30947 wxGraphicsPen result;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 void *argp2 = 0 ;
30951 int res2 = 0 ;
30952 PyObject * obj0 = 0 ;
30953 PyObject * obj1 = 0 ;
30954 char * kwnames[] = {
30955 (char *) "self",(char *) "pen", NULL
30956 };
30957
30958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30960 if (!SWIG_IsOK(res1)) {
30961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30962 }
30963 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30965 if (!SWIG_IsOK(res2)) {
30966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30967 }
30968 if (!argp2) {
30969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30970 }
30971 arg2 = reinterpret_cast< wxPen * >(argp2);
30972 {
30973 result = (arg1)->CreatePen((wxPen const &)*arg2);
30974 if (PyErr_Occurred()) SWIG_fail;
30975 }
30976 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30977 return resultobj;
30978fail:
30979 return NULL;
30980}
30981
30982
30983SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj = 0;
30985 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30986 wxBrush *arg2 = 0 ;
30987 wxGraphicsBrush result;
30988 void *argp1 = 0 ;
30989 int res1 = 0 ;
30990 void *argp2 = 0 ;
30991 int res2 = 0 ;
30992 PyObject * obj0 = 0 ;
30993 PyObject * obj1 = 0 ;
30994 char * kwnames[] = {
30995 (char *) "self",(char *) "brush", NULL
30996 };
30997
30998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31000 if (!SWIG_IsOK(res1)) {
31001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31002 }
31003 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31005 if (!SWIG_IsOK(res2)) {
31006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31007 }
31008 if (!argp2) {
31009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31010 }
31011 arg2 = reinterpret_cast< wxBrush * >(argp2);
31012 {
31013 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31014 if (PyErr_Occurred()) SWIG_fail;
31015 }
31016 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31017 return resultobj;
31018fail:
31019 return NULL;
31020}
31021
31022
31023SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31026 wxDouble arg2 ;
31027 wxDouble arg3 ;
31028 wxDouble arg4 ;
31029 wxDouble arg5 ;
70d7cb34
RD
31030 wxColour *arg6 = 0 ;
31031 wxColour *arg7 = 0 ;
31032 wxGraphicsBrush result;
72ef6efb
RD
31033 void *argp1 = 0 ;
31034 int res1 = 0 ;
31035 double val2 ;
31036 int ecode2 = 0 ;
31037 double val3 ;
31038 int ecode3 = 0 ;
31039 double val4 ;
31040 int ecode4 = 0 ;
31041 double val5 ;
31042 int ecode5 = 0 ;
70d7cb34
RD
31043 wxColour temp6 ;
31044 wxColour temp7 ;
72ef6efb
RD
31045 PyObject * obj0 = 0 ;
31046 PyObject * obj1 = 0 ;
31047 PyObject * obj2 = 0 ;
31048 PyObject * obj3 = 0 ;
31049 PyObject * obj4 = 0 ;
70d7cb34
RD
31050 PyObject * obj5 = 0 ;
31051 PyObject * obj6 = 0 ;
72ef6efb 31052 char * kwnames[] = {
70d7cb34 31053 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
31054 };
31055
70d7cb34
RD
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31058 if (!SWIG_IsOK(res1)) {
70d7cb34 31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31060 }
70d7cb34 31061 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31062 ecode2 = SWIG_AsVal_double(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31065 }
31066 arg2 = static_cast< wxDouble >(val2);
31067 ecode3 = SWIG_AsVal_double(obj2, &val3);
31068 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31070 }
31071 arg3 = static_cast< wxDouble >(val3);
31072 ecode4 = SWIG_AsVal_double(obj3, &val4);
31073 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31075 }
31076 arg4 = static_cast< wxDouble >(val4);
31077 ecode5 = SWIG_AsVal_double(obj4, &val5);
31078 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31079 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31080 }
31081 arg5 = static_cast< wxDouble >(val5);
31082 {
70d7cb34
RD
31083 arg6 = &temp6;
31084 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31085 }
31086 {
31087 arg7 = &temp7;
31088 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31089 }
31090 {
31091 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
31092 if (PyErr_Occurred()) SWIG_fail;
31093 }
70d7cb34 31094 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31095 return resultobj;
31096fail:
31097 return NULL;
31098}
31099
31100
70d7cb34 31101SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31102 PyObject *resultobj = 0;
70d7cb34 31103 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31104 wxDouble arg2 ;
31105 wxDouble arg3 ;
31106 wxDouble arg4 ;
31107 wxDouble arg5 ;
31108 wxDouble arg6 ;
70d7cb34
RD
31109 wxColour *arg7 = 0 ;
31110 wxColour *arg8 = 0 ;
31111 wxGraphicsBrush result;
72ef6efb
RD
31112 void *argp1 = 0 ;
31113 int res1 = 0 ;
31114 double val2 ;
31115 int ecode2 = 0 ;
31116 double val3 ;
31117 int ecode3 = 0 ;
31118 double val4 ;
31119 int ecode4 = 0 ;
31120 double val5 ;
31121 int ecode5 = 0 ;
31122 double val6 ;
31123 int ecode6 = 0 ;
70d7cb34
RD
31124 wxColour temp7 ;
31125 wxColour temp8 ;
72ef6efb
RD
31126 PyObject * obj0 = 0 ;
31127 PyObject * obj1 = 0 ;
31128 PyObject * obj2 = 0 ;
31129 PyObject * obj3 = 0 ;
31130 PyObject * obj4 = 0 ;
31131 PyObject * obj5 = 0 ;
70d7cb34
RD
31132 PyObject * obj6 = 0 ;
31133 PyObject * obj7 = 0 ;
72ef6efb 31134 char * kwnames[] = {
70d7cb34 31135 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
31136 };
31137
70d7cb34
RD
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31140 if (!SWIG_IsOK(res1)) {
70d7cb34 31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31142 }
70d7cb34 31143 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31144 ecode2 = SWIG_AsVal_double(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31147 }
31148 arg2 = static_cast< wxDouble >(val2);
31149 ecode3 = SWIG_AsVal_double(obj2, &val3);
31150 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31152 }
31153 arg3 = static_cast< wxDouble >(val3);
31154 ecode4 = SWIG_AsVal_double(obj3, &val4);
31155 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31157 }
31158 arg4 = static_cast< wxDouble >(val4);
31159 ecode5 = SWIG_AsVal_double(obj4, &val5);
31160 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31162 }
31163 arg5 = static_cast< wxDouble >(val5);
31164 ecode6 = SWIG_AsVal_double(obj5, &val6);
31165 if (!SWIG_IsOK(ecode6)) {
70d7cb34 31166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
31167 }
31168 arg6 = static_cast< wxDouble >(val6);
31169 {
70d7cb34
RD
31170 arg7 = &temp7;
31171 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31172 }
31173 {
31174 arg8 = &temp8;
31175 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31176 }
31177 {
31178 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
70d7cb34 31181 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31182 return resultobj;
31183fail:
31184 return NULL;
31185}
31186
31187
70d7cb34
RD
31188SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31189 PyObject *resultobj = 0;
31190 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31191 wxFont *arg2 = 0 ;
31192 wxColour const &arg3_defvalue = *wxBLACK ;
31193 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31194 wxGraphicsFont result;
31195 void *argp1 = 0 ;
31196 int res1 = 0 ;
31197 void *argp2 = 0 ;
31198 int res2 = 0 ;
31199 wxColour temp3 ;
31200 PyObject * obj0 = 0 ;
31201 PyObject * obj1 = 0 ;
31202 PyObject * obj2 = 0 ;
31203 char * kwnames[] = {
31204 (char *) "self",(char *) "font",(char *) "col", NULL
31205 };
31206
31207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31209 if (!SWIG_IsOK(res1)) {
31210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31211 }
31212 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31214 if (!SWIG_IsOK(res2)) {
31215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31216 }
31217 if (!argp2) {
31218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31219 }
31220 arg2 = reinterpret_cast< wxFont * >(argp2);
31221 if (obj2) {
31222 {
31223 arg3 = &temp3;
31224 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31225 }
31226 }
31227 {
31228 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31229 if (PyErr_Occurred()) SWIG_fail;
31230 }
31231 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31232 return resultobj;
31233fail:
31234 return NULL;
31235}
31236
31237
31238SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31239 PyObject *obj;
31240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31241 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31242 return SWIG_Py_Void();
31243}
31244
31245SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31246 PyObject *resultobj = 0;
31247 wxWindowDC *arg1 = 0 ;
31248 wxGCDC *result = 0 ;
31249 void *argp1 = 0 ;
31250 int res1 = 0 ;
31251 PyObject * obj0 = 0 ;
31252 char * kwnames[] = {
31253 (char *) "dc", NULL
31254 };
31255
31256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
31257 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31258 if (!SWIG_IsOK(res1)) {
31259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31260 }
31261 if (!argp1) {
31262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31263 }
31264 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31265 {
31266 if (!wxPyCheckForApp()) SWIG_fail;
31267 PyThreadState* __tstate = wxPyBeginAllowThreads();
31268 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31269 wxPyEndAllowThreads(__tstate);
31270 if (PyErr_Occurred()) SWIG_fail;
31271 }
31272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31273 return resultobj;
31274fail:
31275 return NULL;
31276}
31277
31278
31279SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31280 PyObject *resultobj = 0;
31281 wxGCDC *arg1 = (wxGCDC *) 0 ;
31282 void *argp1 = 0 ;
31283 int res1 = 0 ;
31284 PyObject *swig_obj[1] ;
31285
31286 if (!args) SWIG_fail;
31287 swig_obj[0] = args;
31288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31289 if (!SWIG_IsOK(res1)) {
31290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31291 }
31292 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31293 {
72ef6efb
RD
31294 delete arg1;
31295
72ef6efb
RD
31296 if (PyErr_Occurred()) SWIG_fail;
31297 }
31298 resultobj = SWIG_Py_Void();
31299 return resultobj;
31300fail:
31301 return NULL;
31302}
31303
31304
0a27f394 31305SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31306 PyObject *resultobj = 0;
31307 wxGCDC *arg1 = (wxGCDC *) 0 ;
31308 wxGraphicsContext *result = 0 ;
31309 void *argp1 = 0 ;
31310 int res1 = 0 ;
31311 PyObject *swig_obj[1] ;
31312
31313 if (!args) SWIG_fail;
31314 swig_obj[0] = args;
31315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31316 if (!SWIG_IsOK(res1)) {
0a27f394 31317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31318 }
31319 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31320 {
0a27f394 31321 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31325 return resultobj;
31326fail:
31327 return NULL;
31328}
31329
31330
0a27f394
RD
31331SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj = 0;
31333 wxGCDC *arg1 = (wxGCDC *) 0 ;
31334 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31335 void *argp1 = 0 ;
31336 int res1 = 0 ;
31337 void *argp2 = 0 ;
31338 int res2 = 0 ;
31339 PyObject * obj0 = 0 ;
31340 PyObject * obj1 = 0 ;
31341 char * kwnames[] = {
31342 (char *) "self",(char *) "ctx", NULL
31343 };
31344
31345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31347 if (!SWIG_IsOK(res1)) {
31348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31349 }
31350 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31352 if (!SWIG_IsOK(res2)) {
31353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31354 }
31355 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31356 {
31357 (arg1)->SetGraphicsContext(arg2);
31358 if (PyErr_Occurred()) SWIG_fail;
31359 }
31360 resultobj = SWIG_Py_Void();
31361 return resultobj;
31362fail:
31363 return NULL;
31364}
31365
31366
72ef6efb
RD
31367SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31368 PyObject *obj;
31369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31370 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31371 return SWIG_Py_Void();
31372}
31373
31374SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31375 return SWIG_Python_InitShadowInstance(args);
31376}
31377
b39fe951
RD
31378SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31379 PyObject *resultobj = 0;
31380 wxOverlay *result = 0 ;
31381
31382 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (wxOverlay *)new wxOverlay();
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31390 return resultobj;
31391fail:
31392 return NULL;
31393}
31394
31395
31396SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31397 PyObject *resultobj = 0;
31398 wxOverlay *arg1 = (wxOverlay *) 0 ;
31399 void *argp1 = 0 ;
31400 int res1 = 0 ;
31401 PyObject *swig_obj[1] ;
31402
31403 if (!args) SWIG_fail;
31404 swig_obj[0] = args;
31405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31406 if (!SWIG_IsOK(res1)) {
31407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31408 }
31409 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31410 {
31411 PyThreadState* __tstate = wxPyBeginAllowThreads();
31412 delete arg1;
31413
31414 wxPyEndAllowThreads(__tstate);
31415 if (PyErr_Occurred()) SWIG_fail;
31416 }
31417 resultobj = SWIG_Py_Void();
31418 return resultobj;
31419fail:
31420 return NULL;
31421}
31422
31423
31424SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31425 PyObject *resultobj = 0;
31426 wxOverlay *arg1 = (wxOverlay *) 0 ;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 PyObject *swig_obj[1] ;
31430
31431 if (!args) SWIG_fail;
31432 swig_obj[0] = args;
31433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31434 if (!SWIG_IsOK(res1)) {
31435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31436 }
31437 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31438 {
31439 PyThreadState* __tstate = wxPyBeginAllowThreads();
31440 (arg1)->Reset();
31441 wxPyEndAllowThreads(__tstate);
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 resultobj = SWIG_Py_Void();
31445 return resultobj;
31446fail:
31447 return NULL;
31448}
31449
31450
31451SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31452 PyObject *obj;
31453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31454 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31455 return SWIG_Py_Void();
31456}
31457
31458SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31459 return SWIG_Python_InitShadowInstance(args);
31460}
31461
31462SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31463 PyObject *resultobj = 0;
31464 wxOverlay *arg1 = 0 ;
31465 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31466 int arg3 ;
31467 int arg4 ;
31468 int arg5 ;
31469 int arg6 ;
31470 wxDCOverlay *result = 0 ;
31471 void *argp1 = 0 ;
31472 int res1 = 0 ;
31473 void *argp2 = 0 ;
31474 int res2 = 0 ;
31475 int val3 ;
31476 int ecode3 = 0 ;
31477 int val4 ;
31478 int ecode4 = 0 ;
31479 int val5 ;
31480 int ecode5 = 0 ;
31481 int val6 ;
31482 int ecode6 = 0 ;
31483
31484 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31486 if (!SWIG_IsOK(res1)) {
31487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31488 }
31489 if (!argp1) {
31490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31491 }
31492 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31493 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31494 if (!SWIG_IsOK(res2)) {
31495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31496 }
31497 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31498 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31499 if (!SWIG_IsOK(ecode3)) {
31500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31501 }
31502 arg3 = static_cast< int >(val3);
31503 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31504 if (!SWIG_IsOK(ecode4)) {
31505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31506 }
31507 arg4 = static_cast< int >(val4);
31508 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31509 if (!SWIG_IsOK(ecode5)) {
31510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31511 }
31512 arg5 = static_cast< int >(val5);
31513 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31514 if (!SWIG_IsOK(ecode6)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31516 }
31517 arg6 = static_cast< int >(val6);
31518 {
31519 PyThreadState* __tstate = wxPyBeginAllowThreads();
31520 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31521 wxPyEndAllowThreads(__tstate);
31522 if (PyErr_Occurred()) SWIG_fail;
31523 }
31524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31525 return resultobj;
31526fail:
31527 return NULL;
31528}
31529
31530
31531SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31532 PyObject *resultobj = 0;
31533 wxOverlay *arg1 = 0 ;
31534 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31535 wxDCOverlay *result = 0 ;
31536 void *argp1 = 0 ;
31537 int res1 = 0 ;
31538 void *argp2 = 0 ;
31539 int res2 = 0 ;
31540
31541 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31543 if (!SWIG_IsOK(res1)) {
31544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31545 }
31546 if (!argp1) {
31547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31548 }
31549 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31550 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31551 if (!SWIG_IsOK(res2)) {
31552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31553 }
31554 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31555 {
31556 PyThreadState* __tstate = wxPyBeginAllowThreads();
31557 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31558 wxPyEndAllowThreads(__tstate);
31559 if (PyErr_Occurred()) SWIG_fail;
31560 }
31561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31562 return resultobj;
31563fail:
31564 return NULL;
31565}
31566
31567
31568SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31569 int argc;
31570 PyObject *argv[7];
31571
31572 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31573 --argc;
31574 if (argc == 2) {
31575 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31576 }
31577 if (argc == 6) {
31578 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31579 }
31580
31581fail:
31582 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31583 return NULL;
31584}
31585
31586
31587SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31588 PyObject *resultobj = 0;
31589 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31590 void *argp1 = 0 ;
31591 int res1 = 0 ;
31592 PyObject *swig_obj[1] ;
31593
31594 if (!args) SWIG_fail;
31595 swig_obj[0] = args;
31596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31597 if (!SWIG_IsOK(res1)) {
31598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31599 }
31600 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31601 {
31602 PyThreadState* __tstate = wxPyBeginAllowThreads();
31603 delete arg1;
31604
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_Py_Void();
31609 return resultobj;
31610fail:
31611 return NULL;
31612}
31613
31614
31615SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31616 PyObject *resultobj = 0;
31617 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31618 void *argp1 = 0 ;
31619 int res1 = 0 ;
31620 PyObject *swig_obj[1] ;
31621
31622 if (!args) SWIG_fail;
31623 swig_obj[0] = args;
31624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31625 if (!SWIG_IsOK(res1)) {
31626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31627 }
31628 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31629 {
31630 PyThreadState* __tstate = wxPyBeginAllowThreads();
31631 (arg1)->Clear();
31632 wxPyEndAllowThreads(__tstate);
31633 if (PyErr_Occurred()) SWIG_fail;
31634 }
31635 resultobj = SWIG_Py_Void();
31636 return resultobj;
31637fail:
31638 return NULL;
31639}
31640
31641
31642SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31643 PyObject *obj;
31644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31645 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31646 return SWIG_Py_Void();
31647}
31648
31649SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31650 return SWIG_Python_InitShadowInstance(args);
31651}
31652
72ef6efb
RD
31653SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31654 PyObject *resultobj = 0;
31655 int arg1 ;
31656 int arg2 ;
31657 int arg3 = (int) true ;
31658 int arg4 = (int) 1 ;
31659 wxImageList *result = 0 ;
31660 int val1 ;
31661 int ecode1 = 0 ;
31662 int val2 ;
31663 int ecode2 = 0 ;
31664 int val3 ;
31665 int ecode3 = 0 ;
31666 int val4 ;
31667 int ecode4 = 0 ;
31668 PyObject * obj0 = 0 ;
31669 PyObject * obj1 = 0 ;
31670 PyObject * obj2 = 0 ;
31671 PyObject * obj3 = 0 ;
31672 char * kwnames[] = {
31673 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31674 };
31675
31676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31677 ecode1 = SWIG_AsVal_int(obj0, &val1);
31678 if (!SWIG_IsOK(ecode1)) {
31679 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31680 }
31681 arg1 = static_cast< int >(val1);
31682 ecode2 = SWIG_AsVal_int(obj1, &val2);
31683 if (!SWIG_IsOK(ecode2)) {
31684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31685 }
31686 arg2 = static_cast< int >(val2);
31687 if (obj2) {
31688 ecode3 = SWIG_AsVal_int(obj2, &val3);
31689 if (!SWIG_IsOK(ecode3)) {
31690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31691 }
31692 arg3 = static_cast< int >(val3);
31693 }
31694 if (obj3) {
31695 ecode4 = SWIG_AsVal_int(obj3, &val4);
31696 if (!SWIG_IsOK(ecode4)) {
31697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31698 }
31699 arg4 = static_cast< int >(val4);
31700 }
31701 {
31702 if (!wxPyCheckForApp()) SWIG_fail;
31703 PyThreadState* __tstate = wxPyBeginAllowThreads();
31704 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31705 wxPyEndAllowThreads(__tstate);
31706 if (PyErr_Occurred()) SWIG_fail;
31707 }
e02c0a13 31708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31709 return resultobj;
31710fail:
31711 return NULL;
31712}
31713
31714
31715SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31716 PyObject *resultobj = 0;
31717 wxImageList *arg1 = (wxImageList *) 0 ;
31718 void *argp1 = 0 ;
31719 int res1 = 0 ;
31720 PyObject *swig_obj[1] ;
31721
31722 if (!args) SWIG_fail;
31723 swig_obj[0] = args;
31724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31727 }
31728 arg1 = reinterpret_cast< wxImageList * >(argp1);
31729 {
31730 PyThreadState* __tstate = wxPyBeginAllowThreads();
31731 delete arg1;
31732
31733 wxPyEndAllowThreads(__tstate);
31734 if (PyErr_Occurred()) SWIG_fail;
31735 }
31736 resultobj = SWIG_Py_Void();
31737 return resultobj;
31738fail:
31739 return NULL;
31740}
31741
31742
31743SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31744 PyObject *resultobj = 0;
31745 wxImageList *arg1 = (wxImageList *) 0 ;
31746 wxBitmap *arg2 = 0 ;
31747 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31748 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31749 int result;
31750 void *argp1 = 0 ;
31751 int res1 = 0 ;
31752 void *argp2 = 0 ;
31753 int res2 = 0 ;
31754 void *argp3 = 0 ;
31755 int res3 = 0 ;
31756 PyObject * obj0 = 0 ;
31757 PyObject * obj1 = 0 ;
31758 PyObject * obj2 = 0 ;
31759 char * kwnames[] = {
31760 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31761 };
31762
31763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31765 if (!SWIG_IsOK(res1)) {
31766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31767 }
31768 arg1 = reinterpret_cast< wxImageList * >(argp1);
31769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31770 if (!SWIG_IsOK(res2)) {
31771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31772 }
31773 if (!argp2) {
31774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31775 }
31776 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31777 if (obj2) {
31778 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31779 if (!SWIG_IsOK(res3)) {
31780 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31781 }
31782 if (!argp3) {
31783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31784 }
31785 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31786 }
31787 {
31788 PyThreadState* __tstate = wxPyBeginAllowThreads();
31789 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31790 wxPyEndAllowThreads(__tstate);
31791 if (PyErr_Occurred()) SWIG_fail;
31792 }
31793 resultobj = SWIG_From_int(static_cast< int >(result));
31794 return resultobj;
31795fail:
31796 return NULL;
31797}
31798
31799
31800SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31801 PyObject *resultobj = 0;
31802 wxImageList *arg1 = (wxImageList *) 0 ;
31803 wxBitmap *arg2 = 0 ;
31804 wxColour *arg3 = 0 ;
31805 int result;
31806 void *argp1 = 0 ;
31807 int res1 = 0 ;
31808 void *argp2 = 0 ;
31809 int res2 = 0 ;
31810 wxColour temp3 ;
31811 PyObject * obj0 = 0 ;
31812 PyObject * obj1 = 0 ;
31813 PyObject * obj2 = 0 ;
31814 char * kwnames[] = {
31815 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31816 };
31817
31818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31820 if (!SWIG_IsOK(res1)) {
31821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31822 }
31823 arg1 = reinterpret_cast< wxImageList * >(argp1);
31824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31825 if (!SWIG_IsOK(res2)) {
31826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31827 }
31828 if (!argp2) {
31829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31830 }
31831 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31832 {
31833 arg3 = &temp3;
31834 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31835 }
31836 {
31837 PyThreadState* __tstate = wxPyBeginAllowThreads();
31838 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31839 wxPyEndAllowThreads(__tstate);
31840 if (PyErr_Occurred()) SWIG_fail;
31841 }
31842 resultobj = SWIG_From_int(static_cast< int >(result));
31843 return resultobj;
31844fail:
31845 return NULL;
31846}
31847
31848
31849SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31850 PyObject *resultobj = 0;
31851 wxImageList *arg1 = (wxImageList *) 0 ;
31852 wxIcon *arg2 = 0 ;
31853 int result;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 void *argp2 = 0 ;
31857 int res2 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 char * kwnames[] = {
31861 (char *) "self",(char *) "icon", NULL
31862 };
31863
31864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31866 if (!SWIG_IsOK(res1)) {
31867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31868 }
554f62e9
RD
31869 arg1 = reinterpret_cast< wxImageList * >(argp1);
31870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31871 if (!SWIG_IsOK(res2)) {
31872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31873 }
31874 if (!argp2) {
31875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31876 }
31877 arg2 = reinterpret_cast< wxIcon * >(argp2);
31878 {
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_From_int(static_cast< int >(result));
31885 return resultobj;
31886fail:
31887 return NULL;
31888}
31889
31890
31891SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31892 PyObject *resultobj = 0;
31893 wxImageList *arg1 = (wxImageList *) 0 ;
31894 int arg2 ;
31895 SwigValueWrapper<wxBitmap > result;
31896 void *argp1 = 0 ;
31897 int res1 = 0 ;
31898 int val2 ;
31899 int ecode2 = 0 ;
31900 PyObject * obj0 = 0 ;
31901 PyObject * obj1 = 0 ;
31902 char * kwnames[] = {
31903 (char *) "self",(char *) "index", NULL
31904 };
31905
31906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31908 if (!SWIG_IsOK(res1)) {
31909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31910 }
31911 arg1 = reinterpret_cast< wxImageList * >(argp1);
31912 ecode2 = SWIG_AsVal_int(obj1, &val2);
31913 if (!SWIG_IsOK(ecode2)) {
31914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31915 }
31916 arg2 = static_cast< int >(val2);
31917 {
31918 PyThreadState* __tstate = wxPyBeginAllowThreads();
31919 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31920 wxPyEndAllowThreads(__tstate);
31921 if (PyErr_Occurred()) SWIG_fail;
31922 }
31923 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31924 return resultobj;
31925fail:
31926 return NULL;
31927}
31928
31929
31930SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31931 PyObject *resultobj = 0;
31932 wxImageList *arg1 = (wxImageList *) 0 ;
31933 int arg2 ;
31934 wxIcon result;
31935 void *argp1 = 0 ;
31936 int res1 = 0 ;
31937 int val2 ;
31938 int ecode2 = 0 ;
31939 PyObject * obj0 = 0 ;
31940 PyObject * obj1 = 0 ;
31941 char * kwnames[] = {
31942 (char *) "self",(char *) "index", NULL
31943 };
31944
31945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31947 if (!SWIG_IsOK(res1)) {
31948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31949 }
31950 arg1 = reinterpret_cast< wxImageList * >(argp1);
31951 ecode2 = SWIG_AsVal_int(obj1, &val2);
31952 if (!SWIG_IsOK(ecode2)) {
31953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31954 }
31955 arg2 = static_cast< int >(val2);
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31959 wxPyEndAllowThreads(__tstate);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31963 return resultobj;
31964fail:
31965 return NULL;
31966}
31967
31968
31969SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31970 PyObject *resultobj = 0;
31971 wxImageList *arg1 = (wxImageList *) 0 ;
31972 int arg2 ;
31973 wxBitmap *arg3 = 0 ;
31974 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31975 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31976 bool result;
31977 void *argp1 = 0 ;
31978 int res1 = 0 ;
31979 int val2 ;
31980 int ecode2 = 0 ;
31981 void *argp3 = 0 ;
31982 int res3 = 0 ;
31983 void *argp4 = 0 ;
31984 int res4 = 0 ;
31985 PyObject * obj0 = 0 ;
31986 PyObject * obj1 = 0 ;
31987 PyObject * obj2 = 0 ;
31988 PyObject * obj3 = 0 ;
31989 char * kwnames[] = {
31990 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31991 };
31992
31993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31995 if (!SWIG_IsOK(res1)) {
31996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31997 }
31998 arg1 = reinterpret_cast< wxImageList * >(argp1);
31999 ecode2 = SWIG_AsVal_int(obj1, &val2);
32000 if (!SWIG_IsOK(ecode2)) {
32001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32002 }
32003 arg2 = static_cast< int >(val2);
32004 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32005 if (!SWIG_IsOK(res3)) {
32006 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32007 }
32008 if (!argp3) {
32009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32010 }
32011 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32012 if (obj3) {
32013 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32014 if (!SWIG_IsOK(res4)) {
32015 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32016 }
554f62e9
RD
32017 if (!argp4) {
32018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32019 }
554f62e9
RD
32020 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32021 }
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 {
32029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32030 }
32031 return resultobj;
32032fail:
32033 return NULL;
32034}
32035
32036
32037SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32038 PyObject *resultobj = 0;
32039 wxImageList *arg1 = (wxImageList *) 0 ;
32040 int arg2 ;
32041 wxDC *arg3 = 0 ;
32042 int arg4 ;
32043 int arg5 ;
32044 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32045 bool arg7 = (bool) (bool)false ;
32046 bool result;
32047 void *argp1 = 0 ;
32048 int res1 = 0 ;
32049 int val2 ;
32050 int ecode2 = 0 ;
32051 void *argp3 = 0 ;
32052 int res3 = 0 ;
32053 int val4 ;
32054 int ecode4 = 0 ;
32055 int val5 ;
32056 int ecode5 = 0 ;
32057 int val6 ;
32058 int ecode6 = 0 ;
32059 bool val7 ;
32060 int ecode7 = 0 ;
32061 PyObject * obj0 = 0 ;
32062 PyObject * obj1 = 0 ;
32063 PyObject * obj2 = 0 ;
32064 PyObject * obj3 = 0 ;
32065 PyObject * obj4 = 0 ;
32066 PyObject * obj5 = 0 ;
32067 PyObject * obj6 = 0 ;
32068 char * kwnames[] = {
32069 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32070 };
32071
32072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32074 if (!SWIG_IsOK(res1)) {
32075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32076 }
32077 arg1 = reinterpret_cast< wxImageList * >(argp1);
32078 ecode2 = SWIG_AsVal_int(obj1, &val2);
32079 if (!SWIG_IsOK(ecode2)) {
32080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32081 }
32082 arg2 = static_cast< int >(val2);
32083 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32084 if (!SWIG_IsOK(res3)) {
32085 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32086 }
32087 if (!argp3) {
32088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32089 }
32090 arg3 = reinterpret_cast< wxDC * >(argp3);
32091 ecode4 = SWIG_AsVal_int(obj3, &val4);
32092 if (!SWIG_IsOK(ecode4)) {
32093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32094 }
32095 arg4 = static_cast< int >(val4);
32096 ecode5 = SWIG_AsVal_int(obj4, &val5);
32097 if (!SWIG_IsOK(ecode5)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32099 }
32100 arg5 = static_cast< int >(val5);
32101 if (obj5) {
32102 ecode6 = SWIG_AsVal_int(obj5, &val6);
32103 if (!SWIG_IsOK(ecode6)) {
32104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32105 }
32106 arg6 = static_cast< int >(val6);
32107 }
32108 if (obj6) {
32109 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32110 if (!SWIG_IsOK(ecode7)) {
32111 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32112 }
32113 arg7 = static_cast< bool >(val7);
32114 }
32115 {
32116 PyThreadState* __tstate = wxPyBeginAllowThreads();
32117 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32118 wxPyEndAllowThreads(__tstate);
32119 if (PyErr_Occurred()) SWIG_fail;
32120 }
32121 {
32122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32123 }
32124 return resultobj;
32125fail:
32126 return NULL;
32127}
32128
32129
32130SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32131 PyObject *resultobj = 0;
32132 wxImageList *arg1 = (wxImageList *) 0 ;
32133 int result;
32134 void *argp1 = 0 ;
32135 int res1 = 0 ;
32136 PyObject *swig_obj[1] ;
32137
32138 if (!args) SWIG_fail;
32139 swig_obj[0] = args;
32140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32141 if (!SWIG_IsOK(res1)) {
32142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32143 }
32144 arg1 = reinterpret_cast< wxImageList * >(argp1);
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 result = (int)(arg1)->GetImageCount();
32148 wxPyEndAllowThreads(__tstate);
32149 if (PyErr_Occurred()) SWIG_fail;
32150 }
32151 resultobj = SWIG_From_int(static_cast< int >(result));
32152 return resultobj;
32153fail:
32154 return NULL;
32155}
32156
32157
32158SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32159 PyObject *resultobj = 0;
32160 wxImageList *arg1 = (wxImageList *) 0 ;
32161 int arg2 ;
32162 bool result;
32163 void *argp1 = 0 ;
32164 int res1 = 0 ;
32165 int val2 ;
32166 int ecode2 = 0 ;
32167 PyObject * obj0 = 0 ;
32168 PyObject * obj1 = 0 ;
32169 char * kwnames[] = {
32170 (char *) "self",(char *) "index", NULL
32171 };
32172
32173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32175 if (!SWIG_IsOK(res1)) {
32176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32177 }
32178 arg1 = reinterpret_cast< wxImageList * >(argp1);
32179 ecode2 = SWIG_AsVal_int(obj1, &val2);
32180 if (!SWIG_IsOK(ecode2)) {
32181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32182 }
32183 arg2 = static_cast< int >(val2);
32184 {
32185 PyThreadState* __tstate = wxPyBeginAllowThreads();
32186 result = (bool)(arg1)->Remove(arg2);
32187 wxPyEndAllowThreads(__tstate);
32188 if (PyErr_Occurred()) SWIG_fail;
32189 }
32190 {
32191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32192 }
32193 return resultobj;
32194fail:
32195 return NULL;
32196}
32197
32198
32199SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32200 PyObject *resultobj = 0;
32201 wxImageList *arg1 = (wxImageList *) 0 ;
32202 bool result;
32203 void *argp1 = 0 ;
32204 int res1 = 0 ;
32205 PyObject *swig_obj[1] ;
32206
32207 if (!args) SWIG_fail;
32208 swig_obj[0] = args;
32209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32210 if (!SWIG_IsOK(res1)) {
32211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32212 }
32213 arg1 = reinterpret_cast< wxImageList * >(argp1);
32214 {
32215 PyThreadState* __tstate = wxPyBeginAllowThreads();
32216 result = (bool)(arg1)->RemoveAll();
32217 wxPyEndAllowThreads(__tstate);
32218 if (PyErr_Occurred()) SWIG_fail;
32219 }
32220 {
32221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32222 }
32223 return resultobj;
32224fail:
32225 return NULL;
32226}
32227
32228
32229SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32230 PyObject *resultobj = 0;
32231 wxImageList *arg1 = (wxImageList *) 0 ;
32232 int arg2 ;
32233 int *arg3 = 0 ;
32234 int *arg4 = 0 ;
32235 void *argp1 = 0 ;
32236 int res1 = 0 ;
32237 int val2 ;
32238 int ecode2 = 0 ;
32239 int temp3 ;
32240 int res3 = SWIG_TMPOBJ ;
32241 int temp4 ;
32242 int res4 = SWIG_TMPOBJ ;
32243 PyObject * obj0 = 0 ;
32244 PyObject * obj1 = 0 ;
32245 char * kwnames[] = {
32246 (char *) "self",(char *) "index", NULL
32247 };
32248
32249 arg3 = &temp3;
32250 arg4 = &temp4;
32251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32253 if (!SWIG_IsOK(res1)) {
32254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32255 }
32256 arg1 = reinterpret_cast< wxImageList * >(argp1);
32257 ecode2 = SWIG_AsVal_int(obj1, &val2);
32258 if (!SWIG_IsOK(ecode2)) {
32259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32260 }
32261 arg2 = static_cast< int >(val2);
32262 {
32263 PyThreadState* __tstate = wxPyBeginAllowThreads();
32264 (arg1)->GetSize(arg2,*arg3,*arg4);
32265 wxPyEndAllowThreads(__tstate);
32266 if (PyErr_Occurred()) SWIG_fail;
32267 }
32268 resultobj = SWIG_Py_Void();
32269 if (SWIG_IsTmpObj(res3)) {
32270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32271 } else {
32272 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32274 }
32275 if (SWIG_IsTmpObj(res4)) {
32276 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32277 } else {
32278 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32280 }
32281 return resultobj;
32282fail:
32283 return NULL;
32284}
32285
32286
32287SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32288 PyObject *obj;
32289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32290 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32291 return SWIG_Py_Void();
32292}
32293
32294SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32295 return SWIG_Python_InitShadowInstance(args);
32296}
32297
50efceee
RD
32298SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32299 PyObject *resultobj = 0;
32300 wxStockGDI *result = 0 ;
554f62e9 32301
50efceee
RD
32302 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32303 {
32304 PyThreadState* __tstate = wxPyBeginAllowThreads();
32305 result = (wxStockGDI *)new wxStockGDI();
32306 wxPyEndAllowThreads(__tstate);
32307 if (PyErr_Occurred()) SWIG_fail;
32308 }
32309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32310 return resultobj;
32311fail:
32312 return NULL;
554f62e9
RD
32313}
32314
32315
50efceee
RD
32316SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32317 PyObject *resultobj = 0;
32318 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32319 void *argp1 = 0 ;
32320 int res1 = 0 ;
32321 PyObject *swig_obj[1] ;
554f62e9 32322
50efceee
RD
32323 if (!args) SWIG_fail;
32324 swig_obj[0] = args;
32325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32326 if (!SWIG_IsOK(res1)) {
32327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32328 }
32329 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32330 {
32331 PyThreadState* __tstate = wxPyBeginAllowThreads();
32332 delete arg1;
32333
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
32337 resultobj = SWIG_Py_Void();
32338 return resultobj;
32339fail:
32340 return NULL;
554f62e9
RD
32341}
32342
32343
50efceee
RD
32344SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32345 PyObject *resultobj = 0;
554f62e9 32346
50efceee
RD
32347 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32348 {
32349 PyThreadState* __tstate = wxPyBeginAllowThreads();
32350 wxStockGDI::DeleteAll();
32351 wxPyEndAllowThreads(__tstate);
32352 if (PyErr_Occurred()) SWIG_fail;
32353 }
32354 resultobj = SWIG_Py_Void();
32355 return resultobj;
32356fail:
32357 return NULL;
554f62e9
RD
32358}
32359
32360
50efceee
RD
32361SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32362 PyObject *resultobj = 0;
32363 wxStockGDI *result = 0 ;
554f62e9 32364
50efceee
RD
32365 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32366 {
32367 PyThreadState* __tstate = wxPyBeginAllowThreads();
32368 {
32369 wxStockGDI &_result_ref = wxStockGDI::instance();
32370 result = (wxStockGDI *) &_result_ref;
32371 }
32372 wxPyEndAllowThreads(__tstate);
32373 if (PyErr_Occurred()) SWIG_fail;
32374 }
32375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32376 return resultobj;
32377fail:
32378 return NULL;
554f62e9
RD
32379}
32380
32381
50efceee
RD
32382SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32383 PyObject *resultobj = 0;
32384 wxStockGDI::Item arg1 ;
32385 wxBrush *result = 0 ;
32386 int val1 ;
32387 int ecode1 = 0 ;
32388 PyObject * obj0 = 0 ;
32389 char * kwnames[] = {
32390 (char *) "item", NULL
32391 };
32392
32393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32394 ecode1 = SWIG_AsVal_int(obj0, &val1);
32395 if (!SWIG_IsOK(ecode1)) {
32396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32397 }
32398 arg1 = static_cast< wxStockGDI::Item >(val1);
32399 {
32400 PyThreadState* __tstate = wxPyBeginAllowThreads();
32401 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32402 wxPyEndAllowThreads(__tstate);
32403 if (PyErr_Occurred()) SWIG_fail;
32404 }
32405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32406 return resultobj;
32407fail:
32408 return NULL;
554f62e9
RD
32409}
32410
32411
50efceee
RD
32412SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32413 PyObject *resultobj = 0;
32414 wxStockGDI::Item arg1 ;
32415 wxColour *result = 0 ;
32416 int val1 ;
32417 int ecode1 = 0 ;
32418 PyObject * obj0 = 0 ;
32419 char * kwnames[] = {
32420 (char *) "item", NULL
32421 };
554f62e9 32422
50efceee
RD
32423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32424 ecode1 = SWIG_AsVal_int(obj0, &val1);
32425 if (!SWIG_IsOK(ecode1)) {
32426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32427 }
32428 arg1 = static_cast< wxStockGDI::Item >(val1);
32429 {
32430 PyThreadState* __tstate = wxPyBeginAllowThreads();
32431 result = (wxColour *)wxStockGDI::GetColour(arg1);
32432 wxPyEndAllowThreads(__tstate);
32433 if (PyErr_Occurred()) SWIG_fail;
32434 }
32435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32436 return resultobj;
32437fail:
32438 return NULL;
554f62e9
RD
32439}
32440
32441
50efceee
RD
32442SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32443 PyObject *resultobj = 0;
32444 wxStockGDI::Item arg1 ;
32445 wxCursor *result = 0 ;
32446 int val1 ;
32447 int ecode1 = 0 ;
32448 PyObject * obj0 = 0 ;
32449 char * kwnames[] = {
32450 (char *) "item", NULL
32451 };
32452
32453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32454 ecode1 = SWIG_AsVal_int(obj0, &val1);
32455 if (!SWIG_IsOK(ecode1)) {
32456 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32457 }
32458 arg1 = static_cast< wxStockGDI::Item >(val1);
32459 {
32460 PyThreadState* __tstate = wxPyBeginAllowThreads();
32461 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32462 wxPyEndAllowThreads(__tstate);
32463 if (PyErr_Occurred()) SWIG_fail;
32464 }
32465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32466 return resultobj;
32467fail:
32468 return NULL;
554f62e9
RD
32469}
32470
32471
50efceee
RD
32472SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32473 PyObject *resultobj = 0;
32474 wxStockGDI::Item arg1 ;
32475 wxPen *result = 0 ;
32476 int val1 ;
32477 int ecode1 = 0 ;
32478 PyObject * obj0 = 0 ;
32479 char * kwnames[] = {
32480 (char *) "item", NULL
32481 };
32482
32483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32484 ecode1 = SWIG_AsVal_int(obj0, &val1);
32485 if (!SWIG_IsOK(ecode1)) {
32486 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32487 }
32488 arg1 = static_cast< wxStockGDI::Item >(val1);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = (wxPen *)wxStockGDI::GetPen(arg1);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32496 return resultobj;
32497fail:
32498 return NULL;
554f62e9
RD
32499}
32500
32501
50efceee
RD
32502SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj = 0;
32504 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32505 wxStockGDI::Item arg2 ;
32506 wxFont *result = 0 ;
32507 void *argp1 = 0 ;
32508 int res1 = 0 ;
32509 int val2 ;
32510 int ecode2 = 0 ;
32511 PyObject * obj0 = 0 ;
32512 PyObject * obj1 = 0 ;
32513 char * kwnames[] = {
32514 (char *) "self",(char *) "item", NULL
32515 };
554f62e9 32516
50efceee
RD
32517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32519 if (!SWIG_IsOK(res1)) {
32520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32521 }
32522 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32523 ecode2 = SWIG_AsVal_int(obj1, &val2);
32524 if (!SWIG_IsOK(ecode2)) {
32525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32526 }
32527 arg2 = static_cast< wxStockGDI::Item >(val2);
32528 {
32529 PyThreadState* __tstate = wxPyBeginAllowThreads();
32530 result = (wxFont *)(arg1)->GetFont(arg2);
32531 wxPyEndAllowThreads(__tstate);
32532 if (PyErr_Occurred()) SWIG_fail;
32533 }
32534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32535 return resultobj;
32536fail:
32537 return NULL;
554f62e9
RD
32538}
32539
32540
50efceee
RD
32541SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32542 PyObject *obj;
32543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32544 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32545 return SWIG_Py_Void();
554f62e9
RD
32546}
32547
50efceee
RD
32548SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32549 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
32550}
32551
554f62e9
RD
32552SWIGINTERN int NullBitmap_set(PyObject *) {
32553 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32554 return 1;
32555}
32556
32557
32558SWIGINTERN PyObject *NullBitmap_get(void) {
32559 PyObject *pyobj = 0;
32560
32561 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32562 return pyobj;
32563}
32564
32565
32566SWIGINTERN int NullIcon_set(PyObject *) {
32567 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32568 return 1;
32569}
32570
32571
32572SWIGINTERN PyObject *NullIcon_get(void) {
32573 PyObject *pyobj = 0;
32574
32575 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32576 return pyobj;
32577}
32578
32579
32580SWIGINTERN int NullCursor_set(PyObject *) {
32581 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32582 return 1;
32583}
32584
32585
32586SWIGINTERN PyObject *NullCursor_get(void) {
32587 PyObject *pyobj = 0;
32588
32589 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32590 return pyobj;
32591}
32592
32593
32594SWIGINTERN int NullPen_set(PyObject *) {
32595 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32596 return 1;
32597}
32598
32599
32600SWIGINTERN PyObject *NullPen_get(void) {
32601 PyObject *pyobj = 0;
32602
32603 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32604 return pyobj;
32605}
32606
32607
32608SWIGINTERN int NullBrush_set(PyObject *) {
32609 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32610 return 1;
32611}
32612
32613
32614SWIGINTERN PyObject *NullBrush_get(void) {
32615 PyObject *pyobj = 0;
32616
32617 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32618 return pyobj;
32619}
32620
32621
32622SWIGINTERN int NullPalette_set(PyObject *) {
32623 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32624 return 1;
32625}
32626
32627
32628SWIGINTERN PyObject *NullPalette_get(void) {
32629 PyObject *pyobj = 0;
32630
32631 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32632 return pyobj;
32633}
32634
32635
32636SWIGINTERN int NullFont_set(PyObject *) {
32637 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32638 return 1;
32639}
32640
32641
32642SWIGINTERN PyObject *NullFont_get(void) {
32643 PyObject *pyobj = 0;
32644
32645 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32646 return pyobj;
32647}
32648
32649
32650SWIGINTERN int NullColour_set(PyObject *) {
32651 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32652 return 1;
32653}
32654
32655
32656SWIGINTERN PyObject *NullColour_get(void) {
32657 PyObject *pyobj = 0;
32658
32659 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32660 return pyobj;
32661}
32662
32663
50efceee 32664SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 32665 PyObject *resultobj = 0;
50efceee
RD
32666 wxGDIObjListBase *result = 0 ;
32667
32668 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32676 return resultobj;
32677fail:
32678 return NULL;
32679}
32680
32681
32682SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32683 PyObject *resultobj = 0;
32684 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
32685 void *argp1 = 0 ;
32686 int res1 = 0 ;
50efceee 32687 PyObject *swig_obj[1] ;
554f62e9 32688
50efceee
RD
32689 if (!args) SWIG_fail;
32690 swig_obj[0] = args;
32691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 32692 if (!SWIG_IsOK(res1)) {
50efceee 32693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 32694 }
50efceee 32695 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32698 delete arg1;
32699
554f62e9
RD
32700 wxPyEndAllowThreads(__tstate);
32701 if (PyErr_Occurred()) SWIG_fail;
32702 }
32703 resultobj = SWIG_Py_Void();
32704 return resultobj;
32705fail:
32706 return NULL;
32707}
32708
32709
50efceee
RD
32710SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32711 PyObject *obj;
32712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32713 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32714 return SWIG_Py_Void();
32715}
32716
32717SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32718 return SWIG_Python_InitShadowInstance(args);
32719}
32720
554f62e9
RD
32721SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32722 PyObject *resultobj = 0;
32723 wxPenList *arg1 = (wxPenList *) 0 ;
32724 wxColour *arg2 = 0 ;
32725 int arg3 ;
32726 int arg4 ;
32727 wxPen *result = 0 ;
32728 void *argp1 = 0 ;
32729 int res1 = 0 ;
32730 wxColour temp2 ;
32731 int val3 ;
32732 int ecode3 = 0 ;
32733 int val4 ;
32734 int ecode4 = 0 ;
32735 PyObject * obj0 = 0 ;
32736 PyObject * obj1 = 0 ;
32737 PyObject * obj2 = 0 ;
32738 PyObject * obj3 = 0 ;
32739 char * kwnames[] = {
32740 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32741 };
32742
32743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32745 if (!SWIG_IsOK(res1)) {
32746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32747 }
32748 arg1 = reinterpret_cast< wxPenList * >(argp1);
32749 {
32750 arg2 = &temp2;
32751 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32752 }
32753 ecode3 = SWIG_AsVal_int(obj2, &val3);
32754 if (!SWIG_IsOK(ecode3)) {
32755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32756 }
32757 arg3 = static_cast< int >(val3);
32758 ecode4 = SWIG_AsVal_int(obj3, &val4);
32759 if (!SWIG_IsOK(ecode4)) {
32760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32761 }
32762 arg4 = static_cast< int >(val4);
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32770 return resultobj;
32771fail:
32772 return NULL;
32773}
32774
32775
50efceee 32776SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32777 PyObject *resultobj = 0;
32778 wxPenList *arg1 = (wxPenList *) 0 ;
32779 wxPen *arg2 = (wxPen *) 0 ;
32780 void *argp1 = 0 ;
32781 int res1 = 0 ;
32782 void *argp2 = 0 ;
32783 int res2 = 0 ;
32784 PyObject * obj0 = 0 ;
32785 PyObject * obj1 = 0 ;
32786 char * kwnames[] = {
32787 (char *) "self",(char *) "pen", NULL
32788 };
32789
50efceee 32790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
32791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32792 if (!SWIG_IsOK(res1)) {
50efceee 32793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32794 }
32795 arg1 = reinterpret_cast< wxPenList * >(argp1);
32796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32797 if (!SWIG_IsOK(res2)) {
50efceee 32798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
32799 }
32800 arg2 = reinterpret_cast< wxPen * >(argp2);
32801 {
32802 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32803 (arg1)->AddPen(arg2);
554f62e9
RD
32804 wxPyEndAllowThreads(__tstate);
32805 if (PyErr_Occurred()) SWIG_fail;
32806 }
32807 resultobj = SWIG_Py_Void();
32808 return resultobj;
32809fail:
32810 return NULL;
32811}
32812
32813
50efceee 32814SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32815 PyObject *resultobj = 0;
32816 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 32817 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
32818 void *argp1 = 0 ;
32819 int res1 = 0 ;
50efceee
RD
32820 void *argp2 = 0 ;
32821 int res2 = 0 ;
32822 PyObject * obj0 = 0 ;
32823 PyObject * obj1 = 0 ;
32824 char * kwnames[] = {
32825 (char *) "self",(char *) "pen", NULL
32826 };
554f62e9 32827
50efceee
RD
32828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 32830 if (!SWIG_IsOK(res1)) {
50efceee 32831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32832 }
32833 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32835 if (!SWIG_IsOK(res2)) {
32836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32837 }
32838 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
32839 {
32840 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32841 (arg1)->RemovePen(arg2);
554f62e9
RD
32842 wxPyEndAllowThreads(__tstate);
32843 if (PyErr_Occurred()) SWIG_fail;
32844 }
50efceee 32845 resultobj = SWIG_Py_Void();
554f62e9
RD
32846 return resultobj;
32847fail:
32848 return NULL;
32849}
32850
32851
32852SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32853 PyObject *obj;
32854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32855 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32856 return SWIG_Py_Void();
32857}
32858
50efceee
RD
32859SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32860 PyObject *resultobj = 0;
32861 wxBrushList *arg1 = (wxBrushList *) 0 ;
32862 wxColour *arg2 = 0 ;
32863 int arg3 = (int) wxSOLID ;
32864 wxBrush *result = 0 ;
32865 void *argp1 = 0 ;
32866 int res1 = 0 ;
32867 wxColour temp2 ;
32868 int val3 ;
32869 int ecode3 = 0 ;
32870 PyObject * obj0 = 0 ;
32871 PyObject * obj1 = 0 ;
32872 PyObject * obj2 = 0 ;
32873 char * kwnames[] = {
32874 (char *) "self",(char *) "colour",(char *) "style", NULL
32875 };
32876
32877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32879 if (!SWIG_IsOK(res1)) {
32880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32881 }
32882 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32883 {
32884 arg2 = &temp2;
32885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32886 }
32887 if (obj2) {
32888 ecode3 = SWIG_AsVal_int(obj2, &val3);
32889 if (!SWIG_IsOK(ecode3)) {
32890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32891 }
32892 arg3 = static_cast< int >(val3);
32893 }
32894 {
32895 PyThreadState* __tstate = wxPyBeginAllowThreads();
32896 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32897 wxPyEndAllowThreads(__tstate);
32898 if (PyErr_Occurred()) SWIG_fail;
32899 }
32900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32901 return resultobj;
32902fail:
32903 return NULL;
32904}
32905
32906
554f62e9
RD
32907SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32908 PyObject *resultobj = 0;
32909 wxBrushList *arg1 = (wxBrushList *) 0 ;
32910 wxBrush *arg2 = (wxBrush *) 0 ;
32911 void *argp1 = 0 ;
32912 int res1 = 0 ;
32913 void *argp2 = 0 ;
32914 int res2 = 0 ;
32915 PyObject * obj0 = 0 ;
32916 PyObject * obj1 = 0 ;
32917 char * kwnames[] = {
32918 (char *) "self",(char *) "brush", NULL
32919 };
32920
32921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32923 if (!SWIG_IsOK(res1)) {
32924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32925 }
32926 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32928 if (!SWIG_IsOK(res2)) {
32929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32930 }
32931 arg2 = reinterpret_cast< wxBrush * >(argp2);
32932 {
32933 PyThreadState* __tstate = wxPyBeginAllowThreads();
32934 (arg1)->AddBrush(arg2);
32935 wxPyEndAllowThreads(__tstate);
32936 if (PyErr_Occurred()) SWIG_fail;
32937 }
32938 resultobj = SWIG_Py_Void();
32939 return resultobj;
32940fail:
32941 return NULL;
32942}
32943
32944
50efceee 32945SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32946 PyObject *resultobj = 0;
32947 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32948 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
32949 void *argp1 = 0 ;
32950 int res1 = 0 ;
50efceee
RD
32951 void *argp2 = 0 ;
32952 int res2 = 0 ;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32955 char * kwnames[] = {
32956 (char *) "self",(char *) "brush", NULL
32957 };
32958
32959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32961 if (!SWIG_IsOK(res1)) {
32962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32963 }
32964 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32966 if (!SWIG_IsOK(res2)) {
32967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32968 }
32969 arg2 = reinterpret_cast< wxBrush * >(argp2);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 (arg1)->RemoveBrush(arg2);
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 resultobj = SWIG_Py_Void();
32977 return resultobj;
32978fail:
32979 return NULL;
32980}
32981
32982
32983SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32984 PyObject *obj;
32985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32986 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32987 return SWIG_Py_Void();
32988}
32989
32990SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32991 PyObject *resultobj = 0;
32992 wxFontList *arg1 = (wxFontList *) 0 ;
32993 int arg2 ;
32994 int arg3 ;
32995 int arg4 ;
32996 int arg5 ;
32997 bool arg6 = (bool) false ;
32998 wxString const &arg7_defvalue = wxPyEmptyString ;
32999 wxString *arg7 = (wxString *) &arg7_defvalue ;
33000 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33001 wxFont *result = 0 ;
33002 void *argp1 = 0 ;
33003 int res1 = 0 ;
33004 int val2 ;
33005 int ecode2 = 0 ;
554f62e9
RD
33006 int val3 ;
33007 int ecode3 = 0 ;
50efceee
RD
33008 int val4 ;
33009 int ecode4 = 0 ;
33010 int val5 ;
33011 int ecode5 = 0 ;
33012 bool val6 ;
33013 int ecode6 = 0 ;
33014 bool temp7 = false ;
33015 int val8 ;
33016 int ecode8 = 0 ;
554f62e9
RD
33017 PyObject * obj0 = 0 ;
33018 PyObject * obj1 = 0 ;
33019 PyObject * obj2 = 0 ;
50efceee
RD
33020 PyObject * obj3 = 0 ;
33021 PyObject * obj4 = 0 ;
33022 PyObject * obj5 = 0 ;
33023 PyObject * obj6 = 0 ;
33024 PyObject * obj7 = 0 ;
554f62e9 33025 char * kwnames[] = {
50efceee 33026 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
33027 };
33028
50efceee
RD
33029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33031 if (!SWIG_IsOK(res1)) {
50efceee 33032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33033 }
50efceee
RD
33034 arg1 = reinterpret_cast< wxFontList * >(argp1);
33035 ecode2 = SWIG_AsVal_int(obj1, &val2);
33036 if (!SWIG_IsOK(ecode2)) {
33037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33038 }
33039 arg2 = static_cast< int >(val2);
33040 ecode3 = SWIG_AsVal_int(obj2, &val3);
33041 if (!SWIG_IsOK(ecode3)) {
33042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33043 }
33044 arg3 = static_cast< int >(val3);
33045 ecode4 = SWIG_AsVal_int(obj3, &val4);
33046 if (!SWIG_IsOK(ecode4)) {
33047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33048 }
33049 arg4 = static_cast< int >(val4);
33050 ecode5 = SWIG_AsVal_int(obj4, &val5);
33051 if (!SWIG_IsOK(ecode5)) {
33052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33053 }
33054 arg5 = static_cast< int >(val5);
33055 if (obj5) {
33056 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33057 if (!SWIG_IsOK(ecode6)) {
33058 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33059 }
33060 arg6 = static_cast< bool >(val6);
554f62e9 33061 }
50efceee
RD
33062 if (obj6) {
33063 {
33064 arg7 = wxString_in_helper(obj6);
33065 if (arg7 == NULL) SWIG_fail;
33066 temp7 = true;
33067 }
33068 }
33069 if (obj7) {
33070 ecode8 = SWIG_AsVal_int(obj7, &val8);
33071 if (!SWIG_IsOK(ecode8)) {
33072 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 33073 }
50efceee 33074 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
33075 }
33076 {
33077 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33078 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
33079 wxPyEndAllowThreads(__tstate);
33080 if (PyErr_Occurred()) SWIG_fail;
33081 }
50efceee
RD
33082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33083 {
33084 if (temp7)
33085 delete arg7;
33086 }
554f62e9
RD
33087 return resultobj;
33088fail:
50efceee
RD
33089 {
33090 if (temp7)
33091 delete arg7;
33092 }
554f62e9
RD
33093 return NULL;
33094}
33095
33096
50efceee 33097SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33098 PyObject *resultobj = 0;
50efceee
RD
33099 wxFontList *arg1 = (wxFontList *) 0 ;
33100 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33101 void *argp1 = 0 ;
33102 int res1 = 0 ;
33103 void *argp2 = 0 ;
33104 int res2 = 0 ;
33105 PyObject * obj0 = 0 ;
33106 PyObject * obj1 = 0 ;
33107 char * kwnames[] = {
50efceee 33108 (char *) "self",(char *) "font", NULL
554f62e9
RD
33109 };
33110
50efceee
RD
33111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33113 if (!SWIG_IsOK(res1)) {
50efceee 33114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33115 }
50efceee
RD
33116 arg1 = reinterpret_cast< wxFontList * >(argp1);
33117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 33118 if (!SWIG_IsOK(res2)) {
50efceee 33119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 33120 }
50efceee 33121 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33124 (arg1)->AddFont(arg2);
554f62e9
RD
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_Py_Void();
33129 return resultobj;
33130fail:
33131 return NULL;
33132}
33133
33134
50efceee 33135SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33136 PyObject *resultobj = 0;
50efceee
RD
33137 wxFontList *arg1 = (wxFontList *) 0 ;
33138 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33139 void *argp1 = 0 ;
33140 int res1 = 0 ;
50efceee
RD
33141 void *argp2 = 0 ;
33142 int res2 = 0 ;
33143 PyObject * obj0 = 0 ;
33144 PyObject * obj1 = 0 ;
33145 char * kwnames[] = {
33146 (char *) "self",(char *) "font", NULL
33147 };
554f62e9 33148
50efceee
RD
33149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33151 if (!SWIG_IsOK(res1)) {
50efceee 33152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33153 }
50efceee
RD
33154 arg1 = reinterpret_cast< wxFontList * >(argp1);
33155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33156 if (!SWIG_IsOK(res2)) {
33157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33158 }
33159 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33160 {
33161 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33162 (arg1)->RemoveFont(arg2);
554f62e9
RD
33163 wxPyEndAllowThreads(__tstate);
33164 if (PyErr_Occurred()) SWIG_fail;
33165 }
50efceee 33166 resultobj = SWIG_Py_Void();
554f62e9
RD
33167 return resultobj;
33168fail:
33169 return NULL;
33170}
33171
33172
50efceee 33173SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
33174 PyObject *obj;
33175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 33176 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
33177 return SWIG_Py_Void();
33178}
33179
33180SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33181 PyObject *resultobj = 0;
33182 wxColourDatabase *result = 0 ;
33183
33184 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33185 {
33186 if (!wxPyCheckForApp()) SWIG_fail;
33187 PyThreadState* __tstate = wxPyBeginAllowThreads();
33188 result = (wxColourDatabase *)new wxColourDatabase();
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33193 return resultobj;
33194fail:
33195 return NULL;
33196}
33197
33198
33199SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33200 PyObject *resultobj = 0;
33201 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 PyObject *swig_obj[1] ;
33205
33206 if (!args) SWIG_fail;
33207 swig_obj[0] = args;
33208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33209 if (!SWIG_IsOK(res1)) {
33210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33211 }
33212 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33213 {
33214 PyThreadState* __tstate = wxPyBeginAllowThreads();
33215 delete arg1;
33216
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = SWIG_Py_Void();
33221 return resultobj;
33222fail:
33223 return NULL;
33224}
33225
33226
33227SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj = 0;
33229 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33230 wxString *arg2 = 0 ;
33231 wxColour result;
33232 void *argp1 = 0 ;
33233 int res1 = 0 ;
33234 bool temp2 = false ;
33235 PyObject * obj0 = 0 ;
33236 PyObject * obj1 = 0 ;
33237 char * kwnames[] = {
33238 (char *) "self",(char *) "name", NULL
33239 };
33240
33241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33243 if (!SWIG_IsOK(res1)) {
33244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33245 }
33246 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33247 {
33248 arg2 = wxString_in_helper(obj1);
33249 if (arg2 == NULL) SWIG_fail;
33250 temp2 = true;
33251 }
33252 {
33253 PyThreadState* __tstate = wxPyBeginAllowThreads();
33254 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33255 wxPyEndAllowThreads(__tstate);
33256 if (PyErr_Occurred()) SWIG_fail;
33257 }
33258 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33259 {
33260 if (temp2)
33261 delete arg2;
33262 }
33263 return resultobj;
33264fail:
33265 {
33266 if (temp2)
33267 delete arg2;
33268 }
33269 return NULL;
33270}
33271
33272
33273SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33274 PyObject *resultobj = 0;
33275 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33276 wxColour *arg2 = 0 ;
33277 wxString result;
33278 void *argp1 = 0 ;
33279 int res1 = 0 ;
33280 wxColour temp2 ;
33281 PyObject * obj0 = 0 ;
33282 PyObject * obj1 = 0 ;
33283 char * kwnames[] = {
33284 (char *) "self",(char *) "colour", NULL
33285 };
33286
33287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33291 }
33292 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33293 {
33294 arg2 = &temp2;
33295 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33296 }
33297 {
33298 PyThreadState* __tstate = wxPyBeginAllowThreads();
33299 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33300 wxPyEndAllowThreads(__tstate);
33301 if (PyErr_Occurred()) SWIG_fail;
33302 }
33303 {
33304#if wxUSE_UNICODE
33305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33306#else
33307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33308#endif
33309 }
33310 return resultobj;
33311fail:
33312 return NULL;
33313}
33314
33315
33316SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj = 0;
33318 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33319 wxString *arg2 = 0 ;
33320 wxColour *arg3 = 0 ;
33321 void *argp1 = 0 ;
33322 int res1 = 0 ;
33323 bool temp2 = false ;
33324 wxColour temp3 ;
33325 PyObject * obj0 = 0 ;
33326 PyObject * obj1 = 0 ;
33327 PyObject * obj2 = 0 ;
33328 char * kwnames[] = {
33329 (char *) "self",(char *) "name",(char *) "colour", NULL
33330 };
33331
33332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33334 if (!SWIG_IsOK(res1)) {
33335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33336 }
33337 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33338 {
33339 arg2 = wxString_in_helper(obj1);
33340 if (arg2 == NULL) SWIG_fail;
33341 temp2 = true;
33342 }
33343 {
33344 arg3 = &temp3;
33345 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33346 }
33347 {
33348 PyThreadState* __tstate = wxPyBeginAllowThreads();
33349 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33350 wxPyEndAllowThreads(__tstate);
33351 if (PyErr_Occurred()) SWIG_fail;
33352 }
33353 resultobj = SWIG_Py_Void();
33354 {
33355 if (temp2)
33356 delete arg2;
33357 }
33358 return resultobj;
33359fail:
33360 {
33361 if (temp2)
33362 delete arg2;
33363 }
33364 return NULL;
33365}
33366
33367
33368SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33369 PyObject *resultobj = 0;
33370 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33371 wxString *arg2 = 0 ;
33372 int arg3 ;
33373 int arg4 ;
33374 int arg5 ;
33375 void *argp1 = 0 ;
33376 int res1 = 0 ;
33377 bool temp2 = false ;
33378 int val3 ;
33379 int ecode3 = 0 ;
33380 int val4 ;
33381 int ecode4 = 0 ;
50efceee
RD
33382 int val5 ;
33383 int ecode5 = 0 ;
554f62e9
RD
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 PyObject * obj2 = 0 ;
33387 PyObject * obj3 = 0 ;
33388 PyObject * obj4 = 0 ;
554f62e9 33389 char * kwnames[] = {
50efceee 33390 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
33391 };
33392
50efceee
RD
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 33395 if (!SWIG_IsOK(res1)) {
50efceee
RD
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33397 }
33398 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33399 {
33400 arg2 = wxString_in_helper(obj1);
33401 if (arg2 == NULL) SWIG_fail;
33402 temp2 = true;
554f62e9 33403 }
554f62e9
RD
33404 ecode3 = SWIG_AsVal_int(obj2, &val3);
33405 if (!SWIG_IsOK(ecode3)) {
50efceee 33406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
33407 }
33408 arg3 = static_cast< int >(val3);
33409 ecode4 = SWIG_AsVal_int(obj3, &val4);
33410 if (!SWIG_IsOK(ecode4)) {
50efceee 33411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
33412 }
33413 arg4 = static_cast< int >(val4);
33414 ecode5 = SWIG_AsVal_int(obj4, &val5);
33415 if (!SWIG_IsOK(ecode5)) {
50efceee 33416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
33417 }
33418 arg5 = static_cast< int >(val5);
554f62e9
RD
33419 {
33420 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33421 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
33422 wxPyEndAllowThreads(__tstate);
33423 if (PyErr_Occurred()) SWIG_fail;
33424 }
50efceee 33425 resultobj = SWIG_Py_Void();
554f62e9 33426 {
50efceee
RD
33427 if (temp2)
33428 delete arg2;
554f62e9
RD
33429 }
33430 return resultobj;
33431fail:
33432 {
50efceee
RD
33433 if (temp2)
33434 delete arg2;
554f62e9
RD
33435 }
33436 return NULL;
33437}
33438
33439
50efceee
RD
33440SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33441 PyObject *obj;
33442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33443 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33444 return SWIG_Py_Void();
33445}
33446
33447SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33448 return SWIG_Python_InitShadowInstance(args);
33449}
33450
33451SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33452 PyObject *resultobj = 0;
50efceee 33453 wxFontList *result = 0 ;
554f62e9 33454
50efceee 33455 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33456 {
33457 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33458 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33459 wxPyEndAllowThreads(__tstate);
33460 if (PyErr_Occurred()) SWIG_fail;
33461 }
50efceee 33462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33463 return resultobj;
33464fail:
33465 return NULL;
33466}
33467
33468
50efceee 33469SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33470 PyObject *resultobj = 0;
50efceee 33471 wxPenList *result = 0 ;
554f62e9 33472
50efceee 33473 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33474 {
33475 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33476 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33477 wxPyEndAllowThreads(__tstate);
33478 if (PyErr_Occurred()) SWIG_fail;
33479 }
50efceee 33480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33481 return resultobj;
33482fail:
33483 return NULL;
33484}
33485
33486
50efceee
RD
33487SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33488 PyObject *resultobj = 0;
33489 wxBrushList *result = 0 ;
554f62e9 33490
50efceee
RD
33491 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33492 {
33493 PyThreadState* __tstate = wxPyBeginAllowThreads();
33494 result = (wxBrushList *)_wxPyInitTheBrushList();
33495 wxPyEndAllowThreads(__tstate);
33496 if (PyErr_Occurred()) SWIG_fail;
33497 }
33498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33499 return resultobj;
33500fail:
33501 return NULL;
554f62e9
RD
33502}
33503
33504
50efceee
RD
33505SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33506 PyObject *resultobj = 0;
33507 wxColourDatabase *result = 0 ;
554f62e9 33508
50efceee
RD
33509 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33510 {
33511 PyThreadState* __tstate = wxPyBeginAllowThreads();
33512 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33513 wxPyEndAllowThreads(__tstate);
33514 if (PyErr_Occurred()) SWIG_fail;
33515 }
33516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33517 return resultobj;
33518fail:
33519 return NULL;
554f62e9
RD
33520}
33521
33522
33523SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33524 PyObject *resultobj = 0;
33525 wxEffects *result = 0 ;
33526
33527 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33528 {
33529 PyThreadState* __tstate = wxPyBeginAllowThreads();
33530 result = (wxEffects *)new wxEffects();
33531 wxPyEndAllowThreads(__tstate);
33532 if (PyErr_Occurred()) SWIG_fail;
33533 }
33534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33535 return resultobj;
33536fail:
33537 return NULL;
33538}
33539
33540
33541SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33542 PyObject *resultobj = 0;
33543 wxEffects *arg1 = (wxEffects *) 0 ;
33544 wxColour result;
33545 void *argp1 = 0 ;
33546 int res1 = 0 ;
33547 PyObject *swig_obj[1] ;
33548
33549 if (!args) SWIG_fail;
33550 swig_obj[0] = args;
33551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33552 if (!SWIG_IsOK(res1)) {
33553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33554 }
33555 arg1 = reinterpret_cast< wxEffects * >(argp1);
33556 {
33557 PyThreadState* __tstate = wxPyBeginAllowThreads();
33558 result = ((wxEffects const *)arg1)->GetHighlightColour();
33559 wxPyEndAllowThreads(__tstate);
33560 if (PyErr_Occurred()) SWIG_fail;
33561 }
33562 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33563 return resultobj;
33564fail:
33565 return NULL;
33566}
33567
33568
33569SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33570 PyObject *resultobj = 0;
33571 wxEffects *arg1 = (wxEffects *) 0 ;
33572 wxColour result;
33573 void *argp1 = 0 ;
33574 int res1 = 0 ;
33575 PyObject *swig_obj[1] ;
33576
33577 if (!args) SWIG_fail;
33578 swig_obj[0] = args;
33579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33580 if (!SWIG_IsOK(res1)) {
33581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33582 }
33583 arg1 = reinterpret_cast< wxEffects * >(argp1);
33584 {
33585 PyThreadState* __tstate = wxPyBeginAllowThreads();
33586 result = ((wxEffects const *)arg1)->GetLightShadow();
33587 wxPyEndAllowThreads(__tstate);
33588 if (PyErr_Occurred()) SWIG_fail;
33589 }
33590 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33591 return resultobj;
33592fail:
33593 return NULL;
33594}
33595
33596
33597SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33598 PyObject *resultobj = 0;
33599 wxEffects *arg1 = (wxEffects *) 0 ;
33600 wxColour result;
33601 void *argp1 = 0 ;
33602 int res1 = 0 ;
33603 PyObject *swig_obj[1] ;
33604
33605 if (!args) SWIG_fail;
33606 swig_obj[0] = args;
33607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33608 if (!SWIG_IsOK(res1)) {
33609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33610 }
33611 arg1 = reinterpret_cast< wxEffects * >(argp1);
33612 {
33613 PyThreadState* __tstate = wxPyBeginAllowThreads();
33614 result = ((wxEffects const *)arg1)->GetFaceColour();
33615 wxPyEndAllowThreads(__tstate);
33616 if (PyErr_Occurred()) SWIG_fail;
33617 }
33618 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33619 return resultobj;
33620fail:
33621 return NULL;
33622}
33623
33624
33625SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33626 PyObject *resultobj = 0;
33627 wxEffects *arg1 = (wxEffects *) 0 ;
33628 wxColour result;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 PyObject *swig_obj[1] ;
33632
33633 if (!args) SWIG_fail;
33634 swig_obj[0] = args;
33635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33636 if (!SWIG_IsOK(res1)) {
33637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33638 }
33639 arg1 = reinterpret_cast< wxEffects * >(argp1);
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 result = ((wxEffects const *)arg1)->GetMediumShadow();
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33647 return resultobj;
33648fail:
33649 return NULL;
33650}
33651
33652
33653SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33654 PyObject *resultobj = 0;
33655 wxEffects *arg1 = (wxEffects *) 0 ;
33656 wxColour result;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 PyObject *swig_obj[1] ;
33660
33661 if (!args) SWIG_fail;
33662 swig_obj[0] = args;
33663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33664 if (!SWIG_IsOK(res1)) {
33665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33666 }
33667 arg1 = reinterpret_cast< wxEffects * >(argp1);
33668 {
33669 PyThreadState* __tstate = wxPyBeginAllowThreads();
33670 result = ((wxEffects const *)arg1)->GetDarkShadow();
33671 wxPyEndAllowThreads(__tstate);
33672 if (PyErr_Occurred()) SWIG_fail;
33673 }
33674 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33675 return resultobj;
33676fail:
33677 return NULL;
33678}
33679
33680
33681SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33682 PyObject *resultobj = 0;
33683 wxEffects *arg1 = (wxEffects *) 0 ;
33684 wxColour *arg2 = 0 ;
33685 void *argp1 = 0 ;
33686 int res1 = 0 ;
33687 wxColour temp2 ;
33688 PyObject * obj0 = 0 ;
33689 PyObject * obj1 = 0 ;
33690 char * kwnames[] = {
33691 (char *) "self",(char *) "c", NULL
33692 };
33693
33694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33696 if (!SWIG_IsOK(res1)) {
33697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33698 }
33699 arg1 = reinterpret_cast< wxEffects * >(argp1);
33700 {
33701 arg2 = &temp2;
33702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33703 }
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_Py_Void();
33711 return resultobj;
33712fail:
33713 return NULL;
33714}
33715
33716
33717SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33718 PyObject *resultobj = 0;
33719 wxEffects *arg1 = (wxEffects *) 0 ;
33720 wxColour *arg2 = 0 ;
33721 void *argp1 = 0 ;
33722 int res1 = 0 ;
33723 wxColour temp2 ;
33724 PyObject * obj0 = 0 ;
33725 PyObject * obj1 = 0 ;
33726 char * kwnames[] = {
33727 (char *) "self",(char *) "c", NULL
33728 };
33729
33730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33734 }
33735 arg1 = reinterpret_cast< wxEffects * >(argp1);
33736 {
33737 arg2 = &temp2;
33738 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33739 }
33740 {
33741 PyThreadState* __tstate = wxPyBeginAllowThreads();
33742 (arg1)->SetLightShadow((wxColour const &)*arg2);
33743 wxPyEndAllowThreads(__tstate);
33744 if (PyErr_Occurred()) SWIG_fail;
33745 }
33746 resultobj = SWIG_Py_Void();
33747 return resultobj;
33748fail:
33749 return NULL;
33750}
33751
33752
33753SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33754 PyObject *resultobj = 0;
33755 wxEffects *arg1 = (wxEffects *) 0 ;
33756 wxColour *arg2 = 0 ;
33757 void *argp1 = 0 ;
33758 int res1 = 0 ;
33759 wxColour temp2 ;
33760 PyObject * obj0 = 0 ;
33761 PyObject * obj1 = 0 ;
33762 char * kwnames[] = {
33763 (char *) "self",(char *) "c", NULL
33764 };
33765
33766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33768 if (!SWIG_IsOK(res1)) {
33769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33770 }
33771 arg1 = reinterpret_cast< wxEffects * >(argp1);
33772 {
33773 arg2 = &temp2;
33774 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33775 }
33776 {
33777 PyThreadState* __tstate = wxPyBeginAllowThreads();
33778 (arg1)->SetFaceColour((wxColour const &)*arg2);
33779 wxPyEndAllowThreads(__tstate);
33780 if (PyErr_Occurred()) SWIG_fail;
33781 }
33782 resultobj = SWIG_Py_Void();
33783 return resultobj;
33784fail:
33785 return NULL;
33786}
33787
33788
33789SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33790 PyObject *resultobj = 0;
33791 wxEffects *arg1 = (wxEffects *) 0 ;
33792 wxColour *arg2 = 0 ;
33793 void *argp1 = 0 ;
33794 int res1 = 0 ;
33795 wxColour temp2 ;
33796 PyObject * obj0 = 0 ;
33797 PyObject * obj1 = 0 ;
33798 char * kwnames[] = {
33799 (char *) "self",(char *) "c", NULL
33800 };
33801
33802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33804 if (!SWIG_IsOK(res1)) {
33805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33806 }
33807 arg1 = reinterpret_cast< wxEffects * >(argp1);
33808 {
33809 arg2 = &temp2;
33810 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33811 }
33812 {
33813 PyThreadState* __tstate = wxPyBeginAllowThreads();
33814 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33815 wxPyEndAllowThreads(__tstate);
33816 if (PyErr_Occurred()) SWIG_fail;
33817 }
33818 resultobj = SWIG_Py_Void();
33819 return resultobj;
33820fail:
33821 return NULL;
33822}
33823
33824
33825SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33826 PyObject *resultobj = 0;
33827 wxEffects *arg1 = (wxEffects *) 0 ;
33828 wxColour *arg2 = 0 ;
33829 void *argp1 = 0 ;
33830 int res1 = 0 ;
33831 wxColour temp2 ;
33832 PyObject * obj0 = 0 ;
33833 PyObject * obj1 = 0 ;
33834 char * kwnames[] = {
33835 (char *) "self",(char *) "c", NULL
33836 };
33837
33838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33840 if (!SWIG_IsOK(res1)) {
33841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33842 }
33843 arg1 = reinterpret_cast< wxEffects * >(argp1);
33844 {
33845 arg2 = &temp2;
33846 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33847 }
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
33850 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856fail:
33857 return NULL;
33858}
33859
33860
33861SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33862 PyObject *resultobj = 0;
33863 wxEffects *arg1 = (wxEffects *) 0 ;
33864 wxColour *arg2 = 0 ;
33865 wxColour *arg3 = 0 ;
33866 wxColour *arg4 = 0 ;
33867 wxColour *arg5 = 0 ;
33868 wxColour *arg6 = 0 ;
33869 void *argp1 = 0 ;
33870 int res1 = 0 ;
33871 wxColour temp2 ;
33872 wxColour temp3 ;
33873 wxColour temp4 ;
33874 wxColour temp5 ;
33875 wxColour temp6 ;
33876 PyObject * obj0 = 0 ;
33877 PyObject * obj1 = 0 ;
33878 PyObject * obj2 = 0 ;
33879 PyObject * obj3 = 0 ;
33880 PyObject * obj4 = 0 ;
33881 PyObject * obj5 = 0 ;
33882 char * kwnames[] = {
33883 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33884 };
33885
33886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33888 if (!SWIG_IsOK(res1)) {
33889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33890 }
33891 arg1 = reinterpret_cast< wxEffects * >(argp1);
33892 {
33893 arg2 = &temp2;
33894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33895 }
33896 {
33897 arg3 = &temp3;
33898 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33899 }
33900 {
33901 arg4 = &temp4;
33902 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33903 }
33904 {
33905 arg5 = &temp5;
33906 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33907 }
33908 {
33909 arg6 = &temp6;
33910 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33911 }
33912 {
33913 PyThreadState* __tstate = wxPyBeginAllowThreads();
33914 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33915 wxPyEndAllowThreads(__tstate);
33916 if (PyErr_Occurred()) SWIG_fail;
33917 }
33918 resultobj = SWIG_Py_Void();
33919 return resultobj;
33920fail:
33921 return NULL;
33922}
33923
33924
33925SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33926 PyObject *resultobj = 0;
33927 wxEffects *arg1 = (wxEffects *) 0 ;
33928 wxDC *arg2 = 0 ;
33929 wxRect *arg3 = 0 ;
33930 int arg4 = (int) 1 ;
33931 void *argp1 = 0 ;
33932 int res1 = 0 ;
33933 void *argp2 = 0 ;
33934 int res2 = 0 ;
33935 wxRect temp3 ;
33936 int val4 ;
33937 int ecode4 = 0 ;
33938 PyObject * obj0 = 0 ;
33939 PyObject * obj1 = 0 ;
33940 PyObject * obj2 = 0 ;
33941 PyObject * obj3 = 0 ;
33942 char * kwnames[] = {
33943 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33944 };
33945
33946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33948 if (!SWIG_IsOK(res1)) {
33949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33950 }
33951 arg1 = reinterpret_cast< wxEffects * >(argp1);
33952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33953 if (!SWIG_IsOK(res2)) {
33954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33955 }
33956 if (!argp2) {
33957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33958 }
33959 arg2 = reinterpret_cast< wxDC * >(argp2);
33960 {
33961 arg3 = &temp3;
33962 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33963 }
33964 if (obj3) {
33965 ecode4 = SWIG_AsVal_int(obj3, &val4);
33966 if (!SWIG_IsOK(ecode4)) {
33967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33968 }
33969 arg4 = static_cast< int >(val4);
33970 }
33971 {
33972 PyThreadState* __tstate = wxPyBeginAllowThreads();
33973 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33974 wxPyEndAllowThreads(__tstate);
33975 if (PyErr_Occurred()) SWIG_fail;
33976 }
33977 resultobj = SWIG_Py_Void();
33978 return resultobj;
33979fail:
33980 return NULL;
33981}
33982
33983
33984SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33985 PyObject *resultobj = 0;
33986 wxEffects *arg1 = (wxEffects *) 0 ;
33987 wxRect *arg2 = 0 ;
33988 wxDC *arg3 = 0 ;
33989 wxBitmap *arg4 = 0 ;
33990 bool result;
33991 void *argp1 = 0 ;
33992 int res1 = 0 ;
33993 wxRect temp2 ;
33994 void *argp3 = 0 ;
33995 int res3 = 0 ;
33996 void *argp4 = 0 ;
33997 int res4 = 0 ;
33998 PyObject * obj0 = 0 ;
33999 PyObject * obj1 = 0 ;
34000 PyObject * obj2 = 0 ;
34001 PyObject * obj3 = 0 ;
34002 char * kwnames[] = {
34003 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34004 };
34005
34006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34010 }
34011 arg1 = reinterpret_cast< wxEffects * >(argp1);
34012 {
34013 arg2 = &temp2;
34014 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34015 }
34016 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34017 if (!SWIG_IsOK(res3)) {
34018 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34019 }
34020 if (!argp3) {
34021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34022 }
34023 arg3 = reinterpret_cast< wxDC * >(argp3);
34024 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34025 if (!SWIG_IsOK(res4)) {
34026 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34027 }
34028 if (!argp4) {
34029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34030 }
34031 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34032 {
34033 PyThreadState* __tstate = wxPyBeginAllowThreads();
34034 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34035 wxPyEndAllowThreads(__tstate);
34036 if (PyErr_Occurred()) SWIG_fail;
34037 }
34038 {
34039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34040 }
34041 return resultobj;
34042fail:
34043 return NULL;
34044}
34045
34046
34047SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34048 PyObject *obj;
34049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34050 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34051 return SWIG_Py_Void();
34052}
34053
34054SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34055 return SWIG_Python_InitShadowInstance(args);
34056}
34057
34058SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34059 PyObject *resultobj = 0;
34060 int arg1 ;
34061 int arg2 ;
34062 bool arg3 ;
34063 wxSplitterRenderParams *result = 0 ;
34064 int val1 ;
34065 int ecode1 = 0 ;
34066 int val2 ;
34067 int ecode2 = 0 ;
34068 bool val3 ;
34069 int ecode3 = 0 ;
34070 PyObject * obj0 = 0 ;
34071 PyObject * obj1 = 0 ;
34072 PyObject * obj2 = 0 ;
34073 char * kwnames[] = {
34074 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34075 };
34076
34077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34078 ecode1 = SWIG_AsVal_int(obj0, &val1);
34079 if (!SWIG_IsOK(ecode1)) {
34080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34081 }
34082 arg1 = static_cast< int >(val1);
34083 ecode2 = SWIG_AsVal_int(obj1, &val2);
34084 if (!SWIG_IsOK(ecode2)) {
34085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34086 }
34087 arg2 = static_cast< int >(val2);
34088 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34089 if (!SWIG_IsOK(ecode3)) {
34090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34091 }
34092 arg3 = static_cast< bool >(val3);
34093 {
34094 PyThreadState* __tstate = wxPyBeginAllowThreads();
34095 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34096 wxPyEndAllowThreads(__tstate);
34097 if (PyErr_Occurred()) SWIG_fail;
34098 }
34099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34100 return resultobj;
34101fail:
34102 return NULL;
34103}
34104
34105
34106SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34107 PyObject *resultobj = 0;
34108 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34109 void *argp1 = 0 ;
34110 int res1 = 0 ;
34111 PyObject *swig_obj[1] ;
34112
34113 if (!args) SWIG_fail;
34114 swig_obj[0] = args;
34115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34116 if (!SWIG_IsOK(res1)) {
34117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34118 }
34119 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34120 {
34121 PyThreadState* __tstate = wxPyBeginAllowThreads();
34122 delete arg1;
34123
34124 wxPyEndAllowThreads(__tstate);
34125 if (PyErr_Occurred()) SWIG_fail;
34126 }
34127 resultobj = SWIG_Py_Void();
34128 return resultobj;
34129fail:
34130 return NULL;
34131}
34132
34133
34134SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34135 PyObject *resultobj = 0;
34136 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34137 int result;
34138 void *argp1 = 0 ;
34139 int res1 = 0 ;
34140 PyObject *swig_obj[1] ;
34141
34142 if (!args) SWIG_fail;
34143 swig_obj[0] = args;
34144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34147 }
34148 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34149 result = (int)(int) ((arg1)->widthSash);
34150 resultobj = SWIG_From_int(static_cast< int >(result));
34151 return resultobj;
34152fail:
34153 return NULL;
34154}
34155
34156
34157SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34158 PyObject *resultobj = 0;
34159 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34160 int result;
34161 void *argp1 = 0 ;
34162 int res1 = 0 ;
34163 PyObject *swig_obj[1] ;
34164
34165 if (!args) SWIG_fail;
34166 swig_obj[0] = args;
34167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34168 if (!SWIG_IsOK(res1)) {
34169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34170 }
34171 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34172 result = (int)(int) ((arg1)->border);
34173 resultobj = SWIG_From_int(static_cast< int >(result));
34174 return resultobj;
34175fail:
34176 return NULL;
34177}
34178
34179
34180SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34181 PyObject *resultobj = 0;
34182 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34183 bool result;
34184 void *argp1 = 0 ;
34185 int res1 = 0 ;
34186 PyObject *swig_obj[1] ;
34187
34188 if (!args) SWIG_fail;
34189 swig_obj[0] = args;
34190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34191 if (!SWIG_IsOK(res1)) {
34192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34193 }
34194 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34195 result = (bool)(bool) ((arg1)->isHotSensitive);
34196 resultobj = SWIG_From_bool(static_cast< bool >(result));
34197 return resultobj;
34198fail:
34199 return NULL;
34200}
34201
34202
34203SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34204 PyObject *obj;
34205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34206 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34207 return SWIG_Py_Void();
34208}
34209
34210SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34211 return SWIG_Python_InitShadowInstance(args);
34212}
34213
33d6fd3b
RD
34214SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34215 PyObject *resultobj = 0;
34216 wxHeaderButtonParams *result = 0 ;
34217
34218 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34222 wxPyEndAllowThreads(__tstate);
34223 if (PyErr_Occurred()) SWIG_fail;
34224 }
34225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34226 return resultobj;
34227fail:
34228 return NULL;
34229}
34230
34231
34232SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34233 PyObject *resultobj = 0;
34234 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34235 void *argp1 = 0 ;
34236 int res1 = 0 ;
34237 PyObject *swig_obj[1] ;
34238
34239 if (!args) SWIG_fail;
34240 swig_obj[0] = args;
34241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34242 if (!SWIG_IsOK(res1)) {
34243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34244 }
34245 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34246 {
34247 PyThreadState* __tstate = wxPyBeginAllowThreads();
34248 delete arg1;
34249
34250 wxPyEndAllowThreads(__tstate);
34251 if (PyErr_Occurred()) SWIG_fail;
34252 }
34253 resultobj = SWIG_Py_Void();
34254 return resultobj;
34255fail:
34256 return NULL;
34257}
34258
34259
34260SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34261 PyObject *resultobj = 0;
34262 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34263 wxColour *arg2 = (wxColour *) 0 ;
34264 void *argp1 = 0 ;
34265 int res1 = 0 ;
34266 wxColour temp2 ;
34267 PyObject *swig_obj[2] ;
34268
34269 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34271 if (!SWIG_IsOK(res1)) {
34272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34273 }
34274 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34275 {
34276 arg2 = &temp2;
34277 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34278 }
34279 if (arg1) (arg1)->m_arrowColour = *arg2;
34280
34281 resultobj = SWIG_Py_Void();
34282 return resultobj;
34283fail:
34284 return NULL;
34285}
34286
34287
34288SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34289 PyObject *resultobj = 0;
34290 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34291 wxColour *result = 0 ;
34292 void *argp1 = 0 ;
34293 int res1 = 0 ;
34294 PyObject *swig_obj[1] ;
34295
34296 if (!args) SWIG_fail;
34297 swig_obj[0] = args;
34298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34299 if (!SWIG_IsOK(res1)) {
34300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34301 }
34302 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34303 result = (wxColour *)& ((arg1)->m_arrowColour);
34304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34305 return resultobj;
34306fail:
34307 return NULL;
34308}
34309
34310
34311SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34312 PyObject *resultobj = 0;
34313 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34314 wxColour *arg2 = (wxColour *) 0 ;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 wxColour temp2 ;
34318 PyObject *swig_obj[2] ;
34319
34320 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34324 }
34325 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34326 {
34327 arg2 = &temp2;
34328 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34329 }
34330 if (arg1) (arg1)->m_selectionColour = *arg2;
34331
34332 resultobj = SWIG_Py_Void();
34333 return resultobj;
34334fail:
34335 return NULL;
34336}
34337
34338
34339SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34340 PyObject *resultobj = 0;
34341 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34342 wxColour *result = 0 ;
34343 void *argp1 = 0 ;
34344 int res1 = 0 ;
34345 PyObject *swig_obj[1] ;
34346
34347 if (!args) SWIG_fail;
34348 swig_obj[0] = args;
34349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34350 if (!SWIG_IsOK(res1)) {
34351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34352 }
34353 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34354 result = (wxColour *)& ((arg1)->m_selectionColour);
34355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34356 return resultobj;
34357fail:
34358 return NULL;
34359}
34360
34361
34362SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34363 PyObject *resultobj = 0;
34364 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34365 wxString *arg2 = (wxString *) 0 ;
34366 void *argp1 = 0 ;
34367 int res1 = 0 ;
34368 bool temp2 = false ;
34369 PyObject *swig_obj[2] ;
34370
34371 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34373 if (!SWIG_IsOK(res1)) {
34374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34375 }
34376 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34377 {
34378 arg2 = wxString_in_helper(swig_obj[1]);
34379 if (arg2 == NULL) SWIG_fail;
34380 temp2 = true;
34381 }
34382 if (arg1) (arg1)->m_labelText = *arg2;
34383
34384 resultobj = SWIG_Py_Void();
34385 {
34386 if (temp2)
34387 delete arg2;
34388 }
34389 return resultobj;
34390fail:
34391 {
34392 if (temp2)
34393 delete arg2;
34394 }
34395 return NULL;
34396}
34397
34398
34399SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34400 PyObject *resultobj = 0;
34401 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34402 wxString *result = 0 ;
34403 void *argp1 = 0 ;
34404 int res1 = 0 ;
34405 PyObject *swig_obj[1] ;
34406
34407 if (!args) SWIG_fail;
34408 swig_obj[0] = args;
34409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34410 if (!SWIG_IsOK(res1)) {
34411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34412 }
34413 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34414 result = (wxString *)& ((arg1)->m_labelText);
34415 {
34416#if wxUSE_UNICODE
34417 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34418#else
34419 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34420#endif
34421 }
34422 return resultobj;
34423fail:
34424 return NULL;
34425}
34426
34427
34428SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34429 PyObject *resultobj = 0;
34430 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34431 wxFont *arg2 = (wxFont *) 0 ;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 void *argp2 = 0 ;
34435 int res2 = 0 ;
34436 PyObject *swig_obj[2] ;
34437
34438 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34442 }
34443 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34444 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34445 if (!SWIG_IsOK(res2)) {
34446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34447 }
34448 arg2 = reinterpret_cast< wxFont * >(argp2);
34449 if (arg1) (arg1)->m_labelFont = *arg2;
34450
34451 resultobj = SWIG_Py_Void();
34452 return resultobj;
34453fail:
34454 return NULL;
34455}
34456
34457
34458SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34459 PyObject *resultobj = 0;
34460 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34461 wxFont *result = 0 ;
34462 void *argp1 = 0 ;
34463 int res1 = 0 ;
34464 PyObject *swig_obj[1] ;
34465
34466 if (!args) SWIG_fail;
34467 swig_obj[0] = args;
34468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34469 if (!SWIG_IsOK(res1)) {
34470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34471 }
34472 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34473 result = (wxFont *)& ((arg1)->m_labelFont);
34474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34475 return resultobj;
34476fail:
34477 return NULL;
34478}
34479
34480
34481SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34482 PyObject *resultobj = 0;
34483 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34484 wxColour *arg2 = (wxColour *) 0 ;
34485 void *argp1 = 0 ;
34486 int res1 = 0 ;
34487 wxColour temp2 ;
34488 PyObject *swig_obj[2] ;
34489
34490 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34492 if (!SWIG_IsOK(res1)) {
34493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34494 }
34495 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34496 {
34497 arg2 = &temp2;
34498 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34499 }
34500 if (arg1) (arg1)->m_labelColour = *arg2;
34501
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504fail:
34505 return NULL;
34506}
34507
34508
34509SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34510 PyObject *resultobj = 0;
34511 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34512 wxColour *result = 0 ;
34513 void *argp1 = 0 ;
34514 int res1 = 0 ;
34515 PyObject *swig_obj[1] ;
34516
34517 if (!args) SWIG_fail;
34518 swig_obj[0] = args;
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_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34522 }
34523 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34524 result = (wxColour *)& ((arg1)->m_labelColour);
34525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34526 return resultobj;
34527fail:
34528 return NULL;
34529}
34530
34531
34532SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34533 PyObject *resultobj = 0;
34534 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34535 wxBitmap *arg2 = (wxBitmap *) 0 ;
34536 void *argp1 = 0 ;
34537 int res1 = 0 ;
34538 void *argp2 = 0 ;
34539 int res2 = 0 ;
34540 PyObject *swig_obj[2] ;
34541
34542 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34544 if (!SWIG_IsOK(res1)) {
34545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34546 }
34547 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34548 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34549 if (!SWIG_IsOK(res2)) {
34550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34551 }
34552 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34553 if (arg1) (arg1)->m_labelBitmap = *arg2;
34554
34555 resultobj = SWIG_Py_Void();
34556 return resultobj;
34557fail:
34558 return NULL;
34559}
34560
34561
34562SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34563 PyObject *resultobj = 0;
34564 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34565 wxBitmap *result = 0 ;
34566 void *argp1 = 0 ;
34567 int res1 = 0 ;
34568 PyObject *swig_obj[1] ;
34569
34570 if (!args) SWIG_fail;
34571 swig_obj[0] = args;
34572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34573 if (!SWIG_IsOK(res1)) {
34574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34575 }
34576 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34577 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34579 return resultobj;
34580fail:
34581 return NULL;
34582}
34583
34584
34585SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34586 PyObject *resultobj = 0;
34587 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34588 int arg2 ;
34589 void *argp1 = 0 ;
34590 int res1 = 0 ;
34591 int val2 ;
34592 int ecode2 = 0 ;
34593 PyObject *swig_obj[2] ;
34594
34595 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34597 if (!SWIG_IsOK(res1)) {
34598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34599 }
34600 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34601 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34602 if (!SWIG_IsOK(ecode2)) {
34603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34604 }
34605 arg2 = static_cast< int >(val2);
34606 if (arg1) (arg1)->m_labelAlignment = arg2;
34607
34608 resultobj = SWIG_Py_Void();
34609 return resultobj;
34610fail:
34611 return NULL;
34612}
34613
34614
34615SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34616 PyObject *resultobj = 0;
34617 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34618 int result;
34619 void *argp1 = 0 ;
34620 int res1 = 0 ;
34621 PyObject *swig_obj[1] ;
34622
34623 if (!args) SWIG_fail;
34624 swig_obj[0] = args;
34625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34626 if (!SWIG_IsOK(res1)) {
34627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34628 }
34629 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34630 result = (int) ((arg1)->m_labelAlignment);
34631 resultobj = SWIG_From_int(static_cast< int >(result));
34632 return resultobj;
34633fail:
34634 return NULL;
34635}
34636
34637
34638SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34639 PyObject *obj;
34640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34641 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34642 return SWIG_Py_Void();
34643}
34644
34645SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34646 return SWIG_Python_InitShadowInstance(args);
34647}
34648
554f62e9
RD
34649SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34650 PyObject *resultobj = 0;
34651 int arg1 ;
34652 int arg2 ;
34653 wxRendererVersion *result = 0 ;
34654 int val1 ;
34655 int ecode1 = 0 ;
34656 int val2 ;
34657 int ecode2 = 0 ;
34658 PyObject * obj0 = 0 ;
34659 PyObject * obj1 = 0 ;
34660 char * kwnames[] = {
34661 (char *) "version_",(char *) "age_", NULL
34662 };
34663
34664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34665 ecode1 = SWIG_AsVal_int(obj0, &val1);
34666 if (!SWIG_IsOK(ecode1)) {
34667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34668 }
34669 arg1 = static_cast< int >(val1);
34670 ecode2 = SWIG_AsVal_int(obj1, &val2);
34671 if (!SWIG_IsOK(ecode2)) {
34672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34673 }
34674 arg2 = static_cast< int >(val2);
34675 {
34676 PyThreadState* __tstate = wxPyBeginAllowThreads();
34677 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34678 wxPyEndAllowThreads(__tstate);
34679 if (PyErr_Occurred()) SWIG_fail;
34680 }
34681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34682 return resultobj;
34683fail:
34684 return NULL;
34685}
34686
34687
34688SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34689 PyObject *resultobj = 0;
34690 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34691 void *argp1 = 0 ;
34692 int res1 = 0 ;
34693 PyObject *swig_obj[1] ;
34694
34695 if (!args) SWIG_fail;
34696 swig_obj[0] = args;
34697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34698 if (!SWIG_IsOK(res1)) {
34699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34700 }
34701 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34702 {
34703 PyThreadState* __tstate = wxPyBeginAllowThreads();
34704 delete arg1;
34705
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 resultobj = SWIG_Py_Void();
34710 return resultobj;
34711fail:
34712 return NULL;
34713}
34714
34715
34716SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34717 PyObject *resultobj = 0;
34718 wxRendererVersion *arg1 = 0 ;
34719 bool result;
34720 void *argp1 = 0 ;
34721 int res1 = 0 ;
34722 PyObject * obj0 = 0 ;
34723 char * kwnames[] = {
34724 (char *) "ver", NULL
34725 };
34726
34727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34728 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34729 if (!SWIG_IsOK(res1)) {
34730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34731 }
34732 if (!argp1) {
34733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34734 }
34735 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34736 {
34737 PyThreadState* __tstate = wxPyBeginAllowThreads();
34738 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34739 wxPyEndAllowThreads(__tstate);
34740 if (PyErr_Occurred()) SWIG_fail;
34741 }
34742 {
34743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34744 }
34745 return resultobj;
34746fail:
34747 return NULL;
34748}
34749
34750
34751SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34752 PyObject *resultobj = 0;
34753 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34754 int result;
34755 void *argp1 = 0 ;
34756 int res1 = 0 ;
34757 PyObject *swig_obj[1] ;
34758
34759 if (!args) SWIG_fail;
34760 swig_obj[0] = args;
34761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34762 if (!SWIG_IsOK(res1)) {
34763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34764 }
34765 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34766 result = (int)(int) ((arg1)->version);
34767 resultobj = SWIG_From_int(static_cast< int >(result));
34768 return resultobj;
34769fail:
34770 return NULL;
34771}
34772
34773
34774SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34775 PyObject *resultobj = 0;
34776 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34777 int result;
34778 void *argp1 = 0 ;
34779 int res1 = 0 ;
34780 PyObject *swig_obj[1] ;
34781
34782 if (!args) SWIG_fail;
34783 swig_obj[0] = args;
34784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34785 if (!SWIG_IsOK(res1)) {
34786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34787 }
34788 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34789 result = (int)(int) ((arg1)->age);
34790 resultobj = SWIG_From_int(static_cast< int >(result));
34791 return resultobj;
34792fail:
34793 return NULL;
34794}
34795
34796
34797SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34798 PyObject *obj;
34799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34800 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34801 return SWIG_Py_Void();
34802}
34803
34804SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34805 return SWIG_Python_InitShadowInstance(args);
34806}
34807
34808SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34809 PyObject *resultobj = 0;
34810 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34811 wxWindow *arg2 = (wxWindow *) 0 ;
34812 wxDC *arg3 = 0 ;
34813 wxRect *arg4 = 0 ;
34814 int arg5 = (int) 0 ;
33d6fd3b
RD
34815 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34816 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
34817 void *argp1 = 0 ;
34818 int res1 = 0 ;
34819 void *argp2 = 0 ;
34820 int res2 = 0 ;
34821 void *argp3 = 0 ;
34822 int res3 = 0 ;
34823 wxRect temp4 ;
34824 int val5 ;
34825 int ecode5 = 0 ;
33d6fd3b
RD
34826 int val6 ;
34827 int ecode6 = 0 ;
34828 void *argp7 = 0 ;
34829 int res7 = 0 ;
554f62e9
RD
34830 PyObject * obj0 = 0 ;
34831 PyObject * obj1 = 0 ;
34832 PyObject * obj2 = 0 ;
34833 PyObject * obj3 = 0 ;
34834 PyObject * obj4 = 0 ;
33d6fd3b
RD
34835 PyObject * obj5 = 0 ;
34836 PyObject * obj6 = 0 ;
554f62e9 34837 char * kwnames[] = {
33d6fd3b 34838 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
34839 };
34840
33d6fd3b 34841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
34842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34843 if (!SWIG_IsOK(res1)) {
34844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34845 }
34846 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34848 if (!SWIG_IsOK(res2)) {
34849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34850 }
34851 arg2 = reinterpret_cast< wxWindow * >(argp2);
34852 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34853 if (!SWIG_IsOK(res3)) {
34854 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34855 }
34856 if (!argp3) {
34857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34858 }
34859 arg3 = reinterpret_cast< wxDC * >(argp3);
34860 {
34861 arg4 = &temp4;
34862 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34863 }
34864 if (obj4) {
34865 ecode5 = SWIG_AsVal_int(obj4, &val5);
34866 if (!SWIG_IsOK(ecode5)) {
34867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34868 }
34869 arg5 = static_cast< int >(val5);
34870 }
33d6fd3b
RD
34871 if (obj5) {
34872 ecode6 = SWIG_AsVal_int(obj5, &val6);
34873 if (!SWIG_IsOK(ecode6)) {
34874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34875 }
34876 arg6 = static_cast< wxHeaderSortIconType >(val6);
34877 }
34878 if (obj6) {
34879 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34880 if (!SWIG_IsOK(res7)) {
34881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34882 }
34883 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34884 }
34885 {
34886 PyThreadState* __tstate = wxPyBeginAllowThreads();
34887 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34888 wxPyEndAllowThreads(__tstate);
34889 if (PyErr_Occurred()) SWIG_fail;
34890 }
34891 resultobj = SWIG_Py_Void();
34892 return resultobj;
34893fail:
34894 return NULL;
34895}
34896
34897
34898SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34899 PyObject *resultobj = 0;
34900 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34901 wxWindow *arg2 = (wxWindow *) 0 ;
34902 wxDC *arg3 = 0 ;
34903 wxRect *arg4 = 0 ;
34904 int arg5 = (int) 0 ;
34905 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34906 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34907 void *argp1 = 0 ;
34908 int res1 = 0 ;
34909 void *argp2 = 0 ;
34910 int res2 = 0 ;
34911 void *argp3 = 0 ;
34912 int res3 = 0 ;
34913 wxRect temp4 ;
34914 int val5 ;
34915 int ecode5 = 0 ;
34916 int val6 ;
34917 int ecode6 = 0 ;
34918 void *argp7 = 0 ;
34919 int res7 = 0 ;
34920 PyObject * obj0 = 0 ;
34921 PyObject * obj1 = 0 ;
34922 PyObject * obj2 = 0 ;
34923 PyObject * obj3 = 0 ;
34924 PyObject * obj4 = 0 ;
34925 PyObject * obj5 = 0 ;
34926 PyObject * obj6 = 0 ;
34927 char * kwnames[] = {
34928 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34929 };
34930
34931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34933 if (!SWIG_IsOK(res1)) {
34934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34935 }
34936 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34938 if (!SWIG_IsOK(res2)) {
34939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34940 }
34941 arg2 = reinterpret_cast< wxWindow * >(argp2);
34942 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34943 if (!SWIG_IsOK(res3)) {
34944 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34945 }
34946 if (!argp3) {
34947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34948 }
34949 arg3 = reinterpret_cast< wxDC * >(argp3);
34950 {
34951 arg4 = &temp4;
34952 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34953 }
34954 if (obj4) {
34955 ecode5 = SWIG_AsVal_int(obj4, &val5);
34956 if (!SWIG_IsOK(ecode5)) {
34957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34958 }
34959 arg5 = static_cast< int >(val5);
34960 }
34961 if (obj5) {
34962 ecode6 = SWIG_AsVal_int(obj5, &val6);
34963 if (!SWIG_IsOK(ecode6)) {
34964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34965 }
34966 arg6 = static_cast< wxHeaderSortIconType >(val6);
34967 }
34968 if (obj6) {
34969 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34970 if (!SWIG_IsOK(res7)) {
34971 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34972 }
34973 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34974 }
554f62e9
RD
34975 {
34976 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34977 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
34978 wxPyEndAllowThreads(__tstate);
34979 if (PyErr_Occurred()) SWIG_fail;
34980 }
34981 resultobj = SWIG_Py_Void();
34982 return resultobj;
34983fail:
34984 return NULL;
34985}
34986
34987
33d6fd3b
RD
34988SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34989 PyObject *resultobj = 0;
34990 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34991 wxWindow *arg2 = (wxWindow *) 0 ;
34992 int result;
34993 void *argp1 = 0 ;
34994 int res1 = 0 ;
34995 void *argp2 = 0 ;
34996 int res2 = 0 ;
34997 PyObject * obj0 = 0 ;
34998 PyObject * obj1 = 0 ;
34999 char * kwnames[] = {
35000 (char *) "self",(char *) "win", NULL
35001 };
35002
35003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35005 if (!SWIG_IsOK(res1)) {
35006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35007 }
35008 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35010 if (!SWIG_IsOK(res2)) {
35011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35012 }
35013 arg2 = reinterpret_cast< wxWindow * >(argp2);
35014 {
35015 PyThreadState* __tstate = wxPyBeginAllowThreads();
35016 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35017 wxPyEndAllowThreads(__tstate);
35018 if (PyErr_Occurred()) SWIG_fail;
35019 }
35020 resultobj = SWIG_From_int(static_cast< int >(result));
35021 return resultobj;
35022fail:
35023 return NULL;
35024}
35025
35026
554f62e9
RD
35027SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35028 PyObject *resultobj = 0;
35029 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35030 wxWindow *arg2 = (wxWindow *) 0 ;
35031 wxDC *arg3 = 0 ;
35032 wxRect *arg4 = 0 ;
35033 int arg5 = (int) 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 void *argp2 = 0 ;
35037 int res2 = 0 ;
35038 void *argp3 = 0 ;
35039 int res3 = 0 ;
35040 wxRect temp4 ;
35041 int val5 ;
35042 int ecode5 = 0 ;
35043 PyObject * obj0 = 0 ;
35044 PyObject * obj1 = 0 ;
35045 PyObject * obj2 = 0 ;
35046 PyObject * obj3 = 0 ;
35047 PyObject * obj4 = 0 ;
35048 char * kwnames[] = {
35049 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35050 };
35051
35052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35054 if (!SWIG_IsOK(res1)) {
35055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35056 }
35057 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35059 if (!SWIG_IsOK(res2)) {
35060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35061 }
35062 arg2 = reinterpret_cast< wxWindow * >(argp2);
35063 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35064 if (!SWIG_IsOK(res3)) {
35065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35066 }
35067 if (!argp3) {
35068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35069 }
35070 arg3 = reinterpret_cast< wxDC * >(argp3);
35071 {
35072 arg4 = &temp4;
35073 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35074 }
35075 if (obj4) {
35076 ecode5 = SWIG_AsVal_int(obj4, &val5);
35077 if (!SWIG_IsOK(ecode5)) {
35078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35079 }
35080 arg5 = static_cast< int >(val5);
35081 }
35082 {
35083 PyThreadState* __tstate = wxPyBeginAllowThreads();
35084 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35085 wxPyEndAllowThreads(__tstate);
35086 if (PyErr_Occurred()) SWIG_fail;
35087 }
35088 resultobj = SWIG_Py_Void();
35089 return resultobj;
35090fail:
35091 return NULL;
35092}
35093
35094
35095SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35096 PyObject *resultobj = 0;
35097 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35098 wxWindow *arg2 = (wxWindow *) 0 ;
35099 wxDC *arg3 = 0 ;
35100 wxRect *arg4 = 0 ;
35101 int arg5 = (int) 0 ;
35102 void *argp1 = 0 ;
35103 int res1 = 0 ;
35104 void *argp2 = 0 ;
35105 int res2 = 0 ;
35106 void *argp3 = 0 ;
35107 int res3 = 0 ;
35108 wxRect temp4 ;
35109 int val5 ;
35110 int ecode5 = 0 ;
35111 PyObject * obj0 = 0 ;
35112 PyObject * obj1 = 0 ;
35113 PyObject * obj2 = 0 ;
35114 PyObject * obj3 = 0 ;
35115 PyObject * obj4 = 0 ;
35116 char * kwnames[] = {
35117 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35118 };
35119
35120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35122 if (!SWIG_IsOK(res1)) {
35123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35124 }
35125 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35127 if (!SWIG_IsOK(res2)) {
35128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35129 }
35130 arg2 = reinterpret_cast< wxWindow * >(argp2);
35131 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35132 if (!SWIG_IsOK(res3)) {
35133 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35134 }
35135 if (!argp3) {
35136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35137 }
35138 arg3 = reinterpret_cast< wxDC * >(argp3);
35139 {
35140 arg4 = &temp4;
35141 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35142 }
35143 if (obj4) {
35144 ecode5 = SWIG_AsVal_int(obj4, &val5);
35145 if (!SWIG_IsOK(ecode5)) {
35146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35147 }
35148 arg5 = static_cast< int >(val5);
35149 }
35150 {
35151 PyThreadState* __tstate = wxPyBeginAllowThreads();
35152 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35153 wxPyEndAllowThreads(__tstate);
35154 if (PyErr_Occurred()) SWIG_fail;
35155 }
35156 resultobj = SWIG_Py_Void();
35157 return resultobj;
35158fail:
35159 return NULL;
35160}
35161
35162
35163SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35164 PyObject *resultobj = 0;
35165 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35166 wxWindow *arg2 = (wxWindow *) 0 ;
35167 wxDC *arg3 = 0 ;
35168 wxSize *arg4 = 0 ;
35169 int arg5 ;
35170 wxOrientation arg6 ;
35171 int arg7 = (int) 0 ;
35172 void *argp1 = 0 ;
35173 int res1 = 0 ;
35174 void *argp2 = 0 ;
35175 int res2 = 0 ;
35176 void *argp3 = 0 ;
35177 int res3 = 0 ;
35178 wxSize temp4 ;
35179 int val5 ;
35180 int ecode5 = 0 ;
35181 int val6 ;
35182 int ecode6 = 0 ;
35183 int val7 ;
35184 int ecode7 = 0 ;
35185 PyObject * obj0 = 0 ;
35186 PyObject * obj1 = 0 ;
35187 PyObject * obj2 = 0 ;
35188 PyObject * obj3 = 0 ;
35189 PyObject * obj4 = 0 ;
35190 PyObject * obj5 = 0 ;
35191 PyObject * obj6 = 0 ;
35192 char * kwnames[] = {
35193 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35194 };
35195
35196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35198 if (!SWIG_IsOK(res1)) {
35199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35200 }
35201 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35203 if (!SWIG_IsOK(res2)) {
35204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35205 }
35206 arg2 = reinterpret_cast< wxWindow * >(argp2);
35207 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35208 if (!SWIG_IsOK(res3)) {
35209 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35210 }
35211 if (!argp3) {
35212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35213 }
35214 arg3 = reinterpret_cast< wxDC * >(argp3);
35215 {
35216 arg4 = &temp4;
35217 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35218 }
35219 ecode5 = SWIG_AsVal_int(obj4, &val5);
35220 if (!SWIG_IsOK(ecode5)) {
35221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35222 }
35223 arg5 = static_cast< int >(val5);
35224 ecode6 = SWIG_AsVal_int(obj5, &val6);
35225 if (!SWIG_IsOK(ecode6)) {
35226 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35227 }
35228 arg6 = static_cast< wxOrientation >(val6);
35229 if (obj6) {
35230 ecode7 = SWIG_AsVal_int(obj6, &val7);
35231 if (!SWIG_IsOK(ecode7)) {
35232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35233 }
35234 arg7 = static_cast< int >(val7);
35235 }
35236 {
35237 PyThreadState* __tstate = wxPyBeginAllowThreads();
35238 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35239 wxPyEndAllowThreads(__tstate);
35240 if (PyErr_Occurred()) SWIG_fail;
35241 }
35242 resultobj = SWIG_Py_Void();
35243 return resultobj;
35244fail:
35245 return NULL;
35246}
35247
35248
35249SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35250 PyObject *resultobj = 0;
35251 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35252 wxWindow *arg2 = (wxWindow *) 0 ;
35253 wxDC *arg3 = 0 ;
35254 wxRect *arg4 = 0 ;
35255 int arg5 = (int) 0 ;
35256 void *argp1 = 0 ;
35257 int res1 = 0 ;
35258 void *argp2 = 0 ;
35259 int res2 = 0 ;
35260 void *argp3 = 0 ;
35261 int res3 = 0 ;
35262 wxRect temp4 ;
35263 int val5 ;
35264 int ecode5 = 0 ;
35265 PyObject * obj0 = 0 ;
35266 PyObject * obj1 = 0 ;
35267 PyObject * obj2 = 0 ;
35268 PyObject * obj3 = 0 ;
35269 PyObject * obj4 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35278 }
35279 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35281 if (!SWIG_IsOK(res2)) {
35282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35283 }
35284 arg2 = reinterpret_cast< wxWindow * >(argp2);
35285 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35286 if (!SWIG_IsOK(res3)) {
35287 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35288 }
35289 if (!argp3) {
35290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35291 }
35292 arg3 = reinterpret_cast< wxDC * >(argp3);
35293 {
35294 arg4 = &temp4;
35295 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35296 }
35297 if (obj4) {
35298 ecode5 = SWIG_AsVal_int(obj4, &val5);
35299 if (!SWIG_IsOK(ecode5)) {
35300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35301 }
35302 arg5 = static_cast< int >(val5);
35303 }
35304 {
35305 PyThreadState* __tstate = wxPyBeginAllowThreads();
35306 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35307 wxPyEndAllowThreads(__tstate);
35308 if (PyErr_Occurred()) SWIG_fail;
35309 }
35310 resultobj = SWIG_Py_Void();
35311 return resultobj;
35312fail:
35313 return NULL;
35314}
35315
35316
35317SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35318 PyObject *resultobj = 0;
35319 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35320 wxWindow *arg2 = (wxWindow *) 0 ;
35321 wxDC *arg3 = 0 ;
35322 wxRect *arg4 = 0 ;
35323 int arg5 = (int) 0 ;
35324 void *argp1 = 0 ;
35325 int res1 = 0 ;
35326 void *argp2 = 0 ;
35327 int res2 = 0 ;
35328 void *argp3 = 0 ;
35329 int res3 = 0 ;
35330 wxRect temp4 ;
35331 int val5 ;
35332 int ecode5 = 0 ;
35333 PyObject * obj0 = 0 ;
35334 PyObject * obj1 = 0 ;
35335 PyObject * obj2 = 0 ;
35336 PyObject * obj3 = 0 ;
35337 PyObject * obj4 = 0 ;
35338 char * kwnames[] = {
35339 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35340 };
35341
35342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35344 if (!SWIG_IsOK(res1)) {
35345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35346 }
35347 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35349 if (!SWIG_IsOK(res2)) {
35350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35351 }
35352 arg2 = reinterpret_cast< wxWindow * >(argp2);
35353 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35354 if (!SWIG_IsOK(res3)) {
35355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35356 }
35357 if (!argp3) {
35358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35359 }
35360 arg3 = reinterpret_cast< wxDC * >(argp3);
35361 {
35362 arg4 = &temp4;
35363 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35364 }
35365 if (obj4) {
35366 ecode5 = SWIG_AsVal_int(obj4, &val5);
35367 if (!SWIG_IsOK(ecode5)) {
35368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35369 }
35370 arg5 = static_cast< int >(val5);
35371 }
35372 {
35373 PyThreadState* __tstate = wxPyBeginAllowThreads();
35374 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35375 wxPyEndAllowThreads(__tstate);
35376 if (PyErr_Occurred()) SWIG_fail;
35377 }
35378 resultobj = SWIG_Py_Void();
35379 return resultobj;
35380fail:
35381 return NULL;
35382}
35383
35384
f460c29d
RD
35385SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35386 PyObject *resultobj = 0;
35387 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35388 wxWindow *arg2 = (wxWindow *) 0 ;
35389 wxDC *arg3 = 0 ;
35390 wxRect *arg4 = 0 ;
35391 int arg5 = (int) 0 ;
35392 void *argp1 = 0 ;
35393 int res1 = 0 ;
35394 void *argp2 = 0 ;
35395 int res2 = 0 ;
35396 void *argp3 = 0 ;
35397 int res3 = 0 ;
35398 wxRect temp4 ;
35399 int val5 ;
35400 int ecode5 = 0 ;
35401 PyObject * obj0 = 0 ;
35402 PyObject * obj1 = 0 ;
35403 PyObject * obj2 = 0 ;
35404 PyObject * obj3 = 0 ;
35405 PyObject * obj4 = 0 ;
35406 char * kwnames[] = {
35407 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35408 };
35409
35410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35412 if (!SWIG_IsOK(res1)) {
35413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35414 }
35415 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35417 if (!SWIG_IsOK(res2)) {
35418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35419 }
35420 arg2 = reinterpret_cast< wxWindow * >(argp2);
35421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35422 if (!SWIG_IsOK(res3)) {
35423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35424 }
35425 if (!argp3) {
35426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35427 }
35428 arg3 = reinterpret_cast< wxDC * >(argp3);
35429 {
35430 arg4 = &temp4;
35431 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35432 }
35433 if (obj4) {
35434 ecode5 = SWIG_AsVal_int(obj4, &val5);
35435 if (!SWIG_IsOK(ecode5)) {
35436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35437 }
35438 arg5 = static_cast< int >(val5);
35439 }
35440 {
35441 PyThreadState* __tstate = wxPyBeginAllowThreads();
35442 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35443 wxPyEndAllowThreads(__tstate);
35444 if (PyErr_Occurred()) SWIG_fail;
35445 }
35446 resultobj = SWIG_Py_Void();
35447 return resultobj;
35448fail:
35449 return NULL;
35450}
35451
35452
35453SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35454 PyObject *resultobj = 0;
35455 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35456 wxWindow *arg2 = (wxWindow *) 0 ;
35457 wxDC *arg3 = 0 ;
35458 wxRect *arg4 = 0 ;
35459 int arg5 = (int) 0 ;
35460 void *argp1 = 0 ;
35461 int res1 = 0 ;
35462 void *argp2 = 0 ;
35463 int res2 = 0 ;
35464 void *argp3 = 0 ;
35465 int res3 = 0 ;
35466 wxRect temp4 ;
35467 int val5 ;
35468 int ecode5 = 0 ;
35469 PyObject * obj0 = 0 ;
35470 PyObject * obj1 = 0 ;
35471 PyObject * obj2 = 0 ;
35472 PyObject * obj3 = 0 ;
35473 PyObject * obj4 = 0 ;
35474 char * kwnames[] = {
35475 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35476 };
35477
35478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35480 if (!SWIG_IsOK(res1)) {
35481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35482 }
35483 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35485 if (!SWIG_IsOK(res2)) {
35486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35487 }
35488 arg2 = reinterpret_cast< wxWindow * >(argp2);
35489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35490 if (!SWIG_IsOK(res3)) {
35491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35492 }
35493 if (!argp3) {
35494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35495 }
35496 arg3 = reinterpret_cast< wxDC * >(argp3);
35497 {
35498 arg4 = &temp4;
35499 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35500 }
35501 if (obj4) {
35502 ecode5 = SWIG_AsVal_int(obj4, &val5);
35503 if (!SWIG_IsOK(ecode5)) {
35504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35505 }
35506 arg5 = static_cast< int >(val5);
35507 }
35508 {
35509 PyThreadState* __tstate = wxPyBeginAllowThreads();
35510 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35511 wxPyEndAllowThreads(__tstate);
35512 if (PyErr_Occurred()) SWIG_fail;
35513 }
35514 resultobj = SWIG_Py_Void();
35515 return resultobj;
35516fail:
35517 return NULL;
35518}
35519
35520
35521SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35522 PyObject *resultobj = 0;
35523 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35524 wxWindow *arg2 = (wxWindow *) 0 ;
35525 wxDC *arg3 = 0 ;
35526 wxRect *arg4 = 0 ;
35527 int arg5 = (int) 0 ;
35528 void *argp1 = 0 ;
35529 int res1 = 0 ;
35530 void *argp2 = 0 ;
35531 int res2 = 0 ;
35532 void *argp3 = 0 ;
35533 int res3 = 0 ;
35534 wxRect temp4 ;
35535 int val5 ;
35536 int ecode5 = 0 ;
35537 PyObject * obj0 = 0 ;
35538 PyObject * obj1 = 0 ;
35539 PyObject * obj2 = 0 ;
35540 PyObject * obj3 = 0 ;
35541 PyObject * obj4 = 0 ;
35542 char * kwnames[] = {
35543 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35544 };
35545
f460c29d 35546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35548 if (!SWIG_IsOK(res1)) {
f460c29d 35549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35550 }
35551 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35553 if (!SWIG_IsOK(res2)) {
f460c29d 35554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35555 }
35556 arg2 = reinterpret_cast< wxWindow * >(argp2);
35557 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35558 if (!SWIG_IsOK(res3)) {
f460c29d 35559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35560 }
35561 if (!argp3) {
f460c29d 35562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35563 }
35564 arg3 = reinterpret_cast< wxDC * >(argp3);
35565 {
35566 arg4 = &temp4;
35567 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35568 }
35569 if (obj4) {
35570 ecode5 = SWIG_AsVal_int(obj4, &val5);
35571 if (!SWIG_IsOK(ecode5)) {
f460c29d 35572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35573 }
35574 arg5 = static_cast< int >(val5);
35575 }
35576 {
35577 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35578 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35579 wxPyEndAllowThreads(__tstate);
35580 if (PyErr_Occurred()) SWIG_fail;
35581 }
35582 resultobj = SWIG_Py_Void();
35583 return resultobj;
35584fail:
35585 return NULL;
35586}
35587
35588
554f62e9
RD
35589SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35590 PyObject *resultobj = 0;
35591 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35592 wxWindow *arg2 = (wxWindow *) 0 ;
35593 SwigValueWrapper<wxSplitterRenderParams > result;
35594 void *argp1 = 0 ;
35595 int res1 = 0 ;
35596 void *argp2 = 0 ;
35597 int res2 = 0 ;
35598 PyObject * obj0 = 0 ;
35599 PyObject * obj1 = 0 ;
35600 char * kwnames[] = {
35601 (char *) "self",(char *) "win", NULL
35602 };
35603
35604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35606 if (!SWIG_IsOK(res1)) {
35607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35608 }
35609 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35611 if (!SWIG_IsOK(res2)) {
35612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35613 }
35614 arg2 = reinterpret_cast< wxWindow * >(argp2);
35615 {
35616 PyThreadState* __tstate = wxPyBeginAllowThreads();
35617 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35618 wxPyEndAllowThreads(__tstate);
35619 if (PyErr_Occurred()) SWIG_fail;
35620 }
35621 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35622 return resultobj;
35623fail:
35624 return NULL;
35625}
35626
35627
35628SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35629 PyObject *resultobj = 0;
35630 wxRendererNative *result = 0 ;
35631
35632 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35633 {
704eda0c 35634 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35635 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35636 {
554f62e9
RD
35637 wxRendererNative &_result_ref = wxRendererNative::Get();
35638 result = (wxRendererNative *) &_result_ref;
093d3ff1 35639 }
554f62e9
RD
35640 wxPyEndAllowThreads(__tstate);
35641 if (PyErr_Occurred()) SWIG_fail;
35642 }
35643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35644 return resultobj;
35645fail:
35646 return NULL;
35647}
35648
35649
35650SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35651 PyObject *resultobj = 0;
35652 wxRendererNative *result = 0 ;
35653
35654 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35655 {
704eda0c 35656 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35657 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35658 {
554f62e9
RD
35659 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35660 result = (wxRendererNative *) &_result_ref;
be9b1dca 35661 }
554f62e9
RD
35662 wxPyEndAllowThreads(__tstate);
35663 if (PyErr_Occurred()) SWIG_fail;
35664 }
35665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35666 return resultobj;
35667fail:
35668 return NULL;
35669}
35670
35671
35672SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35673 PyObject *resultobj = 0;
35674 wxRendererNative *result = 0 ;
35675
35676 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35677 {
704eda0c 35678 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35679 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35680 {
554f62e9
RD
35681 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35682 result = (wxRendererNative *) &_result_ref;
be9b1dca 35683 }
554f62e9
RD
35684 wxPyEndAllowThreads(__tstate);
35685 if (PyErr_Occurred()) SWIG_fail;
35686 }
35687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35688 return resultobj;
35689fail:
35690 return NULL;
35691}
35692
35693
35694SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35695 PyObject *resultobj = 0;
35696 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35697 wxRendererNative *result = 0 ;
35698 void *argp1 = 0 ;
35699 int res1 = 0 ;
35700 PyObject * obj0 = 0 ;
35701 char * kwnames[] = {
35702 (char *) "renderer", NULL
35703 };
35704
35705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35707 if (!SWIG_IsOK(res1)) {
35708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35709 }
35710 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35711 {
704eda0c 35712 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
35713 PyThreadState* __tstate = wxPyBeginAllowThreads();
35714 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35715 wxPyEndAllowThreads(__tstate);
35716 if (PyErr_Occurred()) SWIG_fail;
35717 }
35718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35719 return resultobj;
35720fail:
35721 return NULL;
35722}
35723
35724
35725SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35726 PyObject *resultobj = 0;
35727 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35728 SwigValueWrapper<wxRendererVersion > result;
35729 void *argp1 = 0 ;
35730 int res1 = 0 ;
35731 PyObject *swig_obj[1] ;
35732
35733 if (!args) SWIG_fail;
35734 swig_obj[0] = args;
35735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35736 if (!SWIG_IsOK(res1)) {
35737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35738 }
35739 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35740 {
35741 PyThreadState* __tstate = wxPyBeginAllowThreads();
35742 result = ((wxRendererNative const *)arg1)->GetVersion();
35743 wxPyEndAllowThreads(__tstate);
35744 if (PyErr_Occurred()) SWIG_fail;
35745 }
35746 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35747 return resultobj;
35748fail:
35749 return NULL;
35750}
35751
35752
35753SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35754 PyObject *obj;
35755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35756 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35757 return SWIG_Py_Void();
35758}
35759
27e45892
RD
35760SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35761 PyObject *resultobj = 0;
35762 wxPseudoDC *result = 0 ;
35763
35764 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35765 {
35766 PyThreadState* __tstate = wxPyBeginAllowThreads();
35767 result = (wxPseudoDC *)new wxPseudoDC();
35768 wxPyEndAllowThreads(__tstate);
35769 if (PyErr_Occurred()) SWIG_fail;
35770 }
35771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35772 return resultobj;
35773fail:
35774 return NULL;
35775}
35776
35777
35778SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35779 PyObject *resultobj = 0;
35780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35781 void *argp1 = 0 ;
35782 int res1 = 0 ;
35783 PyObject *swig_obj[1] ;
35784
35785 if (!args) SWIG_fail;
35786 swig_obj[0] = args;
35787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35788 if (!SWIG_IsOK(res1)) {
35789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35790 }
35791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 (arg1)->BeginDrawing();
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 resultobj = SWIG_Py_Void();
35799 return resultobj;
35800fail:
35801 return NULL;
35802}
35803
35804
35805SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35806 PyObject *resultobj = 0;
35807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35808 void *argp1 = 0 ;
35809 int res1 = 0 ;
35810 PyObject *swig_obj[1] ;
35811
35812 if (!args) SWIG_fail;
35813 swig_obj[0] = args;
35814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35815 if (!SWIG_IsOK(res1)) {
35816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35817 }
35818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35819 {
35820 PyThreadState* __tstate = wxPyBeginAllowThreads();
35821 (arg1)->EndDrawing();
35822 wxPyEndAllowThreads(__tstate);
35823 if (PyErr_Occurred()) SWIG_fail;
35824 }
35825 resultobj = SWIG_Py_Void();
35826 return resultobj;
35827fail:
35828 return NULL;
35829}
35830
35831
35832SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35833 PyObject *resultobj = 0;
35834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35835 void *argp1 = 0 ;
35836 int res1 = 0 ;
35837 PyObject *swig_obj[1] ;
35838
35839 if (!args) SWIG_fail;
35840 swig_obj[0] = args;
35841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35842 if (!SWIG_IsOK(res1)) {
35843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35844 }
35845 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35846 {
35847 PyThreadState* __tstate = wxPyBeginAllowThreads();
35848 delete arg1;
35849
35850 wxPyEndAllowThreads(__tstate);
35851 if (PyErr_Occurred()) SWIG_fail;
35852 }
35853 resultobj = SWIG_Py_Void();
35854 return resultobj;
35855fail:
35856 return NULL;
35857}
35858
35859
35860SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35861 PyObject *resultobj = 0;
35862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35863 void *argp1 = 0 ;
35864 int res1 = 0 ;
35865 PyObject *swig_obj[1] ;
35866
35867 if (!args) SWIG_fail;
35868 swig_obj[0] = args;
35869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35870 if (!SWIG_IsOK(res1)) {
35871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35872 }
35873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35874 {
35875 PyThreadState* __tstate = wxPyBeginAllowThreads();
35876 (arg1)->RemoveAll();
35877 wxPyEndAllowThreads(__tstate);
35878 if (PyErr_Occurred()) SWIG_fail;
35879 }
35880 resultobj = SWIG_Py_Void();
35881 return resultobj;
35882fail:
35883 return NULL;
35884}
35885
35886
35887SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35888 PyObject *resultobj = 0;
35889 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35890 int result;
35891 void *argp1 = 0 ;
35892 int res1 = 0 ;
35893 PyObject *swig_obj[1] ;
35894
35895 if (!args) SWIG_fail;
35896 swig_obj[0] = args;
35897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35898 if (!SWIG_IsOK(res1)) {
35899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35900 }
35901 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35902 {
35903 PyThreadState* __tstate = wxPyBeginAllowThreads();
35904 result = (int)(arg1)->GetLen();
35905 wxPyEndAllowThreads(__tstate);
35906 if (PyErr_Occurred()) SWIG_fail;
35907 }
35908 resultobj = SWIG_From_int(static_cast< int >(result));
35909 return resultobj;
35910fail:
35911 return NULL;
35912}
35913
35914
35915SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35916 PyObject *resultobj = 0;
35917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35918 int arg2 ;
35919 void *argp1 = 0 ;
35920 int res1 = 0 ;
35921 int val2 ;
35922 int ecode2 = 0 ;
35923 PyObject * obj0 = 0 ;
35924 PyObject * obj1 = 0 ;
35925 char * kwnames[] = {
35926 (char *) "self",(char *) "id", NULL
35927 };
35928
35929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35931 if (!SWIG_IsOK(res1)) {
35932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35933 }
35934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35935 ecode2 = SWIG_AsVal_int(obj1, &val2);
35936 if (!SWIG_IsOK(ecode2)) {
35937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35938 }
35939 arg2 = static_cast< int >(val2);
35940 {
35941 PyThreadState* __tstate = wxPyBeginAllowThreads();
35942 (arg1)->SetId(arg2);
35943 wxPyEndAllowThreads(__tstate);
35944 if (PyErr_Occurred()) SWIG_fail;
35945 }
35946 resultobj = SWIG_Py_Void();
35947 return resultobj;
35948fail:
35949 return NULL;
35950}
35951
35952
35953SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35954 PyObject *resultobj = 0;
35955 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35956 int arg2 ;
35957 void *argp1 = 0 ;
35958 int res1 = 0 ;
35959 int val2 ;
35960 int ecode2 = 0 ;
35961 PyObject * obj0 = 0 ;
35962 PyObject * obj1 = 0 ;
35963 char * kwnames[] = {
35964 (char *) "self",(char *) "id", NULL
35965 };
35966
35967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35969 if (!SWIG_IsOK(res1)) {
35970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35971 }
35972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35973 ecode2 = SWIG_AsVal_int(obj1, &val2);
35974 if (!SWIG_IsOK(ecode2)) {
35975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35976 }
35977 arg2 = static_cast< int >(val2);
35978 {
35979 PyThreadState* __tstate = wxPyBeginAllowThreads();
35980 (arg1)->ClearId(arg2);
35981 wxPyEndAllowThreads(__tstate);
35982 if (PyErr_Occurred()) SWIG_fail;
35983 }
35984 resultobj = SWIG_Py_Void();
35985 return resultobj;
35986fail:
35987 return NULL;
35988}
35989
35990
35991SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35992 PyObject *resultobj = 0;
35993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35994 int arg2 ;
35995 void *argp1 = 0 ;
35996 int res1 = 0 ;
35997 int val2 ;
35998 int ecode2 = 0 ;
35999 PyObject * obj0 = 0 ;
36000 PyObject * obj1 = 0 ;
36001 char * kwnames[] = {
36002 (char *) "self",(char *) "id", NULL
36003 };
36004
36005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36007 if (!SWIG_IsOK(res1)) {
36008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36009 }
36010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36011 ecode2 = SWIG_AsVal_int(obj1, &val2);
36012 if (!SWIG_IsOK(ecode2)) {
36013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36014 }
36015 arg2 = static_cast< int >(val2);
36016 {
36017 PyThreadState* __tstate = wxPyBeginAllowThreads();
36018 (arg1)->RemoveId(arg2);
36019 wxPyEndAllowThreads(__tstate);
36020 if (PyErr_Occurred()) SWIG_fail;
36021 }
36022 resultobj = SWIG_Py_Void();
36023 return resultobj;
36024fail:
36025 return NULL;
36026}
36027
36028
36029SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36030 PyObject *resultobj = 0;
36031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36032 int arg2 ;
36033 int arg3 ;
36034 int arg4 ;
36035 void *argp1 = 0 ;
36036 int res1 = 0 ;
36037 int val2 ;
36038 int ecode2 = 0 ;
36039 int val3 ;
36040 int ecode3 = 0 ;
36041 int val4 ;
36042 int ecode4 = 0 ;
36043 PyObject * obj0 = 0 ;
36044 PyObject * obj1 = 0 ;
36045 PyObject * obj2 = 0 ;
36046 PyObject * obj3 = 0 ;
36047 char * kwnames[] = {
36048 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36049 };
36050
36051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36053 if (!SWIG_IsOK(res1)) {
36054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36055 }
36056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36057 ecode2 = SWIG_AsVal_int(obj1, &val2);
36058 if (!SWIG_IsOK(ecode2)) {
36059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36060 }
36061 arg2 = static_cast< int >(val2);
36062 ecode3 = SWIG_AsVal_int(obj2, &val3);
36063 if (!SWIG_IsOK(ecode3)) {
36064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36065 }
36066 arg3 = static_cast< int >(val3);
36067 ecode4 = SWIG_AsVal_int(obj3, &val4);
36068 if (!SWIG_IsOK(ecode4)) {
36069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36070 }
36071 arg4 = static_cast< int >(val4);
36072 {
36073 PyThreadState* __tstate = wxPyBeginAllowThreads();
36074 (arg1)->TranslateId(arg2,arg3,arg4);
36075 wxPyEndAllowThreads(__tstate);
36076 if (PyErr_Occurred()) SWIG_fail;
36077 }
36078 resultobj = SWIG_Py_Void();
36079 return resultobj;
36080fail:
36081 return NULL;
36082}
36083
36084
72ef6efb
RD
36085SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36086 PyObject *resultobj = 0;
36087 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36088 int arg2 ;
36089 bool arg3 = (bool) true ;
36090 void *argp1 = 0 ;
36091 int res1 = 0 ;
36092 int val2 ;
36093 int ecode2 = 0 ;
36094 bool val3 ;
36095 int ecode3 = 0 ;
36096 PyObject * obj0 = 0 ;
36097 PyObject * obj1 = 0 ;
36098 PyObject * obj2 = 0 ;
36099 char * kwnames[] = {
36100 (char *) "self",(char *) "id",(char *) "greyout", NULL
36101 };
36102
36103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36105 if (!SWIG_IsOK(res1)) {
36106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36107 }
36108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36109 ecode2 = SWIG_AsVal_int(obj1, &val2);
36110 if (!SWIG_IsOK(ecode2)) {
36111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36112 }
36113 arg2 = static_cast< int >(val2);
36114 if (obj2) {
36115 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36116 if (!SWIG_IsOK(ecode3)) {
36117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36118 }
36119 arg3 = static_cast< bool >(val3);
36120 }
36121 {
36122 PyThreadState* __tstate = wxPyBeginAllowThreads();
36123 (arg1)->SetIdGreyedOut(arg2,arg3);
36124 wxPyEndAllowThreads(__tstate);
36125 if (PyErr_Occurred()) SWIG_fail;
36126 }
36127 resultobj = SWIG_Py_Void();
36128 return resultobj;
36129fail:
36130 return NULL;
36131}
36132
36133
36134SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36135 PyObject *resultobj = 0;
36136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36137 int arg2 ;
36138 bool result;
36139 void *argp1 = 0 ;
36140 int res1 = 0 ;
36141 int val2 ;
36142 int ecode2 = 0 ;
36143 PyObject * obj0 = 0 ;
36144 PyObject * obj1 = 0 ;
36145 char * kwnames[] = {
36146 (char *) "self",(char *) "id", NULL
36147 };
36148
36149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36151 if (!SWIG_IsOK(res1)) {
36152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36153 }
36154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36155 ecode2 = SWIG_AsVal_int(obj1, &val2);
36156 if (!SWIG_IsOK(ecode2)) {
36157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36158 }
36159 arg2 = static_cast< int >(val2);
36160 {
36161 PyThreadState* __tstate = wxPyBeginAllowThreads();
36162 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36163 wxPyEndAllowThreads(__tstate);
36164 if (PyErr_Occurred()) SWIG_fail;
36165 }
36166 {
36167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36168 }
36169 return resultobj;
36170fail:
36171 return NULL;
36172}
36173
36174
36175SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36176 PyObject *resultobj = 0;
36177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36178 int arg2 ;
36179 int arg3 ;
36180 int arg4 = (int) 1 ;
36181 wxColor const &arg5_defvalue = *wxWHITE ;
36182 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36183 PyObject *result = 0 ;
36184 void *argp1 = 0 ;
36185 int res1 = 0 ;
36186 int val2 ;
36187 int ecode2 = 0 ;
36188 int val3 ;
36189 int ecode3 = 0 ;
36190 int val4 ;
36191 int ecode4 = 0 ;
36192 void *argp5 = 0 ;
36193 int res5 = 0 ;
36194 PyObject * obj0 = 0 ;
36195 PyObject * obj1 = 0 ;
36196 PyObject * obj2 = 0 ;
36197 PyObject * obj3 = 0 ;
36198 PyObject * obj4 = 0 ;
36199 char * kwnames[] = {
36200 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36201 };
36202
36203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36205 if (!SWIG_IsOK(res1)) {
36206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36207 }
36208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36209 ecode2 = SWIG_AsVal_int(obj1, &val2);
36210 if (!SWIG_IsOK(ecode2)) {
36211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36212 }
36213 arg2 = static_cast< int >(val2);
36214 ecode3 = SWIG_AsVal_int(obj2, &val3);
36215 if (!SWIG_IsOK(ecode3)) {
36216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36217 }
36218 arg3 = static_cast< int >(val3);
36219 if (obj3) {
36220 ecode4 = SWIG_AsVal_int(obj3, &val4);
36221 if (!SWIG_IsOK(ecode4)) {
36222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36223 }
36224 arg4 = static_cast< int >(val4);
36225 }
36226 if (obj4) {
36227 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36228 if (!SWIG_IsOK(res5)) {
36229 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36230 }
36231 if (!argp5) {
36232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36233 }
36234 arg5 = reinterpret_cast< wxColor * >(argp5);
36235 }
36236 {
36237 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36238 if (PyErr_Occurred()) SWIG_fail;
36239 }
36240 resultobj = result;
36241 return resultobj;
36242fail:
36243 return NULL;
36244}
36245
36246
36247SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36248 PyObject *resultobj = 0;
36249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36250 int arg2 ;
36251 int arg3 ;
36252 PyObject *result = 0 ;
36253 void *argp1 = 0 ;
36254 int res1 = 0 ;
36255 int val2 ;
36256 int ecode2 = 0 ;
36257 int val3 ;
36258 int ecode3 = 0 ;
36259 PyObject * obj0 = 0 ;
36260 PyObject * obj1 = 0 ;
36261 PyObject * obj2 = 0 ;
36262 char * kwnames[] = {
36263 (char *) "self",(char *) "x",(char *) "y", NULL
36264 };
36265
36266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36268 if (!SWIG_IsOK(res1)) {
36269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36270 }
36271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36272 ecode2 = SWIG_AsVal_int(obj1, &val2);
36273 if (!SWIG_IsOK(ecode2)) {
36274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36275 }
36276 arg2 = static_cast< int >(val2);
36277 ecode3 = SWIG_AsVal_int(obj2, &val3);
36278 if (!SWIG_IsOK(ecode3)) {
36279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36280 }
36281 arg3 = static_cast< int >(val3);
36282 {
36283 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = result;
36287 return resultobj;
36288fail:
36289 return NULL;
36290}
36291
36292
27e45892
RD
36293SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36294 PyObject *resultobj = 0;
36295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36296 int arg2 ;
36297 wxDC *arg3 = (wxDC *) 0 ;
36298 void *argp1 = 0 ;
36299 int res1 = 0 ;
36300 int val2 ;
36301 int ecode2 = 0 ;
36302 void *argp3 = 0 ;
36303 int res3 = 0 ;
36304 PyObject * obj0 = 0 ;
36305 PyObject * obj1 = 0 ;
36306 PyObject * obj2 = 0 ;
36307 char * kwnames[] = {
36308 (char *) "self",(char *) "id",(char *) "dc", NULL
36309 };
36310
36311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36313 if (!SWIG_IsOK(res1)) {
36314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36315 }
36316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36317 ecode2 = SWIG_AsVal_int(obj1, &val2);
36318 if (!SWIG_IsOK(ecode2)) {
36319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36320 }
36321 arg2 = static_cast< int >(val2);
36322 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36323 if (!SWIG_IsOK(res3)) {
36324 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36325 }
36326 arg3 = reinterpret_cast< wxDC * >(argp3);
36327 {
36328 PyThreadState* __tstate = wxPyBeginAllowThreads();
36329 (arg1)->DrawIdToDC(arg2,arg3);
36330 wxPyEndAllowThreads(__tstate);
36331 if (PyErr_Occurred()) SWIG_fail;
36332 }
36333 resultobj = SWIG_Py_Void();
36334 return resultobj;
36335fail:
36336 return NULL;
36337}
36338
36339
36340SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36341 PyObject *resultobj = 0;
36342 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36343 int arg2 ;
36344 wxRect *arg3 = 0 ;
36345 void *argp1 = 0 ;
36346 int res1 = 0 ;
36347 int val2 ;
36348 int ecode2 = 0 ;
36349 wxRect temp3 ;
36350 PyObject * obj0 = 0 ;
36351 PyObject * obj1 = 0 ;
36352 PyObject * obj2 = 0 ;
36353 char * kwnames[] = {
36354 (char *) "self",(char *) "id",(char *) "rect", NULL
36355 };
36356
36357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36359 if (!SWIG_IsOK(res1)) {
36360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36361 }
36362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36363 ecode2 = SWIG_AsVal_int(obj1, &val2);
36364 if (!SWIG_IsOK(ecode2)) {
36365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36366 }
36367 arg2 = static_cast< int >(val2);
36368 {
36369 arg3 = &temp3;
36370 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36371 }
36372 {
36373 PyThreadState* __tstate = wxPyBeginAllowThreads();
36374 (arg1)->SetIdBounds(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_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36386 PyObject *resultobj = 0;
36387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36388 int arg2 ;
36389 wxRect 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_GetIdBounds",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_GetIdBounds" "', 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_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36409 }
36410 arg2 = static_cast< int >(val2);
36411 {
36412 PyThreadState* __tstate = wxPyBeginAllowThreads();
36413 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36414 wxPyEndAllowThreads(__tstate);
36415 if (PyErr_Occurred()) SWIG_fail;
36416 }
36417 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36418 return resultobj;
36419fail:
36420 return NULL;
36421}
36422
36423
36424SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36425 PyObject *resultobj = 0;
36426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36427 wxDC *arg2 = (wxDC *) 0 ;
36428 wxRect *arg3 = 0 ;
36429 void *argp1 = 0 ;
36430 int res1 = 0 ;
36431 void *argp2 = 0 ;
36432 int res2 = 0 ;
36433 wxRect temp3 ;
36434 PyObject * obj0 = 0 ;
36435 PyObject * obj1 = 0 ;
36436 PyObject * obj2 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "dc",(char *) "rect", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36448 if (!SWIG_IsOK(res2)) {
36449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36450 }
36451 arg2 = reinterpret_cast< wxDC * >(argp2);
36452 {
36453 arg3 = &temp3;
36454 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36455 }
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36459 wxPyEndAllowThreads(__tstate);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 }
36462 resultobj = SWIG_Py_Void();
36463 return resultobj;
36464fail:
36465 return NULL;
36466}
36467
36468
36469SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36470 PyObject *resultobj = 0;
36471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36472 wxDC *arg2 = (wxDC *) 0 ;
36473 wxRegion *arg3 = 0 ;
36474 void *argp1 = 0 ;
36475 int res1 = 0 ;
36476 void *argp2 = 0 ;
36477 int res2 = 0 ;
36478 void *argp3 = 0 ;
36479 int res3 = 0 ;
36480 PyObject * obj0 = 0 ;
36481 PyObject * obj1 = 0 ;
36482 PyObject * obj2 = 0 ;
36483 char * kwnames[] = {
36484 (char *) "self",(char *) "dc",(char *) "region", NULL
36485 };
36486
36487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36489 if (!SWIG_IsOK(res1)) {
36490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36491 }
36492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36494 if (!SWIG_IsOK(res2)) {
36495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36496 }
36497 arg2 = reinterpret_cast< wxDC * >(argp2);
36498 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36499 if (!SWIG_IsOK(res3)) {
36500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36501 }
36502 if (!argp3) {
36503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36504 }
36505 arg3 = reinterpret_cast< wxRegion * >(argp3);
36506 {
36507 PyThreadState* __tstate = wxPyBeginAllowThreads();
36508 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36509 wxPyEndAllowThreads(__tstate);
36510 if (PyErr_Occurred()) SWIG_fail;
36511 }
36512 resultobj = SWIG_Py_Void();
36513 return resultobj;
36514fail:
36515 return NULL;
36516}
36517
36518
36519SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36520 PyObject *resultobj = 0;
36521 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36522 wxDC *arg2 = (wxDC *) 0 ;
36523 void *argp1 = 0 ;
36524 int res1 = 0 ;
36525 void *argp2 = 0 ;
36526 int res2 = 0 ;
36527 PyObject * obj0 = 0 ;
36528 PyObject * obj1 = 0 ;
36529 char * kwnames[] = {
36530 (char *) "self",(char *) "dc", NULL
36531 };
36532
36533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36535 if (!SWIG_IsOK(res1)) {
36536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36537 }
36538 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36539 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36540 if (!SWIG_IsOK(res2)) {
36541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36542 }
36543 arg2 = reinterpret_cast< wxDC * >(argp2);
36544 {
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 (arg1)->DrawToDC(arg2);
36547 wxPyEndAllowThreads(__tstate);
36548 if (PyErr_Occurred()) SWIG_fail;
36549 }
36550 resultobj = SWIG_Py_Void();
36551 return resultobj;
36552fail:
36553 return NULL;
36554}
36555
36556
36557SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36558 PyObject *resultobj = 0;
36559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36560 int arg2 ;
36561 int arg3 ;
36562 wxColour *arg4 = 0 ;
36563 int arg5 = (int) wxFLOOD_SURFACE ;
36564 void *argp1 = 0 ;
36565 int res1 = 0 ;
36566 int val2 ;
36567 int ecode2 = 0 ;
36568 int val3 ;
36569 int ecode3 = 0 ;
36570 wxColour temp4 ;
36571 int val5 ;
36572 int ecode5 = 0 ;
36573 PyObject * obj0 = 0 ;
36574 PyObject * obj1 = 0 ;
36575 PyObject * obj2 = 0 ;
36576 PyObject * obj3 = 0 ;
36577 PyObject * obj4 = 0 ;
36578 char * kwnames[] = {
36579 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36580 };
36581
36582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36584 if (!SWIG_IsOK(res1)) {
36585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36586 }
36587 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36588 ecode2 = SWIG_AsVal_int(obj1, &val2);
36589 if (!SWIG_IsOK(ecode2)) {
36590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36591 }
36592 arg2 = static_cast< int >(val2);
36593 ecode3 = SWIG_AsVal_int(obj2, &val3);
36594 if (!SWIG_IsOK(ecode3)) {
36595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36596 }
36597 arg3 = static_cast< int >(val3);
36598 {
36599 arg4 = &temp4;
36600 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36601 }
36602 if (obj4) {
36603 ecode5 = SWIG_AsVal_int(obj4, &val5);
36604 if (!SWIG_IsOK(ecode5)) {
36605 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36606 }
36607 arg5 = static_cast< int >(val5);
36608 }
36609 {
36610 PyThreadState* __tstate = wxPyBeginAllowThreads();
36611 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36612 wxPyEndAllowThreads(__tstate);
36613 if (PyErr_Occurred()) SWIG_fail;
36614 }
36615 resultobj = SWIG_Py_Void();
36616 return resultobj;
36617fail:
36618 return NULL;
36619}
36620
36621
36622SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36623 PyObject *resultobj = 0;
36624 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36625 wxPoint *arg2 = 0 ;
36626 wxColour *arg3 = 0 ;
36627 int arg4 = (int) wxFLOOD_SURFACE ;
36628 void *argp1 = 0 ;
36629 int res1 = 0 ;
36630 wxPoint temp2 ;
36631 wxColour temp3 ;
36632 int val4 ;
36633 int ecode4 = 0 ;
36634 PyObject * obj0 = 0 ;
36635 PyObject * obj1 = 0 ;
36636 PyObject * obj2 = 0 ;
36637 PyObject * obj3 = 0 ;
36638 char * kwnames[] = {
36639 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36640 };
36641
36642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36644 if (!SWIG_IsOK(res1)) {
36645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36646 }
36647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36648 {
36649 arg2 = &temp2;
36650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36651 }
36652 {
36653 arg3 = &temp3;
36654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36655 }
36656 if (obj3) {
36657 ecode4 = SWIG_AsVal_int(obj3, &val4);
36658 if (!SWIG_IsOK(ecode4)) {
36659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36660 }
36661 arg4 = static_cast< int >(val4);
36662 }
36663 {
36664 PyThreadState* __tstate = wxPyBeginAllowThreads();
36665 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36666 wxPyEndAllowThreads(__tstate);
36667 if (PyErr_Occurred()) SWIG_fail;
36668 }
36669 resultobj = SWIG_Py_Void();
36670 return resultobj;
36671fail:
36672 return NULL;
36673}
36674
36675
36676SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36677 PyObject *resultobj = 0;
36678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36679 int arg2 ;
36680 int arg3 ;
36681 int arg4 ;
36682 int arg5 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 int val2 ;
36686 int ecode2 = 0 ;
36687 int val3 ;
36688 int ecode3 = 0 ;
36689 int val4 ;
36690 int ecode4 = 0 ;
36691 int val5 ;
36692 int ecode5 = 0 ;
36693 PyObject * obj0 = 0 ;
36694 PyObject * obj1 = 0 ;
36695 PyObject * obj2 = 0 ;
36696 PyObject * obj3 = 0 ;
36697 PyObject * obj4 = 0 ;
36698 char * kwnames[] = {
36699 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36700 };
36701
36702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36704 if (!SWIG_IsOK(res1)) {
36705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36706 }
36707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36708 ecode2 = SWIG_AsVal_int(obj1, &val2);
36709 if (!SWIG_IsOK(ecode2)) {
36710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36711 }
36712 arg2 = static_cast< int >(val2);
36713 ecode3 = SWIG_AsVal_int(obj2, &val3);
36714 if (!SWIG_IsOK(ecode3)) {
36715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36716 }
36717 arg3 = static_cast< int >(val3);
36718 ecode4 = SWIG_AsVal_int(obj3, &val4);
36719 if (!SWIG_IsOK(ecode4)) {
36720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36721 }
36722 arg4 = static_cast< int >(val4);
36723 ecode5 = SWIG_AsVal_int(obj4, &val5);
36724 if (!SWIG_IsOK(ecode5)) {
36725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36726 }
36727 arg5 = static_cast< int >(val5);
36728 {
36729 PyThreadState* __tstate = wxPyBeginAllowThreads();
36730 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36731 wxPyEndAllowThreads(__tstate);
36732 if (PyErr_Occurred()) SWIG_fail;
36733 }
36734 resultobj = SWIG_Py_Void();
36735 return resultobj;
36736fail:
36737 return NULL;
36738}
36739
36740
36741SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36742 PyObject *resultobj = 0;
36743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36744 wxPoint *arg2 = 0 ;
36745 wxPoint *arg3 = 0 ;
36746 void *argp1 = 0 ;
36747 int res1 = 0 ;
36748 wxPoint temp2 ;
36749 wxPoint temp3 ;
36750 PyObject * obj0 = 0 ;
36751 PyObject * obj1 = 0 ;
36752 PyObject * obj2 = 0 ;
36753 char * kwnames[] = {
36754 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36755 };
36756
36757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36759 if (!SWIG_IsOK(res1)) {
36760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36761 }
36762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36763 {
36764 arg2 = &temp2;
36765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36766 }
36767 {
36768 arg3 = &temp3;
36769 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36770 }
36771 {
36772 PyThreadState* __tstate = wxPyBeginAllowThreads();
36773 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36774 wxPyEndAllowThreads(__tstate);
36775 if (PyErr_Occurred()) SWIG_fail;
36776 }
36777 resultobj = SWIG_Py_Void();
36778 return resultobj;
36779fail:
36780 return NULL;
36781}
36782
36783
36784SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36785 PyObject *resultobj = 0;
36786 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36787 int arg2 ;
36788 int arg3 ;
36789 void *argp1 = 0 ;
36790 int res1 = 0 ;
36791 int val2 ;
36792 int ecode2 = 0 ;
36793 int val3 ;
36794 int ecode3 = 0 ;
36795 PyObject * obj0 = 0 ;
36796 PyObject * obj1 = 0 ;
36797 PyObject * obj2 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "self",(char *) "x",(char *) "y", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36806 }
36807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36808 ecode2 = SWIG_AsVal_int(obj1, &val2);
36809 if (!SWIG_IsOK(ecode2)) {
36810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36811 }
36812 arg2 = static_cast< int >(val2);
36813 ecode3 = SWIG_AsVal_int(obj2, &val3);
36814 if (!SWIG_IsOK(ecode3)) {
36815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36816 }
36817 arg3 = static_cast< int >(val3);
36818 {
36819 PyThreadState* __tstate = wxPyBeginAllowThreads();
36820 (arg1)->CrossHair(arg2,arg3);
36821 wxPyEndAllowThreads(__tstate);
36822 if (PyErr_Occurred()) SWIG_fail;
36823 }
36824 resultobj = SWIG_Py_Void();
36825 return resultobj;
36826fail:
36827 return NULL;
36828}
36829
36830
36831SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36832 PyObject *resultobj = 0;
36833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36834 wxPoint *arg2 = 0 ;
36835 void *argp1 = 0 ;
36836 int res1 = 0 ;
36837 wxPoint temp2 ;
36838 PyObject * obj0 = 0 ;
36839 PyObject * obj1 = 0 ;
36840 char * kwnames[] = {
36841 (char *) "self",(char *) "pt", NULL
36842 };
36843
36844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36846 if (!SWIG_IsOK(res1)) {
36847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36848 }
36849 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36850 {
36851 arg2 = &temp2;
36852 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36853 }
36854 {
36855 PyThreadState* __tstate = wxPyBeginAllowThreads();
36856 (arg1)->CrossHair((wxPoint const &)*arg2);
36857 wxPyEndAllowThreads(__tstate);
36858 if (PyErr_Occurred()) SWIG_fail;
36859 }
36860 resultobj = SWIG_Py_Void();
36861 return resultobj;
36862fail:
36863 return NULL;
36864}
36865
36866
36867SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36868 PyObject *resultobj = 0;
36869 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36870 int arg2 ;
36871 int arg3 ;
36872 int arg4 ;
36873 int arg5 ;
36874 int arg6 ;
36875 int arg7 ;
36876 void *argp1 = 0 ;
36877 int res1 = 0 ;
36878 int val2 ;
36879 int ecode2 = 0 ;
36880 int val3 ;
36881 int ecode3 = 0 ;
36882 int val4 ;
36883 int ecode4 = 0 ;
36884 int val5 ;
36885 int ecode5 = 0 ;
36886 int val6 ;
36887 int ecode6 = 0 ;
36888 int val7 ;
36889 int ecode7 = 0 ;
36890 PyObject * obj0 = 0 ;
36891 PyObject * obj1 = 0 ;
36892 PyObject * obj2 = 0 ;
36893 PyObject * obj3 = 0 ;
36894 PyObject * obj4 = 0 ;
36895 PyObject * obj5 = 0 ;
36896 PyObject * obj6 = 0 ;
36897 char * kwnames[] = {
36898 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36899 };
36900
36901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36903 if (!SWIG_IsOK(res1)) {
36904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36905 }
36906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36907 ecode2 = SWIG_AsVal_int(obj1, &val2);
36908 if (!SWIG_IsOK(ecode2)) {
36909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36910 }
36911 arg2 = static_cast< int >(val2);
36912 ecode3 = SWIG_AsVal_int(obj2, &val3);
36913 if (!SWIG_IsOK(ecode3)) {
36914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36915 }
36916 arg3 = static_cast< int >(val3);
36917 ecode4 = SWIG_AsVal_int(obj3, &val4);
36918 if (!SWIG_IsOK(ecode4)) {
36919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36920 }
36921 arg4 = static_cast< int >(val4);
36922 ecode5 = SWIG_AsVal_int(obj4, &val5);
36923 if (!SWIG_IsOK(ecode5)) {
36924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36925 }
36926 arg5 = static_cast< int >(val5);
36927 ecode6 = SWIG_AsVal_int(obj5, &val6);
36928 if (!SWIG_IsOK(ecode6)) {
36929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36930 }
36931 arg6 = static_cast< int >(val6);
36932 ecode7 = SWIG_AsVal_int(obj6, &val7);
36933 if (!SWIG_IsOK(ecode7)) {
36934 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36935 }
36936 arg7 = static_cast< int >(val7);
36937 {
36938 PyThreadState* __tstate = wxPyBeginAllowThreads();
36939 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36940 wxPyEndAllowThreads(__tstate);
36941 if (PyErr_Occurred()) SWIG_fail;
36942 }
36943 resultobj = SWIG_Py_Void();
36944 return resultobj;
36945fail:
36946 return NULL;
36947}
36948
36949
36950SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36951 PyObject *resultobj = 0;
36952 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36953 wxPoint *arg2 = 0 ;
36954 wxPoint *arg3 = 0 ;
36955 wxPoint *arg4 = 0 ;
36956 void *argp1 = 0 ;
36957 int res1 = 0 ;
36958 wxPoint temp2 ;
36959 wxPoint temp3 ;
36960 wxPoint temp4 ;
36961 PyObject * obj0 = 0 ;
36962 PyObject * obj1 = 0 ;
36963 PyObject * obj2 = 0 ;
36964 PyObject * obj3 = 0 ;
36965 char * kwnames[] = {
36966 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36967 };
36968
36969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36971 if (!SWIG_IsOK(res1)) {
36972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36973 }
36974 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36975 {
36976 arg2 = &temp2;
36977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36978 }
36979 {
36980 arg3 = &temp3;
36981 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36982 }
36983 {
36984 arg4 = &temp4;
36985 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36986 }
36987 {
36988 PyThreadState* __tstate = wxPyBeginAllowThreads();
36989 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36990 wxPyEndAllowThreads(__tstate);
36991 if (PyErr_Occurred()) SWIG_fail;
36992 }
36993 resultobj = SWIG_Py_Void();
36994 return resultobj;
36995fail:
36996 return NULL;
36997}
36998
36999
37000SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37001 PyObject *resultobj = 0;
37002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37003 int arg2 ;
37004 int arg3 ;
37005 int arg4 ;
37006 int arg5 ;
37007 void *argp1 = 0 ;
37008 int res1 = 0 ;
37009 int val2 ;
37010 int ecode2 = 0 ;
37011 int val3 ;
37012 int ecode3 = 0 ;
37013 int val4 ;
37014 int ecode4 = 0 ;
37015 int val5 ;
37016 int ecode5 = 0 ;
37017 PyObject * obj0 = 0 ;
37018 PyObject * obj1 = 0 ;
37019 PyObject * obj2 = 0 ;
37020 PyObject * obj3 = 0 ;
37021 PyObject * obj4 = 0 ;
37022 char * kwnames[] = {
37023 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37024 };
37025
37026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37028 if (!SWIG_IsOK(res1)) {
37029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37030 }
37031 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37032 ecode2 = SWIG_AsVal_int(obj1, &val2);
37033 if (!SWIG_IsOK(ecode2)) {
37034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37035 }
37036 arg2 = static_cast< int >(val2);
37037 ecode3 = SWIG_AsVal_int(obj2, &val3);
37038 if (!SWIG_IsOK(ecode3)) {
37039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37040 }
37041 arg3 = static_cast< int >(val3);
37042 ecode4 = SWIG_AsVal_int(obj3, &val4);
37043 if (!SWIG_IsOK(ecode4)) {
37044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37045 }
37046 arg4 = static_cast< int >(val4);
37047 ecode5 = SWIG_AsVal_int(obj4, &val5);
37048 if (!SWIG_IsOK(ecode5)) {
37049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37050 }
37051 arg5 = static_cast< int >(val5);
37052 {
37053 PyThreadState* __tstate = wxPyBeginAllowThreads();
37054 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37055 wxPyEndAllowThreads(__tstate);
37056 if (PyErr_Occurred()) SWIG_fail;
37057 }
37058 resultobj = SWIG_Py_Void();
37059 return resultobj;
37060fail:
37061 return NULL;
37062}
37063
37064
37065SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37066 PyObject *resultobj = 0;
37067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37068 wxRect *arg2 = 0 ;
37069 void *argp1 = 0 ;
37070 int res1 = 0 ;
37071 wxRect temp2 ;
37072 PyObject * obj0 = 0 ;
37073 PyObject * obj1 = 0 ;
37074 char * kwnames[] = {
37075 (char *) "self",(char *) "rect", NULL
37076 };
37077
37078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37080 if (!SWIG_IsOK(res1)) {
37081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37082 }
37083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37084 {
37085 arg2 = &temp2;
37086 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37087 }
37088 {
37089 PyThreadState* __tstate = wxPyBeginAllowThreads();
37090 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37091 wxPyEndAllowThreads(__tstate);
37092 if (PyErr_Occurred()) SWIG_fail;
37093 }
37094 resultobj = SWIG_Py_Void();
37095 return resultobj;
37096fail:
37097 return NULL;
37098}
37099
37100
37101SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37102 PyObject *resultobj = 0;
37103 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37104 int arg2 ;
37105 int arg3 ;
37106 int arg4 ;
37107 int arg5 ;
37108 double arg6 ;
37109 double arg7 ;
37110 void *argp1 = 0 ;
37111 int res1 = 0 ;
37112 int val2 ;
37113 int ecode2 = 0 ;
37114 int val3 ;
37115 int ecode3 = 0 ;
37116 int val4 ;
37117 int ecode4 = 0 ;
37118 int val5 ;
37119 int ecode5 = 0 ;
37120 double val6 ;
37121 int ecode6 = 0 ;
37122 double val7 ;
37123 int ecode7 = 0 ;
37124 PyObject * obj0 = 0 ;
37125 PyObject * obj1 = 0 ;
37126 PyObject * obj2 = 0 ;
37127 PyObject * obj3 = 0 ;
37128 PyObject * obj4 = 0 ;
37129 PyObject * obj5 = 0 ;
37130 PyObject * obj6 = 0 ;
37131 char * kwnames[] = {
37132 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37133 };
37134
37135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37137 if (!SWIG_IsOK(res1)) {
37138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37139 }
37140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37141 ecode2 = SWIG_AsVal_int(obj1, &val2);
37142 if (!SWIG_IsOK(ecode2)) {
37143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37144 }
37145 arg2 = static_cast< int >(val2);
37146 ecode3 = SWIG_AsVal_int(obj2, &val3);
37147 if (!SWIG_IsOK(ecode3)) {
37148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37149 }
37150 arg3 = static_cast< int >(val3);
37151 ecode4 = SWIG_AsVal_int(obj3, &val4);
37152 if (!SWIG_IsOK(ecode4)) {
37153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37154 }
37155 arg4 = static_cast< int >(val4);
37156 ecode5 = SWIG_AsVal_int(obj4, &val5);
37157 if (!SWIG_IsOK(ecode5)) {
37158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37159 }
37160 arg5 = static_cast< int >(val5);
37161 ecode6 = SWIG_AsVal_double(obj5, &val6);
37162 if (!SWIG_IsOK(ecode6)) {
37163 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37164 }
37165 arg6 = static_cast< double >(val6);
37166 ecode7 = SWIG_AsVal_double(obj6, &val7);
37167 if (!SWIG_IsOK(ecode7)) {
37168 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37169 }
37170 arg7 = static_cast< double >(val7);
37171 {
37172 PyThreadState* __tstate = wxPyBeginAllowThreads();
37173 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37174 wxPyEndAllowThreads(__tstate);
37175 if (PyErr_Occurred()) SWIG_fail;
37176 }
37177 resultobj = SWIG_Py_Void();
37178 return resultobj;
37179fail:
37180 return NULL;
37181}
37182
37183
37184SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37185 PyObject *resultobj = 0;
37186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37187 wxPoint *arg2 = 0 ;
37188 wxSize *arg3 = 0 ;
37189 double arg4 ;
37190 double arg5 ;
37191 void *argp1 = 0 ;
37192 int res1 = 0 ;
37193 wxPoint temp2 ;
37194 wxSize temp3 ;
37195 double val4 ;
37196 int ecode4 = 0 ;
37197 double val5 ;
37198 int ecode5 = 0 ;
37199 PyObject * obj0 = 0 ;
37200 PyObject * obj1 = 0 ;
37201 PyObject * obj2 = 0 ;
37202 PyObject * obj3 = 0 ;
37203 PyObject * obj4 = 0 ;
37204 char * kwnames[] = {
37205 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37206 };
37207
37208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37210 if (!SWIG_IsOK(res1)) {
37211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37212 }
37213 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37214 {
37215 arg2 = &temp2;
37216 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37217 }
37218 {
37219 arg3 = &temp3;
37220 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37221 }
37222 ecode4 = SWIG_AsVal_double(obj3, &val4);
37223 if (!SWIG_IsOK(ecode4)) {
37224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37225 }
37226 arg4 = static_cast< double >(val4);
37227 ecode5 = SWIG_AsVal_double(obj4, &val5);
37228 if (!SWIG_IsOK(ecode5)) {
37229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37230 }
37231 arg5 = static_cast< double >(val5);
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37235 wxPyEndAllowThreads(__tstate);
37236 if (PyErr_Occurred()) SWIG_fail;
37237 }
37238 resultobj = SWIG_Py_Void();
37239 return resultobj;
37240fail:
37241 return NULL;
37242}
37243
37244
37245SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37246 PyObject *resultobj = 0;
37247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37248 int arg2 ;
37249 int arg3 ;
37250 void *argp1 = 0 ;
37251 int res1 = 0 ;
37252 int val2 ;
37253 int ecode2 = 0 ;
37254 int val3 ;
37255 int ecode3 = 0 ;
37256 PyObject * obj0 = 0 ;
37257 PyObject * obj1 = 0 ;
37258 PyObject * obj2 = 0 ;
37259 char * kwnames[] = {
37260 (char *) "self",(char *) "x",(char *) "y", NULL
37261 };
37262
37263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37265 if (!SWIG_IsOK(res1)) {
37266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37267 }
37268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37269 ecode2 = SWIG_AsVal_int(obj1, &val2);
37270 if (!SWIG_IsOK(ecode2)) {
37271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37272 }
37273 arg2 = static_cast< int >(val2);
37274 ecode3 = SWIG_AsVal_int(obj2, &val3);
37275 if (!SWIG_IsOK(ecode3)) {
37276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37277 }
37278 arg3 = static_cast< int >(val3);
37279 {
37280 PyThreadState* __tstate = wxPyBeginAllowThreads();
37281 (arg1)->DrawPoint(arg2,arg3);
37282 wxPyEndAllowThreads(__tstate);
37283 if (PyErr_Occurred()) SWIG_fail;
37284 }
37285 resultobj = SWIG_Py_Void();
37286 return resultobj;
37287fail:
37288 return NULL;
37289}
37290
37291
37292SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37293 PyObject *resultobj = 0;
37294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37295 wxPoint *arg2 = 0 ;
37296 void *argp1 = 0 ;
37297 int res1 = 0 ;
37298 wxPoint temp2 ;
37299 PyObject * obj0 = 0 ;
37300 PyObject * obj1 = 0 ;
37301 char * kwnames[] = {
37302 (char *) "self",(char *) "pt", NULL
37303 };
37304
37305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37307 if (!SWIG_IsOK(res1)) {
37308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37309 }
37310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37311 {
37312 arg2 = &temp2;
37313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37314 }
37315 {
37316 PyThreadState* __tstate = wxPyBeginAllowThreads();
37317 (arg1)->DrawPoint((wxPoint const &)*arg2);
37318 wxPyEndAllowThreads(__tstate);
37319 if (PyErr_Occurred()) SWIG_fail;
37320 }
37321 resultobj = SWIG_Py_Void();
37322 return resultobj;
37323fail:
37324 return NULL;
37325}
37326
37327
37328SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37329 PyObject *resultobj = 0;
37330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37331 int arg2 ;
37332 int arg3 ;
37333 int arg4 ;
37334 int arg5 ;
37335 void *argp1 = 0 ;
37336 int res1 = 0 ;
37337 int val2 ;
37338 int ecode2 = 0 ;
37339 int val3 ;
37340 int ecode3 = 0 ;
37341 int val4 ;
37342 int ecode4 = 0 ;
37343 int val5 ;
37344 int ecode5 = 0 ;
37345 PyObject * obj0 = 0 ;
37346 PyObject * obj1 = 0 ;
37347 PyObject * obj2 = 0 ;
37348 PyObject * obj3 = 0 ;
37349 PyObject * obj4 = 0 ;
37350 char * kwnames[] = {
37351 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37352 };
37353
37354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37356 if (!SWIG_IsOK(res1)) {
37357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37358 }
37359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37360 ecode2 = SWIG_AsVal_int(obj1, &val2);
37361 if (!SWIG_IsOK(ecode2)) {
37362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37363 }
37364 arg2 = static_cast< int >(val2);
37365 ecode3 = SWIG_AsVal_int(obj2, &val3);
37366 if (!SWIG_IsOK(ecode3)) {
37367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37368 }
37369 arg3 = static_cast< int >(val3);
37370 ecode4 = SWIG_AsVal_int(obj3, &val4);
37371 if (!SWIG_IsOK(ecode4)) {
37372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37373 }
37374 arg4 = static_cast< int >(val4);
37375 ecode5 = SWIG_AsVal_int(obj4, &val5);
37376 if (!SWIG_IsOK(ecode5)) {
37377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37378 }
37379 arg5 = static_cast< int >(val5);
37380 {
37381 PyThreadState* __tstate = wxPyBeginAllowThreads();
37382 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37383 wxPyEndAllowThreads(__tstate);
37384 if (PyErr_Occurred()) SWIG_fail;
37385 }
37386 resultobj = SWIG_Py_Void();
37387 return resultobj;
37388fail:
37389 return NULL;
37390}
37391
37392
37393SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37394 PyObject *resultobj = 0;
37395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37396 wxRect *arg2 = 0 ;
37397 void *argp1 = 0 ;
37398 int res1 = 0 ;
37399 wxRect temp2 ;
37400 PyObject * obj0 = 0 ;
37401 PyObject * obj1 = 0 ;
37402 char * kwnames[] = {
37403 (char *) "self",(char *) "rect", NULL
37404 };
37405
37406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37408 if (!SWIG_IsOK(res1)) {
37409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37410 }
37411 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37412 {
37413 arg2 = &temp2;
37414 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37415 }
37416 {
37417 PyThreadState* __tstate = wxPyBeginAllowThreads();
37418 (arg1)->DrawRectangle((wxRect const &)*arg2);
37419 wxPyEndAllowThreads(__tstate);
37420 if (PyErr_Occurred()) SWIG_fail;
37421 }
37422 resultobj = SWIG_Py_Void();
37423 return resultobj;
37424fail:
37425 return NULL;
37426}
37427
37428
37429SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37430 PyObject *resultobj = 0;
37431 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37432 wxPoint *arg2 = 0 ;
37433 wxSize *arg3 = 0 ;
37434 void *argp1 = 0 ;
37435 int res1 = 0 ;
37436 wxPoint temp2 ;
37437 wxSize temp3 ;
37438 PyObject * obj0 = 0 ;
37439 PyObject * obj1 = 0 ;
37440 PyObject * obj2 = 0 ;
37441 char * kwnames[] = {
37442 (char *) "self",(char *) "pt",(char *) "sz", NULL
37443 };
37444
37445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37447 if (!SWIG_IsOK(res1)) {
37448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37449 }
37450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37451 {
37452 arg2 = &temp2;
37453 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37454 }
37455 {
37456 arg3 = &temp3;
37457 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37458 }
37459 {
37460 PyThreadState* __tstate = wxPyBeginAllowThreads();
37461 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37462 wxPyEndAllowThreads(__tstate);
37463 if (PyErr_Occurred()) SWIG_fail;
37464 }
37465 resultobj = SWIG_Py_Void();
37466 return resultobj;
37467fail:
37468 return NULL;
37469}
37470
37471
37472SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37473 PyObject *resultobj = 0;
37474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37475 int arg2 ;
37476 int arg3 ;
37477 int arg4 ;
37478 int arg5 ;
37479 double arg6 ;
37480 void *argp1 = 0 ;
37481 int res1 = 0 ;
37482 int val2 ;
37483 int ecode2 = 0 ;
37484 int val3 ;
37485 int ecode3 = 0 ;
37486 int val4 ;
37487 int ecode4 = 0 ;
37488 int val5 ;
37489 int ecode5 = 0 ;
37490 double val6 ;
37491 int ecode6 = 0 ;
37492 PyObject * obj0 = 0 ;
37493 PyObject * obj1 = 0 ;
37494 PyObject * obj2 = 0 ;
37495 PyObject * obj3 = 0 ;
37496 PyObject * obj4 = 0 ;
37497 PyObject * obj5 = 0 ;
37498 char * kwnames[] = {
37499 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37500 };
37501
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37506 }
37507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37508 ecode2 = SWIG_AsVal_int(obj1, &val2);
37509 if (!SWIG_IsOK(ecode2)) {
37510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37511 }
37512 arg2 = static_cast< int >(val2);
37513 ecode3 = SWIG_AsVal_int(obj2, &val3);
37514 if (!SWIG_IsOK(ecode3)) {
37515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37516 }
37517 arg3 = static_cast< int >(val3);
37518 ecode4 = SWIG_AsVal_int(obj3, &val4);
37519 if (!SWIG_IsOK(ecode4)) {
37520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37521 }
37522 arg4 = static_cast< int >(val4);
37523 ecode5 = SWIG_AsVal_int(obj4, &val5);
37524 if (!SWIG_IsOK(ecode5)) {
37525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37526 }
37527 arg5 = static_cast< int >(val5);
37528 ecode6 = SWIG_AsVal_double(obj5, &val6);
37529 if (!SWIG_IsOK(ecode6)) {
37530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37531 }
37532 arg6 = static_cast< double >(val6);
37533 {
37534 PyThreadState* __tstate = wxPyBeginAllowThreads();
37535 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37536 wxPyEndAllowThreads(__tstate);
37537 if (PyErr_Occurred()) SWIG_fail;
37538 }
37539 resultobj = SWIG_Py_Void();
37540 return resultobj;
37541fail:
37542 return NULL;
37543}
37544
37545
37546SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37547 PyObject *resultobj = 0;
37548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37549 wxRect *arg2 = 0 ;
37550 double arg3 ;
37551 void *argp1 = 0 ;
37552 int res1 = 0 ;
37553 wxRect temp2 ;
37554 double val3 ;
37555 int ecode3 = 0 ;
37556 PyObject * obj0 = 0 ;
37557 PyObject * obj1 = 0 ;
37558 PyObject * obj2 = 0 ;
37559 char * kwnames[] = {
37560 (char *) "self",(char *) "r",(char *) "radius", NULL
37561 };
37562
37563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37565 if (!SWIG_IsOK(res1)) {
37566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37567 }
37568 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37569 {
37570 arg2 = &temp2;
37571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37572 }
37573 ecode3 = SWIG_AsVal_double(obj2, &val3);
37574 if (!SWIG_IsOK(ecode3)) {
37575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37576 }
37577 arg3 = static_cast< double >(val3);
37578 {
37579 PyThreadState* __tstate = wxPyBeginAllowThreads();
37580 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37581 wxPyEndAllowThreads(__tstate);
37582 if (PyErr_Occurred()) SWIG_fail;
37583 }
37584 resultobj = SWIG_Py_Void();
37585 return resultobj;
37586fail:
37587 return NULL;
37588}
37589
37590
37591SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37592 PyObject *resultobj = 0;
37593 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37594 wxPoint *arg2 = 0 ;
37595 wxSize *arg3 = 0 ;
37596 double arg4 ;
37597 void *argp1 = 0 ;
37598 int res1 = 0 ;
37599 wxPoint temp2 ;
37600 wxSize temp3 ;
37601 double val4 ;
37602 int ecode4 = 0 ;
37603 PyObject * obj0 = 0 ;
37604 PyObject * obj1 = 0 ;
37605 PyObject * obj2 = 0 ;
37606 PyObject * obj3 = 0 ;
37607 char * kwnames[] = {
37608 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37609 };
37610
37611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37613 if (!SWIG_IsOK(res1)) {
37614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37615 }
37616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37617 {
37618 arg2 = &temp2;
37619 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37620 }
37621 {
37622 arg3 = &temp3;
37623 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37624 }
37625 ecode4 = SWIG_AsVal_double(obj3, &val4);
37626 if (!SWIG_IsOK(ecode4)) {
37627 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37628 }
37629 arg4 = static_cast< double >(val4);
37630 {
37631 PyThreadState* __tstate = wxPyBeginAllowThreads();
37632 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37633 wxPyEndAllowThreads(__tstate);
37634 if (PyErr_Occurred()) SWIG_fail;
37635 }
37636 resultobj = SWIG_Py_Void();
37637 return resultobj;
37638fail:
37639 return NULL;
37640}
37641
37642
37643SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37644 PyObject *resultobj = 0;
37645 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37646 int arg2 ;
37647 int arg3 ;
37648 int arg4 ;
37649 void *argp1 = 0 ;
37650 int res1 = 0 ;
37651 int val2 ;
37652 int ecode2 = 0 ;
37653 int val3 ;
37654 int ecode3 = 0 ;
37655 int val4 ;
37656 int ecode4 = 0 ;
37657 PyObject * obj0 = 0 ;
37658 PyObject * obj1 = 0 ;
37659 PyObject * obj2 = 0 ;
37660 PyObject * obj3 = 0 ;
37661 char * kwnames[] = {
37662 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37663 };
37664
37665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37667 if (!SWIG_IsOK(res1)) {
37668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37669 }
37670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37671 ecode2 = SWIG_AsVal_int(obj1, &val2);
37672 if (!SWIG_IsOK(ecode2)) {
37673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37674 }
37675 arg2 = static_cast< int >(val2);
37676 ecode3 = SWIG_AsVal_int(obj2, &val3);
37677 if (!SWIG_IsOK(ecode3)) {
37678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37679 }
37680 arg3 = static_cast< int >(val3);
37681 ecode4 = SWIG_AsVal_int(obj3, &val4);
37682 if (!SWIG_IsOK(ecode4)) {
37683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37684 }
37685 arg4 = static_cast< int >(val4);
37686 {
37687 PyThreadState* __tstate = wxPyBeginAllowThreads();
37688 (arg1)->DrawCircle(arg2,arg3,arg4);
37689 wxPyEndAllowThreads(__tstate);
37690 if (PyErr_Occurred()) SWIG_fail;
37691 }
37692 resultobj = SWIG_Py_Void();
37693 return resultobj;
37694fail:
37695 return NULL;
37696}
37697
37698
37699SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37700 PyObject *resultobj = 0;
37701 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37702 wxPoint *arg2 = 0 ;
37703 int arg3 ;
37704 void *argp1 = 0 ;
37705 int res1 = 0 ;
37706 wxPoint temp2 ;
37707 int val3 ;
37708 int ecode3 = 0 ;
37709 PyObject * obj0 = 0 ;
37710 PyObject * obj1 = 0 ;
37711 PyObject * obj2 = 0 ;
37712 char * kwnames[] = {
37713 (char *) "self",(char *) "pt",(char *) "radius", NULL
37714 };
37715
37716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37718 if (!SWIG_IsOK(res1)) {
37719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37720 }
37721 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37722 {
37723 arg2 = &temp2;
37724 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37725 }
37726 ecode3 = SWIG_AsVal_int(obj2, &val3);
37727 if (!SWIG_IsOK(ecode3)) {
37728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37729 }
37730 arg3 = static_cast< int >(val3);
37731 {
37732 PyThreadState* __tstate = wxPyBeginAllowThreads();
37733 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37734 wxPyEndAllowThreads(__tstate);
37735 if (PyErr_Occurred()) SWIG_fail;
37736 }
37737 resultobj = SWIG_Py_Void();
37738 return resultobj;
37739fail:
37740 return NULL;
37741}
37742
37743
37744SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37745 PyObject *resultobj = 0;
37746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37747 int arg2 ;
37748 int arg3 ;
37749 int arg4 ;
37750 int arg5 ;
37751 void *argp1 = 0 ;
37752 int res1 = 0 ;
37753 int val2 ;
37754 int ecode2 = 0 ;
37755 int val3 ;
37756 int ecode3 = 0 ;
37757 int val4 ;
37758 int ecode4 = 0 ;
37759 int val5 ;
37760 int ecode5 = 0 ;
37761 PyObject * obj0 = 0 ;
37762 PyObject * obj1 = 0 ;
37763 PyObject * obj2 = 0 ;
37764 PyObject * obj3 = 0 ;
37765 PyObject * obj4 = 0 ;
37766 char * kwnames[] = {
37767 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37768 };
37769
37770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37772 if (!SWIG_IsOK(res1)) {
37773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37774 }
37775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37776 ecode2 = SWIG_AsVal_int(obj1, &val2);
37777 if (!SWIG_IsOK(ecode2)) {
37778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37779 }
37780 arg2 = static_cast< int >(val2);
37781 ecode3 = SWIG_AsVal_int(obj2, &val3);
37782 if (!SWIG_IsOK(ecode3)) {
37783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37784 }
37785 arg3 = static_cast< int >(val3);
37786 ecode4 = SWIG_AsVal_int(obj3, &val4);
37787 if (!SWIG_IsOK(ecode4)) {
37788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37789 }
37790 arg4 = static_cast< int >(val4);
37791 ecode5 = SWIG_AsVal_int(obj4, &val5);
37792 if (!SWIG_IsOK(ecode5)) {
37793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37794 }
37795 arg5 = static_cast< int >(val5);
37796 {
37797 PyThreadState* __tstate = wxPyBeginAllowThreads();
37798 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37799 wxPyEndAllowThreads(__tstate);
37800 if (PyErr_Occurred()) SWIG_fail;
37801 }
37802 resultobj = SWIG_Py_Void();
37803 return resultobj;
37804fail:
37805 return NULL;
37806}
37807
37808
37809SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37810 PyObject *resultobj = 0;
37811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37812 wxRect *arg2 = 0 ;
37813 void *argp1 = 0 ;
37814 int res1 = 0 ;
37815 wxRect temp2 ;
37816 PyObject * obj0 = 0 ;
37817 PyObject * obj1 = 0 ;
37818 char * kwnames[] = {
37819 (char *) "self",(char *) "rect", NULL
37820 };
37821
37822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37824 if (!SWIG_IsOK(res1)) {
37825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37826 }
37827 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37828 {
37829 arg2 = &temp2;
37830 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37831 }
37832 {
37833 PyThreadState* __tstate = wxPyBeginAllowThreads();
37834 (arg1)->DrawEllipse((wxRect const &)*arg2);
37835 wxPyEndAllowThreads(__tstate);
37836 if (PyErr_Occurred()) SWIG_fail;
37837 }
37838 resultobj = SWIG_Py_Void();
37839 return resultobj;
37840fail:
37841 return NULL;
37842}
37843
37844
37845SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37846 PyObject *resultobj = 0;
37847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37848 wxPoint *arg2 = 0 ;
37849 wxSize *arg3 = 0 ;
37850 void *argp1 = 0 ;
37851 int res1 = 0 ;
37852 wxPoint temp2 ;
37853 wxSize temp3 ;
37854 PyObject * obj0 = 0 ;
37855 PyObject * obj1 = 0 ;
37856 PyObject * obj2 = 0 ;
37857 char * kwnames[] = {
37858 (char *) "self",(char *) "pt",(char *) "sz", NULL
37859 };
37860
37861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37863 if (!SWIG_IsOK(res1)) {
37864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37865 }
37866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37867 {
37868 arg2 = &temp2;
37869 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37870 }
37871 {
37872 arg3 = &temp3;
37873 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37874 }
37875 {
37876 PyThreadState* __tstate = wxPyBeginAllowThreads();
37877 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37878 wxPyEndAllowThreads(__tstate);
37879 if (PyErr_Occurred()) SWIG_fail;
37880 }
37881 resultobj = SWIG_Py_Void();
37882 return resultobj;
37883fail:
37884 return NULL;
37885}
37886
37887
37888SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37889 PyObject *resultobj = 0;
37890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37891 wxIcon *arg2 = 0 ;
37892 int arg3 ;
37893 int arg4 ;
37894 void *argp1 = 0 ;
37895 int res1 = 0 ;
37896 void *argp2 = 0 ;
37897 int res2 = 0 ;
37898 int val3 ;
37899 int ecode3 = 0 ;
37900 int val4 ;
37901 int ecode4 = 0 ;
37902 PyObject * obj0 = 0 ;
37903 PyObject * obj1 = 0 ;
37904 PyObject * obj2 = 0 ;
37905 PyObject * obj3 = 0 ;
37906 char * kwnames[] = {
37907 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37908 };
37909
37910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37912 if (!SWIG_IsOK(res1)) {
37913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37914 }
37915 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37916 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37917 if (!SWIG_IsOK(res2)) {
37918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37919 }
37920 if (!argp2) {
37921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37922 }
37923 arg2 = reinterpret_cast< wxIcon * >(argp2);
37924 ecode3 = SWIG_AsVal_int(obj2, &val3);
37925 if (!SWIG_IsOK(ecode3)) {
37926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37927 }
37928 arg3 = static_cast< int >(val3);
37929 ecode4 = SWIG_AsVal_int(obj3, &val4);
37930 if (!SWIG_IsOK(ecode4)) {
37931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37932 }
37933 arg4 = static_cast< int >(val4);
37934 {
37935 PyThreadState* __tstate = wxPyBeginAllowThreads();
37936 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37937 wxPyEndAllowThreads(__tstate);
37938 if (PyErr_Occurred()) SWIG_fail;
37939 }
37940 resultobj = SWIG_Py_Void();
37941 return resultobj;
37942fail:
37943 return NULL;
37944}
37945
37946
37947SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37948 PyObject *resultobj = 0;
37949 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37950 wxIcon *arg2 = 0 ;
37951 wxPoint *arg3 = 0 ;
37952 void *argp1 = 0 ;
37953 int res1 = 0 ;
37954 void *argp2 = 0 ;
37955 int res2 = 0 ;
37956 wxPoint temp3 ;
37957 PyObject * obj0 = 0 ;
37958 PyObject * obj1 = 0 ;
37959 PyObject * obj2 = 0 ;
37960 char * kwnames[] = {
37961 (char *) "self",(char *) "icon",(char *) "pt", NULL
37962 };
37963
37964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37966 if (!SWIG_IsOK(res1)) {
37967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37968 }
37969 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37971 if (!SWIG_IsOK(res2)) {
37972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37973 }
37974 if (!argp2) {
37975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37976 }
37977 arg2 = reinterpret_cast< wxIcon * >(argp2);
37978 {
37979 arg3 = &temp3;
37980 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37981 }
37982 {
37983 PyThreadState* __tstate = wxPyBeginAllowThreads();
37984 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37985 wxPyEndAllowThreads(__tstate);
37986 if (PyErr_Occurred()) SWIG_fail;
37987 }
37988 resultobj = SWIG_Py_Void();
37989 return resultobj;
37990fail:
37991 return NULL;
37992}
37993
37994
37995SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37996 PyObject *resultobj = 0;
37997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37998 wxBitmap *arg2 = 0 ;
37999 int arg3 ;
38000 int arg4 ;
38001 bool arg5 = (bool) false ;
38002 void *argp1 = 0 ;
38003 int res1 = 0 ;
38004 void *argp2 = 0 ;
38005 int res2 = 0 ;
38006 int val3 ;
38007 int ecode3 = 0 ;
38008 int val4 ;
38009 int ecode4 = 0 ;
38010 bool val5 ;
38011 int ecode5 = 0 ;
38012 PyObject * obj0 = 0 ;
38013 PyObject * obj1 = 0 ;
38014 PyObject * obj2 = 0 ;
38015 PyObject * obj3 = 0 ;
38016 PyObject * obj4 = 0 ;
38017 char * kwnames[] = {
38018 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38019 };
38020
38021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38023 if (!SWIG_IsOK(res1)) {
38024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38025 }
38026 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38028 if (!SWIG_IsOK(res2)) {
38029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38030 }
38031 if (!argp2) {
38032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38033 }
38034 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38035 ecode3 = SWIG_AsVal_int(obj2, &val3);
38036 if (!SWIG_IsOK(ecode3)) {
38037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38038 }
38039 arg3 = static_cast< int >(val3);
38040 ecode4 = SWIG_AsVal_int(obj3, &val4);
38041 if (!SWIG_IsOK(ecode4)) {
38042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38043 }
38044 arg4 = static_cast< int >(val4);
38045 if (obj4) {
38046 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38047 if (!SWIG_IsOK(ecode5)) {
38048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38049 }
38050 arg5 = static_cast< bool >(val5);
38051 }
38052 {
38053 PyThreadState* __tstate = wxPyBeginAllowThreads();
38054 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38055 wxPyEndAllowThreads(__tstate);
38056 if (PyErr_Occurred()) SWIG_fail;
38057 }
38058 resultobj = SWIG_Py_Void();
38059 return resultobj;
38060fail:
38061 return NULL;
38062}
38063
38064
38065SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38066 PyObject *resultobj = 0;
38067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38068 wxBitmap *arg2 = 0 ;
38069 wxPoint *arg3 = 0 ;
38070 bool arg4 = (bool) false ;
38071 void *argp1 = 0 ;
38072 int res1 = 0 ;
38073 void *argp2 = 0 ;
38074 int res2 = 0 ;
38075 wxPoint temp3 ;
38076 bool val4 ;
38077 int ecode4 = 0 ;
38078 PyObject * obj0 = 0 ;
38079 PyObject * obj1 = 0 ;
38080 PyObject * obj2 = 0 ;
38081 PyObject * obj3 = 0 ;
38082 char * kwnames[] = {
38083 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38084 };
38085
38086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38088 if (!SWIG_IsOK(res1)) {
38089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38090 }
38091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38093 if (!SWIG_IsOK(res2)) {
38094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38095 }
38096 if (!argp2) {
38097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38098 }
38099 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38100 {
38101 arg3 = &temp3;
38102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38103 }
38104 if (obj3) {
38105 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38106 if (!SWIG_IsOK(ecode4)) {
38107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38108 }
38109 arg4 = static_cast< bool >(val4);
38110 }
38111 {
38112 PyThreadState* __tstate = wxPyBeginAllowThreads();
38113 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38114 wxPyEndAllowThreads(__tstate);
38115 if (PyErr_Occurred()) SWIG_fail;
38116 }
38117 resultobj = SWIG_Py_Void();
38118 return resultobj;
38119fail:
38120 return NULL;
38121}
38122
38123
38124SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38125 PyObject *resultobj = 0;
38126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38127 wxString *arg2 = 0 ;
38128 int arg3 ;
38129 int arg4 ;
38130 void *argp1 = 0 ;
38131 int res1 = 0 ;
38132 bool temp2 = false ;
38133 int val3 ;
38134 int ecode3 = 0 ;
38135 int val4 ;
38136 int ecode4 = 0 ;
38137 PyObject * obj0 = 0 ;
38138 PyObject * obj1 = 0 ;
38139 PyObject * obj2 = 0 ;
38140 PyObject * obj3 = 0 ;
38141 char * kwnames[] = {
38142 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38143 };
38144
38145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38147 if (!SWIG_IsOK(res1)) {
38148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38149 }
38150 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38151 {
38152 arg2 = wxString_in_helper(obj1);
38153 if (arg2 == NULL) SWIG_fail;
38154 temp2 = true;
38155 }
38156 ecode3 = SWIG_AsVal_int(obj2, &val3);
38157 if (!SWIG_IsOK(ecode3)) {
38158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38159 }
38160 arg3 = static_cast< int >(val3);
38161 ecode4 = SWIG_AsVal_int(obj3, &val4);
38162 if (!SWIG_IsOK(ecode4)) {
38163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38164 }
38165 arg4 = static_cast< int >(val4);
38166 {
38167 PyThreadState* __tstate = wxPyBeginAllowThreads();
38168 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38169 wxPyEndAllowThreads(__tstate);
38170 if (PyErr_Occurred()) SWIG_fail;
38171 }
38172 resultobj = SWIG_Py_Void();
38173 {
38174 if (temp2)
38175 delete arg2;
38176 }
38177 return resultobj;
38178fail:
38179 {
38180 if (temp2)
38181 delete arg2;
38182 }
38183 return NULL;
38184}
38185
38186
38187SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38188 PyObject *resultobj = 0;
38189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38190 wxString *arg2 = 0 ;
38191 wxPoint *arg3 = 0 ;
38192 void *argp1 = 0 ;
38193 int res1 = 0 ;
38194 bool temp2 = false ;
38195 wxPoint temp3 ;
38196 PyObject * obj0 = 0 ;
38197 PyObject * obj1 = 0 ;
38198 PyObject * obj2 = 0 ;
38199 char * kwnames[] = {
38200 (char *) "self",(char *) "text",(char *) "pt", NULL
38201 };
38202
38203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38205 if (!SWIG_IsOK(res1)) {
38206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38207 }
38208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38209 {
38210 arg2 = wxString_in_helper(obj1);
38211 if (arg2 == NULL) SWIG_fail;
38212 temp2 = true;
38213 }
38214 {
38215 arg3 = &temp3;
38216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38217 }
38218 {
38219 PyThreadState* __tstate = wxPyBeginAllowThreads();
38220 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38221 wxPyEndAllowThreads(__tstate);
38222 if (PyErr_Occurred()) SWIG_fail;
38223 }
38224 resultobj = SWIG_Py_Void();
38225 {
38226 if (temp2)
38227 delete arg2;
38228 }
38229 return resultobj;
38230fail:
38231 {
38232 if (temp2)
38233 delete arg2;
38234 }
38235 return NULL;
38236}
38237
38238
38239SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38240 PyObject *resultobj = 0;
38241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38242 wxString *arg2 = 0 ;
38243 int arg3 ;
38244 int arg4 ;
38245 double arg5 ;
38246 void *argp1 = 0 ;
38247 int res1 = 0 ;
38248 bool temp2 = false ;
38249 int val3 ;
38250 int ecode3 = 0 ;
38251 int val4 ;
38252 int ecode4 = 0 ;
38253 double val5 ;
38254 int ecode5 = 0 ;
38255 PyObject * obj0 = 0 ;
38256 PyObject * obj1 = 0 ;
38257 PyObject * obj2 = 0 ;
38258 PyObject * obj3 = 0 ;
38259 PyObject * obj4 = 0 ;
38260 char * kwnames[] = {
38261 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38262 };
38263
38264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38266 if (!SWIG_IsOK(res1)) {
38267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38268 }
38269 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38270 {
38271 arg2 = wxString_in_helper(obj1);
38272 if (arg2 == NULL) SWIG_fail;
38273 temp2 = true;
38274 }
38275 ecode3 = SWIG_AsVal_int(obj2, &val3);
38276 if (!SWIG_IsOK(ecode3)) {
38277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38278 }
38279 arg3 = static_cast< int >(val3);
38280 ecode4 = SWIG_AsVal_int(obj3, &val4);
38281 if (!SWIG_IsOK(ecode4)) {
38282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38283 }
38284 arg4 = static_cast< int >(val4);
38285 ecode5 = SWIG_AsVal_double(obj4, &val5);
38286 if (!SWIG_IsOK(ecode5)) {
38287 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38288 }
38289 arg5 = static_cast< double >(val5);
38290 {
38291 PyThreadState* __tstate = wxPyBeginAllowThreads();
38292 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38293 wxPyEndAllowThreads(__tstate);
38294 if (PyErr_Occurred()) SWIG_fail;
38295 }
38296 resultobj = SWIG_Py_Void();
38297 {
38298 if (temp2)
38299 delete arg2;
38300 }
38301 return resultobj;
38302fail:
38303 {
38304 if (temp2)
38305 delete arg2;
38306 }
38307 return NULL;
38308}
38309
38310
38311SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38312 PyObject *resultobj = 0;
38313 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38314 wxString *arg2 = 0 ;
38315 wxPoint *arg3 = 0 ;
38316 double arg4 ;
38317 void *argp1 = 0 ;
38318 int res1 = 0 ;
38319 bool temp2 = false ;
38320 wxPoint temp3 ;
38321 double val4 ;
38322 int ecode4 = 0 ;
38323 PyObject * obj0 = 0 ;
38324 PyObject * obj1 = 0 ;
38325 PyObject * obj2 = 0 ;
38326 PyObject * obj3 = 0 ;
38327 char * kwnames[] = {
38328 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38329 };
38330
38331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38333 if (!SWIG_IsOK(res1)) {
38334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38335 }
38336 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38337 {
38338 arg2 = wxString_in_helper(obj1);
38339 if (arg2 == NULL) SWIG_fail;
38340 temp2 = true;
38341 }
38342 {
38343 arg3 = &temp3;
38344 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38345 }
38346 ecode4 = SWIG_AsVal_double(obj3, &val4);
38347 if (!SWIG_IsOK(ecode4)) {
38348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38349 }
38350 arg4 = static_cast< double >(val4);
38351 {
38352 PyThreadState* __tstate = wxPyBeginAllowThreads();
38353 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38354 wxPyEndAllowThreads(__tstate);
38355 if (PyErr_Occurred()) SWIG_fail;
38356 }
38357 resultobj = SWIG_Py_Void();
38358 {
38359 if (temp2)
38360 delete arg2;
38361 }
38362 return resultobj;
38363fail:
38364 {
38365 if (temp2)
38366 delete arg2;
38367 }
38368 return NULL;
38369}
38370
38371
38372SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38373 PyObject *resultobj = 0;
38374 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38375 int arg2 ;
38376 wxPoint *arg3 = (wxPoint *) 0 ;
38377 int arg4 = (int) 0 ;
38378 int arg5 = (int) 0 ;
38379 void *argp1 = 0 ;
38380 int res1 = 0 ;
38381 int val4 ;
38382 int ecode4 = 0 ;
38383 int val5 ;
38384 int ecode5 = 0 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 PyObject * obj2 = 0 ;
38388 PyObject * obj3 = 0 ;
38389 char * kwnames[] = {
38390 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38391 };
38392
38393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38395 if (!SWIG_IsOK(res1)) {
38396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38397 }
38398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38399 {
38400 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38401 if (arg3 == NULL) SWIG_fail;
38402 }
38403 if (obj2) {
38404 ecode4 = SWIG_AsVal_int(obj2, &val4);
38405 if (!SWIG_IsOK(ecode4)) {
38406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38407 }
38408 arg4 = static_cast< int >(val4);
38409 }
38410 if (obj3) {
38411 ecode5 = SWIG_AsVal_int(obj3, &val5);
38412 if (!SWIG_IsOK(ecode5)) {
38413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38414 }
38415 arg5 = static_cast< int >(val5);
38416 }
38417 {
38418 PyThreadState* __tstate = wxPyBeginAllowThreads();
38419 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38420 wxPyEndAllowThreads(__tstate);
38421 if (PyErr_Occurred()) SWIG_fail;
38422 }
38423 resultobj = SWIG_Py_Void();
38424 {
38425 if (arg3) delete [] arg3;
38426 }
38427 return resultobj;
38428fail:
38429 {
38430 if (arg3) delete [] arg3;
38431 }
38432 return NULL;
38433}
38434
38435
38436SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38437 PyObject *resultobj = 0;
38438 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38439 int arg2 ;
38440 wxPoint *arg3 = (wxPoint *) 0 ;
38441 int arg4 = (int) 0 ;
38442 int arg5 = (int) 0 ;
38443 int arg6 = (int) wxODDEVEN_RULE ;
38444 void *argp1 = 0 ;
38445 int res1 = 0 ;
38446 int val4 ;
38447 int ecode4 = 0 ;
38448 int val5 ;
38449 int ecode5 = 0 ;
38450 int val6 ;
38451 int ecode6 = 0 ;
38452 PyObject * obj0 = 0 ;
38453 PyObject * obj1 = 0 ;
38454 PyObject * obj2 = 0 ;
38455 PyObject * obj3 = 0 ;
38456 PyObject * obj4 = 0 ;
38457 char * kwnames[] = {
38458 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38459 };
38460
38461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38463 if (!SWIG_IsOK(res1)) {
38464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38465 }
38466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38467 {
38468 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38469 if (arg3 == NULL) SWIG_fail;
38470 }
38471 if (obj2) {
38472 ecode4 = SWIG_AsVal_int(obj2, &val4);
38473 if (!SWIG_IsOK(ecode4)) {
38474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38475 }
38476 arg4 = static_cast< int >(val4);
38477 }
38478 if (obj3) {
38479 ecode5 = SWIG_AsVal_int(obj3, &val5);
38480 if (!SWIG_IsOK(ecode5)) {
38481 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38482 }
38483 arg5 = static_cast< int >(val5);
38484 }
38485 if (obj4) {
38486 ecode6 = SWIG_AsVal_int(obj4, &val6);
38487 if (!SWIG_IsOK(ecode6)) {
38488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38489 }
38490 arg6 = static_cast< int >(val6);
38491 }
38492 {
38493 PyThreadState* __tstate = wxPyBeginAllowThreads();
38494 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38495 wxPyEndAllowThreads(__tstate);
38496 if (PyErr_Occurred()) SWIG_fail;
38497 }
38498 resultobj = SWIG_Py_Void();
38499 {
38500 if (arg3) delete [] arg3;
38501 }
38502 return resultobj;
38503fail:
38504 {
38505 if (arg3) delete [] arg3;
38506 }
38507 return NULL;
38508}
38509
38510
38511SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38512 PyObject *resultobj = 0;
38513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38514 wxString *arg2 = 0 ;
38515 wxRect *arg3 = 0 ;
38516 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38517 int arg5 = (int) -1 ;
38518 void *argp1 = 0 ;
38519 int res1 = 0 ;
38520 bool temp2 = false ;
38521 wxRect temp3 ;
38522 int val4 ;
38523 int ecode4 = 0 ;
38524 int val5 ;
38525 int ecode5 = 0 ;
38526 PyObject * obj0 = 0 ;
38527 PyObject * obj1 = 0 ;
38528 PyObject * obj2 = 0 ;
38529 PyObject * obj3 = 0 ;
38530 PyObject * obj4 = 0 ;
38531 char * kwnames[] = {
38532 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38533 };
38534
38535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38537 if (!SWIG_IsOK(res1)) {
38538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38539 }
38540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38541 {
38542 arg2 = wxString_in_helper(obj1);
38543 if (arg2 == NULL) SWIG_fail;
38544 temp2 = true;
38545 }
38546 {
38547 arg3 = &temp3;
38548 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38549 }
38550 if (obj3) {
38551 ecode4 = SWIG_AsVal_int(obj3, &val4);
38552 if (!SWIG_IsOK(ecode4)) {
38553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38554 }
38555 arg4 = static_cast< int >(val4);
38556 }
38557 if (obj4) {
38558 ecode5 = SWIG_AsVal_int(obj4, &val5);
38559 if (!SWIG_IsOK(ecode5)) {
38560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38561 }
38562 arg5 = static_cast< int >(val5);
38563 }
38564 {
38565 PyThreadState* __tstate = wxPyBeginAllowThreads();
38566 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38567 wxPyEndAllowThreads(__tstate);
38568 if (PyErr_Occurred()) SWIG_fail;
38569 }
38570 resultobj = SWIG_Py_Void();
38571 {
38572 if (temp2)
38573 delete arg2;
38574 }
38575 return resultobj;
38576fail:
38577 {
38578 if (temp2)
38579 delete arg2;
38580 }
38581 return NULL;
38582}
38583
38584
38585SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38586 PyObject *resultobj = 0;
38587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38588 wxString *arg2 = 0 ;
38589 wxBitmap *arg3 = 0 ;
38590 wxRect *arg4 = 0 ;
38591 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38592 int arg6 = (int) -1 ;
38593 void *argp1 = 0 ;
38594 int res1 = 0 ;
38595 bool temp2 = false ;
38596 void *argp3 = 0 ;
38597 int res3 = 0 ;
38598 wxRect temp4 ;
38599 int val5 ;
38600 int ecode5 = 0 ;
38601 int val6 ;
38602 int ecode6 = 0 ;
38603 PyObject * obj0 = 0 ;
38604 PyObject * obj1 = 0 ;
38605 PyObject * obj2 = 0 ;
38606 PyObject * obj3 = 0 ;
38607 PyObject * obj4 = 0 ;
38608 PyObject * obj5 = 0 ;
38609 char * kwnames[] = {
38610 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38611 };
38612
38613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38615 if (!SWIG_IsOK(res1)) {
38616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38617 }
38618 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38619 {
38620 arg2 = wxString_in_helper(obj1);
38621 if (arg2 == NULL) SWIG_fail;
38622 temp2 = true;
38623 }
38624 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38625 if (!SWIG_IsOK(res3)) {
38626 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38627 }
38628 if (!argp3) {
38629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38630 }
38631 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38632 {
38633 arg4 = &temp4;
38634 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38635 }
38636 if (obj4) {
38637 ecode5 = SWIG_AsVal_int(obj4, &val5);
38638 if (!SWIG_IsOK(ecode5)) {
38639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38640 }
38641 arg5 = static_cast< int >(val5);
38642 }
38643 if (obj5) {
38644 ecode6 = SWIG_AsVal_int(obj5, &val6);
38645 if (!SWIG_IsOK(ecode6)) {
38646 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38647 }
38648 arg6 = static_cast< int >(val6);
38649 }
38650 {
38651 PyThreadState* __tstate = wxPyBeginAllowThreads();
38652 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38653 wxPyEndAllowThreads(__tstate);
38654 if (PyErr_Occurred()) SWIG_fail;
38655 }
38656 resultobj = SWIG_Py_Void();
38657 {
38658 if (temp2)
38659 delete arg2;
38660 }
38661 return resultobj;
38662fail:
38663 {
38664 if (temp2)
38665 delete arg2;
38666 }
38667 return NULL;
38668}
38669
38670
38671SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38672 PyObject *resultobj = 0;
38673 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38674 int arg2 ;
38675 wxPoint *arg3 = (wxPoint *) 0 ;
38676 void *argp1 = 0 ;
38677 int res1 = 0 ;
38678 PyObject * obj0 = 0 ;
38679 PyObject * obj1 = 0 ;
38680 char * kwnames[] = {
38681 (char *) "self",(char *) "points", NULL
38682 };
38683
38684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38686 if (!SWIG_IsOK(res1)) {
38687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38688 }
38689 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38690 {
38691 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38692 if (arg3 == NULL) SWIG_fail;
38693 }
38694 {
38695 PyThreadState* __tstate = wxPyBeginAllowThreads();
38696 (arg1)->DrawSpline(arg2,arg3);
38697 wxPyEndAllowThreads(__tstate);
38698 if (PyErr_Occurred()) SWIG_fail;
38699 }
38700 resultobj = SWIG_Py_Void();
38701 {
38702 if (arg3) delete [] arg3;
38703 }
38704 return resultobj;
38705fail:
38706 {
38707 if (arg3) delete [] arg3;
38708 }
38709 return NULL;
38710}
38711
38712
38713SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38714 PyObject *resultobj = 0;
38715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38716 void *argp1 = 0 ;
38717 int res1 = 0 ;
38718 PyObject *swig_obj[1] ;
38719
38720 if (!args) SWIG_fail;
38721 swig_obj[0] = args;
38722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38723 if (!SWIG_IsOK(res1)) {
38724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38725 }
38726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38727 {
38728 PyThreadState* __tstate = wxPyBeginAllowThreads();
38729 (arg1)->Clear();
38730 wxPyEndAllowThreads(__tstate);
38731 if (PyErr_Occurred()) SWIG_fail;
38732 }
38733 resultobj = SWIG_Py_Void();
38734 return resultobj;
38735fail:
38736 return NULL;
38737}
38738
38739
38740SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38741 PyObject *resultobj = 0;
38742 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38743 wxFont *arg2 = 0 ;
38744 void *argp1 = 0 ;
38745 int res1 = 0 ;
38746 void *argp2 = 0 ;
38747 int res2 = 0 ;
38748 PyObject * obj0 = 0 ;
38749 PyObject * obj1 = 0 ;
38750 char * kwnames[] = {
38751 (char *) "self",(char *) "font", NULL
38752 };
38753
38754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38756 if (!SWIG_IsOK(res1)) {
38757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38758 }
38759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38761 if (!SWIG_IsOK(res2)) {
38762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38763 }
38764 if (!argp2) {
38765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38766 }
38767 arg2 = reinterpret_cast< wxFont * >(argp2);
38768 {
38769 PyThreadState* __tstate = wxPyBeginAllowThreads();
38770 (arg1)->SetFont((wxFont const &)*arg2);
38771 wxPyEndAllowThreads(__tstate);
38772 if (PyErr_Occurred()) SWIG_fail;
38773 }
38774 resultobj = SWIG_Py_Void();
38775 return resultobj;
38776fail:
38777 return NULL;
38778}
38779
38780
38781SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38782 PyObject *resultobj = 0;
38783 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38784 wxPen *arg2 = 0 ;
38785 void *argp1 = 0 ;
38786 int res1 = 0 ;
38787 void *argp2 = 0 ;
38788 int res2 = 0 ;
38789 PyObject * obj0 = 0 ;
38790 PyObject * obj1 = 0 ;
38791 char * kwnames[] = {
38792 (char *) "self",(char *) "pen", NULL
38793 };
38794
38795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38797 if (!SWIG_IsOK(res1)) {
38798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38799 }
38800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38802 if (!SWIG_IsOK(res2)) {
38803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38804 }
38805 if (!argp2) {
38806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38807 }
38808 arg2 = reinterpret_cast< wxPen * >(argp2);
38809 {
38810 PyThreadState* __tstate = wxPyBeginAllowThreads();
38811 (arg1)->SetPen((wxPen const &)*arg2);
38812 wxPyEndAllowThreads(__tstate);
38813 if (PyErr_Occurred()) SWIG_fail;
38814 }
38815 resultobj = SWIG_Py_Void();
38816 return resultobj;
38817fail:
38818 return NULL;
38819}
38820
38821
38822SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38823 PyObject *resultobj = 0;
38824 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38825 wxBrush *arg2 = 0 ;
38826 void *argp1 = 0 ;
38827 int res1 = 0 ;
38828 void *argp2 = 0 ;
38829 int res2 = 0 ;
38830 PyObject * obj0 = 0 ;
38831 PyObject * obj1 = 0 ;
38832 char * kwnames[] = {
38833 (char *) "self",(char *) "brush", NULL
38834 };
38835
38836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38838 if (!SWIG_IsOK(res1)) {
38839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38840 }
38841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38843 if (!SWIG_IsOK(res2)) {
38844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38845 }
38846 if (!argp2) {
38847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38848 }
38849 arg2 = reinterpret_cast< wxBrush * >(argp2);
38850 {
38851 PyThreadState* __tstate = wxPyBeginAllowThreads();
38852 (arg1)->SetBrush((wxBrush const &)*arg2);
38853 wxPyEndAllowThreads(__tstate);
38854 if (PyErr_Occurred()) SWIG_fail;
38855 }
38856 resultobj = SWIG_Py_Void();
38857 return resultobj;
38858fail:
38859 return NULL;
38860}
38861
38862
38863SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38864 PyObject *resultobj = 0;
38865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38866 wxBrush *arg2 = 0 ;
38867 void *argp1 = 0 ;
38868 int res1 = 0 ;
38869 void *argp2 = 0 ;
38870 int res2 = 0 ;
38871 PyObject * obj0 = 0 ;
38872 PyObject * obj1 = 0 ;
38873 char * kwnames[] = {
38874 (char *) "self",(char *) "brush", NULL
38875 };
38876
38877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38879 if (!SWIG_IsOK(res1)) {
38880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38881 }
38882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38884 if (!SWIG_IsOK(res2)) {
38885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38886 }
38887 if (!argp2) {
38888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38889 }
38890 arg2 = reinterpret_cast< wxBrush * >(argp2);
38891 {
38892 PyThreadState* __tstate = wxPyBeginAllowThreads();
38893 (arg1)->SetBackground((wxBrush const &)*arg2);
38894 wxPyEndAllowThreads(__tstate);
38895 if (PyErr_Occurred()) SWIG_fail;
38896 }
38897 resultobj = SWIG_Py_Void();
38898 return resultobj;
38899fail:
38900 return NULL;
38901}
38902
38903
38904SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38905 PyObject *resultobj = 0;
38906 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38907 int arg2 ;
38908 void *argp1 = 0 ;
38909 int res1 = 0 ;
38910 int val2 ;
38911 int ecode2 = 0 ;
38912 PyObject * obj0 = 0 ;
38913 PyObject * obj1 = 0 ;
38914 char * kwnames[] = {
38915 (char *) "self",(char *) "mode", NULL
38916 };
38917
38918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38920 if (!SWIG_IsOK(res1)) {
38921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38922 }
38923 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38924 ecode2 = SWIG_AsVal_int(obj1, &val2);
38925 if (!SWIG_IsOK(ecode2)) {
38926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38927 }
38928 arg2 = static_cast< int >(val2);
38929 {
38930 PyThreadState* __tstate = wxPyBeginAllowThreads();
38931 (arg1)->SetBackgroundMode(arg2);
38932 wxPyEndAllowThreads(__tstate);
38933 if (PyErr_Occurred()) SWIG_fail;
38934 }
38935 resultobj = SWIG_Py_Void();
38936 return resultobj;
38937fail:
38938 return NULL;
38939}
38940
38941
38942SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38943 PyObject *resultobj = 0;
38944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38945 wxPalette *arg2 = 0 ;
38946 void *argp1 = 0 ;
38947 int res1 = 0 ;
38948 void *argp2 = 0 ;
38949 int res2 = 0 ;
38950 PyObject * obj0 = 0 ;
38951 PyObject * obj1 = 0 ;
38952 char * kwnames[] = {
38953 (char *) "self",(char *) "palette", NULL
38954 };
38955
38956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38958 if (!SWIG_IsOK(res1)) {
38959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38960 }
38961 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38963 if (!SWIG_IsOK(res2)) {
38964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38965 }
38966 if (!argp2) {
38967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38968 }
38969 arg2 = reinterpret_cast< wxPalette * >(argp2);
38970 {
38971 PyThreadState* __tstate = wxPyBeginAllowThreads();
38972 (arg1)->SetPalette((wxPalette const &)*arg2);
38973 wxPyEndAllowThreads(__tstate);
38974 if (PyErr_Occurred()) SWIG_fail;
38975 }
38976 resultobj = SWIG_Py_Void();
38977 return resultobj;
38978fail:
38979 return NULL;
38980}
38981
38982
38983SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38984 PyObject *resultobj = 0;
38985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38986 wxColour *arg2 = 0 ;
38987 void *argp1 = 0 ;
38988 int res1 = 0 ;
38989 wxColour temp2 ;
38990 PyObject * obj0 = 0 ;
38991 PyObject * obj1 = 0 ;
38992 char * kwnames[] = {
38993 (char *) "self",(char *) "colour", NULL
38994 };
38995
38996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38998 if (!SWIG_IsOK(res1)) {
38999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39000 }
39001 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39002 {
39003 arg2 = &temp2;
39004 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39005 }
39006 {
39007 PyThreadState* __tstate = wxPyBeginAllowThreads();
39008 (arg1)->SetTextForeground((wxColour const &)*arg2);
39009 wxPyEndAllowThreads(__tstate);
39010 if (PyErr_Occurred()) SWIG_fail;
39011 }
39012 resultobj = SWIG_Py_Void();
39013 return resultobj;
39014fail:
39015 return NULL;
39016}
39017
39018
39019SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39020 PyObject *resultobj = 0;
39021 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39022 wxColour *arg2 = 0 ;
39023 void *argp1 = 0 ;
39024 int res1 = 0 ;
39025 wxColour temp2 ;
39026 PyObject * obj0 = 0 ;
39027 PyObject * obj1 = 0 ;
39028 char * kwnames[] = {
39029 (char *) "self",(char *) "colour", NULL
39030 };
39031
39032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39034 if (!SWIG_IsOK(res1)) {
39035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39036 }
39037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39038 {
39039 arg2 = &temp2;
39040 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39041 }
39042 {
39043 PyThreadState* __tstate = wxPyBeginAllowThreads();
39044 (arg1)->SetTextBackground((wxColour const &)*arg2);
39045 wxPyEndAllowThreads(__tstate);
39046 if (PyErr_Occurred()) SWIG_fail;
39047 }
39048 resultobj = SWIG_Py_Void();
39049 return resultobj;
39050fail:
39051 return NULL;
39052}
39053
39054
39055SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39056 PyObject *resultobj = 0;
39057 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39058 int arg2 ;
39059 void *argp1 = 0 ;
39060 int res1 = 0 ;
39061 int val2 ;
39062 int ecode2 = 0 ;
39063 PyObject * obj0 = 0 ;
39064 PyObject * obj1 = 0 ;
39065 char * kwnames[] = {
39066 (char *) "self",(char *) "function", NULL
39067 };
39068
39069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39071 if (!SWIG_IsOK(res1)) {
39072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39073 }
39074 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39075 ecode2 = SWIG_AsVal_int(obj1, &val2);
39076 if (!SWIG_IsOK(ecode2)) {
39077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39078 }
39079 arg2 = static_cast< int >(val2);
39080 {
39081 PyThreadState* __tstate = wxPyBeginAllowThreads();
39082 (arg1)->SetLogicalFunction(arg2);
39083 wxPyEndAllowThreads(__tstate);
39084 if (PyErr_Occurred()) SWIG_fail;
39085 }
39086 resultobj = SWIG_Py_Void();
39087 return resultobj;
39088fail:
39089 return NULL;
39090}
39091
39092
39093SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39094 PyObject *obj;
39095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39096 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39097 return SWIG_Py_Void();
39098}
39099
39100SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39101 return SWIG_Python_InitShadowInstance(args);
39102}
39103
39104static PyMethodDef SwigMethods[] = {
39105 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39106 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39107 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39108 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39109 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39110 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39114 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39115 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39116 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 39117 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 39118 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
39119 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39124 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 39126 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39127 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39128 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39129 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39130 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39132 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 39135 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
39136 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39137 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39138 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39140 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39141 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39142 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39143 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39144 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 39145 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
39146 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39153 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39155 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39156 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39160 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39161 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39164 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39168 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39169 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39170 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 39171 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
39172 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39173 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39174 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39176 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39182 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39183 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
39184 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39185 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39186 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39187 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39188 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39189 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39190 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39196 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
39203 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39205 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39208 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39209 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39213 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39214 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39215 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39216 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39217 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39218 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39219 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39220 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39221 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39222 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39223 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39224 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39225 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39226 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39227 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39229 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39230 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39236 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39237 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39238 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39239 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39240 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39241 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39242 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39243 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39244 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39245 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39246 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39247 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39249 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39250 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39256 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39257 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
39258 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39260 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39261 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39262 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39264 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39265 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39270 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39271 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
39272 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39273 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39274 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39275 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39281 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39282 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39284 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39285 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39287 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39289 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39290 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39291 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39292 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39295 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39299 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39300 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39302 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39305 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39306 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
39307 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39308 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39309 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39310 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39315 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39316 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39321 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39322 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39328 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39332 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39333 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39343 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39346 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39347 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39349 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39350 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39351 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39352 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39353 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39354 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39355 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39356 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39357 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39358 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39359 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39360 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39361 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39362 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39363 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39364 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39365 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39367 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39368 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39369 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39370 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39371 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39372 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39373 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39374 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39384 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39385 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39387 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39388 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39389 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39390 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39391 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39392 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39393 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39394 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39395 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39397 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39398 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39399 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39402 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39403 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39404 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39407 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39408 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39413 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39418 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39419 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39420 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39421 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39426 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
39427 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39430 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39431 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39432 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39433 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39434 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39435 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39436 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39437 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39438 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39439 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39440 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39441 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39442 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39454 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39455 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39456 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39458 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39459 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39461 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39462 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39463 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39464 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39467 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39468 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39469 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39470 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39471 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39472 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39473 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39474 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39475 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39476 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39477 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39478 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39479 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39481 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39484 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39485 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39486 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39487 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39488 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39489 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39490 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39491 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39493 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39494 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39501 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39502 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39503 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39505 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39509 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39510 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39511 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39512 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39513 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39514 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39517 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39520 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39521 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39522 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39561 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39562 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39572 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39574 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39575 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39576 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39583 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39584 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39585 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39586 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39587 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39592 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39593 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39594 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39595 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39604 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39605 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39606 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39607 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39608 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39609 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39610 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39611 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39612 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39613 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39614 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39615 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39618 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39620 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39622 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39624 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39625 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39628 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39629 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39633 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39635 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39638 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39639 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39640 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39641 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39642 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39643 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39644 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39645 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39646 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39648 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39653 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39655 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39656 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39657 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39659 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39660 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39661 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39663 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39664 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39665 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39666 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39667 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39668 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 39669 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39670 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39672 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39673 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39674 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39675 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39676 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39679 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39680 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39681 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39683 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39684 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39686 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39687 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39689 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39690 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39691 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39692 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39693 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39695 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39696 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39697 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39699 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39700 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39702 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39703 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39704 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39706 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39707 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39709 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39712 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39713 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39714 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39716 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
39717 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39719 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39720 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39721 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39722 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39723 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39724 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39726 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39727 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39728 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39730 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39731 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39733 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39734 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39735 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39736 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39737 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39738 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39739 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39740 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39741 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39742 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39743 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39744 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39745 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39746 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39747 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39748 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39749 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39750 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39751 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39755 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39757 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39763 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39764 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39765 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39766 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39767 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39768 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39769 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39770 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39771 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39772 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39773 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39774 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39778 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39781 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39784 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39785 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39786 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39787 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
39788 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39789 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39790 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39791 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39792 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39798 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39799 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39800 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39801 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39802 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39803 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39804 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39807 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39810 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39811 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39812 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39813 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39816 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39818 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39819 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39824 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39825 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39826 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39830 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39831 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39832 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39833 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39834 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39835 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39838 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39845 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39847 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39848 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39849 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39850 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39851 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39852 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39853 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39854 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39855 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39856 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39857 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39858 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39859 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39860 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39861 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39862 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39863 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39864 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39868 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39870 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39871 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39873 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39874 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39875 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39876 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39877 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39878 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39879 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39880 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39884 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39885 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39886 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39887 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39888 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39889 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39890 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 39891 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39892 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39893 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39894 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 39895 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39896 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39897 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39898 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39899 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
39903 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39904 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39905 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39906 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39907 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39910 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39911 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39912 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39913 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39914 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
39915 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39916 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39917 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39918 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39919 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39920 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39921 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39930 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39931 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39933 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39934 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39935 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39936 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39937 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39938 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39939 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39940 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39941 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39942 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39943 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39944 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39945 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39946 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39947 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39948 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39949 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39950 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39951 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39952 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39953 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39954 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39955 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39956 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39958 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39960 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39961 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39962 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39963 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39964 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39966 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
39971 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39974 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39976 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39977 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39978 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39980 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39981 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39982 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39983 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39984 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39985 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39986 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39987 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39988 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39990 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39991 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39992 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39994 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39995 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39997 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39999 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40000 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40002 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40004 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40005 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40008 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40009 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40010 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40011 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40012 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40013 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40014 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40015 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40016 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40017 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40018 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40019 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40021 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40024 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40025 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40026 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40028 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40029 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40030 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40032 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40033 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40034 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40035 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40036 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40037 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40038 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40039 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40040 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40041 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40042 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40044 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40045 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40047 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40048 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40049 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40050 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40051 { NULL, NULL, 0, NULL }
40052};
40053
40054
40055/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40056
72ef6efb
RD
40057static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40058 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40059}
8e99bda9
RD
40060static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40061 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40062}
40063static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40064 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40065}
72ef6efb
RD
40066static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40067 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40068}
40069static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40070 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40071}
fc46b7f3
RD
40072static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40073 return (void *)((wxLocale *) ((wxPyLocale *) x));
40074}
70d7cb34
RD
40075static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40076 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40077}
40078static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40079 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40080}
40081static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40082 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40083}
40084static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40085 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40086}
40087static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40088 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40089}
40090static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40091 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40092}
554f62e9
RD
40093static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40094 return (void *)((wxGDIObject *) ((wxIcon *) x));
40095}
40096static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40097 return (void *)((wxGDIObject *) ((wxPalette *) x));
40098}
40099static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40100 return (void *)((wxGDIObject *) ((wxPen *) x));
40101}
40102static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40103 return (void *)((wxGDIObject *) ((wxFont *) x));
40104}
40105static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40106 return (void *)((wxGDIObject *) ((wxCursor *) x));
40107}
40108static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40109 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40110}
40111static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40112 return (void *)((wxGDIObject *) ((wxRegion *) x));
40113}
40114static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40115 return (void *)((wxGDIObject *) ((wxBrush *) x));
40116}
72ef6efb
RD
40117static void *_p_wxGCDCTo_p_wxDC(void *x) {
40118 return (void *)((wxDC *) ((wxGCDC *) x));
40119}
554f62e9
RD
40120static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40121 return (void *)((wxDC *) ((wxScreenDC *) x));
40122}
24f6c4e8
RD
40123static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40124 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40125}
554f62e9
RD
40126static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40127 return (void *)((wxDC *) ((wxMirrorDC *) x));
40128}
40129static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40130 return (void *)((wxDC *) ((wxMemoryDC *) x));
40131}
40132static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40133 return (void *)((wxDC *) ((wxWindowDC *) x));
40134}
40135static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40136 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40137}
554f62e9 40138static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 40139 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40140}
40141static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 40142 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 40143}
24f6c4e8
RD
40144static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40145 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40146}
40147static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40148 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40149}
554f62e9
RD
40150static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40151 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40152}
40153static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40154 return (void *)((wxDC *) ((wxPrinterDC *) x));
40155}
50efceee
RD
40156static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40157 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40158}
40159static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40160 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40161}
40162static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40163 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40164}
554f62e9
RD
40165static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40166 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40167}
40168static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40169 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40170}
40171static void *_p_wxPenTo_p_wxObject(void *x) {
40172 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40173}
40174static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40175 return (void *)((wxObject *) ((wxRegionIterator *) x));
40176}
554f62e9
RD
40177static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40178 return (void *)((wxObject *) ((wxSizerItem *) x));
40179}
0f83f5da
RD
40180static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40181 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40182}
554f62e9
RD
40183static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40184 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40185}
40186static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40187 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40188}
40189static void *_p_wxIconTo_p_wxObject(void *x) {
40190 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40191}
40192static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40193 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40194}
40195static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40196 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40197}
40198static void *_p_wxSizerTo_p_wxObject(void *x) {
40199 return (void *)((wxObject *) ((wxSizer *) x));
40200}
40201static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40202 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40203}
40204static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40206}
554f62e9
RD
40207static void *_p_wxEventTo_p_wxObject(void *x) {
40208 return (void *)((wxObject *) ((wxEvent *) x));
40209}
40210static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40211 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40212}
40213static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40214 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40215}
40216static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40217 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40218}
27e45892
RD
40219static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40220 return (void *)((wxObject *) ((wxPseudoDC *) x));
40221}
2131d850
RD
40222static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40224}
554f62e9
RD
40225static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40226 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40227}
40228static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40229 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40230}
40231static void *_p_wxDCTo_p_wxObject(void *x) {
40232 return (void *)((wxObject *) ((wxDC *) x));
40233}
40234static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40235 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40236}
40237static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40238 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40239}
40240static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40241 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40242}
40243static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40244 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40245}
40246static void *_p_wxControlTo_p_wxObject(void *x) {
40247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40248}
70d7cb34
RD
40249static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40250 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40251}
554f62e9
RD
40252static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40253 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40254}
40255static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 40256 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40257}
40258static void *_p_wxFSFileTo_p_wxObject(void *x) {
40259 return (void *)((wxObject *) ((wxFSFile *) x));
40260}
40261static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40262 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
40263}
40264static void *_p_wxRegionTo_p_wxObject(void *x) {
40265 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40266}
40267static void *_p_wxPySizerTo_p_wxObject(void *x) {
40268 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40269}
40270static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40271 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40272}
40273static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40274 return (void *)((wxObject *) ((wxGDIObject *) x));
40275}
70d7cb34
RD
40276static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40277 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40278}
40279static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40280 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40281}
554f62e9
RD
40282static void *_p_wxEffectsTo_p_wxObject(void *x) {
40283 return (void *)((wxObject *) ((wxEffects *) x));
40284}
40285static void *_p_wxPyEventTo_p_wxObject(void *x) {
40286 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40287}
40288static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40289 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40290}
40291static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40292 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40293}
70d7cb34
RD
40294static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40295 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40296}
554f62e9
RD
40297static void *_p_wxShowEventTo_p_wxObject(void *x) {
40298 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40299}
40300static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40301 return (void *)((wxObject *) ((wxMenuItem *) x));
40302}
40303static void *_p_wxDateEventTo_p_wxObject(void *x) {
40304 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40305}
40306static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40307 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40308}
40309static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40310 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40311}
40312static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40313 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40314}
40315static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40316 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40317}
40318static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40319 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40320}
40321static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40322 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40323}
40324static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40325 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40326}
40327static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40328 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40329}
40330static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40331 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40332}
40333static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40334 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40335}
40336static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40337 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40338}
40339static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40340 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40341}
40342static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40343 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40344}
40345static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40346 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40347}
40348static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40349 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40350}
40351static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40352 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40353}
40354static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40355 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40356}
40357static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40358 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40359}
40360static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40361 return (void *)((wxObject *) ((wxImageHandler *) x));
40362}
40363static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40364 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40365}
40366static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40367 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40368}
580080c5
RD
40369static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40370 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40371}
554f62e9
RD
40372static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40373 return (void *)((wxObject *) ((wxEvtHandler *) x));
40374}
0f83f5da
RD
40375static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40376 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40377}
24f6c4e8
RD
40378static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40379 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40380}
554f62e9 40381static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 40382 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 40383}
24f6c4e8
RD
40384static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40385 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
40386}
40387static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40388 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40389}
40390static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40391 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40392}
554f62e9
RD
40393static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40394 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40395}
580080c5
RD
40396static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40397 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40398}
554f62e9
RD
40399static void *_p_wxImageTo_p_wxObject(void *x) {
40400 return (void *)((wxObject *) ((wxImage *) x));
40401}
40402static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40403 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40404}
70d7cb34
RD
40405static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40406 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40407}
40408static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40409 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40410}
554f62e9
RD
40411static void *_p_wxPaletteTo_p_wxObject(void *x) {
40412 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40413}
40414static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 40415 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
40416}
40417static void *_p_wxImageListTo_p_wxObject(void *x) {
40418 return (void *)((wxObject *) ((wxImageList *) x));
40419}
72ef6efb
RD
40420static void *_p_wxGCDCTo_p_wxObject(void *x) {
40421 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40422}
554f62e9
RD
40423static void *_p_wxCursorTo_p_wxObject(void *x) {
40424 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40425}
40426static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40427 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40428}
40429static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40430 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40431}
70d7cb34
RD
40432static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40433 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40434}
554f62e9
RD
40435static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40436 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40437}
40438static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40439 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40440}
40441static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40442 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40443}
40444static void *_p_wxWindowTo_p_wxObject(void *x) {
40445 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40446}
40447static void *_p_wxMenuTo_p_wxObject(void *x) {
40448 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40449}
40450static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40452}
40453static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40454 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40455}
554f62e9
RD
40456static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40457 return (void *)((wxObject *) ((wxFileSystem *) x));
40458}
40459static void *_p_wxBitmapTo_p_wxObject(void *x) {
40460 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40461}
40462static void *_p_wxMaskTo_p_wxObject(void *x) {
40463 return (void *)((wxObject *) ((wxMask *) x));
40464}
70d7cb34
RD
40465static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40466 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40467}
554f62e9
RD
40468static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40470}
40471static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40472 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40473}
40474static void *_p_wxPyAppTo_p_wxObject(void *x) {
40475 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40476}
40477static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40478 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40479}
40480static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40481 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40482}
40483static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40484 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40485}
40486static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40488}
40489static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40490 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40491}
40492static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40493 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40494}
40495static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40496 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40497}
40498static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40499 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40500}
40501static void *_p_wxFontTo_p_wxObject(void *x) {
40502 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40503}
40504static void *_p_wxBrushTo_p_wxObject(void *x) {
40505 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40506}
40507static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40508 return (void *)((wxObject *) ((wxMetaFile *) x));
40509}
40510static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40512}
40513static void *_p_wxColourTo_p_wxObject(void *x) {
40514 return (void *)((wxObject *) ((wxColour *) x));
40515}
554f62e9
RD
40516static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40517 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40518}
40519static void *_p_wxValidatorTo_p_wxObject(void *x) {
40520 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40521}
40522static void *_p_wxControlTo_p_wxWindow(void *x) {
40523 return (void *)((wxWindow *) ((wxControl *) x));
40524}
40525static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40526 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40527}
40528static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40529 return (void *)((wxWindow *) ((wxMenuBar *) x));
40530}
fc46b7f3
RD
40531static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40532 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40533}
40534static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40535 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40536}
40537static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40538static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40539static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40540static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40541static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40542static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40543static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40544static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40545static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40546static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40547static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40548static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40549static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40550static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40551static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40552static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40553static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40554static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9 40555static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 40556static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
554f62e9
RD
40557static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40558static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40559static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40560static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40561static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40562static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40563static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40564static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40565static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40566static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40567static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40568static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40569static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40570static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40571static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40572static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40573static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40574static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40575static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40576static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40577static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40578static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40579static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40580static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40581static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40582static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40583static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40584static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40585static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40586static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40587static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40588static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40589static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40590static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40591static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40592static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40593static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40594static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40595static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40596static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40597static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40598static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40599static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40600static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40601static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40602static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 40603static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40604static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40605static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40606static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40607static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40608static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40609static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40610static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40611static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40612static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40613static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40614static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40615static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40616static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40617static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40618static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40619static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40620static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40621static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40622static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40623static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40624static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40625static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40626static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40627static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40628static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40629static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40630static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40631static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40632static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40633static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40634static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40635static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40636static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40637static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40638static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40639static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40640static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
554f62e9 40641static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40642static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40643static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40644static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40645static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40646static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40647static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40648static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40649static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40650static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40651static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40652static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40653static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40654static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40655static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40656static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9 40657static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40658static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
554f62e9
RD
40659static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40660static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40661static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40662static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40663static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40664static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40665static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40666static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40667static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40668static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40669static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40670static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40671static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40672static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40673static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40674static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40675static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40676static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40677static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40678static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40679static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
40680static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40681static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40682static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40683static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40684static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40685static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 40686static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40687static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40688static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40689static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40690static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40691static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40692static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 40693static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40694static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 40695static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40696static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40697static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40698static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40699static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40700static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40701static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40702static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40703static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40704static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
40705static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40706static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40707static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40708
40709static swig_type_info *swig_type_initial[] = {
fc46b7f3 40710 &_swigt__p_buffer,
554f62e9
RD
40711 &_swigt__p_char,
40712 &_swigt__p_double,
40713 &_swigt__p_form_ops_t,
40714 &_swigt__p_int,
40715 &_swigt__p_unsigned_char,
40716 &_swigt__p_unsigned_int,
40717 &_swigt__p_unsigned_long,
0a27f394 40718 &_swigt__p_void,
554f62e9
RD
40719 &_swigt__p_wxANIHandler,
40720 &_swigt__p_wxAcceleratorTable,
40721 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40722 &_swigt__p_wxAlphaPixelData,
40723 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40724 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
40725 &_swigt__p_wxBMPHandler,
40726 &_swigt__p_wxBitmap,
40727 &_swigt__p_wxBoxSizer,
40728 &_swigt__p_wxBrush,
40729 &_swigt__p_wxBrushList,
40730 &_swigt__p_wxBufferedDC,
40731 &_swigt__p_wxBufferedPaintDC,
40732 &_swigt__p_wxCURHandler,
fc46b7f3 40733 &_swigt__p_wxChar,
554f62e9
RD
40734 &_swigt__p_wxChildFocusEvent,
40735 &_swigt__p_wxClientDC,
2131d850 40736 &_swigt__p_wxClipboardTextEvent,
554f62e9 40737 &_swigt__p_wxCloseEvent,
72ef6efb 40738 &_swigt__p_wxColor,
554f62e9
RD
40739 &_swigt__p_wxColour,
40740 &_swigt__p_wxColourDatabase,
40741 &_swigt__p_wxCommandEvent,
40742 &_swigt__p_wxContextMenuEvent,
40743 &_swigt__p_wxControl,
40744 &_swigt__p_wxControlWithItems,
40745 &_swigt__p_wxCursor,
40746 &_swigt__p_wxDC,
70d7cb34
RD
40747 &_swigt__p_wxDCBrushChanger,
40748 &_swigt__p_wxDCClipper,
b39fe951 40749 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40750 &_swigt__p_wxDCPenChanger,
40751 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
40752 &_swigt__p_wxDash,
40753 &_swigt__p_wxDateEvent,
40754 &_swigt__p_wxDisplayChangedEvent,
40755 &_swigt__p_wxDropFilesEvent,
40756 &_swigt__p_wxDuplexMode,
40757 &_swigt__p_wxEffects,
40758 &_swigt__p_wxEncodingConverter,
40759 &_swigt__p_wxEraseEvent,
40760 &_swigt__p_wxEvent,
40761 &_swigt__p_wxEvtHandler,
40762 &_swigt__p_wxFSFile,
40763 &_swigt__p_wxFileSystem,
40764 &_swigt__p_wxFlexGridSizer,
40765 &_swigt__p_wxFocusEvent,
40766 &_swigt__p_wxFont,
40767 &_swigt__p_wxFontList,
40768 &_swigt__p_wxFontMapper,
40769 &_swigt__p_wxGBSizerItem,
72ef6efb 40770 &_swigt__p_wxGCDC,
50efceee 40771 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
40772 &_swigt__p_wxGDIObject,
40773 &_swigt__p_wxGIFHandler,
70d7cb34 40774 &_swigt__p_wxGraphicsBrush,
72ef6efb 40775 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40776 &_swigt__p_wxGraphicsFont,
40777 &_swigt__p_wxGraphicsMatrix,
40778 &_swigt__p_wxGraphicsObject,
72ef6efb 40779 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40780 &_swigt__p_wxGraphicsPen,
40781 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
40782 &_swigt__p_wxGridBagSizer,
40783 &_swigt__p_wxGridSizer,
33d6fd3b 40784 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
40785 &_swigt__p_wxICOHandler,
40786 &_swigt__p_wxIcon,
40787 &_swigt__p_wxIconBundle,
40788 &_swigt__p_wxIconLocation,
40789 &_swigt__p_wxIconizeEvent,
40790 &_swigt__p_wxIdleEvent,
40791 &_swigt__p_wxImage,
40792 &_swigt__p_wxImageHandler,
40793 &_swigt__p_wxImageList,
40794 &_swigt__p_wxIndividualLayoutConstraint,
40795 &_swigt__p_wxInitDialogEvent,
40796 &_swigt__p_wxJPEGHandler,
40797 &_swigt__p_wxKeyEvent,
40798 &_swigt__p_wxLanguageInfo,
40799 &_swigt__p_wxLayoutConstraints,
40800 &_swigt__p_wxLocale,
40801 &_swigt__p_wxMask,
40802 &_swigt__p_wxMaximizeEvent,
40803 &_swigt__p_wxMemoryDC,
40804 &_swigt__p_wxMenu,
40805 &_swigt__p_wxMenuBar,
40806 &_swigt__p_wxMenuEvent,
40807 &_swigt__p_wxMenuItem,
40808 &_swigt__p_wxMetaFile,
40809 &_swigt__p_wxMetaFileDC,
40810 &_swigt__p_wxMirrorDC,
40811 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 40812 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
40813 &_swigt__p_wxMouseEvent,
40814 &_swigt__p_wxMoveEvent,
40815 &_swigt__p_wxNativeEncodingInfo,
40816 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40817 &_swigt__p_wxNativePixelData,
40818 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
40819 &_swigt__p_wxNavigationKeyEvent,
40820 &_swigt__p_wxNcPaintEvent,
40821 &_swigt__p_wxNotifyEvent,
40822 &_swigt__p_wxObject,
b39fe951 40823 &_swigt__p_wxOverlay,
554f62e9
RD
40824 &_swigt__p_wxPCXHandler,
40825 &_swigt__p_wxPNGHandler,
40826 &_swigt__p_wxPNMHandler,
40827 &_swigt__p_wxPaintDC,
40828 &_swigt__p_wxPaintEvent,
40829 &_swigt__p_wxPalette,
40830 &_swigt__p_wxPaletteChangedEvent,
40831 &_swigt__p_wxPaperSize,
40832 &_swigt__p_wxPen,
40833 &_swigt__p_wxPenList,
fc46b7f3 40834 &_swigt__p_wxPixelDataBase,
554f62e9 40835 &_swigt__p_wxPoint,
72ef6efb 40836 &_swigt__p_wxPoint2D,
70d7cb34 40837 &_swigt__p_wxPoint2DDouble,
554f62e9
RD
40838 &_swigt__p_wxPostScriptDC,
40839 &_swigt__p_wxPrintData,
40840 &_swigt__p_wxPrinterDC,
27e45892 40841 &_swigt__p_wxPseudoDC,
554f62e9
RD
40842 &_swigt__p_wxPyApp,
40843 &_swigt__p_wxPyCommandEvent,
40844 &_swigt__p_wxPyEvent,
40845 &_swigt__p_wxPyFontEnumerator,
40846 &_swigt__p_wxPyImageHandler,
fc46b7f3 40847 &_swigt__p_wxPyLocale,
554f62e9
RD
40848 &_swigt__p_wxPySizer,
40849 &_swigt__p_wxPyValidator,
40850 &_swigt__p_wxQueryNewPaletteEvent,
40851 &_swigt__p_wxRect,
70d7cb34 40852 &_swigt__p_wxRect2DDouble,
554f62e9
RD
40853 &_swigt__p_wxRegion,
40854 &_swigt__p_wxRegionIterator,
40855 &_swigt__p_wxRendererNative,
40856 &_swigt__p_wxRendererVersion,
40857 &_swigt__p_wxScreenDC,
40858 &_swigt__p_wxScrollEvent,
40859 &_swigt__p_wxScrollWinEvent,
40860 &_swigt__p_wxSetCursorEvent,
40861 &_swigt__p_wxShowEvent,
40862 &_swigt__p_wxSize,
40863 &_swigt__p_wxSizeEvent,
40864 &_swigt__p_wxSizer,
40865 &_swigt__p_wxSizerItem,
40866 &_swigt__p_wxSplitterRenderParams,
40867 &_swigt__p_wxStaticBoxSizer,
40868 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40869 &_swigt__p_wxStockGDI,
554f62e9
RD
40870 &_swigt__p_wxString,
40871 &_swigt__p_wxSysColourChangedEvent,
580080c5 40872 &_swigt__p_wxTGAHandler,
554f62e9
RD
40873 &_swigt__p_wxTIFFHandler,
40874 &_swigt__p_wxUpdateUIEvent,
40875 &_swigt__p_wxValidator,
40876 &_swigt__p_wxWindow,
40877 &_swigt__p_wxWindowCreateEvent,
40878 &_swigt__p_wxWindowDC,
40879 &_swigt__p_wxWindowDestroyEvent,
40880 &_swigt__p_wxXPMHandler,
40881};
40882
fc46b7f3 40883static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40884static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40885static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40886static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40887static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40888static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40889static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40890static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40891static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40892static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40893static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40894static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40895static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40896static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40897static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40898static 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}};
40899static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40900static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40901static 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}};
40902static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40903static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40904static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40905static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40906static 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
40907static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40908static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40909static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40910static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40911static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40912static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40913static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40914static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40915static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40916static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40917static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40918static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40919static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40920static 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 40921static 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 40922static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40923static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40924static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40925static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40926static 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 40927static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40928static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40929static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40930static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40931static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40932static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40933static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40934static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40935static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40936static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40937static 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 40938static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40939static 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
40940static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40941static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40942static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40943static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40944static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40945static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40946static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40947static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40948static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40949static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40950static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40951static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40952static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40953static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40954static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40955static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40956static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40957static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40958static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40959static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40960static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40961static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40962static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40963static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40964static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40965static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40966static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40967static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40968static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40969static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40970static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40971static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40972static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40973static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40974static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40975static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40976static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40977static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40978static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40979static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40980static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40981static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40982static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40983static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40984static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40985static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40986static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40987static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40988static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40989static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40990static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40991static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40992static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40993static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40994static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40995static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40996static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40997static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40998static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40999static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41000static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41001static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41002static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41003static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41004static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41005static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41006static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41007static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41008static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41009static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41010static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41011static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41012static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41013static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41014static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41015static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41016static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41017static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41018static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41019static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41020static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41021static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41022static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41023static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41024static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 41025static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41026static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41027static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41028static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41029static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41030static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41031static 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 41032static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41033static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 41034static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41035static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41036static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41037static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 41038static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41039static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41040static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41041static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 41042static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41043static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41044static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41045static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41046static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41047static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41048static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41049static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 41050static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41051static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41052static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 41053static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41054
41055static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 41056 _swigc__p_buffer,
554f62e9
RD
41057 _swigc__p_char,
41058 _swigc__p_double,
41059 _swigc__p_form_ops_t,
41060 _swigc__p_int,
41061 _swigc__p_unsigned_char,
41062 _swigc__p_unsigned_int,
41063 _swigc__p_unsigned_long,
0a27f394 41064 _swigc__p_void,
554f62e9
RD
41065 _swigc__p_wxANIHandler,
41066 _swigc__p_wxAcceleratorTable,
41067 _swigc__p_wxActivateEvent,
fc46b7f3
RD
41068 _swigc__p_wxAlphaPixelData,
41069 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 41070 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
41071 _swigc__p_wxBMPHandler,
41072 _swigc__p_wxBitmap,
41073 _swigc__p_wxBoxSizer,
41074 _swigc__p_wxBrush,
41075 _swigc__p_wxBrushList,
41076 _swigc__p_wxBufferedDC,
41077 _swigc__p_wxBufferedPaintDC,
41078 _swigc__p_wxCURHandler,
fc46b7f3 41079 _swigc__p_wxChar,
554f62e9
RD
41080 _swigc__p_wxChildFocusEvent,
41081 _swigc__p_wxClientDC,
2131d850 41082 _swigc__p_wxClipboardTextEvent,
554f62e9 41083 _swigc__p_wxCloseEvent,
72ef6efb 41084 _swigc__p_wxColor,
554f62e9
RD
41085 _swigc__p_wxColour,
41086 _swigc__p_wxColourDatabase,
41087 _swigc__p_wxCommandEvent,
41088 _swigc__p_wxContextMenuEvent,
41089 _swigc__p_wxControl,
41090 _swigc__p_wxControlWithItems,
41091 _swigc__p_wxCursor,
41092 _swigc__p_wxDC,
70d7cb34
RD
41093 _swigc__p_wxDCBrushChanger,
41094 _swigc__p_wxDCClipper,
b39fe951 41095 _swigc__p_wxDCOverlay,
70d7cb34
RD
41096 _swigc__p_wxDCPenChanger,
41097 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
41098 _swigc__p_wxDash,
41099 _swigc__p_wxDateEvent,
41100 _swigc__p_wxDisplayChangedEvent,
41101 _swigc__p_wxDropFilesEvent,
41102 _swigc__p_wxDuplexMode,
41103 _swigc__p_wxEffects,
41104 _swigc__p_wxEncodingConverter,
41105 _swigc__p_wxEraseEvent,
41106 _swigc__p_wxEvent,
41107 _swigc__p_wxEvtHandler,
41108 _swigc__p_wxFSFile,
41109 _swigc__p_wxFileSystem,
41110 _swigc__p_wxFlexGridSizer,
41111 _swigc__p_wxFocusEvent,
41112 _swigc__p_wxFont,
41113 _swigc__p_wxFontList,
41114 _swigc__p_wxFontMapper,
41115 _swigc__p_wxGBSizerItem,
72ef6efb 41116 _swigc__p_wxGCDC,
50efceee 41117 _swigc__p_wxGDIObjListBase,
554f62e9
RD
41118 _swigc__p_wxGDIObject,
41119 _swigc__p_wxGIFHandler,
70d7cb34 41120 _swigc__p_wxGraphicsBrush,
72ef6efb 41121 _swigc__p_wxGraphicsContext,
70d7cb34
RD
41122 _swigc__p_wxGraphicsFont,
41123 _swigc__p_wxGraphicsMatrix,
41124 _swigc__p_wxGraphicsObject,
72ef6efb 41125 _swigc__p_wxGraphicsPath,
70d7cb34
RD
41126 _swigc__p_wxGraphicsPen,
41127 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
41128 _swigc__p_wxGridBagSizer,
41129 _swigc__p_wxGridSizer,
33d6fd3b 41130 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
41131 _swigc__p_wxICOHandler,
41132 _swigc__p_wxIcon,
41133 _swigc__p_wxIconBundle,
41134 _swigc__p_wxIconLocation,
41135 _swigc__p_wxIconizeEvent,
41136 _swigc__p_wxIdleEvent,
41137 _swigc__p_wxImage,
41138 _swigc__p_wxImageHandler,
41139 _swigc__p_wxImageList,
41140 _swigc__p_wxIndividualLayoutConstraint,
41141 _swigc__p_wxInitDialogEvent,
41142 _swigc__p_wxJPEGHandler,
41143 _swigc__p_wxKeyEvent,
41144 _swigc__p_wxLanguageInfo,
41145 _swigc__p_wxLayoutConstraints,
41146 _swigc__p_wxLocale,
41147 _swigc__p_wxMask,
41148 _swigc__p_wxMaximizeEvent,
41149 _swigc__p_wxMemoryDC,
41150 _swigc__p_wxMenu,
41151 _swigc__p_wxMenuBar,
41152 _swigc__p_wxMenuEvent,
41153 _swigc__p_wxMenuItem,
41154 _swigc__p_wxMetaFile,
41155 _swigc__p_wxMetaFileDC,
41156 _swigc__p_wxMirrorDC,
41157 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 41158 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
41159 _swigc__p_wxMouseEvent,
41160 _swigc__p_wxMoveEvent,
41161 _swigc__p_wxNativeEncodingInfo,
41162 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
41163 _swigc__p_wxNativePixelData,
41164 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
41165 _swigc__p_wxNavigationKeyEvent,
41166 _swigc__p_wxNcPaintEvent,
41167 _swigc__p_wxNotifyEvent,
41168 _swigc__p_wxObject,
b39fe951 41169 _swigc__p_wxOverlay,
554f62e9
RD
41170 _swigc__p_wxPCXHandler,
41171 _swigc__p_wxPNGHandler,
41172 _swigc__p_wxPNMHandler,
41173 _swigc__p_wxPaintDC,
41174 _swigc__p_wxPaintEvent,
41175 _swigc__p_wxPalette,
41176 _swigc__p_wxPaletteChangedEvent,
41177 _swigc__p_wxPaperSize,
41178 _swigc__p_wxPen,
41179 _swigc__p_wxPenList,
fc46b7f3 41180 _swigc__p_wxPixelDataBase,
554f62e9 41181 _swigc__p_wxPoint,
72ef6efb 41182 _swigc__p_wxPoint2D,
70d7cb34 41183 _swigc__p_wxPoint2DDouble,
554f62e9
RD
41184 _swigc__p_wxPostScriptDC,
41185 _swigc__p_wxPrintData,
41186 _swigc__p_wxPrinterDC,
27e45892 41187 _swigc__p_wxPseudoDC,
554f62e9
RD
41188 _swigc__p_wxPyApp,
41189 _swigc__p_wxPyCommandEvent,
41190 _swigc__p_wxPyEvent,
41191 _swigc__p_wxPyFontEnumerator,
41192 _swigc__p_wxPyImageHandler,
fc46b7f3 41193 _swigc__p_wxPyLocale,
554f62e9
RD
41194 _swigc__p_wxPySizer,
41195 _swigc__p_wxPyValidator,
41196 _swigc__p_wxQueryNewPaletteEvent,
41197 _swigc__p_wxRect,
70d7cb34 41198 _swigc__p_wxRect2DDouble,
554f62e9
RD
41199 _swigc__p_wxRegion,
41200 _swigc__p_wxRegionIterator,
41201 _swigc__p_wxRendererNative,
41202 _swigc__p_wxRendererVersion,
41203 _swigc__p_wxScreenDC,
41204 _swigc__p_wxScrollEvent,
41205 _swigc__p_wxScrollWinEvent,
41206 _swigc__p_wxSetCursorEvent,
41207 _swigc__p_wxShowEvent,
41208 _swigc__p_wxSize,
41209 _swigc__p_wxSizeEvent,
41210 _swigc__p_wxSizer,
41211 _swigc__p_wxSizerItem,
41212 _swigc__p_wxSplitterRenderParams,
41213 _swigc__p_wxStaticBoxSizer,
41214 _swigc__p_wxStdDialogButtonSizer,
50efceee 41215 _swigc__p_wxStockGDI,
554f62e9
RD
41216 _swigc__p_wxString,
41217 _swigc__p_wxSysColourChangedEvent,
580080c5 41218 _swigc__p_wxTGAHandler,
554f62e9
RD
41219 _swigc__p_wxTIFFHandler,
41220 _swigc__p_wxUpdateUIEvent,
41221 _swigc__p_wxValidator,
41222 _swigc__p_wxWindow,
41223 _swigc__p_wxWindowCreateEvent,
41224 _swigc__p_wxWindowDC,
41225 _swigc__p_wxWindowDestroyEvent,
41226 _swigc__p_wxXPMHandler,
41227};
41228
41229
41230/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41231
41232static swig_const_info swig_const_table[] = {
41233{0, 0, 0, 0.0, 0, 0}};
41234
41235#ifdef __cplusplus
41236}
41237#endif
41238/* -----------------------------------------------------------------------------
41239 * Type initialization:
41240 * This problem is tough by the requirement that no dynamic
41241 * memory is used. Also, since swig_type_info structures store pointers to
41242 * swig_cast_info structures and swig_cast_info structures store pointers back
41243 * to swig_type_info structures, we need some lookup code at initialization.
41244 * The idea is that swig generates all the structures that are needed.
41245 * The runtime then collects these partially filled structures.
41246 * The SWIG_InitializeModule function takes these initial arrays out of
41247 * swig_module, and does all the lookup, filling in the swig_module.types
41248 * array with the correct data and linking the correct swig_cast_info
41249 * structures together.
41250 *
41251 * The generated swig_type_info structures are assigned staticly to an initial
41252 * array. We just loop though that array, and handle each type individually.
41253 * First we lookup if this type has been already loaded, and if so, use the
41254 * loaded structure instead of the generated one. Then we have to fill in the
41255 * cast linked list. The cast data is initially stored in something like a
41256 * two-dimensional array. Each row corresponds to a type (there are the same
41257 * number of rows as there are in the swig_type_initial array). Each entry in
41258 * a column is one of the swig_cast_info structures for that type.
41259 * The cast_initial array is actually an array of arrays, because each row has
41260 * a variable number of columns. So to actually build the cast linked list,
41261 * we find the array of casts associated with the type, and loop through it
41262 * adding the casts to the list. The one last trick we need to do is making
41263 * sure the type pointer in the swig_cast_info struct is correct.
41264 *
41265 * First off, we lookup the cast->type name to see if it is already loaded.
41266 * There are three cases to handle:
41267 * 1) If the cast->type has already been loaded AND the type we are adding
41268 * casting info to has not been loaded (it is in this module), THEN we
41269 * replace the cast->type pointer with the type pointer that has already
41270 * been loaded.
41271 * 2) If BOTH types (the one we are adding casting info to, and the
41272 * cast->type) are loaded, THEN the cast info has already been loaded by
41273 * the previous module so we just ignore it.
41274 * 3) Finally, if cast->type has not already been loaded, then we add that
41275 * swig_cast_info to the linked list (because the cast->type) pointer will
41276 * be correct.
41277 * ----------------------------------------------------------------------------- */
41278
41279#ifdef __cplusplus
41280extern "C" {
41281#if 0
41282} /* c-mode */
41283#endif
41284#endif
41285
41286#if 0
41287#define SWIGRUNTIME_DEBUG
41288#endif
41289
41290SWIGRUNTIME void
41291SWIG_InitializeModule(void *clientdata) {
41292 size_t i;
41293 swig_module_info *module_head;
41294 static int init_run = 0;
41295
41296 clientdata = clientdata;
41297
41298 if (init_run) return;
41299 init_run = 1;
41300
41301 /* Initialize the swig_module */
41302 swig_module.type_initial = swig_type_initial;
41303 swig_module.cast_initial = swig_cast_initial;
41304
41305 /* Try and load any already created modules */
41306 module_head = SWIG_GetModule(clientdata);
41307 if (module_head) {
41308 swig_module.next = module_head->next;
41309 module_head->next = &swig_module;
41310 } else {
41311 /* This is the first module loaded */
41312 swig_module.next = &swig_module;
41313 SWIG_SetModule(clientdata, &swig_module);
41314 }
41315
41316 /* Now work on filling in swig_module.types */
41317#ifdef SWIGRUNTIME_DEBUG
41318 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41319#endif
41320 for (i = 0; i < swig_module.size; ++i) {
41321 swig_type_info *type = 0;
41322 swig_type_info *ret;
41323 swig_cast_info *cast;
41324
41325#ifdef SWIGRUNTIME_DEBUG
41326 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41327#endif
41328
41329 /* if there is another module already loaded */
41330 if (swig_module.next != &swig_module) {
41331 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 41332 }
554f62e9
RD
41333 if (type) {
41334 /* Overwrite clientdata field */
41335#ifdef SWIGRUNTIME_DEBUG
41336 printf("SWIG_InitializeModule: found type %s\n", type->name);
41337#endif
41338 if (swig_module.type_initial[i]->clientdata) {
41339 type->clientdata = swig_module.type_initial[i]->clientdata;
41340#ifdef SWIGRUNTIME_DEBUG
41341 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41342#endif
41343 }
41344 } else {
41345 type = swig_module.type_initial[i];
be9b1dca 41346 }
554f62e9
RD
41347
41348 /* Insert casting types */
41349 cast = swig_module.cast_initial[i];
41350 while (cast->type) {
41351 /* Don't need to add information already in the list */
41352 ret = 0;
41353#ifdef SWIGRUNTIME_DEBUG
41354 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41355#endif
41356 if (swig_module.next != &swig_module) {
41357 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41358#ifdef SWIGRUNTIME_DEBUG
41359 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41360#endif
41361 }
41362 if (ret) {
41363 if (type == swig_module.type_initial[i]) {
41364#ifdef SWIGRUNTIME_DEBUG
41365 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41366#endif
41367 cast->type = ret;
41368 ret = 0;
41369 } else {
41370 /* Check for casting already in the list */
41371 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41372#ifdef SWIGRUNTIME_DEBUG
41373 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41374#endif
41375 if (!ocast) ret = 0;
41376 }
41377 }
41378
41379 if (!ret) {
41380#ifdef SWIGRUNTIME_DEBUG
41381 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41382#endif
41383 if (type->cast) {
41384 type->cast->prev = cast;
41385 cast->next = type->cast;
41386 }
41387 type->cast = cast;
41388 }
41389 cast++;
be9b1dca 41390 }
554f62e9
RD
41391 /* Set entry in modules->types array equal to the type */
41392 swig_module.types[i] = type;
41393 }
41394 swig_module.types[i] = 0;
41395
41396#ifdef SWIGRUNTIME_DEBUG
41397 printf("**** SWIG_InitializeModule: Cast List ******\n");
41398 for (i = 0; i < swig_module.size; ++i) {
41399 int j = 0;
41400 swig_cast_info *cast = swig_module.cast_initial[i];
41401 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41402 while (cast->type) {
41403 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41404 cast++;
41405 ++j;
41406 }
41407 printf("---- Total casts: %d\n",j);
41408 }
41409 printf("**** SWIG_InitializeModule: Cast List ******\n");
41410#endif
41411}
41412
41413/* This function will propagate the clientdata field of type to
41414* any new swig_type_info structures that have been added into the list
41415* of equivalent types. It is like calling
41416* SWIG_TypeClientData(type, clientdata) a second time.
41417*/
41418SWIGRUNTIME void
41419SWIG_PropagateClientData(void) {
41420 size_t i;
41421 swig_cast_info *equiv;
41422 static int init_run = 0;
41423
41424 if (init_run) return;
41425 init_run = 1;
41426
41427 for (i = 0; i < swig_module.size; i++) {
41428 if (swig_module.types[i]->clientdata) {
41429 equiv = swig_module.types[i]->cast;
41430 while (equiv) {
41431 if (!equiv->converter) {
41432 if (equiv->type && !equiv->type->clientdata)
41433 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41434 }
41435 equiv = equiv->next;
41436 }
be9b1dca 41437 }
554f62e9
RD
41438 }
41439}
41440
41441#ifdef __cplusplus
41442#if 0
41443{
41444 /* c-mode */
41445#endif
41446}
41447#endif
41448
41449
41450
41451#ifdef __cplusplus
41452extern "C" {
41453#endif
41454
41455 /* Python-specific SWIG API */
41456#define SWIG_newvarlink() SWIG_Python_newvarlink()
41457#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41458#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41459
41460 /* -----------------------------------------------------------------------------
41461 * global variable support code.
41462 * ----------------------------------------------------------------------------- */
41463
41464 typedef struct swig_globalvar {
41465 char *name; /* Name of global variable */
41466 PyObject *(*get_attr)(void); /* Return the current value */
41467 int (*set_attr)(PyObject *); /* Set the value */
41468 struct swig_globalvar *next;
41469 } swig_globalvar;
41470
41471 typedef struct swig_varlinkobject {
41472 PyObject_HEAD
41473 swig_globalvar *vars;
41474 } swig_varlinkobject;
41475
41476 SWIGINTERN PyObject *
41477 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41478 return PyString_FromString("<Swig global variables>");
41479 }
41480
41481 SWIGINTERN PyObject *
41482 swig_varlink_str(swig_varlinkobject *v) {
41483 PyObject *str = PyString_FromString("(");
41484 swig_globalvar *var;
41485 for (var = v->vars; var; var=var->next) {
41486 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41487 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41488 }
41489 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41490 return str;
41491 }
41492
41493 SWIGINTERN int
41494 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41495 PyObject *str = swig_varlink_str(v);
41496 fprintf(fp,"Swig global variables ");
41497 fprintf(fp,"%s\n", PyString_AsString(str));
41498 Py_DECREF(str);
41499 return 0;
41500 }
41501
41502 SWIGINTERN void
41503 swig_varlink_dealloc(swig_varlinkobject *v) {
41504 swig_globalvar *var = v->vars;
41505 while (var) {
41506 swig_globalvar *n = var->next;
41507 free(var->name);
41508 free(var);
41509 var = n;
be9b1dca 41510 }
554f62e9
RD
41511 }
41512
41513 SWIGINTERN PyObject *
41514 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41515 PyObject *res = NULL;
41516 swig_globalvar *var = v->vars;
41517 while (var) {
41518 if (strcmp(var->name,n) == 0) {
41519 res = (*var->get_attr)();
41520 break;
41521 }
41522 var = var->next;
be9b1dca 41523 }
554f62e9
RD
41524 if (res == NULL && !PyErr_Occurred()) {
41525 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41526 }
554f62e9
RD
41527 return res;
41528 }
41529
41530 SWIGINTERN int
41531 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41532 int res = 1;
41533 swig_globalvar *var = v->vars;
41534 while (var) {
41535 if (strcmp(var->name,n) == 0) {
41536 res = (*var->set_attr)(p);
41537 break;
41538 }
41539 var = var->next;
be9b1dca 41540 }
554f62e9
RD
41541 if (res == 1 && !PyErr_Occurred()) {
41542 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41543 }
554f62e9
RD
41544 return res;
41545 }
41546
41547 SWIGINTERN PyTypeObject*
41548 swig_varlink_type(void) {
41549 static char varlink__doc__[] = "Swig var link object";
41550 static PyTypeObject varlink_type;
41551 static int type_init = 0;
41552 if (!type_init) {
41553 const PyTypeObject tmp
41554 = {
41555 PyObject_HEAD_INIT(NULL)
41556 0, /* Number of items in variable part (ob_size) */
41557 (char *)"swigvarlink", /* Type name (tp_name) */
41558 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41559 0, /* Itemsize (tp_itemsize) */
41560 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41561 (printfunc) swig_varlink_print, /* Print (tp_print) */
41562 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41563 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41564 0, /* tp_compare */
41565 (reprfunc) swig_varlink_repr, /* tp_repr */
41566 0, /* tp_as_number */
41567 0, /* tp_as_sequence */
41568 0, /* tp_as_mapping */
41569 0, /* tp_hash */
41570 0, /* tp_call */
41571 (reprfunc)swig_varlink_str, /* tp_str */
41572 0, /* tp_getattro */
41573 0, /* tp_setattro */
41574 0, /* tp_as_buffer */
41575 0, /* tp_flags */
41576 varlink__doc__, /* tp_doc */
41577 0, /* tp_traverse */
41578 0, /* tp_clear */
41579 0, /* tp_richcompare */
41580 0, /* tp_weaklistoffset */
41581#if PY_VERSION_HEX >= 0x02020000
41582 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41583#endif
41584#if PY_VERSION_HEX >= 0x02030000
41585 0, /* tp_del */
41586#endif
41587#ifdef COUNT_ALLOCS
41588 0,0,0,0 /* tp_alloc -> tp_next */
41589#endif
41590 };
41591 varlink_type = tmp;
41592 varlink_type.ob_type = &PyType_Type;
41593 type_init = 1;
be9b1dca 41594 }
554f62e9
RD
41595 return &varlink_type;
41596 }
41597
41598 /* Create a variable linking object for use later */
41599 SWIGINTERN PyObject *
41600 SWIG_Python_newvarlink(void) {
41601 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41602 if (result) {
41603 result->vars = 0;
41604 }
41605 return ((PyObject*) result);
41606 }
41607
41608 SWIGINTERN void
41609 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41610 swig_varlinkobject *v = (swig_varlinkobject *) p;
41611 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41612 if (gv) {
41613 size_t size = strlen(name)+1;
41614 gv->name = (char *)malloc(size);
41615 if (gv->name) {
41616 strncpy(gv->name,name,size);
41617 gv->get_attr = get_attr;
41618 gv->set_attr = set_attr;
41619 gv->next = v->vars;
41620 }
be9b1dca 41621 }
554f62e9
RD
41622 v->vars = gv;
41623 }
41624
41625 SWIGINTERN PyObject *
41626 SWIG_globals() {
41627 static PyObject *_SWIG_globals = 0;
41628 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41629 return _SWIG_globals;
41630 }
41631
41632 /* -----------------------------------------------------------------------------
41633 * constants/methods manipulation
41634 * ----------------------------------------------------------------------------- */
41635
41636 /* Install Constants */
41637 SWIGINTERN void
41638 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41639 PyObject *obj = 0;
41640 size_t i;
41641 for (i = 0; constants[i].type; ++i) {
41642 switch(constants[i].type) {
41643 case SWIG_PY_POINTER:
41644 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41645 break;
41646 case SWIG_PY_BINARY:
41647 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41648 break;
41649 default:
41650 obj = 0;
41651 break;
41652 }
41653 if (obj) {
41654 PyDict_SetItemString(d, constants[i].name, obj);
41655 Py_DECREF(obj);
41656 }
be9b1dca 41657 }
554f62e9
RD
41658 }
41659
41660 /* -----------------------------------------------------------------------------*/
41661 /* Fix SwigMethods to carry the callback ptrs when needed */
41662 /* -----------------------------------------------------------------------------*/
41663
41664 SWIGINTERN void
41665 SWIG_Python_FixMethods(PyMethodDef *methods,
41666 swig_const_info *const_table,
41667 swig_type_info **types,
41668 swig_type_info **types_initial) {
41669 size_t i;
41670 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41671 const char *c = methods[i].ml_doc;
554f62e9
RD
41672 if (c && (c = strstr(c, "swig_ptr: "))) {
41673 int j;
41674 swig_const_info *ci = 0;
453fb36b 41675 const char *name = c + 10;
554f62e9
RD
41676 for (j = 0; const_table[j].type; ++j) {
41677 if (strncmp(const_table[j].name, name,
41678 strlen(const_table[j].name)) == 0) {
41679 ci = &(const_table[j]);
41680 break;
41681 }
41682 }
41683 if (ci) {
41684 size_t shift = (ci->ptype) - types;
41685 swig_type_info *ty = types_initial[shift];
41686 size_t ldoc = (c - methods[i].ml_doc);
41687 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41688 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41689 if (ndoc) {
41690 char *buff = ndoc;
41691 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41692 if (ptr) {
41693 strncpy(buff, methods[i].ml_doc, ldoc);
41694 buff += ldoc;
41695 strncpy(buff, "swig_ptr: ", 10);
41696 buff += 10;
41697 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41698 methods[i].ml_doc = ndoc;
41699 }
41700 }
41701 }
41702 }
be9b1dca 41703 }
554f62e9
RD
41704 }
41705
41706#ifdef __cplusplus
41707}
41708#endif
41709
41710/* -----------------------------------------------------------------------------*
41711 * Partial Init method
41712 * -----------------------------------------------------------------------------*/
41713
41714#ifdef __cplusplus
41715extern "C"
41716#endif
41717SWIGEXPORT void SWIG_init(void) {
41718 PyObject *m, *d;
41719
41720 /* Fix SwigMethods to carry the callback ptrs when needed */
41721 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41722
41723 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41724 d = PyModule_GetDict(m);
41725
41726 SWIG_InitializeModule(0);
41727 SWIG_InstallConstants(d,swig_const_table);
41728
41729
f460c29d
RD
41730 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41731 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41732 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41733 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41734 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
41735 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41736 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41737 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41738 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41739 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41740 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41741 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41742 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41743 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41744 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41745 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41746 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41747 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41748 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41749 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41750 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41751 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41752 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41753 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41754 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41755 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41756 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41757 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41758 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41759 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41760 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41761 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41762 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41763 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41764 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41765 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41766 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41767 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41768 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41769 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41770 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41771 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41772 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41773 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41774 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41775 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41776 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41777 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41778 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41779 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41780 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41781 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41782 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41783 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41784 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41785 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41786 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41787 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41788 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41789 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41790 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41791 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41792 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41793 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41794 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41795 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41796 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41797 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41798 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41799 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41800 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41801 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41802 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41803 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41804 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41805 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41806 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41807 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41808 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41809 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41810 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41811 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41812 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41813 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41814 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41815 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41816 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41817 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41818 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41819 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41820 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41821 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41822 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41823 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41824 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41825 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41826 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41827 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41828 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41829 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41830 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41831 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41832 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41833 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41834 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41835 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41836 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41837 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41838 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41839 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41840 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41841 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41842 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41843 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41844 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41845 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41846 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41847 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41848 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41849 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41850 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41851 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41852 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41853 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41854 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41855 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41856 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41857 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41858 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41859 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41860 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41861 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41862
41863 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41864
41865 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41866 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41867 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41868 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41869 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41870 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41871 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41872 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41873 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41874 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41875 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41876 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41877 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41878 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41879 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41880 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41881 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41882 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41883 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41884 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41885 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41886 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41887 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41888 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41889 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41890 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41891 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41892 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41893 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41894 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41895 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41896 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41897 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41898 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41899 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41900 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41901 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41902 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41903 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41904 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41905 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41906 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41907 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41908 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41909 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41910 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41911 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41912 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41913 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41914 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41915 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41916 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41917 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41918 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41919 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41920 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41921 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41922 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41923 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41924 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41925 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41926 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41927 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41928 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41929 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41930 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41931 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41932 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41933 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41934 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41935 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41936 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41937 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41938 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41939 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41940 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41941 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41942 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41943 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41944 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41945 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41946 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41947 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41948 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41949 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41950 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41951 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41952 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41953 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41954 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41955 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41956 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41957 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41958 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41959 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41960 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41961 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41962 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41963 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41964 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41965 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41966 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41967 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41968 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41969 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41970 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41971 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41972 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41973 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41974 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41975 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41976 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41977 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41978 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41979 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41980 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41981 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41982 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41983 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41984 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41985 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41986 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41987 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41988 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41989 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41990 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41991 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41992 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41993 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41994 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41995 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42019 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42020 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42021 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42022 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42023 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42024 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42025 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42026 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42027 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42028 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42029 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42030 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42031 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42032 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42033 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42034 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42035 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42036 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42037 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42038 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42039 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42040 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42041 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42042 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42043 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42044 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42045 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42046 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42047 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42048 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42049 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42050 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42051 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42052 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42053 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42054 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42055 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42056 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42057 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42058 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42059 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42060 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42061 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42062 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42063 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42064 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42065 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42066 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42067 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42068 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42069 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42070 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42071 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42072 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42073 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42074 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42075 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42076 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42077 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42078 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42079 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42080 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42081 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42082 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42083 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42084 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42085 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42086 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42087 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42088 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42089 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42090 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42091 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42092 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42093 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42094 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42095 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42096 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42097 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42098 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42099 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42100 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42101 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42102 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42103 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42104 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42105 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42106 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42107 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42108 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42109 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42110 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42111 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42112 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
42113 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42114 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42115 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42116 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
42117 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42118 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
554f62e9
RD
42119 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42120 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42121 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42122 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42123 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42124 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42125 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
42126 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42127 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42128 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42129 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42130 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42131 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42132 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42133 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42134 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42135 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42136 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42137 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42138 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42139 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42140 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42141 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42142 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42143 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42144 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42145 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42146 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42147 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42148 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42149 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42150 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42151 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42152 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42153 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42154 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42155 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42156 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42157 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42158 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42159 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42160 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
42161 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42162 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42163 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42164 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42165 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42166 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42167 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42168 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
42169 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42170 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42171 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 42172 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
42173 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42174 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42175 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 42176 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
42177 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42178 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42179 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42180 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42181 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42182 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42183 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
42184 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42185 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42186 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
42187 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42188 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42189
42190 // Work around a chicken/egg problem in drawlist.cpp
42191 wxPyDrawList_SetAPIPtr();
42192
d55e5bfc
RD
42193}
42194