]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Change the wxCharBuffer typemap to make sure there is data before
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
32fe5131
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
36ed4f51 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
1bd55598
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
36ed4f51
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
36ed4f51 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
1bd55598 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
1bd55598
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
1bd55598
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
36ed4f51 2683 }
1bd55598
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
36ed4f51 2688 }
1bd55598
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
36ed4f51 2718}
d55e5bfc 2719
d55e5bfc 2720
1bd55598
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
1bd55598 2731 };
d55e5bfc
RD
2732}
2733
2734
1bd55598
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2131d850
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
1bd55598
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc
RD
2761
2762
da91cb0f
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
36ed4f51 2774SWIGINTERN int
1bd55598 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2779 return SWIG_TypeError;
36ed4f51
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
1bd55598 2783 return SWIG_OK;
36ed4f51 2784}
d55e5bfc
RD
2785
2786
36ed4f51 2787SWIGINTERN int
1bd55598
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
36ed4f51 2790 unsigned long v;
1bd55598
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
36ed4f51 2795 } else {
1bd55598 2796 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2797 }
1bd55598
RD
2798 }
2799 return res;
36ed4f51 2800}
d55e5bfc 2801
d55e5bfc 2802
1bd55598
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2805{
1bd55598
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2808}
2809
2810
1bd55598
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
36ed4f51
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
36ed4f51
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2870 return rv;
2871 }
1bd55598 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
d55e5bfc 2875
1bd55598
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2878{
1bd55598
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
1bd55598 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
1bd55598 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
36ed4f51
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
1bd55598
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
1bd55598
RD
2926SWIGINTERNINLINE PyObject *
2927SWIG_From_short (short value)
2928{
2929 return SWIG_From_long (value);
2930}
d55e5bfc
RD
2931
2932
36ed4f51 2933SWIGINTERN int
1bd55598
RD
2934SWIG_AsVal_short (PyObject * obj, short *val)
2935{
36ed4f51 2936 long v;
1bd55598
RD
2937 int res = SWIG_AsVal_long (obj, &v);
2938 if (SWIG_IsOK(res)) {
2939 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2940 return SWIG_OverflowError;
36ed4f51 2941 } else {
1bd55598
RD
2942 if (val) *val = static_cast< short >(v);
2943 }
2944 }
2945 return res;
d55e5bfc
RD
2946}
2947
2948
fc46b7f3
RD
2949#include <wx/rawbmp.h>
2950
2951
8f514ab4
RD
2952// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2953// appears to me that the other platforms are already doing it, so I'll just
2954// automatically do it for wxMSW here.
2955#ifdef __WXMSW__
2956#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2957#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2958#else
2959#define wxPy_premultiply(p, a) (p)
2960#define wxPy_unpremultiply(p, a) (p)
2961#endif
2962
2963
36ed4f51 2964#include <wx/image.h>
d55e5bfc 2965
36ed4f51
RD
2966 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2967 char** cArray = NULL;
2968 int count;
d55e5bfc 2969
36ed4f51
RD
2970 if (!PyList_Check(listOfStrings)) {
2971 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2972 return NULL;
2973 }
2974 count = PyList_Size(listOfStrings);
2975 cArray = new char*[count];
d55e5bfc 2976
36ed4f51
RD
2977 for(int x=0; x<count; x++) {
2978 // TODO: Need some validation and error checking here
2979 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2980 }
2981 return cArray;
d55e5bfc 2982 }
d55e5bfc
RD
2983
2984
1bd55598 2985SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2986 char** cArray = NULL;
2987 wxBitmap* bmp;
2988
2989 cArray = ConvertListOfStrings(listOfStrings);
2990 if (! cArray)
2991 return NULL;
2992 bmp = new wxBitmap(cArray);
2993 delete [] cArray;
2994 return bmp;
2995 }
1bd55598 2996SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2997 char* buf;
2998 Py_ssize_t length;
2999 PyString_AsStringAndSize(bits, &buf, &length);
3000 return new wxBitmap(buf, width, height, depth);
3001 }
1bd55598 3002SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3003 wxSize size(self->GetWidth(), self->GetHeight());
3004 return size;
3005 }
1bd55598 3006SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3007 wxMask *mask = new wxMask(*self, colour);
3008 self->SetMask(mask);
3009 }
1bd55598 3010SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3011 self->SetWidth(size.x);
3012 self->SetHeight(size.y);
3013 }
8f514ab4
RD
3014SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3015 int height=self->GetHeight();
3016 int width=self->GetWidth();
fc46b7f3 3017
8f514ab4
RD
3018 if (DATASIZE != width * height * 3) {
3019 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3020 }
3021 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3022 if (! pixData) {
3023 // raise an exception...
3024 wxPyErr_SetString(PyExc_RuntimeError,
3025 "Failed to gain raw access to bitmap data.");
3026 return;
3027 }
fc46b7f3 3028
8f514ab4
RD
3029 wxNativePixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxNativePixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 p.Red() = *(data++);
3034 p.Green() = *(data++);
3035 p.Blue() = *(data++);
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 }
3042SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3043 int height=self->GetHeight();
3044 int width=self->GetWidth();
3045
3046 if (DATASIZE != width * height * 4) {
3047 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3048 }
3049 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3050 if (! pixData) {
3051 // raise an exception...
3052 wxPyErr_SetString(PyExc_RuntimeError,
3053 "Failed to gain raw access to bitmap data.");
3054 return;
3055 }
3056
3057 pixData.UseAlpha();
3058 wxAlphaPixelData::Iterator p(pixData);
3059 for (int y=0; y<height; y++) {
3060 wxAlphaPixelData::Iterator rowStart = p;
3061 for (int x=0; x<width; x++) {
3062 byte a = data[3];
3063 p.Red() = wxPy_premultiply(*(data++), a);
3064 p.Green() = wxPy_premultiply(*(data++), a);
3065 p.Blue() = wxPy_premultiply(*(data++), a);
3066 p.Alpha() = a; data++;
3067 ++p;
3068 }
3069 p = rowStart;
3070 p.OffsetY(pixData, 1);
3071 }
3072 }
3073SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3074SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3075
3076 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3077 buffer data, int DATASIZE,
3078 buffer alpha, int ALPHASIZE)
3079 {
3080 if (DATASIZE != width*height*3) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 if (ALPHASIZE != width*height) {
3086 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3087 return NULL;
3088 }
3089
3090 wxBitmap* bmp = new wxBitmap(width, height, 32);
3091 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3092 if (! pixData) {
3093 // raise an exception...
3094 wxPyErr_SetString(PyExc_RuntimeError,
3095 "Failed to gain raw access to bitmap data.");
3096 return NULL;
3097 }
3098
3099 pixData.UseAlpha();
3100 wxAlphaPixelData::Iterator p(pixData);
3101 for (int y=0; y<height; y++) {
3102 wxAlphaPixelData::Iterator rowStart = p;
3103 for (int x=0; x<width; x++) {
3104 byte a = *(alpha++);
3105 p.Red() = wxPy_premultiply(*(data++), a);
3106 p.Green() = wxPy_premultiply(*(data++), a);
3107 p.Blue() = wxPy_premultiply(*(data++), a);
3108 p.Alpha() = a;
3109 ++p;
3110 }
3111 p = rowStart;
3112 p.OffsetY(pixData, 1);
3113 }
3114 return bmp;
3115 }
3116
3117 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3118 {
3119 if (DATASIZE != width*height*3) {
3120 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3121 return NULL;
3122 }
3123
3124 wxBitmap* bmp = new wxBitmap(width, height, 24);
3125 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3126 if (! pixData) {
3127 // raise an exception...
3128 wxPyErr_SetString(PyExc_RuntimeError,
3129 "Failed to gain raw access to bitmap data.");
3130 return NULL;
3131 }
3132
3133 wxNativePixelData::Iterator p(pixData);
3134 for (int y=0; y<height; y++) {
3135 wxNativePixelData::Iterator rowStart = p;
3136 for (int x=0; x<width; x++) {
3137 p.Red() = *(data++);
3138 p.Green() = *(data++);
3139 p.Blue() = *(data++);
3140 ++p;
3141 }
3142 p = rowStart;
3143 p.OffsetY(pixData, 1);
3144 }
3145 return bmp;
3146 }
3147
3148
3149 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3150 {
3151 if (DATASIZE != width*height*4) {
3152 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3153 return NULL;
3154 }
3155
3156 wxBitmap* bmp = new wxBitmap(width, height, 32);
3157 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3158 if (! pixData) {
3159 // raise an exception...
3160 wxPyErr_SetString(PyExc_RuntimeError,
3161 "Failed to gain raw access to bitmap data.");
3162 return NULL;
3163 }
3164
3165 pixData.UseAlpha();
3166 wxAlphaPixelData::Iterator p(pixData);
3167 for (int y=0; y<height; y++) {
3168 wxAlphaPixelData::Iterator rowStart = p;
3169 for (int x=0; x<width; x++) {
3170 byte a = data[3];
3171 p.Red() = wxPy_premultiply(*(data++), a);
3172 p.Green() = wxPy_premultiply(*(data++), a);
3173 p.Blue() = wxPy_premultiply(*(data++), a);
3174 p.Alpha() = a; data++;
3175 ++p;
3176 }
3177 p = rowStart;
3178 p.OffsetY(pixData, 1);
3179 }
3180 return bmp;
3181 }
3182
3183
3184 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3185
3186SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3187SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3188SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3189 self->Red() = red;
3190 self->Green() = green;
3191 self->Blue() = blue;
3192 }
3193SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3194 PyObject* rv = PyTuple_New(3);
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3198 return rv;
3199 }
3200
3201 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3202
3203SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3206 self->Red() = wxPy_premultiply(red, alpha);
3207 self->Green() = wxPy_premultiply(green, alpha);
3208 self->Blue() = wxPy_premultiply(blue, alpha);
3209 self->Alpha() = alpha;
3210 }
3211SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3212 PyObject* rv = PyTuple_New(4);
3213 int red = self->Red();
3214 int green = self->Green();
3215 int blue = self->Blue();
3216 int alpha = self->Alpha();
3217
3218 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3219 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3220 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3221 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3222 return rv;
3223 }
1bd55598 3224SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3225 if ( !colour.IsOk() )
36ed4f51
RD
3226 return new wxMask(bitmap, *wxBLACK);
3227 else
3228 return new wxMask(bitmap, colour);
3229 }
d55e5bfc 3230
36ed4f51 3231#include <wx/iconbndl.h>
d55e5bfc 3232
1bd55598 3233SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3234 wxIcon* icon = new wxIcon();
3235 icon->CopyFromBitmap(bmp);
3236 return icon;
3237 }
1bd55598 3238SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3239 char** cArray = NULL;
3240 wxIcon* icon;
d55e5bfc 3241
36ed4f51
RD
3242 cArray = ConvertListOfStrings(listOfStrings);
3243 if (! cArray)
3244 return NULL;
3245 icon = new wxIcon(cArray);
3246 delete [] cArray;
3247 return icon;
3248 }
1bd55598 3249SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3250
3251
d55e5bfc 3252
36ed4f51 3253 return new wxIconLocation(*filename);
d55e5bfc 3254
36ed4f51 3255 }
1bd55598 3256SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3257
3258
d55e5bfc 3259
36ed4f51 3260 // do nothing
d55e5bfc 3261
36ed4f51 3262 }
1bd55598 3263SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3264
3265
d55e5bfc 3266
36ed4f51 3267 return -1;
d55e5bfc 3268
36ed4f51 3269 }
1bd55598 3270SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3271#ifdef __WXGTK__
fef4c27a
RD
3272 wxImage img(cursorName, type);
3273 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3275 return new wxCursor(img);
36ed4f51 3276#else
fef4c27a 3277 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3278#endif
3279 }
d55e5bfc 3280
d55e5bfc 3281
1bd55598 3282SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3283 (*self) ++;
3284 }
1bd55598 3285SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3286 return self->operator bool();
3287 }
d55e5bfc 3288
36ed4f51
RD
3289#include <wx/fontutil.h>
3290#include <wx/fontmap.h>
3291#include <wx/fontenum.h>
d55e5bfc 3292
1bd55598 3293SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3294 return self->ToString();
3295 }
d55e5bfc 3296
36ed4f51
RD
3297 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3298 static wxNativeEncodingInfo info;
3299 if ( wxGetNativeFontEncoding(encoding, &info) )
3300 return &info;
3301 else
3302 return NULL;
d55e5bfc 3303 }
d55e5bfc 3304
1bd55598
RD
3305
3306SWIGINTERNINLINE PyObject *
3307SWIG_From_size_t (size_t value)
3308{
3309 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3310}
3311
3312
3313SWIGINTERNINLINE int
3314SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3315{
3316 unsigned long v;
3317 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3318 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3319 return res;
3320}
3321
3322SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3323 wxFontEncoding alt_enc;
3324 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3325 return PyInt_FromLong(alt_enc);
3326 else {
3327 Py_INCREF(Py_None);
3328 return Py_None;
3329 }
3330 }
1bd55598 3331SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3332 wxNativeFontInfo nfi;
3333 nfi.FromString(info);
3334 return new wxFont(nfi);
3335 }
1bd55598 3336SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3337 return wxFont::New(pointSize, family, flags, face, encoding);
3338 }
1bd55598 3339SWIGINTERN 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
3340 return wxFontBase::New(pixelSize, family,
3341 style, weight, underlined,
3342 face, encoding);
3343 }
1bd55598 3344SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3345 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3346 }
1bd55598
RD
3347SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3348SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3349
36ed4f51
RD
3350class wxPyFontEnumerator : public wxFontEnumerator {
3351public:
3352 wxPyFontEnumerator() {}
3353 ~wxPyFontEnumerator() {}
d55e5bfc 3354
36ed4f51
RD
3355 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3356 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3357
36ed4f51
RD
3358 PYPRIVATE;
3359};
d55e5bfc 3360
36ed4f51
RD
3361IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3362IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3363
36ed4f51 3364
704eda0c 3365SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3366 PyObject* ret;
704eda0c 3367 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3368 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3369 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3370 wxPyEndBlockThreads(blocked);
3371 return ret;
36ed4f51 3372 }
704eda0c 3373SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3374 PyObject* ret;
704eda0c 3375 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3376 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3377 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3378 wxPyEndBlockThreads(blocked);
3379 return ret;
36ed4f51
RD
3380 }
3381
3382#include <locale.h>
3383
1bd55598 3384SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3385 wxLocale* loc;
3386 if (language == -1)
3387 loc = new wxLocale();
3388 else
3389 loc = new wxLocale(language, flags);
3390 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3391 // for the floating point conversions and such to work right.
3392#if PY_VERSION_HEX < 0x02040000
3393 setlocale(LC_NUMERIC, "C");
3394#endif
3395 return loc;
3396 }
1bd55598 3397SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3398 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3399 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3400 // for the floating point conversions and such to work right.
3401#if PY_VERSION_HEX < 0x02040000
3402 setlocale(LC_NUMERIC, "C");
3403#endif
3404 return rc;
3405 }
1bd55598 3406SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3407 bool rc = self->Init(language, flags);
3408 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3409 // for the floating point conversions and such to work right.
3410#if PY_VERSION_HEX < 0x02040000
3411 setlocale(LC_NUMERIC, "C");
3412#endif
3413 return rc;
3414 }
3415
fc46b7f3
RD
3416class wxPyLocale : public wxLocale
3417{
3418public:
3419 wxPyLocale();
3420
3421 wxPyLocale(const wxChar *szName, // name (for messages)
3422 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3423 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3424 bool bLoadDefault = true, // preload wxstd.mo?
3425 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3426
3427 wxPyLocale(int language, // wxLanguage id or custom language
3428 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3429
3430 ~wxPyLocale();
3431
3432 virtual const wxChar *GetString(const wxChar *szOrigString,
3433 const wxChar *szDomain = NULL) const;
3434 virtual const wxChar *GetString(const wxChar *szOrigString,
3435 const wxChar *szOrigString2, size_t n,
3436 const wxChar *szDomain = NULL) const;
3437
3438 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3439 const wxChar *szDomain = NULL) const;
3440 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3441 const wxChar *szOrigString2, size_t n,
3442 const wxChar *szDomain = NULL) const;
3443
3444 PYPRIVATE;
3445private:
3446 DECLARE_NO_COPY_CLASS(wxPyLocale)
3447};
3448
3449wxPyLocale::wxPyLocale() : wxLocale()
3450{
3451}
3452
3453wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3454 const wxChar *szShort, // dir prefix (for msg files)
3455 const wxChar *szLocale, // locale (for setlocale)
3456 bool bLoadDefault, // preload wxstd.mo?
3457 bool bConvertEncoding) // convert Win<->Unix if necessary?
3458 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3459{
3460}
3461
3462wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3463 int flags) : wxLocale(language, flags)
3464{
3465}
3466
3467wxPyLocale::~wxPyLocale()
3468{
3469}
3470
3471const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3472 const wxChar *szDomain) const
3473{
3474 wxChar *str = GetSingularString(szOrigString, szDomain);
3475 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3476}
3477
3478const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3479 const wxChar *szOrigString2, size_t n,
3480 const wxChar *szDomain) const
3481{
3482 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3483 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3484}
3485
3486wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3487 const wxChar *szDomain) const
3488{
3489 bool found;
3490 static wxString str;
3491 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.
3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3493 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3494 PyObject* param1 = wx2PyString(szOrigString);
3495 PyObject* param2 = wx2PyString(szDomain);
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3497 Py_DECREF(param1);
3498 Py_DECREF(param2);
3499 if (ret) {
3500 str = Py2wxString(ret);
3501 Py_DECREF(ret);
3502 }
3503 }
3504 wxPyEndBlockThreads(blocked);
3505 return (found ? (wxChar*)str.c_str() : NULL);
3506}
3507
3508wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3509 const wxChar *szOrigString2, size_t n,
3510 const wxChar *szDomain) const
3511{
3512 bool found;
3513 static wxString str;
3514 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.
3515 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3516 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3517 PyObject* param1 = wx2PyString(szOrigString);
3518 PyObject* param2 = wx2PyString(szOrigString2);
3519 PyObject* param4 = wx2PyString(szDomain);
3520 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3521 Py_DECREF(param1);
3522 Py_DECREF(param2);
3523 Py_DECREF(param4);
3524 if( ret) {
3525 str = Py2wxString(ret);
3526 Py_DECREF(ret);
3527 }
3528 }
3529 wxPyEndBlockThreads(blocked);
3530 return (found ? (wxChar*)str.c_str() : NULL);
3531}
3532
3533SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3534 wxPyLocale* loc;
3535 if (language == -1)
3536 loc = new wxPyLocale();
3537 else
3538 loc = new wxPyLocale(language, flags);
3539 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3540 // for the floating point conversions and such to work right.
3541#if PY_VERSION_HEX < 0x02040000
3542 setlocale(LC_NUMERIC, "C");
3543#endif
3544 return loc;
3545 }
3546
36ed4f51
RD
3547#include "wx/wxPython/pydrawxxx.h"
3548
1bd55598 3549SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3550 wxColour col;
3551 self->GetPixel(x, y, &col);
3552 return col;
3553 }
1bd55598 3554SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3555 wxColour col;
3556 self->GetPixel(pt, &col);
3557 return col;
3558 }
3559
3560SWIGINTERN int
1bd55598 3561SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3562{
3563 if (PyNumber_Check(obj)) {
3564 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3565 return SWIG_OK;
d55e5bfc 3566 }
1bd55598 3567 return SWIG_TypeError;
36ed4f51
RD
3568}
3569
1bd55598 3570SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3571 wxRect rv;
3572 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3573 return rv;
3574 }
1bd55598 3575SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3576 wxRect rect;
3577 self->GetClippingBox(rect);
3578 return rect;
3579 }
1bd55598 3580SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3581 wxArrayInt widths;
3582 self->GetPartialTextExtents(text, widths);
3583 return widths;
3584 }
3585
1bd55598 3586 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3587
1bd55598 3588SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3589 self->SetLogicalOrigin(point.x, point.y);
3590 }
1bd55598 3591SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3592 self->SetDeviceOrigin(point.x, point.y);
3593 }
1bd55598 3594SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3595 self->CalcBoundingBox(point.x, point.y);
3596 }
1bd55598 3597SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3598 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3599 }
1bd55598 3600SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3601 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3602 }
1bd55598 3603SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3604 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3605 }
1bd55598 3606SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3607 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3608 }
1bd55598 3609SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3610 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3611 }
1bd55598 3612SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3613 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3614 }
3615
3616static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3617 *x1 = dc->MinX();
3618 *y1 = dc->MinY();
3619 *x2 = dc->MaxX();
3620 *y2 = dc->MaxY();
3621}
3622
3623
3624#include <wx/dcbuffer.h>
3625
3626
3627#include <wx/dcps.h>
3628
3629
3630#include <wx/metafile.h>
3631
3632
72ef6efb
RD
3633#include <wx/graphics.h>
3634
3635
3636#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3637// C++ stub classes for platforms or build configurations that don't have
3638// wxGraphicsContext yet.
72ef6efb 3639
70d7cb34
RD
3640
3641class wxGraphicsObject : public wxObject
72ef6efb
RD
3642{
3643public :
70d7cb34 3644 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3645 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3646 "wx.GraphicsObject is not available on this platform.");
3647 }
3648 wxGraphicsObject( const wxGraphicsObject& ) {}
3649 virtual ~wxGraphicsObject() {}
3650 bool IsNull() const { return false; }
3651 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3652} ;
3653
3654
3655
3656class wxGraphicsPen : public wxGraphicsObject
3657{
3658 wxGraphicsPen() {}
3659 virtual ~wxGraphicsPen() {}
3660} ;
3661wxGraphicsPen wxNullGraphicsPen;
3662
3663
3664
3665class wxGraphicsBrush : public wxGraphicsObject
3666{
3667public :
3668 wxGraphicsBrush() {}
3669 virtual ~wxGraphicsBrush() {}
3670} ;
3671wxGraphicsBrush wxNullGraphicsBrush;
3672
3673
3674
3675class wxGraphicsFont : public wxGraphicsObject
3676{
3677public :
3678 wxGraphicsFont() {}
3679 virtual ~wxGraphicsFont() {}
3680} ;
3681wxGraphicsFont wxNullGraphicsFont;
3682
3683
3684
3685class wxGraphicsPath : public wxGraphicsObject
3686{
3687public :
3688 wxGraphicsPath(wxGraphicsRenderer* ) {
3689 PyErr_SetString(PyExc_NotImplementedError,
3690 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3691 }
3692 virtual ~wxGraphicsPath() {}
70d7cb34 3693
72ef6efb 3694 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3695 void MoveToPoint( const wxPoint2DDouble& ) {}
3696 void AddLineToPoint( wxDouble, wxDouble ) {}
3697 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3698 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3699 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3700 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3701 void CloseSubpath() {}
3702 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3703 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3704 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3705 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3706
3707 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3708 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3710 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3711
70d7cb34
RD
3712 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3713 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void * GetNativePath() const { return NULL; }
3715 void UnGetNativePath(void *) {}
3716 void Transform( wxGraphicsMatrix* ) {}
3717 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3718 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3719
3720 bool Contains( wxDouble , wxDouble , int ) { return false; }
3721 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3722};
5c8c7dd3 3723wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3724
3725
3726class wxGraphicsMatrix : public wxGraphicsObject
3727{
3728public :
3729 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3730 PyErr_SetString(PyExc_NotImplementedError,
3731 "wx.GraphicsMatrix is not available on this platform.");
3732 }
3733 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3734 virtual void Concat( const wxGraphicsMatrix * ) {}
3735 virtual void Copy( const wxGraphicsMatrix * ) {}
3736 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3737 wxDouble , wxDouble ) {}
3738 virtual void Invert() {}
3739 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3740 virtual bool IsIdentity() { return false; }
3741 virtual void Translate( wxDouble , wxDouble ) {}
3742 virtual void Scale( wxDouble , wxDouble ) {}
3743 virtual void Rotate( wxDouble ) {}
3744 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3745 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3746 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3747};
5c8c7dd3 3748wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3749
70d7cb34
RD
3750
3751class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3752{
3753public:
70d7cb34
RD
3754
3755 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3756 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3757 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3758 }
70d7cb34 3759
72ef6efb 3760 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3761
3762 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3763 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3764 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3765 }
b876c1e4 3766
70d7cb34 3767 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3768 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3769 "wx.GraphicsContext is not available on this platform.");
3770 }
b876c1e4 3771
70d7cb34
RD
3772 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3773 PyErr_SetString(PyExc_NotImplementedError,
3774 "wx.GraphicsContext is not available on this platform.");
3775 }
3776
3777 static wxGraphicsContext* Create( wxWindow* ) {
3778 PyErr_SetString(PyExc_NotImplementedError,
3779 "wx.GraphicsContext is not available on this platform.");
3780 }
3781
3782 wxGraphicsPath * CreatePath() { return NULL; }
3783
3784 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3785
3786 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3789 const wxColour&, const wxColour&) { return NULL; }
3790
3791 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3792 wxDouble xc, wxDouble yc, wxDouble radius,
3793 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3794
3795 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3796
3797 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3798 wxDouble, wxDouble) { return NULL; }
3799
3800 virtual void PushState() {}
3801 virtual void PopState() {}
3802 virtual void Clip( const wxRegion & ) {}
3803 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3804 virtual void ResetClip() {}
3805 virtual void * GetNativeContext() { return NULL; }
3806 virtual void Translate( wxDouble , wxDouble ) {}
3807 virtual void Scale( wxDouble , wxDouble ) {}
3808 virtual void Rotate( wxDouble ) {}
3809 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3810 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3811 virtual void GetTransform( wxGraphicsMatrix* ) {}
3812
3813 virtual void SetPen( const wxGraphicsPen& ) {}
3814 void SetPen( const wxPen& ) {}
3815
3816 virtual void SetBrush( const wxGraphicsBrush& ) {}
3817 void SetBrush( const wxBrush& ) {}
3818
3819 virtual void SetFont( const wxGraphicsFont& ) {}
3820 void SetFont( const wxFont&, const wxColour& ) {}
3821
3822 virtual void StrokePath( const wxGraphicsPath * ) {}
3823 virtual void FillPath( const wxGraphicsPath *, int ) {}
3824 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3825
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3828 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3829 wxDouble *, wxDouble * ) const {}
3830 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3831
3832 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834
3835 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3836 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3838 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3839 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3840 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual bool ShouldOffset() const { return false; }
3843};
3844
3845
3846class wxGraphicsRenderer : public wxObject
3847{
3848public :
3849 wxGraphicsRenderer() {
3850 PyErr_SetString(PyExc_NotImplementedError,
3851 "wx.GraphicsRenderer is not available on this platform.");
3852 }
3853
3854 virtual ~wxGraphicsRenderer() {}
3855
3856 static wxGraphicsRenderer* GetDefaultRenderer(
3857 PyErr_SetString(PyExc_NotImplementedError,
3858 "wx.GraphicsRenderer is not available on this platform.");
3859 );
3860
3861 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3862 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3865
3866 virtual wxGraphicsPath * CreatePath() { return NULL; }
3867
3868 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3869 wxDouble , wxDouble ) { return NULL; }
3870
3871 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3872 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3873 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3874 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3875 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3876 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3877 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3878};
3879
3880
70d7cb34 3881
72ef6efb
RD
3882class wxGCDC: public wxWindowDC
3883{
3884public:
3885 wxGCDC(const wxWindowDC&) {
3886 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3887 PyErr_SetString(PyExc_NotImplementedError,
3888 "wxGCDC is not available on this platform.");
3889 wxPyEndBlockThreads(blocked);
3890 }
70d7cb34 3891
72ef6efb
RD
3892 wxGCDC() {
3893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3894 PyErr_SetString(PyExc_NotImplementedError,
3895 "wxGCDC is not available on this platform.");
3896 wxPyEndBlockThreads(blocked);
3897 }
70d7cb34 3898
72ef6efb
RD
3899 virtual ~wxGCDC() {}
3900
b876c1e4
RD
3901 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3902 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3903};
3904
3905#endif
3906
5c8c7dd3
RD
3907SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3908 *self = t;
3909 }
be68621e
RD
3910SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3911 wxDouble width = 0.0,
3912 height = 0.0;
3913 self->GetTextExtent(text, &width, &height, NULL, NULL);
3914 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3915 PyObject* rv = PyTuple_New(2);
3916 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3917 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3918 return rv;
3919 }
b39fe951
RD
3920SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3921 wxArrayDouble widths;
3922 self->GetPartialTextExtents(text, widths);
3923 return widths;
3924 }
f8eb59b9 3925SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3926 size_t c1, c2, count;
3927 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3928 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3929
3930 if ( beginP != NULL && endP != NULL )
3931 {
3932 count = wxMin(c1, c2);
3933 self->StrokeLines(count, beginP, endP);
3934 }
3935 delete [] beginP;
3936 delete [] endP;
3937 }
72ef6efb 3938
0a27f394
RD
3939#include "wx/dcgraph.h"
3940
3941
66493fc7
RD
3942#include <wx/overlay.h>
3943
3944
36ed4f51 3945
1bd55598 3946SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3947 self->AddColour(name, wxColour(red, green, blue));
3948 }
3949
da91cb0f
RD
3950 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3951 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3952 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3953 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3954
3955
36ed4f51
RD
3956#include <wx/effects.h>
3957
be9b1dca
RD
3958
3959#include "wx/renderer.h"
3960
3961
32fe5131 3962SWIGINTERNINLINE PyObject*
1bd55598 3963 SWIG_From_bool (bool value)
be9b1dca 3964{
1bd55598 3965 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3966}
3967
27e45892
RD
3968
3969#include "wx/wxPython/pseudodc.h"
3970
3971SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3972 wxRect rect;
3973 self->GetIdBounds(id, rect);
3974 return rect;
3975 }
36ed4f51
RD
3976#ifdef __cplusplus
3977extern "C" {
3978#endif
1bd55598
RD
3979SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3980 PyObject *resultobj = 0;
3981 wxGDIObject *result = 0 ;
3982
3983 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3984 {
3985 if (!wxPyCheckForApp()) SWIG_fail;
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 result = (wxGDIObject *)new wxGDIObject();
3988 wxPyEndAllowThreads(__tstate);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3992 return resultobj;
3993fail:
3994 return NULL;
d55e5bfc
RD
3995}
3996
3997
1bd55598
RD
3998SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3999 PyObject *resultobj = 0;
4000 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4001 void *argp1 = 0 ;
4002 int res1 = 0 ;
4003 PyObject *swig_obj[1] ;
4004
4005 if (!args) SWIG_fail;
4006 swig_obj[0] = args;
4007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4008 if (!SWIG_IsOK(res1)) {
4009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4010 }
4011 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 delete arg1;
d55e5bfc 4015
1bd55598
RD
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 resultobj = SWIG_Py_Void();
4020 return resultobj;
4021fail:
4022 return NULL;
d55e5bfc
RD
4023}
4024
4025
1bd55598
RD
4026SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4027 PyObject *resultobj = 0;
4028 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4029 bool result;
4030 void *argp1 = 0 ;
4031 int res1 = 0 ;
4032 PyObject *swig_obj[1] ;
4033
4034 if (!args) SWIG_fail;
4035 swig_obj[0] = args;
4036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4037 if (!SWIG_IsOK(res1)) {
4038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4039 }
4040 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4041 {
4042 PyThreadState* __tstate = wxPyBeginAllowThreads();
4043 result = (bool)(arg1)->IsNull();
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 }
4047 {
4048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4049 }
4050 return resultobj;
4051fail:
4052 return NULL;
4053}
4054
4055
4056SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4057 PyObject *obj;
4058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4059 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4060 return SWIG_Py_Void();
4061}
4062
4063SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4064 return SWIG_Python_InitShadowInstance(args);
4065}
4066
4067SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4068 PyObject *resultobj = 0;
4069 byte arg1 = (byte) 0 ;
4070 byte arg2 = (byte) 0 ;
4071 byte arg3 = (byte) 0 ;
fc46b7f3 4072 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4073 wxColour *result = 0 ;
4074 unsigned char val1 ;
4075 int ecode1 = 0 ;
4076 unsigned char val2 ;
4077 int ecode2 = 0 ;
4078 unsigned char val3 ;
4079 int ecode3 = 0 ;
fc46b7f3
RD
4080 unsigned char val4 ;
4081 int ecode4 = 0 ;
1bd55598
RD
4082 PyObject * obj0 = 0 ;
4083 PyObject * obj1 = 0 ;
4084 PyObject * obj2 = 0 ;
fc46b7f3 4085 PyObject * obj3 = 0 ;
1bd55598 4086 char * kwnames[] = {
fc46b7f3 4087 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4088 };
4089
fc46b7f3 4090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4091 if (obj0) {
4092 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4093 if (!SWIG_IsOK(ecode1)) {
4094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4095 }
4096 arg1 = static_cast< byte >(val1);
4097 }
4098 if (obj1) {
4099 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4100 if (!SWIG_IsOK(ecode2)) {
4101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4102 }
4103 arg2 = static_cast< byte >(val2);
4104 }
4105 if (obj2) {
4106 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4107 if (!SWIG_IsOK(ecode3)) {
4108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4109 }
4110 arg3 = static_cast< byte >(val3);
4111 }
fc46b7f3
RD
4112 if (obj3) {
4113 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4114 if (!SWIG_IsOK(ecode4)) {
4115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4116 }
4117 arg4 = static_cast< byte >(val4);
4118 }
1bd55598
RD
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4121 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4126 return resultobj;
4127fail:
4128 return NULL;
d55e5bfc
RD
4129}
4130
4131
1bd55598
RD
4132SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj = 0;
4134 wxString *arg1 = 0 ;
4135 wxColour *result = 0 ;
4136 bool temp1 = false ;
4137 PyObject * obj0 = 0 ;
4138 char * kwnames[] = {
4139 (char *) "colorName", NULL
4140 };
4141
4142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4143 {
4144 arg1 = wxString_in_helper(obj0);
4145 if (arg1 == NULL) SWIG_fail;
4146 temp1 = true;
4147 }
4148 {
4149 if (!wxPyCheckForApp()) SWIG_fail;
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 result = (wxColour *)new wxColour((wxString const &)*arg1);
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4156 {
4157 if (temp1)
4158 delete arg1;
4159 }
4160 return resultobj;
4161fail:
4162 {
4163 if (temp1)
4164 delete arg1;
4165 }
4166 return NULL;
36ed4f51
RD
4167}
4168
4169
1bd55598
RD
4170SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj = 0;
4172 unsigned long arg1 ;
4173 wxColour *result = 0 ;
4174 unsigned long val1 ;
4175 int ecode1 = 0 ;
4176 PyObject * obj0 = 0 ;
4177 char * kwnames[] = {
4178 (char *) "colRGB", NULL
4179 };
4180
4181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4182 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4183 if (!SWIG_IsOK(ecode1)) {
4184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4185 }
4186 arg1 = static_cast< unsigned long >(val1);
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (wxColour *)new wxColour(arg1);
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4194 return resultobj;
4195fail:
4196 return NULL;
d55e5bfc
RD
4197}
4198
4199
1bd55598
RD
4200SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4201 PyObject *resultobj = 0;
4202 wxColour *arg1 = (wxColour *) 0 ;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 PyObject *swig_obj[1] ;
4206
4207 if (!args) SWIG_fail;
4208 swig_obj[0] = args;
4209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4210 if (!SWIG_IsOK(res1)) {
4211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4212 }
4213 arg1 = reinterpret_cast< wxColour * >(argp1);
4214 {
4215 PyThreadState* __tstate = wxPyBeginAllowThreads();
4216 delete arg1;
d55e5bfc 4217
1bd55598
RD
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) SWIG_fail;
4220 }
4221 resultobj = SWIG_Py_Void();
4222 return resultobj;
4223fail:
4224 return NULL;
d55e5bfc
RD
4225}
4226
4227
1bd55598
RD
4228SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4229 PyObject *resultobj = 0;
4230 wxColour *arg1 = (wxColour *) 0 ;
4231 byte result;
4232 void *argp1 = 0 ;
4233 int res1 = 0 ;
4234 PyObject *swig_obj[1] ;
4235
4236 if (!args) SWIG_fail;
4237 swig_obj[0] = args;
4238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4239 if (!SWIG_IsOK(res1)) {
4240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4241 }
4242 arg1 = reinterpret_cast< wxColour * >(argp1);
4243 {
4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
4245 result = (byte)(arg1)->Red();
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4250 return resultobj;
4251fail:
4252 return NULL;
d55e5bfc
RD
4253}
4254
4255
1bd55598
RD
4256SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4257 PyObject *resultobj = 0;
4258 wxColour *arg1 = (wxColour *) 0 ;
4259 byte result;
4260 void *argp1 = 0 ;
4261 int res1 = 0 ;
4262 PyObject *swig_obj[1] ;
4263
4264 if (!args) SWIG_fail;
4265 swig_obj[0] = args;
4266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4267 if (!SWIG_IsOK(res1)) {
4268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4269 }
4270 arg1 = reinterpret_cast< wxColour * >(argp1);
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 result = (byte)(arg1)->Green();
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4278 return resultobj;
4279fail:
4280 return NULL;
d55e5bfc
RD
4281}
4282
4283
1bd55598
RD
4284SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4285 PyObject *resultobj = 0;
4286 wxColour *arg1 = (wxColour *) 0 ;
4287 byte result;
4288 void *argp1 = 0 ;
4289 int res1 = 0 ;
4290 PyObject *swig_obj[1] ;
4291
4292 if (!args) SWIG_fail;
4293 swig_obj[0] = args;
4294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4295 if (!SWIG_IsOK(res1)) {
4296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4297 }
4298 arg1 = reinterpret_cast< wxColour * >(argp1);
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (byte)(arg1)->Blue();
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4306 return resultobj;
4307fail:
4308 return NULL;
d55e5bfc
RD
4309}
4310
4311
fc46b7f3
RD
4312SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxColour *arg1 = (wxColour *) 0 ;
4315 byte result;
4316 void *argp1 = 0 ;
4317 int res1 = 0 ;
4318 PyObject *swig_obj[1] ;
4319
4320 if (!args) SWIG_fail;
4321 swig_obj[0] = args;
4322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4325 }
4326 arg1 = reinterpret_cast< wxColour * >(argp1);
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (byte)(arg1)->Alpha();
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4334 return resultobj;
4335fail:
4336 return NULL;
4337}
4338
4339
b39fe951 4340SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4341 PyObject *resultobj = 0;
4342 wxColour *arg1 = (wxColour *) 0 ;
4343 bool result;
4344 void *argp1 = 0 ;
4345 int res1 = 0 ;
4346 PyObject *swig_obj[1] ;
4347
4348 if (!args) SWIG_fail;
4349 swig_obj[0] = args;
4350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4351 if (!SWIG_IsOK(res1)) {
b39fe951 4352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4353 }
4354 arg1 = reinterpret_cast< wxColour * >(argp1);
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4357 result = (bool)(arg1)->IsOk();
1bd55598
RD
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 {
4362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4363 }
4364 return resultobj;
4365fail:
4366 return NULL;
4367}
4368
4369
4370SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4371 PyObject *resultobj = 0;
4372 wxColour *arg1 = (wxColour *) 0 ;
4373 byte arg2 ;
4374 byte arg3 ;
4375 byte arg4 ;
fc46b7f3 4376 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4377 void *argp1 = 0 ;
4378 int res1 = 0 ;
4379 unsigned char val2 ;
4380 int ecode2 = 0 ;
4381 unsigned char val3 ;
4382 int ecode3 = 0 ;
4383 unsigned char val4 ;
4384 int ecode4 = 0 ;
fc46b7f3
RD
4385 unsigned char val5 ;
4386 int ecode5 = 0 ;
1bd55598
RD
4387 PyObject * obj0 = 0 ;
4388 PyObject * obj1 = 0 ;
4389 PyObject * obj2 = 0 ;
4390 PyObject * obj3 = 0 ;
fc46b7f3 4391 PyObject * obj4 = 0 ;
1bd55598 4392 char * kwnames[] = {
fc46b7f3 4393 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4394 };
4395
fc46b7f3 4396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4398 if (!SWIG_IsOK(res1)) {
4399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4400 }
4401 arg1 = reinterpret_cast< wxColour * >(argp1);
4402 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4403 if (!SWIG_IsOK(ecode2)) {
4404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4405 }
4406 arg2 = static_cast< byte >(val2);
4407 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4408 if (!SWIG_IsOK(ecode3)) {
4409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4410 }
4411 arg3 = static_cast< byte >(val3);
4412 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4413 if (!SWIG_IsOK(ecode4)) {
4414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4415 }
4416 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4417 if (obj4) {
4418 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4419 if (!SWIG_IsOK(ecode5)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4421 }
4422 arg5 = static_cast< byte >(val5);
4423 }
1bd55598
RD
4424 {
4425 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4426 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 resultobj = SWIG_Py_Void();
4431 return resultobj;
4432fail:
4433 return NULL;
4434}
4435
4436
4437SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4438 PyObject *resultobj = 0;
4439 wxColour *arg1 = (wxColour *) 0 ;
4440 unsigned long arg2 ;
4441 void *argp1 = 0 ;
4442 int res1 = 0 ;
4443 unsigned long val2 ;
4444 int ecode2 = 0 ;
4445 PyObject * obj0 = 0 ;
4446 PyObject * obj1 = 0 ;
4447 char * kwnames[] = {
4448 (char *) "self",(char *) "colRGB", NULL
4449 };
4450
4451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4453 if (!SWIG_IsOK(res1)) {
4454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4455 }
4456 arg1 = reinterpret_cast< wxColour * >(argp1);
4457 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4458 if (!SWIG_IsOK(ecode2)) {
4459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4460 }
4461 arg2 = static_cast< unsigned long >(val2);
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 (arg1)->Set(arg2);
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_Py_Void();
4469 return resultobj;
4470fail:
4471 return NULL;
4472}
4473
4474
4475SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj = 0;
4477 wxColour *arg1 = (wxColour *) 0 ;
4478 wxString *arg2 = 0 ;
4479 void *argp1 = 0 ;
4480 int res1 = 0 ;
4481 bool temp2 = false ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 char * kwnames[] = {
4485 (char *) "self",(char *) "colourName", NULL
4486 };
4487
4488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4490 if (!SWIG_IsOK(res1)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4492 }
4493 arg1 = reinterpret_cast< wxColour * >(argp1);
4494 {
4495 arg2 = wxString_in_helper(obj1);
4496 if (arg2 == NULL) SWIG_fail;
4497 temp2 = true;
4498 }
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4501 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 resultobj = SWIG_Py_Void();
4506 {
4507 if (temp2)
4508 delete arg2;
4509 }
4510 return resultobj;
4511fail:
4512 {
4513 if (temp2)
4514 delete arg2;
4515 }
4516 return NULL;
d55e5bfc
RD
4517}
4518
4519
2131d850
RD
4520SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxColour *arg1 = (wxColour *) 0 ;
4523 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4524 wxString result;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 long val2 ;
4528 int ecode2 = 0 ;
4529 PyObject * obj0 = 0 ;
4530 PyObject * obj1 = 0 ;
4531 char * kwnames[] = {
4532 (char *) "self",(char *) "flags", NULL
4533 };
4534
4535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4537 if (!SWIG_IsOK(res1)) {
4538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4539 }
4540 arg1 = reinterpret_cast< wxColour * >(argp1);
4541 if (obj1) {
4542 ecode2 = SWIG_AsVal_long(obj1, &val2);
4543 if (!SWIG_IsOK(ecode2)) {
4544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4545 }
4546 arg2 = static_cast< long >(val2);
4547 }
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = ((wxColour const *)arg1)->GetAsString(arg2);
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 {
4555#if wxUSE_UNICODE
4556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4557#else
4558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4559#endif
4560 }
4561 return resultobj;
4562fail:
4563 return NULL;
4564}
4565
4566
1bd55598
RD
4567SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4568 PyObject *resultobj = 0;
4569 wxColour *arg1 = (wxColour *) 0 ;
4570 long result;
4571 void *argp1 = 0 ;
4572 int res1 = 0 ;
4573 PyObject *swig_obj[1] ;
4574
4575 if (!args) SWIG_fail;
4576 swig_obj[0] = args;
4577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4580 }
4581 arg1 = reinterpret_cast< wxColour * >(argp1);
4582 {
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 result = (long)((wxColour const *)arg1)->GetPixel();
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 resultobj = SWIG_From_long(static_cast< long >(result));
4589 return resultobj;
4590fail:
4591 return NULL;
4592}
4593
4594
4595SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4596 PyObject *resultobj = 0;
4597 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4598 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4599 bool result;
4600 void *argp1 = 0 ;
4601 int res1 = 0 ;
1bd55598
RD
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 char * kwnames[] = {
e9d6f3a4 4605 (char *) "self",(char *) "other", NULL
1bd55598
RD
4606 };
4607
4608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4610 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4612 }
4613 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4614 arg2 = obj1;
1bd55598 4615 {
e9d6f3a4 4616 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 {
4620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4621 }
4622 return resultobj;
4623fail:
4624 return NULL;
4625}
4626
4627
4628SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj = 0;
4630 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4631 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4632 bool result;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
1bd55598
RD
4635 PyObject * obj0 = 0 ;
4636 PyObject * obj1 = 0 ;
4637 char * kwnames[] = {
e9d6f3a4 4638 (char *) "self",(char *) "other", NULL
1bd55598
RD
4639 };
4640
4641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4643 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4645 }
4646 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4647 arg2 = obj1;
1bd55598 4648 {
e9d6f3a4 4649 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4650 if (PyErr_Occurred()) SWIG_fail;
4651 }
4652 {
4653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4654 }
4655 return resultobj;
4656fail:
4657 return NULL;
d55e5bfc
RD
4658}
4659
4660
fc46b7f3 4661SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4662 PyObject *resultobj = 0;
4663 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4664 bool arg2 = (bool) false ;
1bd55598
RD
4665 PyObject *result = 0 ;
4666 void *argp1 = 0 ;
4667 int res1 = 0 ;
fc46b7f3
RD
4668 bool val2 ;
4669 int ecode2 = 0 ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 char * kwnames[] = {
4673 (char *) "self",(char *) "includeAlpha", NULL
4674 };
1bd55598 4675
fc46b7f3
RD
4676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4678 if (!SWIG_IsOK(res1)) {
4679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4680 }
4681 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4682 if (obj1) {
4683 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4684 if (!SWIG_IsOK(ecode2)) {
4685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4686 }
4687 arg2 = static_cast< bool >(val2);
4688 }
1bd55598 4689 {
fc46b7f3 4690 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 resultobj = result;
4694 return resultobj;
4695fail:
4696 return NULL;
d55e5bfc
RD
4697}
4698
4699
1bd55598
RD
4700SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxColour *arg1 = (wxColour *) 0 ;
4703 unsigned long result;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 PyObject *swig_obj[1] ;
4707
4708 if (!args) SWIG_fail;
4709 swig_obj[0] = args;
4710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4713 }
4714 arg1 = reinterpret_cast< wxColour * >(argp1);
4715 {
1bd55598 4716 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4720 return resultobj;
4721fail:
4722 return NULL;
4723}
4724
4725
4726SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4727 PyObject *obj;
4728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4729 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4730 return SWIG_Py_Void();
4731}
4732
4733SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4734 return SWIG_Python_InitShadowInstance(args);
4735}
4736
4737SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4738 PyObject *resultobj = 0;
4739 int arg1 ;
4740 unsigned char *arg2 = (unsigned char *) 0 ;
4741 unsigned char *arg3 = (unsigned char *) 0 ;
4742 unsigned char *arg4 = (unsigned char *) 0 ;
4743 wxPalette *result = 0 ;
4744 int val1 ;
4745 int ecode1 = 0 ;
4746 void *argp2 = 0 ;
4747 int res2 = 0 ;
4748 void *argp3 = 0 ;
4749 int res3 = 0 ;
4750 void *argp4 = 0 ;
4751 int res4 = 0 ;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 PyObject * obj2 = 0 ;
4755 PyObject * obj3 = 0 ;
4756 char * kwnames[] = {
4757 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4758 };
4759
4760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4761 ecode1 = SWIG_AsVal_int(obj0, &val1);
4762 if (!SWIG_IsOK(ecode1)) {
4763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4764 }
4765 arg1 = static_cast< int >(val1);
4766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4767 if (!SWIG_IsOK(res2)) {
4768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4769 }
4770 arg2 = reinterpret_cast< unsigned char * >(argp2);
4771 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4772 if (!SWIG_IsOK(res3)) {
4773 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4774 }
4775 arg3 = reinterpret_cast< unsigned char * >(argp3);
4776 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4777 if (!SWIG_IsOK(res4)) {
4778 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4779 }
4780 arg4 = reinterpret_cast< unsigned char * >(argp4);
4781 {
4782 if (!wxPyCheckForApp()) SWIG_fail;
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4789 return resultobj;
4790fail:
4791 return NULL;
d55e5bfc
RD
4792}
4793
4794
1bd55598
RD
4795SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4796 PyObject *resultobj = 0;
4797 wxPalette *arg1 = (wxPalette *) 0 ;
4798 void *argp1 = 0 ;
4799 int res1 = 0 ;
4800 PyObject *swig_obj[1] ;
4801
4802 if (!args) SWIG_fail;
4803 swig_obj[0] = args;
4804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4805 if (!SWIG_IsOK(res1)) {
4806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4807 }
4808 arg1 = reinterpret_cast< wxPalette * >(argp1);
4809 {
4810 PyThreadState* __tstate = wxPyBeginAllowThreads();
4811 delete arg1;
d55e5bfc 4812
1bd55598
RD
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 resultobj = SWIG_Py_Void();
4817 return resultobj;
4818fail:
4819 return NULL;
4820}
4821
4822
4823SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj = 0;
4825 wxPalette *arg1 = (wxPalette *) 0 ;
4826 byte arg2 ;
4827 byte arg3 ;
4828 byte arg4 ;
4829 int result;
4830 void *argp1 = 0 ;
4831 int res1 = 0 ;
4832 unsigned char val2 ;
4833 int ecode2 = 0 ;
4834 unsigned char val3 ;
4835 int ecode3 = 0 ;
4836 unsigned char val4 ;
4837 int ecode4 = 0 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 PyObject * obj2 = 0 ;
4841 PyObject * obj3 = 0 ;
4842 char * kwnames[] = {
4843 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4844 };
4845
4846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4848 if (!SWIG_IsOK(res1)) {
4849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4850 }
4851 arg1 = reinterpret_cast< wxPalette * >(argp1);
4852 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4853 if (!SWIG_IsOK(ecode2)) {
4854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4855 }
4856 arg2 = static_cast< byte >(val2);
4857 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4858 if (!SWIG_IsOK(ecode3)) {
4859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4860 }
4861 arg3 = static_cast< byte >(val3);
4862 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4863 if (!SWIG_IsOK(ecode4)) {
4864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4865 }
4866 arg4 = static_cast< byte >(val4);
4867 {
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4869 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = SWIG_From_int(static_cast< int >(result));
4874 return resultobj;
4875fail:
4876 return NULL;
4877}
4878
4879
4880SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj = 0;
4882 wxPalette *arg1 = (wxPalette *) 0 ;
4883 int arg2 ;
4884 byte *arg3 = (byte *) 0 ;
4885 byte *arg4 = (byte *) 0 ;
4886 byte *arg5 = (byte *) 0 ;
4887 bool result;
4888 void *argp1 = 0 ;
4889 int res1 = 0 ;
4890 int val2 ;
4891 int ecode2 = 0 ;
4892 byte temp3 ;
4893 int res3 = SWIG_TMPOBJ ;
4894 byte temp4 ;
4895 int res4 = SWIG_TMPOBJ ;
4896 byte temp5 ;
4897 int res5 = SWIG_TMPOBJ ;
4898 PyObject * obj0 = 0 ;
4899 PyObject * obj1 = 0 ;
4900 char * kwnames[] = {
4901 (char *) "self",(char *) "pixel", NULL
4902 };
4903
4904 arg3 = &temp3;
4905 arg4 = &temp4;
4906 arg5 = &temp5;
4907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4909 if (!SWIG_IsOK(res1)) {
4910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4911 }
4912 arg1 = reinterpret_cast< wxPalette * >(argp1);
4913 ecode2 = SWIG_AsVal_int(obj1, &val2);
4914 if (!SWIG_IsOK(ecode2)) {
4915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4916 }
4917 arg2 = static_cast< int >(val2);
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 {
4925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4926 }
4927 if (SWIG_IsTmpObj(res3)) {
4928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4929 } else {
4930 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4932 }
4933 if (SWIG_IsTmpObj(res4)) {
4934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4935 } else {
4936 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4938 }
4939 if (SWIG_IsTmpObj(res5)) {
4940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4941 } else {
4942 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4944 }
4945 return resultobj;
4946fail:
4947 return NULL;
d55e5bfc
RD
4948}
4949
4950
1bd55598
RD
4951SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4952 PyObject *resultobj = 0;
4953 wxPalette *arg1 = (wxPalette *) 0 ;
4954 int result;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject *swig_obj[1] ;
4958
4959 if (!args) SWIG_fail;
4960 swig_obj[0] = args;
4961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4964 }
4965 arg1 = reinterpret_cast< wxPalette * >(argp1);
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_From_int(static_cast< int >(result));
4973 return resultobj;
4974fail:
4975 return NULL;
d55e5bfc
RD
4976}
4977
4978
b39fe951 4979SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4980 PyObject *resultobj = 0;
4981 wxPalette *arg1 = (wxPalette *) 0 ;
4982 bool result;
4983 void *argp1 = 0 ;
4984 int res1 = 0 ;
4985 PyObject *swig_obj[1] ;
4986
4987 if (!args) SWIG_fail;
4988 swig_obj[0] = args;
4989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4990 if (!SWIG_IsOK(res1)) {
b39fe951 4991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4992 }
4993 arg1 = reinterpret_cast< wxPalette * >(argp1);
4994 {
4995 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4996 result = (bool)(arg1)->IsOk();
1bd55598
RD
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 {
5001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5002 }
5003 return resultobj;
5004fail:
5005 return NULL;
5006}
5007
5008
5009SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5010 PyObject *obj;
5011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5012 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5013 return SWIG_Py_Void();
5014}
5015
5016SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5017 return SWIG_Python_InitShadowInstance(args);
5018}
5019
5020SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5021 PyObject *resultobj = 0;
5022 wxColour *arg1 = 0 ;
5023 int arg2 = (int) 1 ;
5024 int arg3 = (int) wxSOLID ;
5025 wxPen *result = 0 ;
5026 wxColour temp1 ;
5027 int val2 ;
5028 int ecode2 = 0 ;
5029 int val3 ;
5030 int ecode3 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 PyObject * obj1 = 0 ;
5033 PyObject * obj2 = 0 ;
5034 char * kwnames[] = {
5035 (char *) "colour",(char *) "width",(char *) "style", NULL
5036 };
5037
5038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5039 {
5040 arg1 = &temp1;
5041 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5042 }
5043 if (obj1) {
5044 ecode2 = SWIG_AsVal_int(obj1, &val2);
5045 if (!SWIG_IsOK(ecode2)) {
5046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5047 }
5048 arg2 = static_cast< int >(val2);
5049 }
5050 if (obj2) {
5051 ecode3 = SWIG_AsVal_int(obj2, &val3);
5052 if (!SWIG_IsOK(ecode3)) {
5053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5054 }
5055 arg3 = static_cast< int >(val3);
5056 }
5057 {
5058 if (!wxPyCheckForApp()) SWIG_fail;
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5065 return resultobj;
5066fail:
5067 return NULL;
d55e5bfc
RD
5068}
5069
5070
1bd55598
RD
5071SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5072 PyObject *resultobj = 0;
5073 wxPen *arg1 = (wxPen *) 0 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 PyObject *swig_obj[1] ;
5077
5078 if (!args) SWIG_fail;
5079 swig_obj[0] = args;
5080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5081 if (!SWIG_IsOK(res1)) {
5082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5083 }
5084 arg1 = reinterpret_cast< wxPen * >(argp1);
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 delete arg1;
f78cc896 5088
1bd55598
RD
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 resultobj = SWIG_Py_Void();
5093 return resultobj;
5094fail:
5095 return NULL;
f78cc896
RD
5096}
5097
5098
1bd55598
RD
5099SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5100 PyObject *resultobj = 0;
5101 wxPen *arg1 = (wxPen *) 0 ;
5102 int result;
5103 void *argp1 = 0 ;
5104 int res1 = 0 ;
5105 PyObject *swig_obj[1] ;
5106
5107 if (!args) SWIG_fail;
5108 swig_obj[0] = args;
5109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5110 if (!SWIG_IsOK(res1)) {
5111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5112 }
5113 arg1 = reinterpret_cast< wxPen * >(argp1);
5114 {
5115 PyThreadState* __tstate = wxPyBeginAllowThreads();
5116 result = (int)(arg1)->GetCap();
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 resultobj = SWIG_From_int(static_cast< int >(result));
5121 return resultobj;
5122fail:
5123 return NULL;
d55e5bfc
RD
5124}
5125
5126
1bd55598
RD
5127SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5128 PyObject *resultobj = 0;
5129 wxPen *arg1 = (wxPen *) 0 ;
5130 wxColour result;
5131 void *argp1 = 0 ;
5132 int res1 = 0 ;
5133 PyObject *swig_obj[1] ;
5134
5135 if (!args) SWIG_fail;
5136 swig_obj[0] = args;
5137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5138 if (!SWIG_IsOK(res1)) {
5139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5140 }
5141 arg1 = reinterpret_cast< wxPen * >(argp1);
5142 {
5143 PyThreadState* __tstate = wxPyBeginAllowThreads();
5144 result = (arg1)->GetColour();
5145 wxPyEndAllowThreads(__tstate);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 }
5148 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5149 return resultobj;
5150fail:
5151 return NULL;
d55e5bfc
RD
5152}
5153
5154
1bd55598
RD
5155SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5156 PyObject *resultobj = 0;
5157 wxPen *arg1 = (wxPen *) 0 ;
5158 int result;
5159 void *argp1 = 0 ;
5160 int res1 = 0 ;
5161 PyObject *swig_obj[1] ;
5162
5163 if (!args) SWIG_fail;
5164 swig_obj[0] = args;
5165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5166 if (!SWIG_IsOK(res1)) {
5167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5168 }
5169 arg1 = reinterpret_cast< wxPen * >(argp1);
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 result = (int)(arg1)->GetJoin();
5173 wxPyEndAllowThreads(__tstate);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 resultobj = SWIG_From_int(static_cast< int >(result));
5177 return resultobj;
5178fail:
5179 return NULL;
d55e5bfc
RD
5180}
5181
5182
1bd55598
RD
5183SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5184 PyObject *resultobj = 0;
5185 wxPen *arg1 = (wxPen *) 0 ;
5186 int result;
5187 void *argp1 = 0 ;
5188 int res1 = 0 ;
5189 PyObject *swig_obj[1] ;
5190
5191 if (!args) SWIG_fail;
5192 swig_obj[0] = args;
5193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5194 if (!SWIG_IsOK(res1)) {
5195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5196 }
5197 arg1 = reinterpret_cast< wxPen * >(argp1);
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (int)(arg1)->GetStyle();
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_From_int(static_cast< int >(result));
5205 return resultobj;
5206fail:
5207 return NULL;
d55e5bfc
RD
5208}
5209
5210
1bd55598
RD
5211SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5212 PyObject *resultobj = 0;
5213 wxPen *arg1 = (wxPen *) 0 ;
5214 int result;
5215 void *argp1 = 0 ;
5216 int res1 = 0 ;
5217 PyObject *swig_obj[1] ;
5218
5219 if (!args) SWIG_fail;
5220 swig_obj[0] = args;
5221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5222 if (!SWIG_IsOK(res1)) {
5223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5224 }
5225 arg1 = reinterpret_cast< wxPen * >(argp1);
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 result = (int)(arg1)->GetWidth();
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 resultobj = SWIG_From_int(static_cast< int >(result));
5233 return resultobj;
5234fail:
5235 return NULL;
d55e5bfc
RD
5236}
5237
5238
b39fe951 5239SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5240 PyObject *resultobj = 0;
5241 wxPen *arg1 = (wxPen *) 0 ;
5242 bool result;
5243 void *argp1 = 0 ;
5244 int res1 = 0 ;
5245 PyObject *swig_obj[1] ;
5246
5247 if (!args) SWIG_fail;
5248 swig_obj[0] = args;
5249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5250 if (!SWIG_IsOK(res1)) {
b39fe951 5251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5252 }
5253 arg1 = reinterpret_cast< wxPen * >(argp1);
5254 {
5255 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5256 result = (bool)(arg1)->IsOk();
1bd55598
RD
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 {
5261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5262 }
5263 return resultobj;
5264fail:
5265 return NULL;
5266}
5267
5268
5269SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5270 PyObject *resultobj = 0;
5271 wxPen *arg1 = (wxPen *) 0 ;
5272 int arg2 ;
5273 void *argp1 = 0 ;
5274 int res1 = 0 ;
5275 int val2 ;
5276 int ecode2 = 0 ;
5277 PyObject * obj0 = 0 ;
5278 PyObject * obj1 = 0 ;
5279 char * kwnames[] = {
5280 (char *) "self",(char *) "cap_style", NULL
5281 };
5282
5283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5285 if (!SWIG_IsOK(res1)) {
5286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5287 }
5288 arg1 = reinterpret_cast< wxPen * >(argp1);
5289 ecode2 = SWIG_AsVal_int(obj1, &val2);
5290 if (!SWIG_IsOK(ecode2)) {
5291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5292 }
5293 arg2 = static_cast< int >(val2);
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 (arg1)->SetCap(arg2);
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 resultobj = SWIG_Py_Void();
5301 return resultobj;
5302fail:
5303 return NULL;
5304}
5305
5306
5307SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 wxColour *arg2 = 0 ;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 wxColour temp2 ;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 char * kwnames[] = {
5317 (char *) "self",(char *) "colour", NULL
5318 };
5319
5320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5322 if (!SWIG_IsOK(res1)) {
5323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5324 }
5325 arg1 = reinterpret_cast< wxPen * >(argp1);
5326 {
5327 arg2 = &temp2;
5328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 (arg1)->SetColour(*arg2);
5333 wxPyEndAllowThreads(__tstate);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 }
5336 resultobj = SWIG_Py_Void();
5337 return resultobj;
5338fail:
5339 return NULL;
5340}
5341
5342
5343SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5344 PyObject *resultobj = 0;
5345 wxPen *arg1 = (wxPen *) 0 ;
5346 int arg2 ;
5347 void *argp1 = 0 ;
5348 int res1 = 0 ;
5349 int val2 ;
5350 int ecode2 = 0 ;
5351 PyObject * obj0 = 0 ;
5352 PyObject * obj1 = 0 ;
5353 char * kwnames[] = {
5354 (char *) "self",(char *) "join_style", NULL
5355 };
5356
5357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5359 if (!SWIG_IsOK(res1)) {
5360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5361 }
5362 arg1 = reinterpret_cast< wxPen * >(argp1);
5363 ecode2 = SWIG_AsVal_int(obj1, &val2);
5364 if (!SWIG_IsOK(ecode2)) {
5365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5366 }
5367 arg2 = static_cast< int >(val2);
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetJoin(arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_Py_Void();
5375 return resultobj;
5376fail:
5377 return NULL;
5378}
5379
5380
5381SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj = 0;
5383 wxPen *arg1 = (wxPen *) 0 ;
5384 int arg2 ;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 int val2 ;
5388 int ecode2 = 0 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char * kwnames[] = {
5392 (char *) "self",(char *) "style", NULL
5393 };
5394
5395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5399 }
5400 arg1 = reinterpret_cast< wxPen * >(argp1);
5401 ecode2 = SWIG_AsVal_int(obj1, &val2);
5402 if (!SWIG_IsOK(ecode2)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5404 }
5405 arg2 = static_cast< int >(val2);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->SetStyle(arg2);
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_Py_Void();
5413 return resultobj;
5414fail:
5415 return NULL;
5416}
5417
5418
5419SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 int arg2 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 int val2 ;
5426 int ecode2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "self",(char *) "width", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5435 if (!SWIG_IsOK(res1)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5437 }
5438 arg1 = reinterpret_cast< wxPen * >(argp1);
5439 ecode2 = SWIG_AsVal_int(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5442 }
5443 arg2 = static_cast< int >(val2);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 (arg1)->SetWidth(arg2);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_Py_Void();
5451 return resultobj;
5452fail:
5453 return NULL;
5454}
5455
5456
5457SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj = 0;
5459 wxPen *arg1 = (wxPen *) 0 ;
5460 int arg2 ;
5461 wxDash *arg3 = (wxDash *) 0 ;
5462 void *argp1 = 0 ;
5463 int res1 = 0 ;
5464 PyObject * obj0 = 0 ;
5465 PyObject * obj1 = 0 ;
5466 char * kwnames[] = {
5467 (char *) "self",(char *) "dashes", NULL
5468 };
5469
5470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5472 if (!SWIG_IsOK(res1)) {
5473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5474 }
5475 arg1 = reinterpret_cast< wxPen * >(argp1);
5476 {
5477 arg2 = PyList_Size(obj1);
5478 arg3 = (wxDash*)byte_LIST_helper(obj1);
5479 if (arg3 == NULL) SWIG_fail;
5480 }
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 (arg1)->SetDashes(arg2,arg3);
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 resultobj = SWIG_Py_Void();
5488 {
5489 if (arg3) delete [] arg3;
5490 }
5491 return resultobj;
5492fail:
5493 {
5494 if (arg3) delete [] arg3;
5495 }
5496 return NULL;
d6c14a4c
RD
5497}
5498
5499
1bd55598
RD
5500SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5501 PyObject *resultobj = 0;
5502 wxPen *arg1 = (wxPen *) 0 ;
5503 PyObject *result = 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 PyObject *swig_obj[1] ;
5507
5508 if (!args) SWIG_fail;
5509 swig_obj[0] = args;
5510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5511 if (!SWIG_IsOK(res1)) {
5512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5513 }
5514 arg1 = reinterpret_cast< wxPen * >(argp1);
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 result = (PyObject *)wxPen_GetDashes(arg1);
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 resultobj = result;
5522 return resultobj;
5523fail:
5524 return NULL;
5525}
5526
5527
5528SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj = 0;
5530 wxPen *arg1 = (wxPen *) 0 ;
5531 PyObject *arg2 = (PyObject *) 0 ;
5532 PyObject *arg3 = (PyObject *) 0 ;
5533 void *argp1 = 0 ;
5534 int res1 = 0 ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5537 PyObject * obj2 = 0 ;
5538 char * kwnames[] = {
5539 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5540 };
5541
5542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5544 if (!SWIG_IsOK(res1)) {
5545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5546 }
5547 arg1 = reinterpret_cast< wxPen * >(argp1);
5548 arg2 = obj1;
5549 arg3 = obj2;
5550 {
5551 PyThreadState* __tstate = wxPyBeginAllowThreads();
5552 wxPen__SetDashes(arg1,arg2,arg3);
5553 wxPyEndAllowThreads(__tstate);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 }
5556 resultobj = SWIG_Py_Void();
5557 return resultobj;
5558fail:
5559 return NULL;
5560}
5561
5562
5563SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj = 0;
5565 wxPen *arg1 = (wxPen *) 0 ;
5566 wxPen *arg2 = (wxPen *) 0 ;
5567 bool result;
5568 void *argp1 = 0 ;
5569 int res1 = 0 ;
5570 void *argp2 = 0 ;
5571 int res2 = 0 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 char * kwnames[] = {
5575 (char *) "self",(char *) "other", NULL
5576 };
5577
5578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5582 }
5583 arg1 = reinterpret_cast< wxPen * >(argp1);
5584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5585 if (!SWIG_IsOK(res2)) {
5586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5587 }
5588 arg2 = reinterpret_cast< wxPen * >(argp2);
5589 {
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 {
5596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5597 }
5598 return resultobj;
5599fail:
5600 return NULL;
5601}
5602
5603
5604SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj = 0;
5606 wxPen *arg1 = (wxPen *) 0 ;
5607 wxPen *arg2 = (wxPen *) 0 ;
5608 bool result;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 void *argp2 = 0 ;
5612 int res2 = 0 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char * kwnames[] = {
5616 (char *) "self",(char *) "other", NULL
5617 };
5618
5619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5621 if (!SWIG_IsOK(res1)) {
5622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5623 }
5624 arg1 = reinterpret_cast< wxPen * >(argp1);
5625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5626 if (!SWIG_IsOK(res2)) {
5627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5628 }
5629 arg2 = reinterpret_cast< wxPen * >(argp2);
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 {
5637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5638 }
5639 return resultobj;
5640fail:
5641 return NULL;
5642}
d55e5bfc
RD
5643
5644
1bd55598
RD
5645SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5646 PyObject *obj;
5647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5648 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5649 return SWIG_Py_Void();
d55e5bfc
RD
5650}
5651
1bd55598
RD
5652SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5653 return SWIG_Python_InitShadowInstance(args);
5654}
d55e5bfc 5655
1bd55598
RD
5656SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxColour *arg1 = 0 ;
5659 int arg2 = (int) wxSOLID ;
5660 wxBrush *result = 0 ;
5661 wxColour temp1 ;
5662 int val2 ;
5663 int ecode2 = 0 ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char * kwnames[] = {
5667 (char *) "colour",(char *) "style", NULL
5668 };
5669
5670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5671 {
5672 arg1 = &temp1;
5673 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5674 }
5675 if (obj1) {
5676 ecode2 = SWIG_AsVal_int(obj1, &val2);
5677 if (!SWIG_IsOK(ecode2)) {
5678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5679 }
5680 arg2 = static_cast< int >(val2);
5681 }
5682 {
5683 if (!wxPyCheckForApp()) SWIG_fail;
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
5689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5690 return resultobj;
5691fail:
5692 return NULL;
5693}
5694
5695
5696SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj = 0;
5698 wxBitmap *arg1 = 0 ;
5699 wxBrush *result = 0 ;
5700 void *argp1 = 0 ;
5701 int res1 = 0 ;
5702 PyObject * obj0 = 0 ;
5703 char * kwnames[] = {
5704 (char *) "stippleBitmap", NULL
5705 };
5706
5707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5708 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5711 }
5712 if (!argp1) {
5713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5714 }
5715 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5716 {
5717 if (!wxPyCheckForApp()) SWIG_fail;
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5724 return resultobj;
5725fail:
5726 return NULL;
d55e5bfc
RD
5727}
5728
5729
1bd55598
RD
5730SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 wxBrush *arg1 = (wxBrush *) 0 ;
5733 void *argp1 = 0 ;
5734 int res1 = 0 ;
5735 PyObject *swig_obj[1] ;
5736
5737 if (!args) SWIG_fail;
5738 swig_obj[0] = args;
5739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5740 if (!SWIG_IsOK(res1)) {
5741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5742 }
5743 arg1 = reinterpret_cast< wxBrush * >(argp1);
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 delete arg1;
d55e5bfc 5747
1bd55598
RD
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_Py_Void();
5752 return resultobj;
5753fail:
5754 return NULL;
5755}
5756
5757
5758SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj = 0;
5760 wxBrush *arg1 = (wxBrush *) 0 ;
5761 wxColour *arg2 = 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 wxColour temp2 ;
5765 PyObject * obj0 = 0 ;
5766 PyObject * obj1 = 0 ;
5767 char * kwnames[] = {
5768 (char *) "self",(char *) "col", NULL
5769 };
5770
5771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5773 if (!SWIG_IsOK(res1)) {
5774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5775 }
5776 arg1 = reinterpret_cast< wxBrush * >(argp1);
5777 {
5778 arg2 = &temp2;
5779 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5780 }
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 (arg1)->SetColour((wxColour const &)*arg2);
5784 wxPyEndAllowThreads(__tstate);
5785 if (PyErr_Occurred()) SWIG_fail;
5786 }
5787 resultobj = SWIG_Py_Void();
5788 return resultobj;
5789fail:
5790 return NULL;
5791}
5792
5793
5794SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj = 0;
5796 wxBrush *arg1 = (wxBrush *) 0 ;
5797 int arg2 ;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 int val2 ;
5801 int ecode2 = 0 ;
5802 PyObject * obj0 = 0 ;
5803 PyObject * obj1 = 0 ;
5804 char * kwnames[] = {
5805 (char *) "self",(char *) "style", NULL
5806 };
5807
5808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5810 if (!SWIG_IsOK(res1)) {
5811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5812 }
5813 arg1 = reinterpret_cast< wxBrush * >(argp1);
5814 ecode2 = SWIG_AsVal_int(obj1, &val2);
5815 if (!SWIG_IsOK(ecode2)) {
5816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5817 }
5818 arg2 = static_cast< int >(val2);
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->SetStyle(arg2);
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_Py_Void();
5826 return resultobj;
5827fail:
5828 return NULL;
5829}
5830
5831
5832SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj = 0;
5834 wxBrush *arg1 = (wxBrush *) 0 ;
5835 wxBitmap *arg2 = 0 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 void *argp2 = 0 ;
5839 int res2 = 0 ;
5840 PyObject * obj0 = 0 ;
5841 PyObject * obj1 = 0 ;
5842 char * kwnames[] = {
5843 (char *) "self",(char *) "stipple", NULL
5844 };
5845
5846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBrush * >(argp1);
5852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5853 if (!SWIG_IsOK(res2)) {
5854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5855 }
5856 if (!argp2) {
5857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5858 }
5859 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 (arg1)->SetStipple((wxBitmap const &)*arg2);
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 resultobj = SWIG_Py_Void();
5867 return resultobj;
5868fail:
5869 return NULL;
d55e5bfc
RD
5870}
5871
5872
1bd55598
RD
5873SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxBrush *arg1 = (wxBrush *) 0 ;
5876 wxColour result;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5886 }
5887 arg1 = reinterpret_cast< wxBrush * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = ((wxBrush const *)arg1)->GetColour();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5895 return resultobj;
5896fail:
5897 return NULL;
d55e5bfc
RD
5898}
5899
5900
1bd55598
RD
5901SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxBrush *arg1 = (wxBrush *) 0 ;
5904 int result;
5905 void *argp1 = 0 ;
5906 int res1 = 0 ;
5907 PyObject *swig_obj[1] ;
5908
5909 if (!args) SWIG_fail;
5910 swig_obj[0] = args;
5911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5912 if (!SWIG_IsOK(res1)) {
5913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5914 }
5915 arg1 = reinterpret_cast< wxBrush * >(argp1);
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 result = (int)((wxBrush const *)arg1)->GetStyle();
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 resultobj = SWIG_From_int(static_cast< int >(result));
5923 return resultobj;
5924fail:
5925 return NULL;
d55e5bfc
RD
5926}
5927
5928
1bd55598
RD
5929SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5930 PyObject *resultobj = 0;
5931 wxBrush *arg1 = (wxBrush *) 0 ;
5932 wxBitmap *result = 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 PyObject *swig_obj[1] ;
5936
5937 if (!args) SWIG_fail;
5938 swig_obj[0] = args;
5939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5942 }
5943 arg1 = reinterpret_cast< wxBrush * >(argp1);
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5951 return resultobj;
5952fail:
5953 return NULL;
d55e5bfc
RD
5954}
5955
5956
1bd55598
RD
5957SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxBrush *arg1 = (wxBrush *) 0 ;
5960 bool result;
5961 void *argp1 = 0 ;
5962 int res1 = 0 ;
5963 PyObject *swig_obj[1] ;
5964
5965 if (!args) SWIG_fail;
5966 swig_obj[0] = args;
5967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5970 }
5971 arg1 = reinterpret_cast< wxBrush * >(argp1);
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (bool)((wxBrush const *)arg1)->IsHatch();
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 {
5979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5980 }
5981 return resultobj;
5982fail:
5983 return NULL;
d55e5bfc
RD
5984}
5985
5986
b39fe951 5987SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5988 PyObject *resultobj = 0;
5989 wxBrush *arg1 = (wxBrush *) 0 ;
5990 bool result;
5991 void *argp1 = 0 ;
5992 int res1 = 0 ;
5993 PyObject *swig_obj[1] ;
5994
5995 if (!args) SWIG_fail;
5996 swig_obj[0] = args;
5997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5998 if (!SWIG_IsOK(res1)) {
b39fe951 5999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6000 }
6001 arg1 = reinterpret_cast< wxBrush * >(argp1);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6004 result = (bool)(arg1)->IsOk();
1bd55598
RD
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 {
6009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6010 }
6011 return resultobj;
6012fail:
6013 return NULL;
d55e5bfc
RD
6014}
6015
6016
1bd55598
RD
6017SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6018 PyObject *resultobj = 0;
6019 wxBrush *arg1 = (wxBrush *) 0 ;
6020 short result;
6021 void *argp1 = 0 ;
6022 int res1 = 0 ;
6023 PyObject *swig_obj[1] ;
6024
6025 if (!args) SWIG_fail;
6026 swig_obj[0] = args;
6027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6028 if (!SWIG_IsOK(res1)) {
6029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6030 }
6031 arg1 = reinterpret_cast< wxBrush * >(argp1);
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 result = (short)(arg1)->MacGetTheme();
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 resultobj = SWIG_From_short(static_cast< short >(result));
6039 return resultobj;
6040fail:
6041 return NULL;
6042}
6043
6044
6045SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6046 PyObject *resultobj = 0;
6047 wxBrush *arg1 = (wxBrush *) 0 ;
6048 short arg2 ;
6049 void *argp1 = 0 ;
6050 int res1 = 0 ;
6051 short val2 ;
6052 int ecode2 = 0 ;
6053 PyObject * obj0 = 0 ;
6054 PyObject * obj1 = 0 ;
6055 char * kwnames[] = {
6056 (char *) "self",(char *) "macThemeBrush", NULL
6057 };
6058
6059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6063 }
6064 arg1 = reinterpret_cast< wxBrush * >(argp1);
6065 ecode2 = SWIG_AsVal_short(obj1, &val2);
6066 if (!SWIG_IsOK(ecode2)) {
6067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6068 }
6069 arg2 = static_cast< short >(val2);
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 (arg1)->MacSetTheme(arg2);
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_Py_Void();
6077 return resultobj;
6078fail:
6079 return NULL;
d55e5bfc
RD
6080}
6081
6082
1bd55598
RD
6083SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6084 PyObject *obj;
6085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6086 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6087 return SWIG_Py_Void();
d55e5bfc
RD
6088}
6089
1bd55598
RD
6090SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6091 return SWIG_Python_InitShadowInstance(args);
6092}
d55e5bfc 6093
1bd55598
RD
6094SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6095 PyObject *resultobj = 0;
6096 wxString *arg1 = 0 ;
6097 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6098 wxBitmap *result = 0 ;
6099 bool temp1 = false ;
6100 int val2 ;
6101 int ecode2 = 0 ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "name",(char *) "type", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6109 {
6110 arg1 = wxString_in_helper(obj0);
6111 if (arg1 == NULL) SWIG_fail;
6112 temp1 = true;
6113 }
6114 if (obj1) {
6115 ecode2 = SWIG_AsVal_int(obj1, &val2);
6116 if (!SWIG_IsOK(ecode2)) {
6117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6118 }
6119 arg2 = static_cast< wxBitmapType >(val2);
6120 }
6121 {
6122 if (!wxPyCheckForApp()) SWIG_fail;
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6129 {
6130 if (temp1)
6131 delete arg1;
6132 }
6133 return resultobj;
6134fail:
6135 {
6136 if (temp1)
6137 delete arg1;
6138 }
6139 return NULL;
d55e5bfc
RD
6140}
6141
6142
1bd55598
RD
6143SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 PyObject *swig_obj[1] ;
6149
6150 if (!args) SWIG_fail;
6151 swig_obj[0] = args;
6152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6153 if (!SWIG_IsOK(res1)) {
6154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6155 }
6156 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6157 {
1bd55598 6158 delete arg1;
d55e5bfc 6159
1bd55598
RD
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_Py_Void();
6163 return resultobj;
6164fail:
6165 return NULL;
6166}
6167
6168
6169SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 int arg1 ;
6172 int arg2 ;
6173 int arg3 = (int) -1 ;
6174 wxBitmap *result = 0 ;
6175 int val1 ;
6176 int ecode1 = 0 ;
6177 int val2 ;
6178 int ecode2 = 0 ;
6179 int val3 ;
6180 int ecode3 = 0 ;
6181 PyObject * obj0 = 0 ;
6182 PyObject * obj1 = 0 ;
6183 PyObject * obj2 = 0 ;
6184 char * kwnames[] = {
6185 (char *) "width",(char *) "height",(char *) "depth", NULL
6186 };
6187
6188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6189 ecode1 = SWIG_AsVal_int(obj0, &val1);
6190 if (!SWIG_IsOK(ecode1)) {
6191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6192 }
6193 arg1 = static_cast< int >(val1);
6194 ecode2 = SWIG_AsVal_int(obj1, &val2);
6195 if (!SWIG_IsOK(ecode2)) {
6196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6197 }
6198 arg2 = static_cast< int >(val2);
6199 if (obj2) {
6200 ecode3 = SWIG_AsVal_int(obj2, &val3);
6201 if (!SWIG_IsOK(ecode3)) {
6202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6203 }
6204 arg3 = static_cast< int >(val3);
6205 }
6206 {
6207 if (!wxPyCheckForApp()) SWIG_fail;
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6214 return resultobj;
6215fail:
6216 return NULL;
6217}
6218
6219
6220SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj = 0;
6222 wxIcon *arg1 = 0 ;
6223 wxBitmap *result = 0 ;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 PyObject * obj0 = 0 ;
6227 char * kwnames[] = {
6228 (char *) "icon", NULL
6229 };
6230
6231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6232 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6233 if (!SWIG_IsOK(res1)) {
6234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6235 }
6236 if (!argp1) {
6237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6238 }
6239 arg1 = reinterpret_cast< wxIcon * >(argp1);
6240 {
6241 if (!wxPyCheckForApp()) SWIG_fail;
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6244 wxPyEndAllowThreads(__tstate);
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6248 return resultobj;
6249fail:
6250 return NULL;
6251}
6252
6253
6254SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj = 0;
6256 wxImage *arg1 = 0 ;
6257 int arg2 = (int) -1 ;
6258 wxBitmap *result = 0 ;
6259 void *argp1 = 0 ;
6260 int res1 = 0 ;
6261 int val2 ;
6262 int ecode2 = 0 ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 char * kwnames[] = {
6266 (char *) "image",(char *) "depth", NULL
6267 };
6268
6269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6273 }
6274 if (!argp1) {
6275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6276 }
6277 arg1 = reinterpret_cast< wxImage * >(argp1);
6278 if (obj1) {
6279 ecode2 = SWIG_AsVal_int(obj1, &val2);
6280 if (!SWIG_IsOK(ecode2)) {
6281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6282 }
6283 arg2 = static_cast< int >(val2);
6284 }
6285 {
6286 if (!wxPyCheckForApp()) SWIG_fail;
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6293 return resultobj;
6294fail:
6295 return NULL;
d55e5bfc
RD
6296}
6297
6298
1bd55598
RD
6299SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj = 0;
6301 PyObject *arg1 = (PyObject *) 0 ;
6302 wxBitmap *result = 0 ;
6303 PyObject * obj0 = 0 ;
6304 char * kwnames[] = {
6305 (char *) "listOfStrings", NULL
6306 };
6307
6308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6309 arg1 = obj0;
6310 {
6311 if (!wxPyCheckForApp()) SWIG_fail;
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (wxBitmap *)new_wxBitmap(arg1);
6314 wxPyEndAllowThreads(__tstate);
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6318 return resultobj;
6319fail:
6320 return NULL;
6321}
6322
6323
6324SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6325 PyObject *resultobj = 0;
6326 PyObject *arg1 = (PyObject *) 0 ;
6327 int arg2 ;
6328 int arg3 ;
6329 int arg4 = (int) 1 ;
6330 wxBitmap *result = 0 ;
6331 int val2 ;
6332 int ecode2 = 0 ;
6333 int val3 ;
6334 int ecode3 = 0 ;
6335 int val4 ;
6336 int ecode4 = 0 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 PyObject * obj2 = 0 ;
6340 PyObject * obj3 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6346 arg1 = obj0;
6347 ecode2 = SWIG_AsVal_int(obj1, &val2);
6348 if (!SWIG_IsOK(ecode2)) {
6349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6350 }
6351 arg2 = static_cast< int >(val2);
6352 ecode3 = SWIG_AsVal_int(obj2, &val3);
6353 if (!SWIG_IsOK(ecode3)) {
6354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6355 }
6356 arg3 = static_cast< int >(val3);
6357 if (obj3) {
6358 ecode4 = SWIG_AsVal_int(obj3, &val4);
6359 if (!SWIG_IsOK(ecode4)) {
6360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6361 }
6362 arg4 = static_cast< int >(val4);
6363 }
6364 {
6365 if (!wxPyCheckForApp()) SWIG_fail;
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6372 return resultobj;
6373fail:
6374 return NULL;
d55e5bfc
RD
6375}
6376
6377
b39fe951 6378SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6379 PyObject *resultobj = 0;
6380 wxBitmap *arg1 = (wxBitmap *) 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 PyObject *swig_obj[1] ;
6385
6386 if (!args) SWIG_fail;
6387 swig_obj[0] = args;
6388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6389 if (!SWIG_IsOK(res1)) {
b39fe951 6390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6391 }
6392 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6393 {
b39fe951 6394 result = (bool)(arg1)->IsOk();
1bd55598
RD
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 {
6398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6399 }
6400 return resultobj;
6401fail:
6402 return NULL;
d55e5bfc
RD
6403}
6404
6405
1bd55598
RD
6406SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6407 PyObject *resultobj = 0;
6408 wxBitmap *arg1 = (wxBitmap *) 0 ;
6409 int result;
6410 void *argp1 = 0 ;
6411 int res1 = 0 ;
6412 PyObject *swig_obj[1] ;
6413
6414 if (!args) SWIG_fail;
6415 swig_obj[0] = args;
6416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6417 if (!SWIG_IsOK(res1)) {
6418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6419 }
6420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6421 {
1bd55598 6422 result = (int)(arg1)->GetWidth();
1bd55598
RD
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_From_int(static_cast< int >(result));
6426 return resultobj;
6427fail:
6428 return NULL;
070c48b4
RD
6429}
6430
6431
1bd55598
RD
6432SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6433 PyObject *resultobj = 0;
6434 wxBitmap *arg1 = (wxBitmap *) 0 ;
6435 int result;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 PyObject *swig_obj[1] ;
6439
6440 if (!args) SWIG_fail;
6441 swig_obj[0] = args;
6442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6445 }
6446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6447 {
1bd55598 6448 result = (int)(arg1)->GetHeight();
1bd55598
RD
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 resultobj = SWIG_From_int(static_cast< int >(result));
6452 return resultobj;
6453fail:
6454 return NULL;
d55e5bfc
RD
6455}
6456
6457
1bd55598
RD
6458SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6459 PyObject *resultobj = 0;
6460 wxBitmap *arg1 = (wxBitmap *) 0 ;
6461 int result;
6462 void *argp1 = 0 ;
6463 int res1 = 0 ;
6464 PyObject *swig_obj[1] ;
6465
6466 if (!args) SWIG_fail;
6467 swig_obj[0] = args;
6468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6469 if (!SWIG_IsOK(res1)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6471 }
6472 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6473 {
1bd55598 6474 result = (int)(arg1)->GetDepth();
1bd55598
RD
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_From_int(static_cast< int >(result));
6478 return resultobj;
6479fail:
6480 return NULL;
d55e5bfc
RD
6481}
6482
6483
1bd55598
RD
6484SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxBitmap *arg1 = (wxBitmap *) 0 ;
6487 wxSize result;
6488 void *argp1 = 0 ;
6489 int res1 = 0 ;
6490 PyObject *swig_obj[1] ;
6491
6492 if (!args) SWIG_fail;
6493 swig_obj[0] = args;
6494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6495 if (!SWIG_IsOK(res1)) {
6496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6497 }
6498 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6499 {
1bd55598 6500 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6501 if (PyErr_Occurred()) SWIG_fail;
6502 }
6503 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6504 return resultobj;
6505fail:
6506 return NULL;
d55e5bfc
RD
6507}
6508
6509
1bd55598
RD
6510SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxBitmap *arg1 = (wxBitmap *) 0 ;
6513 SwigValueWrapper<wxImage > result;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6523 }
6524 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6525 {
1bd55598 6526 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6530 return resultobj;
6531fail:
6532 return NULL;
d55e5bfc
RD
6533}
6534
6535
1bd55598
RD
6536SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxMask *result = 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 {
1bd55598 6552 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6556 return resultobj;
6557fail:
6558 return NULL;
6559}
6560
6561
6562SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 wxMask *arg2 = (wxMask *) 0 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 int res2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 char * kwnames[] = {
6572 (char *) "self",(char *) "mask", NULL
6573 };
6574
6575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6579 }
6580 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6581 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6582 if (!SWIG_IsOK(res2)) {
6583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6584 }
6585 {
1bd55598 6586 (arg1)->SetMask(arg2);
1bd55598
RD
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 resultobj = SWIG_Py_Void();
6590 return resultobj;
6591fail:
6592 return NULL;
6593}
6594
6595
6596SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj = 0;
6598 wxBitmap *arg1 = (wxBitmap *) 0 ;
6599 wxColour *arg2 = 0 ;
6600 void *argp1 = 0 ;
6601 int res1 = 0 ;
6602 wxColour temp2 ;
6603 PyObject * obj0 = 0 ;
6604 PyObject * obj1 = 0 ;
6605 char * kwnames[] = {
6606 (char *) "self",(char *) "colour", NULL
6607 };
6608
6609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6611 if (!SWIG_IsOK(res1)) {
6612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6613 }
6614 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6615 {
6616 arg2 = &temp2;
6617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6618 }
6619 {
1bd55598 6620 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 resultobj = SWIG_Py_Void();
6624 return resultobj;
6625fail:
6626 return NULL;
6627}
6628
6629
6630SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6631 PyObject *resultobj = 0;
6632 wxBitmap *arg1 = (wxBitmap *) 0 ;
6633 wxRect *arg2 = 0 ;
6634 SwigValueWrapper<wxBitmap > result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 wxRect temp2 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 char * kwnames[] = {
6641 (char *) "self",(char *) "rect", NULL
6642 };
6643
6644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6646 if (!SWIG_IsOK(res1)) {
6647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6648 }
6649 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6650 {
6651 arg2 = &temp2;
6652 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6653 }
6654 {
1bd55598 6655 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6659 return resultobj;
6660fail:
6661 return NULL;
6662}
6663
6664
6665SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxBitmap *arg1 = (wxBitmap *) 0 ;
6668 wxString *arg2 = 0 ;
6669 wxBitmapType arg3 ;
6670 wxPalette *arg4 = (wxPalette *) NULL ;
6671 bool result;
6672 void *argp1 = 0 ;
6673 int res1 = 0 ;
6674 bool temp2 = false ;
6675 int val3 ;
6676 int ecode3 = 0 ;
6677 void *argp4 = 0 ;
6678 int res4 = 0 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 PyObject * obj2 = 0 ;
6682 PyObject * obj3 = 0 ;
6683 char * kwnames[] = {
6684 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6685 };
6686
6687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6691 }
6692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6693 {
6694 arg2 = wxString_in_helper(obj1);
6695 if (arg2 == NULL) SWIG_fail;
6696 temp2 = true;
6697 }
6698 ecode3 = SWIG_AsVal_int(obj2, &val3);
6699 if (!SWIG_IsOK(ecode3)) {
6700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6701 }
6702 arg3 = static_cast< wxBitmapType >(val3);
6703 if (obj3) {
6704 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6705 if (!SWIG_IsOK(res4)) {
6706 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6707 }
1bd55598
RD
6708 arg4 = reinterpret_cast< wxPalette * >(argp4);
6709 }
6710 {
1bd55598 6711 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
6715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6716 }
6717 {
6718 if (temp2)
6719 delete arg2;
6720 }
6721 return resultobj;
6722fail:
6723 {
6724 if (temp2)
6725 delete arg2;
6726 }
6727 return NULL;
6728}
6729
6730
6731SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxBitmap *arg1 = (wxBitmap *) 0 ;
6734 wxString *arg2 = 0 ;
6735 wxBitmapType arg3 ;
6736 bool result;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 bool temp2 = false ;
6740 int val3 ;
6741 int ecode3 = 0 ;
6742 PyObject * obj0 = 0 ;
6743 PyObject * obj1 = 0 ;
6744 PyObject * obj2 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "self",(char *) "name",(char *) "type", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6751 if (!SWIG_IsOK(res1)) {
6752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6753 }
6754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6755 {
6756 arg2 = wxString_in_helper(obj1);
6757 if (arg2 == NULL) SWIG_fail;
6758 temp2 = true;
6759 }
6760 ecode3 = SWIG_AsVal_int(obj2, &val3);
6761 if (!SWIG_IsOK(ecode3)) {
6762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6763 }
6764 arg3 = static_cast< wxBitmapType >(val3);
6765 {
1bd55598 6766 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 {
6770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6771 }
6772 {
6773 if (temp2)
6774 delete arg2;
6775 }
6776 return resultobj;
6777fail:
6778 {
6779 if (temp2)
6780 delete arg2;
6781 }
6782 return NULL;
d04418a7
RD
6783}
6784
6785
1bd55598
RD
6786SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6787 PyObject *resultobj = 0;
6788 wxBitmap *arg1 = (wxBitmap *) 0 ;
6789 wxPalette *result = 0 ;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 PyObject *swig_obj[1] ;
6793
6794 if (!args) SWIG_fail;
6795 swig_obj[0] = args;
6796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6799 }
6800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6801 {
1bd55598 6802 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6806 return resultobj;
6807fail:
6808 return NULL;
6809}
6810
6811
6812SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 wxBitmap *arg1 = (wxBitmap *) 0 ;
6815 wxIcon *arg2 = 0 ;
6816 bool result;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 void *argp2 = 0 ;
6820 int res2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "icon", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6831 }
6832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6834 if (!SWIG_IsOK(res2)) {
6835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6836 }
6837 if (!argp2) {
6838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6839 }
6840 arg2 = reinterpret_cast< wxIcon * >(argp2);
6841 {
1bd55598 6842 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 {
6846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6847 }
6848 return resultobj;
6849fail:
6850 return NULL;
6851}
6852
6853
6854SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 int arg2 ;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 int val2 ;
6861 int ecode2 = 0 ;
6862 PyObject * obj0 = 0 ;
6863 PyObject * obj1 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "self",(char *) "height", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6870 if (!SWIG_IsOK(res1)) {
6871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6872 }
6873 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6874 ecode2 = SWIG_AsVal_int(obj1, &val2);
6875 if (!SWIG_IsOK(ecode2)) {
6876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6877 }
6878 arg2 = static_cast< int >(val2);
6879 {
1bd55598 6880 (arg1)->SetHeight(arg2);
1bd55598
RD
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_Py_Void();
6884 return resultobj;
6885fail:
6886 return NULL;
6887}
6888
6889
6890SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj = 0;
6892 wxBitmap *arg1 = (wxBitmap *) 0 ;
6893 int arg2 ;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 int val2 ;
6897 int ecode2 = 0 ;
6898 PyObject * obj0 = 0 ;
6899 PyObject * obj1 = 0 ;
6900 char * kwnames[] = {
6901 (char *) "self",(char *) "width", NULL
6902 };
6903
6904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6906 if (!SWIG_IsOK(res1)) {
6907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6908 }
6909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6910 ecode2 = SWIG_AsVal_int(obj1, &val2);
6911 if (!SWIG_IsOK(ecode2)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6913 }
6914 arg2 = static_cast< int >(val2);
6915 {
1bd55598 6916 (arg1)->SetWidth(arg2);
1bd55598
RD
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_Py_Void();
6920 return resultobj;
6921fail:
6922 return NULL;
6923}
6924
6925
6926SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj = 0;
6928 wxBitmap *arg1 = (wxBitmap *) 0 ;
6929 int arg2 ;
6930 void *argp1 = 0 ;
6931 int res1 = 0 ;
6932 int val2 ;
6933 int ecode2 = 0 ;
6934 PyObject * obj0 = 0 ;
6935 PyObject * obj1 = 0 ;
6936 char * kwnames[] = {
6937 (char *) "self",(char *) "depth", NULL
6938 };
6939
6940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6942 if (!SWIG_IsOK(res1)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6944 }
6945 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6946 ecode2 = SWIG_AsVal_int(obj1, &val2);
6947 if (!SWIG_IsOK(ecode2)) {
6948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6949 }
6950 arg2 = static_cast< int >(val2);
6951 {
1bd55598 6952 (arg1)->SetDepth(arg2);
1bd55598
RD
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957fail:
6958 return NULL;
6959}
6960
6961
6962SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxBitmap *arg1 = (wxBitmap *) 0 ;
6965 wxSize *arg2 = 0 ;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 wxSize temp2 ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char * kwnames[] = {
6972 (char *) "self",(char *) "size", NULL
6973 };
6974
6975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6977 if (!SWIG_IsOK(res1)) {
6978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6979 }
6980 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6981 {
6982 arg2 = &temp2;
6983 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6984 }
6985 {
1bd55598 6986 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_Py_Void();
6990 return resultobj;
6991fail:
6992 return NULL;
6993}
6994
6995
8f514ab4
RD
6996SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj = 0;
6998 wxBitmap *arg1 = (wxBitmap *) 0 ;
6999 buffer arg2 ;
7000 int arg3 ;
7001 void *argp1 = 0 ;
7002 int res1 = 0 ;
7003 Py_ssize_t temp2 ;
7004 PyObject * obj0 = 0 ;
7005 PyObject * obj1 = 0 ;
7006 char * kwnames[] = {
7007 (char *) "self",(char *) "data", NULL
7008 };
7009
7010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7012 if (!SWIG_IsOK(res1)) {
7013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7014 }
7015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7016 {
7017 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7018 arg3 = (int)temp2;
7019 }
7020 {
7021 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_Py_Void();
7025 return resultobj;
7026fail:
7027 return NULL;
7028}
7029
7030
7031SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7032 PyObject *resultobj = 0;
7033 wxBitmap *arg1 = (wxBitmap *) 0 ;
7034 buffer arg2 ;
7035 int arg3 ;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 Py_ssize_t temp2 ;
7039 PyObject * obj0 = 0 ;
7040 PyObject * obj1 = 0 ;
7041 char * kwnames[] = {
7042 (char *) "self",(char *) "data", NULL
7043 };
7044
7045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7047 if (!SWIG_IsOK(res1)) {
7048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7049 }
7050 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7051 {
7052 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7053 arg3 = (int)temp2;
7054 }
7055 {
7056 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_Py_Void();
7060 return resultobj;
7061fail:
7062 return NULL;
7063}
7064
7065
1bd55598
RD
7066SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj = 0;
7068 wxBitmap *arg1 = (wxBitmap *) 0 ;
7069 wxBitmap *arg2 = (wxBitmap *) 0 ;
7070 bool result;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 void *argp2 = 0 ;
7074 int res2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "other", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7085 }
7086 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res2)) {
7089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7090 }
7091 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7092 {
1bd55598 7093 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 {
fc46b7f3
RD
7097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7098 }
7099 return resultobj;
7100fail:
7101 return NULL;
7102}
7103
7104
7105SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj = 0;
7107 wxBitmap *arg1 = (wxBitmap *) 0 ;
7108 wxBitmap *arg2 = (wxBitmap *) 0 ;
7109 bool result;
7110 void *argp1 = 0 ;
7111 int res1 = 0 ;
7112 void *argp2 = 0 ;
7113 int res2 = 0 ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 char * kwnames[] = {
7117 (char *) "self",(char *) "other", NULL
7118 };
7119
7120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7122 if (!SWIG_IsOK(res1)) {
7123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7124 }
7125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7127 if (!SWIG_IsOK(res2)) {
7128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7129 }
7130 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7131 {
7132 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7137 }
7138 return resultobj;
7139fail:
7140 return NULL;
7141}
7142
7143
7144SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7145 PyObject *obj;
7146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7147 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7148 return SWIG_Py_Void();
7149}
7150
7151SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 return SWIG_Python_InitShadowInstance(args);
7153}
7154
7155SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj = 0;
7157 int arg1 ;
7158 int arg2 ;
7159 buffer arg3 ;
7160 int arg4 ;
7161 buffer arg5 ;
7162 int arg6 ;
7163 wxBitmap *result = 0 ;
7164 int val1 ;
7165 int ecode1 = 0 ;
7166 int val2 ;
7167 int ecode2 = 0 ;
8c9c423b
RD
7168 Py_ssize_t temp3 ;
7169 Py_ssize_t temp5 ;
fc46b7f3
RD
7170 PyObject * obj0 = 0 ;
7171 PyObject * obj1 = 0 ;
7172 PyObject * obj2 = 0 ;
7173 PyObject * obj3 = 0 ;
7174 char * kwnames[] = {
7175 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7176 };
7177
7178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7179 ecode1 = SWIG_AsVal_int(obj0, &val1);
7180 if (!SWIG_IsOK(ecode1)) {
7181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7182 }
7183 arg1 = static_cast< int >(val1);
7184 ecode2 = SWIG_AsVal_int(obj1, &val2);
7185 if (!SWIG_IsOK(ecode2)) {
7186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7187 }
7188 arg2 = static_cast< int >(val2);
7189 {
8c9c423b
RD
7190 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7191 arg4 = (int)temp3;
fc46b7f3
RD
7192 }
7193 {
7194 if (obj3 != Py_None) {
8c9c423b
RD
7195 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7196 arg6 = (int)temp5;
fc46b7f3
RD
7197 }
7198 }
7199 {
7200 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7204 return resultobj;
7205fail:
7206 return NULL;
7207}
7208
7209
7210SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj = 0;
7212 int arg1 ;
7213 int arg2 ;
7214 buffer arg3 ;
7215 int arg4 ;
7216 wxBitmap *result = 0 ;
7217 int val1 ;
7218 int ecode1 = 0 ;
7219 int val2 ;
7220 int ecode2 = 0 ;
8c9c423b 7221 Py_ssize_t temp3 ;
fc46b7f3
RD
7222 PyObject * obj0 = 0 ;
7223 PyObject * obj1 = 0 ;
7224 PyObject * obj2 = 0 ;
7225 char * kwnames[] = {
7226 (char *) "width",(char *) "height",(char *) "data", NULL
7227 };
7228
7229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7230 ecode1 = SWIG_AsVal_int(obj0, &val1);
7231 if (!SWIG_IsOK(ecode1)) {
7232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7233 }
7234 arg1 = static_cast< int >(val1);
7235 ecode2 = SWIG_AsVal_int(obj1, &val2);
7236 if (!SWIG_IsOK(ecode2)) {
7237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7238 }
7239 arg2 = static_cast< int >(val2);
7240 {
8c9c423b
RD
7241 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7242 arg4 = (int)temp3;
fc46b7f3
RD
7243 }
7244 {
7245 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7249 return resultobj;
7250fail:
7251 return NULL;
7252}
7253
7254
7255SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj = 0;
7257 int arg1 ;
7258 int arg2 ;
7259 buffer arg3 ;
7260 int arg4 ;
7261 wxBitmap *result = 0 ;
7262 int val1 ;
7263 int ecode1 = 0 ;
7264 int val2 ;
7265 int ecode2 = 0 ;
8c9c423b 7266 Py_ssize_t temp3 ;
fc46b7f3
RD
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 PyObject * obj2 = 0 ;
7270 char * kwnames[] = {
7271 (char *) "width",(char *) "height",(char *) "data", NULL
7272 };
7273
7274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7275 ecode1 = SWIG_AsVal_int(obj0, &val1);
7276 if (!SWIG_IsOK(ecode1)) {
7277 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7278 }
7279 arg1 = static_cast< int >(val1);
7280 ecode2 = SWIG_AsVal_int(obj1, &val2);
7281 if (!SWIG_IsOK(ecode2)) {
7282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7283 }
7284 arg2 = static_cast< int >(val2);
7285 {
8c9c423b
RD
7286 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7287 arg4 = (int)temp3;
fc46b7f3
RD
7288 }
7289 {
7290 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7294 return resultobj;
7295fail:
7296 return NULL;
7297}
7298
7299
7300SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7303 wxPoint result;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 PyObject *swig_obj[1] ;
7307
7308 if (!args) SWIG_fail;
7309 swig_obj[0] = args;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7313 }
7314 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7315 {
7316 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7320 return resultobj;
7321fail:
7322 return NULL;
7323}
7324
7325
7326SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7341 {
7342 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 resultobj = SWIG_From_int(static_cast< int >(result));
7346 return resultobj;
7347fail:
7348 return NULL;
7349}
7350
7351
7352SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7353 PyObject *resultobj = 0;
7354 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7355 int result;
7356 void *argp1 = 0 ;
7357 int res1 = 0 ;
7358 PyObject *swig_obj[1] ;
7359
7360 if (!args) SWIG_fail;
7361 swig_obj[0] = args;
7362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7363 if (!SWIG_IsOK(res1)) {
7364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7365 }
7366 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7367 {
7368 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_From_int(static_cast< int >(result));
7372 return resultobj;
7373fail:
7374 return NULL;
7375}
7376
7377
7378SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 PyObject *resultobj = 0;
7380 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7381 wxSize result;
7382 void *argp1 = 0 ;
7383 int res1 = 0 ;
7384 PyObject *swig_obj[1] ;
7385
7386 if (!args) SWIG_fail;
7387 swig_obj[0] = args;
7388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7389 if (!SWIG_IsOK(res1)) {
7390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7391 }
7392 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7393 {
7394 result = ((wxPixelDataBase const *)arg1)->GetSize();
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7398 return resultobj;
7399fail:
7400 return NULL;
7401}
7402
7403
7404SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7405 PyObject *resultobj = 0;
7406 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7407 int result;
7408 void *argp1 = 0 ;
7409 int res1 = 0 ;
7410 PyObject *swig_obj[1] ;
7411
7412 if (!args) SWIG_fail;
7413 swig_obj[0] = args;
7414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7417 }
7418 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7419 {
7420 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 resultobj = SWIG_From_int(static_cast< int >(result));
7424 return resultobj;
7425fail:
7426 return NULL;
7427}
7428
7429
7430SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7431 PyObject *obj;
7432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7433 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7434 return SWIG_Py_Void();
7435}
7436
7437SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7438 PyObject *resultobj = 0;
7439 wxBitmap *arg1 = 0 ;
7440 wxNativePixelData *result = 0 ;
7441 void *argp1 = 0 ;
7442 int res1 = 0 ;
7443
7444 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7446 if (!SWIG_IsOK(res1)) {
7447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7448 }
7449 if (!argp1) {
7450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7451 }
7452 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7453 {
7454 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7458 return resultobj;
7459fail:
7460 return NULL;
7461}
7462
7463
7464SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7465 PyObject *resultobj = 0;
7466 wxBitmap *arg1 = 0 ;
7467 wxRect *arg2 = 0 ;
7468 wxNativePixelData *result = 0 ;
7469 void *argp1 = 0 ;
7470 int res1 = 0 ;
7471 wxRect temp2 ;
7472
7473 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7475 if (!SWIG_IsOK(res1)) {
7476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7477 }
7478 if (!argp1) {
7479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7480 }
7481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7482 {
7483 arg2 = &temp2;
7484 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7485 }
7486 {
7487 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7491 return resultobj;
7492fail:
7493 return NULL;
7494}
7495
7496
7497SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7498 PyObject *resultobj = 0;
7499 wxBitmap *arg1 = 0 ;
7500 wxPoint *arg2 = 0 ;
7501 wxSize *arg3 = 0 ;
7502 wxNativePixelData *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 wxPoint temp2 ;
7506 wxSize temp3 ;
7507
7508 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7512 }
7513 if (!argp1) {
7514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7515 }
7516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7517 {
7518 arg2 = &temp2;
7519 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7520 }
7521 {
7522 arg3 = &temp3;
7523 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7524 }
7525 {
7526 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7530 return resultobj;
7531fail:
7532 return NULL;
7533}
7534
7535
7536SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7537 int argc;
7538 PyObject *argv[4];
7539
7540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7541 --argc;
7542 if (argc == 1) {
7543 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7544 }
7545 if (argc == 2) {
7546 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7547 }
7548 if (argc == 3) {
7549 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7550 }
7551
7552fail:
7553 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7554 return NULL;
7555}
7556
7557
7558SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7559 PyObject *resultobj = 0;
7560 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
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_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7570 }
7571 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7572 {
7573 delete arg1;
7574
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_Py_Void();
7578 return resultobj;
7579fail:
7580 return NULL;
7581}
7582
7583
7584SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7585 PyObject *resultobj = 0;
7586 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7587 wxNativePixelData_Accessor result;
7588 void *argp1 = 0 ;
7589 int res1 = 0 ;
7590 PyObject *swig_obj[1] ;
7591
7592 if (!args) SWIG_fail;
7593 swig_obj[0] = args;
7594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7597 }
7598 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7599 {
7600 result = ((wxNativePixelData const *)arg1)->GetPixels();
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7604 return resultobj;
7605fail:
7606 return NULL;
7607}
7608
7609
7610SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7611 PyObject *resultobj = 0;
7612 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7613 void *argp1 = 0 ;
7614 int res1 = 0 ;
7615 PyObject *swig_obj[1] ;
7616
7617 if (!args) SWIG_fail;
7618 swig_obj[0] = args;
7619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7620 if (!SWIG_IsOK(res1)) {
7621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7622 }
7623 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7624 {
7625 (arg1)->UseAlpha();
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_Py_Void();
7629 return resultobj;
7630fail:
7631 return NULL;
7632}
7633
7634
7635SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7636 PyObject *resultobj = 0;
7637 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7638 bool result;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 PyObject *swig_obj[1] ;
7642
7643 if (!args) SWIG_fail;
7644 swig_obj[0] = args;
7645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7646 if (!SWIG_IsOK(res1)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7648 }
7649 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7650 {
7651 result = (bool)wxNativePixelData___nonzero__(arg1);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7656 }
7657 return resultobj;
7658fail:
7659 return NULL;
7660}
7661
7662
7663SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7664 PyObject *obj;
7665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7666 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7667 return SWIG_Py_Void();
7668}
7669
7670SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7671 return SWIG_Python_InitShadowInstance(args);
7672}
7673
7674SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData *arg1 = 0 ;
7677 wxNativePixelData_Accessor *result = 0 ;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680
7681 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7683 if (!SWIG_IsOK(res1)) {
7684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7685 }
7686 if (!argp1) {
7687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7688 }
7689 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7690 {
7691 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7695 return resultobj;
7696fail:
7697 return NULL;
7698}
7699
7700
7701SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7702 PyObject *resultobj = 0;
7703 wxBitmap *arg1 = 0 ;
7704 wxNativePixelData *arg2 = 0 ;
7705 wxNativePixelData_Accessor *result = 0 ;
7706 void *argp1 = 0 ;
7707 int res1 = 0 ;
7708 void *argp2 = 0 ;
7709 int res2 = 0 ;
7710
7711 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7713 if (!SWIG_IsOK(res1)) {
7714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7715 }
7716 if (!argp1) {
7717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7718 }
7719 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7720 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7721 if (!SWIG_IsOK(res2)) {
7722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7723 }
7724 if (!argp2) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7726 }
7727 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7728 {
7729 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7733 return resultobj;
7734fail:
7735 return NULL;
7736}
7737
7738
7739SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7740 PyObject *resultobj = 0;
7741 wxNativePixelData_Accessor *result = 0 ;
7742
7743 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7744 {
7745 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7749 return resultobj;
7750fail:
7751 return NULL;
7752}
7753
7754
7755SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7756 int argc;
7757 PyObject *argv[3];
7758
7759 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7760 --argc;
7761 if (argc == 0) {
7762 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7763 }
7764 if (argc == 1) {
7765 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7766 }
7767 if (argc == 2) {
7768 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7769 }
7770
7771fail:
7772 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7780 void *argp1 = 0 ;
7781 int res1 = 0 ;
7782 PyObject *swig_obj[1] ;
7783
7784 if (!args) SWIG_fail;
7785 swig_obj[0] = args;
7786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7787 if (!SWIG_IsOK(res1)) {
7788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7789 }
7790 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7791 {
7792 delete arg1;
7793
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = SWIG_Py_Void();
7797 return resultobj;
7798fail:
7799 return NULL;
7800}
7801
7802
7803SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj = 0;
7805 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7806 wxNativePixelData *arg2 = 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 void *argp2 = 0 ;
7810 int res2 = 0 ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "self",(char *) "data", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7821 }
7822 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7824 if (!SWIG_IsOK(res2)) {
7825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7826 }
7827 if (!argp2) {
7828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7829 }
7830 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7831 {
7832 (arg1)->Reset((wxNativePixelData const &)*arg2);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_Py_Void();
7836 return resultobj;
7837fail:
7838 return NULL;
7839}
7840
7841
7842SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7843 PyObject *resultobj = 0;
7844 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7845 bool result;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 PyObject *swig_obj[1] ;
7849
7850 if (!args) SWIG_fail;
7851 swig_obj[0] = args;
7852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7853 if (!SWIG_IsOK(res1)) {
7854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7855 }
7856 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7857 {
7858 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 {
7862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7863 }
7864 return resultobj;
7865fail:
7866 return NULL;
7867}
7868
7869
7870SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7871 PyObject *resultobj = 0;
7872 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7873 void *argp1 = 0 ;
7874 int res1 = 0 ;
7875 PyObject *swig_obj[1] ;
7876
7877 if (!args) SWIG_fail;
7878 swig_obj[0] = args;
7879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7880 if (!SWIG_IsOK(res1)) {
7881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7882 }
7883 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7884 {
7885 wxNativePixelData_Accessor_nextPixel(arg1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_Py_Void();
7889 return resultobj;
7890fail:
7891 return NULL;
7892}
7893
7894
7895SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7898 wxNativePixelData *arg2 = 0 ;
7899 int arg3 ;
7900 int arg4 ;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 void *argp2 = 0 ;
7904 int res2 = 0 ;
7905 int val3 ;
7906 int ecode3 = 0 ;
7907 int val4 ;
7908 int ecode4 = 0 ;
7909 PyObject * obj0 = 0 ;
7910 PyObject * obj1 = 0 ;
7911 PyObject * obj2 = 0 ;
7912 PyObject * obj3 = 0 ;
7913 char * kwnames[] = {
7914 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7915 };
7916
7917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7919 if (!SWIG_IsOK(res1)) {
7920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7921 }
7922 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7924 if (!SWIG_IsOK(res2)) {
7925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7926 }
7927 if (!argp2) {
7928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7929 }
7930 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7931 ecode3 = SWIG_AsVal_int(obj2, &val3);
7932 if (!SWIG_IsOK(ecode3)) {
7933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7934 }
7935 arg3 = static_cast< int >(val3);
7936 ecode4 = SWIG_AsVal_int(obj3, &val4);
7937 if (!SWIG_IsOK(ecode4)) {
7938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7939 }
7940 arg4 = static_cast< int >(val4);
7941 {
7942 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_Py_Void();
7946 return resultobj;
7947fail:
7948 return NULL;
7949}
7950
7951
7952SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj = 0;
7954 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7955 wxNativePixelData *arg2 = 0 ;
7956 int arg3 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 void *argp2 = 0 ;
7960 int res2 = 0 ;
7961 int val3 ;
7962 int ecode3 = 0 ;
7963 PyObject * obj0 = 0 ;
7964 PyObject * obj1 = 0 ;
7965 PyObject * obj2 = 0 ;
7966 char * kwnames[] = {
7967 (char *) "self",(char *) "data",(char *) "x", NULL
7968 };
7969
7970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) 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_OffsetX" "', 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_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 if (!argp2) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7982 }
7983 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7984 ecode3 = SWIG_AsVal_int(obj2, &val3);
7985 if (!SWIG_IsOK(ecode3)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7987 }
7988 arg3 = static_cast< int >(val3);
7989 {
7990 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_Py_Void();
7994 return resultobj;
7995fail:
7996 return NULL;
7997}
7998
7999
8000SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8001 PyObject *resultobj = 0;
8002 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8003 wxNativePixelData *arg2 = 0 ;
8004 int arg3 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 void *argp2 = 0 ;
8008 int res2 = 0 ;
8009 int val3 ;
8010 int ecode3 = 0 ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 PyObject * obj2 = 0 ;
8014 char * kwnames[] = {
8015 (char *) "self",(char *) "data",(char *) "y", NULL
8016 };
8017
8018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8020 if (!SWIG_IsOK(res1)) {
8021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8022 }
8023 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8025 if (!SWIG_IsOK(res2)) {
8026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8027 }
8028 if (!argp2) {
8029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8030 }
8031 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8032 ecode3 = SWIG_AsVal_int(obj2, &val3);
8033 if (!SWIG_IsOK(ecode3)) {
8034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8035 }
8036 arg3 = static_cast< int >(val3);
8037 {
8038 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
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_MoveTo(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_MoveTo",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_MoveTo" "', 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_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 if (!argp2) {
8081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', 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_MoveTo" "', 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_MoveTo" "', expected argument " "4"" of type '" "int""'");
8092 }
8093 arg4 = static_cast< int >(val4);
8094 {
8095 (arg1)->MoveTo((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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8108 byte arg2 ;
8109 byte arg3 ;
8110 byte arg4 ;
8111 void *argp1 = 0 ;
8112 int res1 = 0 ;
8113 unsigned char val2 ;
8114 int ecode2 = 0 ;
8115 unsigned char val3 ;
8116 int ecode3 = 0 ;
8117 unsigned char val4 ;
8118 int ecode4 = 0 ;
8119 PyObject * obj0 = 0 ;
8120 PyObject * obj1 = 0 ;
8121 PyObject * obj2 = 0 ;
8122 PyObject * obj3 = 0 ;
8123 char * kwnames[] = {
8124 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8125 };
8126
8127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8131 }
8132 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8133 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8134 if (!SWIG_IsOK(ecode2)) {
8135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8136 }
8137 arg2 = static_cast< byte >(val2);
8138 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8139 if (!SWIG_IsOK(ecode3)) {
8140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8141 }
8142 arg3 = static_cast< byte >(val3);
8143 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8144 if (!SWIG_IsOK(ecode4)) {
8145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8146 }
8147 arg4 = static_cast< byte >(val4);
8148 {
8149 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 resultobj = SWIG_Py_Void();
8153 return resultobj;
8154fail:
8155 return NULL;
8156}
8157
8158
8159SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8160 PyObject *resultobj = 0;
8161 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8162 PyObject *result = 0 ;
8163 void *argp1 = 0 ;
8164 int res1 = 0 ;
8165 PyObject *swig_obj[1] ;
8166
8167 if (!args) SWIG_fail;
8168 swig_obj[0] = args;
8169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 {
8175 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = result;
8179 return resultobj;
8180fail:
8181 return NULL;
8182}
8183
8184
8185SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8186 PyObject *obj;
8187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8188 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8189 return SWIG_Py_Void();
8190}
8191
8192SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8193 return SWIG_Python_InitShadowInstance(args);
8194}
8195
8196SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8197 PyObject *resultobj = 0;
8198 wxBitmap *arg1 = 0 ;
8199 wxAlphaPixelData *result = 0 ;
8200 void *argp1 = 0 ;
8201 int res1 = 0 ;
8202
8203 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8205 if (!SWIG_IsOK(res1)) {
8206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8207 }
8208 if (!argp1) {
8209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8210 }
8211 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8212 {
8213 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8217 return resultobj;
8218fail:
8219 return NULL;
8220}
8221
8222
8223SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8224 PyObject *resultobj = 0;
8225 wxBitmap *arg1 = 0 ;
8226 wxRect *arg2 = 0 ;
8227 wxAlphaPixelData *result = 0 ;
8228 void *argp1 = 0 ;
8229 int res1 = 0 ;
8230 wxRect temp2 ;
8231
8232 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8234 if (!SWIG_IsOK(res1)) {
8235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8236 }
8237 if (!argp1) {
8238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8239 }
8240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8241 {
8242 arg2 = &temp2;
8243 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8244 }
8245 {
8246 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8250 return resultobj;
8251fail:
8252 return NULL;
8253}
8254
8255
8256SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8257 PyObject *resultobj = 0;
8258 wxBitmap *arg1 = 0 ;
8259 wxPoint *arg2 = 0 ;
8260 wxSize *arg3 = 0 ;
8261 wxAlphaPixelData *result = 0 ;
8262 void *argp1 = 0 ;
8263 int res1 = 0 ;
8264 wxPoint temp2 ;
8265 wxSize temp3 ;
8266
8267 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8271 }
8272 if (!argp1) {
8273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8274 }
8275 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8276 {
8277 arg2 = &temp2;
8278 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8279 }
8280 {
8281 arg3 = &temp3;
8282 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8283 }
8284 {
8285 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8289 return resultobj;
8290fail:
8291 return NULL;
8292}
8293
8294
8295SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8296 int argc;
8297 PyObject *argv[4];
8298
8299 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8300 --argc;
8301 if (argc == 1) {
8302 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8303 }
8304 if (argc == 2) {
8305 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8306 }
8307 if (argc == 3) {
8308 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8309 }
8310
8311fail:
8312 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8313 return NULL;
8314}
8315
8316
8317SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 PyObject *resultobj = 0;
8319 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 PyObject *swig_obj[1] ;
8323
8324 if (!args) SWIG_fail;
8325 swig_obj[0] = args;
8326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8329 }
8330 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8331 {
8332 delete arg1;
8333
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 resultobj = SWIG_Py_Void();
8337 return resultobj;
8338fail:
8339 return NULL;
8340}
8341
8342
8343SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8344 PyObject *resultobj = 0;
8345 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8346 wxAlphaPixelData_Accessor result;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 PyObject *swig_obj[1] ;
8350
8351 if (!args) SWIG_fail;
8352 swig_obj[0] = args;
8353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8354 if (!SWIG_IsOK(res1)) {
8355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8356 }
8357 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8358 {
8359 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8363 return resultobj;
8364fail:
8365 return NULL;
8366}
8367
8368
8369SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8370 PyObject *resultobj = 0;
8371 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8372 void *argp1 = 0 ;
8373 int res1 = 0 ;
8374 PyObject *swig_obj[1] ;
8375
8376 if (!args) SWIG_fail;
8377 swig_obj[0] = args;
8378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8379 if (!SWIG_IsOK(res1)) {
8380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8381 }
8382 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8383 {
8384 (arg1)->UseAlpha();
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389fail:
8390 return NULL;
8391}
8392
8393
8394SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8395 PyObject *resultobj = 0;
8396 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8397 bool result;
8398 void *argp1 = 0 ;
8399 int res1 = 0 ;
8400 PyObject *swig_obj[1] ;
8401
8402 if (!args) SWIG_fail;
8403 swig_obj[0] = args;
8404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8405 if (!SWIG_IsOK(res1)) {
8406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8407 }
8408 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8409 {
8410 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 {
8414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8415 }
8416 return resultobj;
8417fail:
8418 return NULL;
8419}
8420
8421
8422SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8423 PyObject *obj;
8424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8425 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8426 return SWIG_Py_Void();
8427}
8428
8429SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430 return SWIG_Python_InitShadowInstance(args);
8431}
8432
8433SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData *arg1 = 0 ;
8436 wxAlphaPixelData_Accessor *result = 0 ;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439
8440 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8442 if (!SWIG_IsOK(res1)) {
8443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8444 }
8445 if (!argp1) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8447 }
8448 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8449 {
8450 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8454 return resultobj;
8455fail:
8456 return NULL;
8457}
8458
8459
8460SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8461 PyObject *resultobj = 0;
8462 wxBitmap *arg1 = 0 ;
8463 wxAlphaPixelData *arg2 = 0 ;
8464 wxAlphaPixelData_Accessor *result = 0 ;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 void *argp2 = 0 ;
8468 int res2 = 0 ;
8469
8470 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8472 if (!SWIG_IsOK(res1)) {
8473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8474 }
8475 if (!argp1) {
8476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8477 }
8478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8479 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8480 if (!SWIG_IsOK(res2)) {
8481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8482 }
8483 if (!argp2) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8487 {
8488 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8492 return resultobj;
8493fail:
8494 return NULL;
8495}
8496
8497
8498SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8499 PyObject *resultobj = 0;
8500 wxAlphaPixelData_Accessor *result = 0 ;
8501
8502 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8503 {
8504 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8508 return resultobj;
8509fail:
8510 return NULL;
8511}
8512
8513
8514SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8515 int argc;
8516 PyObject *argv[3];
8517
8518 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8519 --argc;
8520 if (argc == 0) {
8521 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8522 }
8523 if (argc == 1) {
8524 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8525 }
8526 if (argc == 2) {
8527 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8528 }
8529
8530fail:
8531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8532 return NULL;
8533}
8534
8535
8536SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8537 PyObject *resultobj = 0;
8538 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8539 void *argp1 = 0 ;
8540 int res1 = 0 ;
8541 PyObject *swig_obj[1] ;
8542
8543 if (!args) SWIG_fail;
8544 swig_obj[0] = args;
8545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8550 {
8551 delete arg1;
8552
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 resultobj = SWIG_Py_Void();
8556 return resultobj;
8557fail:
8558 return NULL;
8559}
8560
8561
8562SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = 0;
8564 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8565 wxAlphaPixelData *arg2 = 0 ;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 void *argp2 = 0 ;
8569 int res2 = 0 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 char * kwnames[] = {
8573 (char *) "self",(char *) "data", NULL
8574 };
8575
8576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8578 if (!SWIG_IsOK(res1)) {
8579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8580 }
8581 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8583 if (!SWIG_IsOK(res2)) {
8584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8585 }
8586 if (!argp2) {
8587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8588 }
8589 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8590 {
8591 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_Py_Void();
8595 return resultobj;
8596fail:
8597 return NULL;
8598}
8599
8600
8601SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8602 PyObject *resultobj = 0;
8603 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8604 bool result;
8605 void *argp1 = 0 ;
8606 int res1 = 0 ;
8607 PyObject *swig_obj[1] ;
8608
8609 if (!args) SWIG_fail;
8610 swig_obj[0] = args;
8611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8612 if (!SWIG_IsOK(res1)) {
8613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8614 }
8615 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8616 {
8617 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 return resultobj;
8624fail:
8625 return NULL;
8626}
8627
8628
8629SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8630 PyObject *resultobj = 0;
8631 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8632 void *argp1 = 0 ;
8633 int res1 = 0 ;
8634 PyObject *swig_obj[1] ;
8635
8636 if (!args) SWIG_fail;
8637 swig_obj[0] = args;
8638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8639 if (!SWIG_IsOK(res1)) {
8640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8641 }
8642 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8643 {
8644 wxAlphaPixelData_Accessor_nextPixel(arg1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_Py_Void();
8648 return resultobj;
8649fail:
8650 return NULL;
8651}
8652
8653
8654SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8657 wxAlphaPixelData *arg2 = 0 ;
8658 int arg3 ;
8659 int arg4 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 void *argp2 = 0 ;
8663 int res2 = 0 ;
8664 int val3 ;
8665 int ecode3 = 0 ;
8666 int val4 ;
8667 int ecode4 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 PyObject * obj2 = 0 ;
8671 PyObject * obj3 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8680 }
8681 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8690 ecode3 = SWIG_AsVal_int(obj2, &val3);
8691 if (!SWIG_IsOK(ecode3)) {
8692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8693 }
8694 arg3 = static_cast< int >(val3);
8695 ecode4 = SWIG_AsVal_int(obj3, &val4);
8696 if (!SWIG_IsOK(ecode4)) {
8697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8698 }
8699 arg4 = static_cast< int >(val4);
8700 {
8701 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 resultobj = SWIG_Py_Void();
8705 return resultobj;
8706fail:
8707 return NULL;
8708}
8709
8710
8711SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8712 PyObject *resultobj = 0;
8713 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8714 wxAlphaPixelData *arg2 = 0 ;
8715 int arg3 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 void *argp2 = 0 ;
8719 int res2 = 0 ;
8720 int val3 ;
8721 int ecode3 = 0 ;
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 PyObject * obj2 = 0 ;
8725 char * kwnames[] = {
8726 (char *) "self",(char *) "data",(char *) "x", NULL
8727 };
8728
8729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) 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_OffsetX" "', 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_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 if (!argp2) {
8740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8741 }
8742 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8743 ecode3 = SWIG_AsVal_int(obj2, &val3);
8744 if (!SWIG_IsOK(ecode3)) {
8745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8746 }
8747 arg3 = static_cast< int >(val3);
8748 {
8749 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_Py_Void();
8753 return resultobj;
8754fail:
8755 return NULL;
8756}
8757
8758
8759SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8762 wxAlphaPixelData *arg2 = 0 ;
8763 int arg3 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 void *argp2 = 0 ;
8767 int res2 = 0 ;
8768 int val3 ;
8769 int ecode3 = 0 ;
8770 PyObject * obj0 = 0 ;
8771 PyObject * obj1 = 0 ;
8772 PyObject * obj2 = 0 ;
8773 char * kwnames[] = {
8774 (char *) "self",(char *) "data",(char *) "y", NULL
8775 };
8776
8777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8779 if (!SWIG_IsOK(res1)) {
8780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8781 }
8782 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8784 if (!SWIG_IsOK(res2)) {
8785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8786 }
8787 if (!argp2) {
8788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8789 }
8790 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8791 ecode3 = SWIG_AsVal_int(obj2, &val3);
8792 if (!SWIG_IsOK(ecode3)) {
8793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8794 }
8795 arg3 = static_cast< int >(val3);
8796 {
8797 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
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_MoveTo(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_MoveTo",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_MoveTo" "', 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_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 if (!argp2) {
8840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', 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_MoveTo" "', 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_MoveTo" "', expected argument " "4"" of type '" "int""'");
8851 }
8852 arg4 = static_cast< int >(val4);
8853 {
8854 (arg1)->MoveTo((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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8867 byte arg2 ;
8868 byte arg3 ;
8869 byte arg4 ;
8870 byte arg5 ;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 unsigned char val2 ;
8874 int ecode2 = 0 ;
8875 unsigned char val3 ;
8876 int ecode3 = 0 ;
8877 unsigned char val4 ;
8878 int ecode4 = 0 ;
8879 unsigned char val5 ;
8880 int ecode5 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 PyObject * obj2 = 0 ;
8884 PyObject * obj3 = 0 ;
8885 PyObject * obj4 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8894 }
8895 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8896 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8897 if (!SWIG_IsOK(ecode2)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8899 }
8900 arg2 = static_cast< byte >(val2);
8901 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8902 if (!SWIG_IsOK(ecode3)) {
8903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8904 }
8905 arg3 = static_cast< byte >(val3);
8906 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8907 if (!SWIG_IsOK(ecode4)) {
8908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8909 }
8910 arg4 = static_cast< byte >(val4);
8911 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8912 if (!SWIG_IsOK(ecode5)) {
8913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8914 }
8915 arg5 = static_cast< byte >(val5);
8916 {
8917 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8918 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8919 }
fc46b7f3 8920 resultobj = SWIG_Py_Void();
1bd55598
RD
8921 return resultobj;
8922fail:
8923 return NULL;
8924}
8925
8926
fc46b7f3 8927SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8928 PyObject *resultobj = 0;
fc46b7f3
RD
8929 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8930 PyObject *result = 0 ;
1bd55598
RD
8931 void *argp1 = 0 ;
8932 int res1 = 0 ;
fc46b7f3 8933 PyObject *swig_obj[1] ;
1bd55598 8934
fc46b7f3
RD
8935 if (!args) SWIG_fail;
8936 swig_obj[0] = args;
8937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8938 if (!SWIG_IsOK(res1)) {
fc46b7f3 8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8940 }
fc46b7f3 8941 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8942 {
fc46b7f3 8943 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
fc46b7f3 8946 resultobj = result;
1bd55598
RD
8947 return resultobj;
8948fail:
8949 return NULL;
d55e5bfc
RD
8950}
8951
8952
fc46b7f3 8953SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8954 PyObject *obj;
8955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8956 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8957 return SWIG_Py_Void();
d55e5bfc
RD
8958}
8959
fc46b7f3 8960SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8961 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8962}
8963
1bd55598
RD
8964SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj = 0;
8966 wxBitmap *arg1 = 0 ;
8967 wxColour const &arg2_defvalue = wxNullColour ;
8968 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8969 wxMask *result = 0 ;
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
8972 wxColour temp2 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 char * kwnames[] = {
8976 (char *) "bitmap",(char *) "colour", NULL
8977 };
8978
8979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8980 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8981 if (!SWIG_IsOK(res1)) {
8982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8983 }
8984 if (!argp1) {
8985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8986 }
8987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8988 if (obj1) {
d55e5bfc 8989 {
1bd55598
RD
8990 arg2 = &temp2;
8991 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8992 }
1bd55598
RD
8993 }
8994 {
8995 if (!wxPyCheckForApp()) SWIG_fail;
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9002 return resultobj;
9003fail:
9004 return NULL;
d55e5bfc
RD
9005}
9006
9007
1bd55598
RD
9008SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9009 PyObject *resultobj = 0;
9010 wxMask *arg1 = (wxMask *) 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject *swig_obj[1] ;
9014
9015 if (!args) SWIG_fail;
9016 swig_obj[0] = args;
9017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9020 }
9021 arg1 = reinterpret_cast< wxMask * >(argp1);
9022 {
1bd55598 9023 delete arg1;
d55e5bfc 9024
1bd55598
RD
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029fail:
9030 return NULL;
9031}
9032
9033
9034SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *obj;
9036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9037 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9038 return SWIG_Py_Void();
9039}
9040
9041SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9042 return SWIG_Python_InitShadowInstance(args);
9043}
9044
9045SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj = 0;
9047 wxString *arg1 = 0 ;
9048 wxBitmapType arg2 ;
9049 int arg3 = (int) -1 ;
9050 int arg4 = (int) -1 ;
9051 wxIcon *result = 0 ;
9052 bool temp1 = false ;
9053 int val2 ;
9054 int ecode2 = 0 ;
9055 int val3 ;
9056 int ecode3 = 0 ;
9057 int val4 ;
9058 int ecode4 = 0 ;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 PyObject * obj2 = 0 ;
9062 PyObject * obj3 = 0 ;
9063 char * kwnames[] = {
9064 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9065 };
9066
9067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9068 {
9069 arg1 = wxString_in_helper(obj0);
9070 if (arg1 == NULL) SWIG_fail;
9071 temp1 = true;
9072 }
9073 ecode2 = SWIG_AsVal_int(obj1, &val2);
9074 if (!SWIG_IsOK(ecode2)) {
9075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9076 }
9077 arg2 = static_cast< wxBitmapType >(val2);
9078 if (obj2) {
9079 ecode3 = SWIG_AsVal_int(obj2, &val3);
9080 if (!SWIG_IsOK(ecode3)) {
9081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9082 }
9083 arg3 = static_cast< int >(val3);
9084 }
9085 if (obj3) {
9086 ecode4 = SWIG_AsVal_int(obj3, &val4);
9087 if (!SWIG_IsOK(ecode4)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9089 }
9090 arg4 = static_cast< int >(val4);
9091 }
9092 {
9093 if (!wxPyCheckForApp()) SWIG_fail;
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9100 {
9101 if (temp1)
9102 delete arg1;
9103 }
9104 return resultobj;
9105fail:
9106 {
9107 if (temp1)
9108 delete arg1;
9109 }
9110 return NULL;
d55e5bfc
RD
9111}
9112
9113
1bd55598
RD
9114SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9115 PyObject *resultobj = 0;
9116 wxIcon *arg1 = (wxIcon *) 0 ;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 PyObject *swig_obj[1] ;
9120
9121 if (!args) SWIG_fail;
9122 swig_obj[0] = args;
9123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9124 if (!SWIG_IsOK(res1)) {
9125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9126 }
9127 arg1 = reinterpret_cast< wxIcon * >(argp1);
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 delete arg1;
d55e5bfc 9131
1bd55598
RD
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 resultobj = SWIG_Py_Void();
9136 return resultobj;
9137fail:
9138 return NULL;
d55e5bfc
RD
9139}
9140
9141
1bd55598
RD
9142SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9143 PyObject *resultobj = 0;
9144 wxIcon *result = 0 ;
9145
9146 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9147 {
9148 if (!wxPyCheckForApp()) SWIG_fail;
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (wxIcon *)new wxIcon();
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9155 return resultobj;
9156fail:
9157 return NULL;
9158}
9159
9160
9161SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj = 0;
9163 wxIconLocation *arg1 = 0 ;
9164 wxIcon *result = 0 ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 PyObject * obj0 = 0 ;
9168 char * kwnames[] = {
9169 (char *) "loc", NULL
9170 };
9171
9172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9173 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9176 }
9177 if (!argp1) {
9178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9179 }
9180 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9181 {
9182 if (!wxPyCheckForApp()) SWIG_fail;
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9189 return resultobj;
9190fail:
9191 return NULL;
9192}
9193
9194
9195SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj = 0;
9197 wxBitmap *arg1 = 0 ;
9198 wxIcon *result = 0 ;
9199 void *argp1 = 0 ;
9200 int res1 = 0 ;
9201 PyObject * obj0 = 0 ;
9202 char * kwnames[] = {
9203 (char *) "bmp", NULL
9204 };
9205
9206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9207 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9208 if (!SWIG_IsOK(res1)) {
9209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9210 }
9211 if (!argp1) {
9212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9213 }
9214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9215 {
9216 if (!wxPyCheckForApp()) SWIG_fail;
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9223 return resultobj;
9224fail:
9225 return NULL;
d55e5bfc
RD
9226}
9227
9228
1bd55598
RD
9229SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj = 0;
9231 PyObject *arg1 = (PyObject *) 0 ;
9232 wxIcon *result = 0 ;
9233 PyObject * obj0 = 0 ;
9234 char * kwnames[] = {
9235 (char *) "listOfStrings", NULL
9236 };
9237
9238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9239 arg1 = obj0;
9240 {
9241 if (!wxPyCheckForApp()) SWIG_fail;
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (wxIcon *)new_wxIcon(arg1);
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9248 return resultobj;
9249fail:
9250 return NULL;
d55e5bfc
RD
9251}
9252
9253
b39fe951 9254SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9255 PyObject *resultobj = 0;
9256 wxIcon *arg1 = (wxIcon *) 0 ;
9257 bool result;
9258 void *argp1 = 0 ;
9259 int res1 = 0 ;
9260 PyObject *swig_obj[1] ;
9261
9262 if (!args) SWIG_fail;
9263 swig_obj[0] = args;
9264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9265 if (!SWIG_IsOK(res1)) {
b39fe951 9266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9267 }
9268 arg1 = reinterpret_cast< wxIcon * >(argp1);
9269 {
9270 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9271 result = (bool)(arg1)->IsOk();
1bd55598
RD
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 {
9276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9277 }
9278 return resultobj;
9279fail:
9280 return NULL;
d55e5bfc
RD
9281}
9282
9283
1bd55598
RD
9284SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9285 PyObject *resultobj = 0;
9286 wxIcon *arg1 = (wxIcon *) 0 ;
9287 int result;
9288 void *argp1 = 0 ;
9289 int res1 = 0 ;
9290 PyObject *swig_obj[1] ;
9291
9292 if (!args) SWIG_fail;
9293 swig_obj[0] = args;
9294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9295 if (!SWIG_IsOK(res1)) {
9296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9297 }
9298 arg1 = reinterpret_cast< wxIcon * >(argp1);
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = (int)(arg1)->GetWidth();
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_From_int(static_cast< int >(result));
9306 return resultobj;
9307fail:
9308 return NULL;
d55e5bfc
RD
9309}
9310
9311
1bd55598
RD
9312SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9313 PyObject *resultobj = 0;
9314 wxIcon *arg1 = (wxIcon *) 0 ;
9315 int result;
9316 void *argp1 = 0 ;
9317 int res1 = 0 ;
9318 PyObject *swig_obj[1] ;
9319
9320 if (!args) SWIG_fail;
9321 swig_obj[0] = args;
9322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9323 if (!SWIG_IsOK(res1)) {
9324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9325 }
9326 arg1 = reinterpret_cast< wxIcon * >(argp1);
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 result = (int)(arg1)->GetHeight();
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 resultobj = SWIG_From_int(static_cast< int >(result));
9334 return resultobj;
9335fail:
9336 return NULL;
d55e5bfc
RD
9337}
9338
9339
1bd55598
RD
9340SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9341 PyObject *resultobj = 0;
9342 wxIcon *arg1 = (wxIcon *) 0 ;
9343 int result;
9344 void *argp1 = 0 ;
9345 int res1 = 0 ;
9346 PyObject *swig_obj[1] ;
9347
9348 if (!args) SWIG_fail;
9349 swig_obj[0] = args;
9350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9353 }
9354 arg1 = reinterpret_cast< wxIcon * >(argp1);
9355 {
9356 PyThreadState* __tstate = wxPyBeginAllowThreads();
9357 result = (int)(arg1)->GetDepth();
9358 wxPyEndAllowThreads(__tstate);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 }
9361 resultobj = SWIG_From_int(static_cast< int >(result));
9362 return resultobj;
9363fail:
9364 return NULL;
9365}
9366
9367
9368SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9369 PyObject *resultobj = 0;
9370 wxIcon *arg1 = (wxIcon *) 0 ;
9371 int arg2 ;
9372 void *argp1 = 0 ;
9373 int res1 = 0 ;
9374 int val2 ;
9375 int ecode2 = 0 ;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 char * kwnames[] = {
9379 (char *) "self",(char *) "w", NULL
9380 };
9381
9382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9384 if (!SWIG_IsOK(res1)) {
9385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9386 }
9387 arg1 = reinterpret_cast< wxIcon * >(argp1);
9388 ecode2 = SWIG_AsVal_int(obj1, &val2);
9389 if (!SWIG_IsOK(ecode2)) {
9390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9391 }
9392 arg2 = static_cast< int >(val2);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 (arg1)->SetWidth(arg2);
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_Py_Void();
9400 return resultobj;
9401fail:
9402 return NULL;
9403}
9404
9405
9406SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj = 0;
9408 wxIcon *arg1 = (wxIcon *) 0 ;
9409 int arg2 ;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 int val2 ;
9413 int ecode2 = 0 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 char * kwnames[] = {
9417 (char *) "self",(char *) "h", NULL
9418 };
9419
9420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9424 }
9425 arg1 = reinterpret_cast< wxIcon * >(argp1);
9426 ecode2 = SWIG_AsVal_int(obj1, &val2);
9427 if (!SWIG_IsOK(ecode2)) {
9428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9429 }
9430 arg2 = static_cast< int >(val2);
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 (arg1)->SetHeight(arg2);
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_Py_Void();
9438 return resultobj;
9439fail:
9440 return NULL;
9441}
9442
9443
9444SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj = 0;
9446 wxIcon *arg1 = (wxIcon *) 0 ;
9447 int arg2 ;
9448 void *argp1 = 0 ;
9449 int res1 = 0 ;
9450 int val2 ;
9451 int ecode2 = 0 ;
9452 PyObject * obj0 = 0 ;
9453 PyObject * obj1 = 0 ;
9454 char * kwnames[] = {
9455 (char *) "self",(char *) "d", NULL
9456 };
9457
9458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9460 if (!SWIG_IsOK(res1)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9462 }
9463 arg1 = reinterpret_cast< wxIcon * >(argp1);
9464 ecode2 = SWIG_AsVal_int(obj1, &val2);
9465 if (!SWIG_IsOK(ecode2)) {
9466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9467 }
9468 arg2 = static_cast< int >(val2);
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 (arg1)->SetDepth(arg2);
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 resultobj = SWIG_Py_Void();
9476 return resultobj;
9477fail:
9478 return NULL;
9479}
9480
9481
9482SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj = 0;
9484 wxIcon *arg1 = (wxIcon *) 0 ;
9485 wxBitmap *arg2 = 0 ;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 void *argp2 = 0 ;
9489 int res2 = 0 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char * kwnames[] = {
9493 (char *) "self",(char *) "bmp", NULL
9494 };
9495
9496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9498 if (!SWIG_IsOK(res1)) {
9499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9500 }
9501 arg1 = reinterpret_cast< wxIcon * >(argp1);
9502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9503 if (!SWIG_IsOK(res2)) {
9504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9505 }
9506 if (!argp2) {
9507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9508 }
9509 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 resultobj = SWIG_Py_Void();
9517 return resultobj;
9518fail:
9519 return NULL;
d55e5bfc
RD
9520}
9521
9522
1bd55598
RD
9523SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9524 PyObject *obj;
9525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9526 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9527 return SWIG_Py_Void();
d55e5bfc
RD
9528}
9529
1bd55598
RD
9530SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9531 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9532}
9533
1bd55598
RD
9534SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj = 0;
9536 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9537 int arg2 = (int) 0 ;
9538 wxIconLocation *result = 0 ;
9539 bool temp1 = false ;
9540 int val2 ;
9541 int ecode2 = 0 ;
9542 PyObject * obj0 = 0 ;
9543 PyObject * obj1 = 0 ;
9544 char * kwnames[] = {
9545 (char *) "filename",(char *) "num", NULL
9546 };
9547
9548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9549 if (obj0) {
d55e5bfc 9550 {
1bd55598
RD
9551 arg1 = wxString_in_helper(obj0);
9552 if (arg1 == NULL) SWIG_fail;
9553 temp1 = true;
d55e5bfc 9554 }
1bd55598
RD
9555 }
9556 if (obj1) {
9557 ecode2 = SWIG_AsVal_int(obj1, &val2);
9558 if (!SWIG_IsOK(ecode2)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9560 }
9561 arg2 = static_cast< int >(val2);
9562 }
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9570 {
9571 if (temp1)
9572 delete arg1;
9573 }
9574 return resultobj;
9575fail:
9576 {
9577 if (temp1)
9578 delete arg1;
9579 }
9580 return NULL;
d55e5bfc
RD
9581}
9582
9583
1bd55598
RD
9584SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9585 PyObject *resultobj = 0;
9586 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9596 }
9597 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 delete arg1;
d55e5bfc 9601
1bd55598
RD
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 resultobj = SWIG_Py_Void();
9606 return resultobj;
9607fail:
9608 return NULL;
d55e5bfc
RD
9609}
9610
9611
1bd55598
RD
9612SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9613 PyObject *resultobj = 0;
9614 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9615 bool result;
9616 void *argp1 = 0 ;
9617 int res1 = 0 ;
9618 PyObject *swig_obj[1] ;
9619
9620 if (!args) SWIG_fail;
9621 swig_obj[0] = args;
9622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9623 if (!SWIG_IsOK(res1)) {
9624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9625 }
9626 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9630 wxPyEndAllowThreads(__tstate);
9631 if (PyErr_Occurred()) SWIG_fail;
9632 }
9633 {
9634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9635 }
9636 return resultobj;
9637fail:
9638 return NULL;
9639}
9640
9641
9642SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj = 0;
9644 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9645 wxString *arg2 = 0 ;
9646 void *argp1 = 0 ;
9647 int res1 = 0 ;
9648 bool temp2 = false ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 char * kwnames[] = {
9652 (char *) "self",(char *) "filename", NULL
9653 };
9654
9655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9657 if (!SWIG_IsOK(res1)) {
9658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9659 }
9660 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9661 {
9662 arg2 = wxString_in_helper(obj1);
9663 if (arg2 == NULL) SWIG_fail;
9664 temp2 = true;
9665 }
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 (arg1)->SetFileName((wxString const &)*arg2);
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 resultobj = SWIG_Py_Void();
9673 {
9674 if (temp2)
9675 delete arg2;
9676 }
9677 return resultobj;
9678fail:
9679 {
9680 if (temp2)
9681 delete arg2;
9682 }
9683 return NULL;
d55e5bfc
RD
9684}
9685
9686
1bd55598
RD
9687SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9688 PyObject *resultobj = 0;
9689 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9690 wxString *result = 0 ;
9691 void *argp1 = 0 ;
9692 int res1 = 0 ;
9693 PyObject *swig_obj[1] ;
9694
9695 if (!args) SWIG_fail;
9696 swig_obj[0] = args;
9697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9700 }
9701 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9704 {
1bd55598
RD
9705 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9706 result = (wxString *) &_result_ref;
d55e5bfc 9707 }
1bd55598
RD
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 {
9712#if wxUSE_UNICODE
9713 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9714#else
9715 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9716#endif
9717 }
9718 return resultobj;
9719fail:
9720 return NULL;
9721}
9722
9723
9724SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj = 0;
9726 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9727 int arg2 ;
9728 void *argp1 = 0 ;
9729 int res1 = 0 ;
9730 int val2 ;
9731 int ecode2 = 0 ;
9732 PyObject * obj0 = 0 ;
9733 PyObject * obj1 = 0 ;
9734 char * kwnames[] = {
9735 (char *) "self",(char *) "num", NULL
9736 };
9737
9738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9740 if (!SWIG_IsOK(res1)) {
9741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9742 }
9743 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9744 ecode2 = SWIG_AsVal_int(obj1, &val2);
9745 if (!SWIG_IsOK(ecode2)) {
9746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9747 }
9748 arg2 = static_cast< int >(val2);
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 wxIconLocation_SetIndex(arg1,arg2);
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 resultobj = SWIG_Py_Void();
9756 return resultobj;
9757fail:
9758 return NULL;
d55e5bfc
RD
9759}
9760
9761
1bd55598
RD
9762SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9763 PyObject *resultobj = 0;
9764 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9765 int result;
9766 void *argp1 = 0 ;
9767 int res1 = 0 ;
9768 PyObject *swig_obj[1] ;
9769
9770 if (!args) SWIG_fail;
9771 swig_obj[0] = args;
9772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9775 }
9776 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (int)wxIconLocation_GetIndex(arg1);
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_From_int(static_cast< int >(result));
9784 return resultobj;
9785fail:
9786 return NULL;
d55e5bfc
RD
9787}
9788
9789
1bd55598
RD
9790SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9791 PyObject *obj;
9792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9793 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9794 return SWIG_Py_Void();
d55e5bfc
RD
9795}
9796
1bd55598
RD
9797SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9798 return SWIG_Python_InitShadowInstance(args);
9799}
d55e5bfc 9800
1bd55598
RD
9801SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9802 PyObject *resultobj = 0;
9803 wxIconBundle *result = 0 ;
9804
9805 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 result = (wxIconBundle *)new wxIconBundle();
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9813 return resultobj;
9814fail:
9815 return NULL;
9816}
9817
9818
9819SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9820 PyObject *resultobj = 0;
9821 wxString *arg1 = 0 ;
9822 long arg2 ;
9823 wxIconBundle *result = 0 ;
9824 bool temp1 = false ;
9825 long val2 ;
9826 int ecode2 = 0 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 char * kwnames[] = {
9830 (char *) "file",(char *) "type", NULL
9831 };
9832
9833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9834 {
9835 arg1 = wxString_in_helper(obj0);
9836 if (arg1 == NULL) SWIG_fail;
9837 temp1 = true;
9838 }
9839 ecode2 = SWIG_AsVal_long(obj1, &val2);
9840 if (!SWIG_IsOK(ecode2)) {
9841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9842 }
9843 arg2 = static_cast< long >(val2);
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9851 {
9852 if (temp1)
9853 delete arg1;
9854 }
9855 return resultobj;
9856fail:
9857 {
9858 if (temp1)
9859 delete arg1;
9860 }
9861 return NULL;
d55e5bfc
RD
9862}
9863
9864
1bd55598
RD
9865SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj = 0;
9867 wxIcon *arg1 = 0 ;
9868 wxIconBundle *result = 0 ;
9869 void *argp1 = 0 ;
9870 int res1 = 0 ;
9871 PyObject * obj0 = 0 ;
9872 char * kwnames[] = {
9873 (char *) "icon", NULL
9874 };
9875
9876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9877 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9878 if (!SWIG_IsOK(res1)) {
9879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9880 }
9881 if (!argp1) {
9882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9883 }
9884 arg1 = reinterpret_cast< wxIcon * >(argp1);
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9892 return resultobj;
9893fail:
9894 return NULL;
d55e5bfc
RD
9895}
9896
9897
1bd55598
RD
9898SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9899 PyObject *resultobj = 0;
9900 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject *swig_obj[1] ;
9904
9905 if (!args) SWIG_fail;
9906 swig_obj[0] = args;
9907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9910 }
9911 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 delete arg1;
d55e5bfc 9915
1bd55598
RD
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = SWIG_Py_Void();
9920 return resultobj;
9921fail:
9922 return NULL;
9923}
9924
9925
9926SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj = 0;
9928 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9929 wxIcon *arg2 = 0 ;
9930 void *argp1 = 0 ;
9931 int res1 = 0 ;
9932 void *argp2 = 0 ;
9933 int res2 = 0 ;
9934 PyObject * obj0 = 0 ;
9935 PyObject * obj1 = 0 ;
9936 char * kwnames[] = {
9937 (char *) "self",(char *) "icon", NULL
9938 };
9939
9940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9942 if (!SWIG_IsOK(res1)) {
9943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9944 }
9945 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9947 if (!SWIG_IsOK(res2)) {
9948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9949 }
9950 if (!argp2) {
9951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9952 }
9953 arg2 = reinterpret_cast< wxIcon * >(argp2);
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 (arg1)->AddIcon((wxIcon const &)*arg2);
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_Py_Void();
9961 return resultobj;
9962fail:
9963 return NULL;
9964}
9965
9966
9967SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9968 PyObject *resultobj = 0;
9969 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9970 wxString *arg2 = 0 ;
9971 long arg3 ;
9972 void *argp1 = 0 ;
9973 int res1 = 0 ;
9974 bool temp2 = false ;
9975 long val3 ;
9976 int ecode3 = 0 ;
9977 PyObject * obj0 = 0 ;
9978 PyObject * obj1 = 0 ;
9979 PyObject * obj2 = 0 ;
9980 char * kwnames[] = {
9981 (char *) "self",(char *) "file",(char *) "type", NULL
9982 };
9983
9984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9986 if (!SWIG_IsOK(res1)) {
9987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9988 }
9989 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9990 {
9991 arg2 = wxString_in_helper(obj1);
9992 if (arg2 == NULL) SWIG_fail;
9993 temp2 = true;
9994 }
9995 ecode3 = SWIG_AsVal_long(obj2, &val3);
9996 if (!SWIG_IsOK(ecode3)) {
9997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9998 }
9999 arg3 = static_cast< long >(val3);
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10003 wxPyEndAllowThreads(__tstate);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
10006 resultobj = SWIG_Py_Void();
10007 {
10008 if (temp2)
10009 delete arg2;
10010 }
10011 return resultobj;
10012fail:
10013 {
10014 if (temp2)
10015 delete arg2;
10016 }
10017 return NULL;
10018}
10019
10020
10021SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj = 0;
10023 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10024 wxSize *arg2 = 0 ;
10025 wxIcon *result = 0 ;
10026 void *argp1 = 0 ;
10027 int res1 = 0 ;
10028 wxSize temp2 ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 char * kwnames[] = {
10032 (char *) "self",(char *) "size", NULL
10033 };
10034
10035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10037 if (!SWIG_IsOK(res1)) {
10038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10039 }
10040 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10041 {
10042 arg2 = &temp2;
10043 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10044 }
10045 {
10046 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10047 {
1bd55598
RD
10048 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10049 result = (wxIcon *) &_result_ref;
d55e5bfc 10050 }
1bd55598
RD
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 {
10055 wxIcon* resultptr = new wxIcon(*result);
10056 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10057 }
10058 return resultobj;
10059fail:
10060 return NULL;
10061}
10062
10063
10064SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10065 PyObject *obj;
10066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10067 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10068 return SWIG_Py_Void();
10069}
10070
10071SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10072 return SWIG_Python_InitShadowInstance(args);
10073}
10074
10075SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj = 0;
10077 wxString *arg1 = 0 ;
10078 long arg2 ;
10079 int arg3 = (int) 0 ;
10080 int arg4 = (int) 0 ;
10081 wxCursor *result = 0 ;
10082 bool temp1 = false ;
10083 long val2 ;
10084 int ecode2 = 0 ;
10085 int val3 ;
10086 int ecode3 = 0 ;
10087 int val4 ;
10088 int ecode4 = 0 ;
10089 PyObject * obj0 = 0 ;
10090 PyObject * obj1 = 0 ;
10091 PyObject * obj2 = 0 ;
10092 PyObject * obj3 = 0 ;
10093 char * kwnames[] = {
10094 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10095 };
10096
10097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10098 {
10099 arg1 = wxString_in_helper(obj0);
10100 if (arg1 == NULL) SWIG_fail;
10101 temp1 = true;
10102 }
10103 ecode2 = SWIG_AsVal_long(obj1, &val2);
10104 if (!SWIG_IsOK(ecode2)) {
10105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10106 }
10107 arg2 = static_cast< long >(val2);
10108 if (obj2) {
10109 ecode3 = SWIG_AsVal_int(obj2, &val3);
10110 if (!SWIG_IsOK(ecode3)) {
10111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10112 }
10113 arg3 = static_cast< int >(val3);
10114 }
10115 if (obj3) {
10116 ecode4 = SWIG_AsVal_int(obj3, &val4);
10117 if (!SWIG_IsOK(ecode4)) {
10118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10119 }
10120 arg4 = static_cast< int >(val4);
10121 }
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10130 {
10131 if (temp1)
10132 delete arg1;
10133 }
10134 return resultobj;
10135fail:
10136 {
10137 if (temp1)
10138 delete arg1;
10139 }
10140 return NULL;
d55e5bfc
RD
10141}
10142
10143
1bd55598
RD
10144SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10145 PyObject *resultobj = 0;
10146 wxCursor *arg1 = (wxCursor *) 0 ;
10147 void *argp1 = 0 ;
10148 int res1 = 0 ;
10149 PyObject *swig_obj[1] ;
10150
10151 if (!args) SWIG_fail;
10152 swig_obj[0] = args;
10153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10154 if (!SWIG_IsOK(res1)) {
10155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10156 }
10157 arg1 = reinterpret_cast< wxCursor * >(argp1);
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 delete arg1;
d55e5bfc 10161
1bd55598
RD
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 resultobj = SWIG_Py_Void();
10166 return resultobj;
10167fail:
10168 return NULL;
10169}
10170
10171
10172SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj = 0;
10174 int arg1 ;
10175 wxCursor *result = 0 ;
10176 int val1 ;
10177 int ecode1 = 0 ;
10178 PyObject * obj0 = 0 ;
10179 char * kwnames[] = {
10180 (char *) "id", NULL
10181 };
10182
10183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10184 ecode1 = SWIG_AsVal_int(obj0, &val1);
10185 if (!SWIG_IsOK(ecode1)) {
10186 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10187 }
10188 arg1 = static_cast< int >(val1);
10189 {
10190 if (!wxPyCheckForApp()) SWIG_fail;
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (wxCursor *)new wxCursor(arg1);
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10197 return resultobj;
10198fail:
10199 return NULL;
10200}
10201
10202
10203SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj = 0;
10205 wxImage *arg1 = 0 ;
10206 wxCursor *result = 0 ;
10207 void *argp1 = 0 ;
10208 int res1 = 0 ;
10209 PyObject * obj0 = 0 ;
10210 char * kwnames[] = {
10211 (char *) "image", NULL
10212 };
10213
10214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10216 if (!SWIG_IsOK(res1)) {
10217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10218 }
10219 if (!argp1) {
10220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10221 }
10222 arg1 = reinterpret_cast< wxImage * >(argp1);
10223 {
10224 if (!wxPyCheckForApp()) SWIG_fail;
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10231 return resultobj;
10232fail:
10233 return NULL;
d55e5bfc
RD
10234}
10235
10236
b39fe951 10237SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10238 PyObject *resultobj = 0;
10239 wxCursor *arg1 = (wxCursor *) 0 ;
10240 bool result;
10241 void *argp1 = 0 ;
10242 int res1 = 0 ;
10243 PyObject *swig_obj[1] ;
10244
10245 if (!args) SWIG_fail;
10246 swig_obj[0] = args;
10247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
b39fe951 10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10250 }
10251 arg1 = reinterpret_cast< wxCursor * >(argp1);
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10254 result = (bool)(arg1)->IsOk();
1bd55598
RD
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 {
10259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10260 }
10261 return resultobj;
10262fail:
10263 return NULL;
10264}
10265
10266
10267SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10268 PyObject *obj;
10269 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10270 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10271 return SWIG_Py_Void();
10272}
10273
10274SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10275 return SWIG_Python_InitShadowInstance(args);
10276}
10277
10278SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj = 0;
10280 int arg1 = (int) 0 ;
10281 int arg2 = (int) 0 ;
10282 int arg3 = (int) 0 ;
10283 int arg4 = (int) 0 ;
10284 wxRegion *result = 0 ;
10285 int val1 ;
10286 int ecode1 = 0 ;
10287 int val2 ;
10288 int ecode2 = 0 ;
10289 int val3 ;
10290 int ecode3 = 0 ;
10291 int val4 ;
10292 int ecode4 = 0 ;
10293 PyObject * obj0 = 0 ;
10294 PyObject * obj1 = 0 ;
10295 PyObject * obj2 = 0 ;
10296 PyObject * obj3 = 0 ;
10297 char * kwnames[] = {
10298 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10299 };
10300
10301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10302 if (obj0) {
10303 ecode1 = SWIG_AsVal_int(obj0, &val1);
10304 if (!SWIG_IsOK(ecode1)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10306 }
10307 arg1 = static_cast< int >(val1);
10308 }
10309 if (obj1) {
10310 ecode2 = SWIG_AsVal_int(obj1, &val2);
10311 if (!SWIG_IsOK(ecode2)) {
10312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10313 }
10314 arg2 = static_cast< int >(val2);
10315 }
10316 if (obj2) {
10317 ecode3 = SWIG_AsVal_int(obj2, &val3);
10318 if (!SWIG_IsOK(ecode3)) {
10319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10320 }
10321 arg3 = static_cast< int >(val3);
10322 }
10323 if (obj3) {
10324 ecode4 = SWIG_AsVal_int(obj3, &val4);
10325 if (!SWIG_IsOK(ecode4)) {
10326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10327 }
10328 arg4 = static_cast< int >(val4);
10329 }
10330 {
10331 if (!wxPyCheckForApp()) SWIG_fail;
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10338 return resultobj;
10339fail:
10340 return NULL;
10341}
10342
10343
10344SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10345 PyObject *resultobj = 0;
10346 wxBitmap *arg1 = 0 ;
10347 wxRegion *result = 0 ;
10348 void *argp1 = 0 ;
10349 int res1 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 char * kwnames[] = {
10352 (char *) "bmp", NULL
10353 };
10354
10355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10356 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10357 if (!SWIG_IsOK(res1)) {
10358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10359 }
10360 if (!argp1) {
10361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10362 }
10363 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10364 {
10365 if (!wxPyCheckForApp()) SWIG_fail;
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10372 return resultobj;
10373fail:
10374 return NULL;
10375}
10376
10377
10378SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj = 0;
10380 wxBitmap *arg1 = 0 ;
10381 wxColour *arg2 = 0 ;
10382 int arg3 = (int) 0 ;
10383 wxRegion *result = 0 ;
10384 void *argp1 = 0 ;
10385 int res1 = 0 ;
10386 wxColour temp2 ;
10387 int val3 ;
10388 int ecode3 = 0 ;
10389 PyObject * obj0 = 0 ;
10390 PyObject * obj1 = 0 ;
10391 PyObject * obj2 = 0 ;
10392 char * kwnames[] = {
10393 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10394 };
10395
10396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10397 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10398 if (!SWIG_IsOK(res1)) {
10399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10400 }
10401 if (!argp1) {
10402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10403 }
10404 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10405 {
10406 arg2 = &temp2;
10407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10408 }
10409 if (obj2) {
10410 ecode3 = SWIG_AsVal_int(obj2, &val3);
10411 if (!SWIG_IsOK(ecode3)) {
10412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10413 }
10414 arg3 = static_cast< int >(val3);
10415 }
10416 {
10417 if (!wxPyCheckForApp()) SWIG_fail;
10418 PyThreadState* __tstate = wxPyBeginAllowThreads();
10419 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10424 return resultobj;
10425fail:
10426 return NULL;
10427}
10428
10429
10430SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10431 PyObject *resultobj = 0;
10432 int arg1 ;
10433 wxPoint *arg2 = (wxPoint *) 0 ;
10434 int arg3 = (int) wxWINDING_RULE ;
10435 wxRegion *result = 0 ;
10436 int val3 ;
10437 int ecode3 = 0 ;
10438 PyObject * obj0 = 0 ;
10439 PyObject * obj1 = 0 ;
10440 char * kwnames[] = {
10441 (char *) "points",(char *) "fillStyle", NULL
10442 };
10443
10444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10445 {
10446 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10447 if (arg2 == NULL) SWIG_fail;
10448 }
10449 if (obj1) {
10450 ecode3 = SWIG_AsVal_int(obj1, &val3);
10451 if (!SWIG_IsOK(ecode3)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10453 }
10454 arg3 = static_cast< int >(val3);
10455 }
10456 {
10457 if (!wxPyCheckForApp()) SWIG_fail;
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10464 {
10465 if (arg2) delete [] arg2;
10466 }
10467 return resultobj;
10468fail:
10469 {
10470 if (arg2) delete [] arg2;
10471 }
10472 return NULL;
d55e5bfc
RD
10473}
10474
10475
1bd55598
RD
10476SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10477 PyObject *resultobj = 0;
10478 wxRegion *arg1 = (wxRegion *) 0 ;
10479 void *argp1 = 0 ;
10480 int res1 = 0 ;
10481 PyObject *swig_obj[1] ;
10482
10483 if (!args) SWIG_fail;
10484 swig_obj[0] = args;
10485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10486 if (!SWIG_IsOK(res1)) {
10487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10488 }
10489 arg1 = reinterpret_cast< wxRegion * >(argp1);
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 delete arg1;
d55e5bfc 10493
1bd55598
RD
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
10497 resultobj = SWIG_Py_Void();
10498 return resultobj;
10499fail:
10500 return NULL;
d55e5bfc
RD
10501}
10502
10503
1bd55598
RD
10504SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10505 PyObject *resultobj = 0;
10506 wxRegion *arg1 = (wxRegion *) 0 ;
10507 void *argp1 = 0 ;
10508 int res1 = 0 ;
10509 PyObject *swig_obj[1] ;
10510
10511 if (!args) SWIG_fail;
10512 swig_obj[0] = args;
10513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10514 if (!SWIG_IsOK(res1)) {
10515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10516 }
10517 arg1 = reinterpret_cast< wxRegion * >(argp1);
10518 {
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
10520 (arg1)->Clear();
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 resultobj = SWIG_Py_Void();
10525 return resultobj;
10526fail:
10527 return NULL;
10528}
10529
10530
10531SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj = 0;
10533 wxRegion *arg1 = (wxRegion *) 0 ;
10534 int arg2 ;
10535 int arg3 ;
10536 bool result;
10537 void *argp1 = 0 ;
10538 int res1 = 0 ;
10539 int val2 ;
10540 int ecode2 = 0 ;
10541 int val3 ;
10542 int ecode3 = 0 ;
10543 PyObject * obj0 = 0 ;
10544 PyObject * obj1 = 0 ;
10545 PyObject * obj2 = 0 ;
10546 char * kwnames[] = {
10547 (char *) "self",(char *) "x",(char *) "y", NULL
10548 };
10549
10550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10554 }
10555 arg1 = reinterpret_cast< wxRegion * >(argp1);
10556 ecode2 = SWIG_AsVal_int(obj1, &val2);
10557 if (!SWIG_IsOK(ecode2)) {
10558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10559 }
10560 arg2 = static_cast< int >(val2);
10561 ecode3 = SWIG_AsVal_int(obj2, &val3);
10562 if (!SWIG_IsOK(ecode3)) {
10563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10564 }
10565 arg3 = static_cast< int >(val3);
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (bool)(arg1)->Offset(arg2,arg3);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 {
10573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10574 }
10575 return resultobj;
10576fail:
10577 return NULL;
10578}
10579
10580
10581SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj = 0;
10583 wxRegion *arg1 = (wxRegion *) 0 ;
10584 int arg2 ;
10585 int arg3 ;
10586 wxRegionContain result;
10587 void *argp1 = 0 ;
10588 int res1 = 0 ;
10589 int val2 ;
10590 int ecode2 = 0 ;
10591 int val3 ;
10592 int ecode3 = 0 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 PyObject * obj2 = 0 ;
10596 char * kwnames[] = {
10597 (char *) "self",(char *) "x",(char *) "y", NULL
10598 };
10599
10600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10602 if (!SWIG_IsOK(res1)) {
10603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10604 }
10605 arg1 = reinterpret_cast< wxRegion * >(argp1);
10606 ecode2 = SWIG_AsVal_int(obj1, &val2);
10607 if (!SWIG_IsOK(ecode2)) {
10608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10609 }
10610 arg2 = static_cast< int >(val2);
10611 ecode3 = SWIG_AsVal_int(obj2, &val3);
10612 if (!SWIG_IsOK(ecode3)) {
10613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10614 }
10615 arg3 = static_cast< int >(val3);
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10619 wxPyEndAllowThreads(__tstate);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 }
10622 resultobj = SWIG_From_int(static_cast< int >(result));
10623 return resultobj;
10624fail:
10625 return NULL;
10626}
10627
10628
10629SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10630 PyObject *resultobj = 0;
10631 wxRegion *arg1 = (wxRegion *) 0 ;
10632 wxPoint *arg2 = 0 ;
10633 wxRegionContain result;
10634 void *argp1 = 0 ;
10635 int res1 = 0 ;
10636 wxPoint temp2 ;
10637 PyObject * obj0 = 0 ;
10638 PyObject * obj1 = 0 ;
10639 char * kwnames[] = {
10640 (char *) "self",(char *) "pt", NULL
10641 };
10642
10643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10645 if (!SWIG_IsOK(res1)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10647 }
10648 arg1 = reinterpret_cast< wxRegion * >(argp1);
10649 {
10650 arg2 = &temp2;
10651 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 resultobj = SWIG_From_int(static_cast< int >(result));
10660 return resultobj;
10661fail:
10662 return NULL;
10663}
10664
10665
10666SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj = 0;
10668 wxRegion *arg1 = (wxRegion *) 0 ;
10669 wxRect *arg2 = 0 ;
10670 wxRegionContain result;
10671 void *argp1 = 0 ;
10672 int res1 = 0 ;
10673 wxRect temp2 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 char * kwnames[] = {
10677 (char *) "self",(char *) "rect", NULL
10678 };
10679
10680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10682 if (!SWIG_IsOK(res1)) {
10683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10684 }
10685 arg1 = reinterpret_cast< wxRegion * >(argp1);
10686 {
10687 arg2 = &temp2;
10688 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10689 }
10690 {
10691 PyThreadState* __tstate = wxPyBeginAllowThreads();
10692 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 resultobj = SWIG_From_int(static_cast< int >(result));
10697 return resultobj;
10698fail:
10699 return NULL;
10700}
10701
10702
10703SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj = 0;
10705 wxRegion *arg1 = (wxRegion *) 0 ;
10706 int arg2 ;
10707 int arg3 ;
10708 int arg4 ;
10709 int arg5 ;
10710 wxRegionContain result;
10711 void *argp1 = 0 ;
10712 int res1 = 0 ;
10713 int val2 ;
10714 int ecode2 = 0 ;
10715 int val3 ;
10716 int ecode3 = 0 ;
10717 int val4 ;
10718 int ecode4 = 0 ;
10719 int val5 ;
10720 int ecode5 = 0 ;
10721 PyObject * obj0 = 0 ;
10722 PyObject * obj1 = 0 ;
10723 PyObject * obj2 = 0 ;
10724 PyObject * obj3 = 0 ;
10725 PyObject * obj4 = 0 ;
10726 char * kwnames[] = {
10727 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10728 };
10729
10730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10732 if (!SWIG_IsOK(res1)) {
10733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10734 }
10735 arg1 = reinterpret_cast< wxRegion * >(argp1);
10736 ecode2 = SWIG_AsVal_int(obj1, &val2);
10737 if (!SWIG_IsOK(ecode2)) {
10738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10739 }
10740 arg2 = static_cast< int >(val2);
10741 ecode3 = SWIG_AsVal_int(obj2, &val3);
10742 if (!SWIG_IsOK(ecode3)) {
10743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10744 }
10745 arg3 = static_cast< int >(val3);
10746 ecode4 = SWIG_AsVal_int(obj3, &val4);
10747 if (!SWIG_IsOK(ecode4)) {
10748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10749 }
10750 arg4 = static_cast< int >(val4);
10751 ecode5 = SWIG_AsVal_int(obj4, &val5);
10752 if (!SWIG_IsOK(ecode5)) {
10753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10754 }
10755 arg5 = static_cast< int >(val5);
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_From_int(static_cast< int >(result));
10763 return resultobj;
10764fail:
10765 return NULL;
d55e5bfc
RD
10766}
10767
10768
1bd55598
RD
10769SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10770 PyObject *resultobj = 0;
10771 wxRegion *arg1 = (wxRegion *) 0 ;
10772 wxRect result;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 PyObject *swig_obj[1] ;
10776
10777 if (!args) SWIG_fail;
10778 swig_obj[0] = args;
10779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10780 if (!SWIG_IsOK(res1)) {
10781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10782 }
10783 arg1 = reinterpret_cast< wxRegion * >(argp1);
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 result = (arg1)->GetBox();
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
10790 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10791 return resultobj;
10792fail:
10793 return NULL;
10794}
10795
10796
10797SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj = 0;
10799 wxRegion *arg1 = (wxRegion *) 0 ;
10800 int arg2 ;
10801 int arg3 ;
10802 int arg4 ;
10803 int arg5 ;
10804 bool result;
10805 void *argp1 = 0 ;
10806 int res1 = 0 ;
10807 int val2 ;
10808 int ecode2 = 0 ;
10809 int val3 ;
10810 int ecode3 = 0 ;
10811 int val4 ;
10812 int ecode4 = 0 ;
10813 int val5 ;
10814 int ecode5 = 0 ;
10815 PyObject * obj0 = 0 ;
10816 PyObject * obj1 = 0 ;
10817 PyObject * obj2 = 0 ;
10818 PyObject * obj3 = 0 ;
10819 PyObject * obj4 = 0 ;
10820 char * kwnames[] = {
10821 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10822 };
10823
10824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10826 if (!SWIG_IsOK(res1)) {
10827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10828 }
10829 arg1 = reinterpret_cast< wxRegion * >(argp1);
10830 ecode2 = SWIG_AsVal_int(obj1, &val2);
10831 if (!SWIG_IsOK(ecode2)) {
10832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10833 }
10834 arg2 = static_cast< int >(val2);
10835 ecode3 = SWIG_AsVal_int(obj2, &val3);
10836 if (!SWIG_IsOK(ecode3)) {
10837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10838 }
10839 arg3 = static_cast< int >(val3);
10840 ecode4 = SWIG_AsVal_int(obj3, &val4);
10841 if (!SWIG_IsOK(ecode4)) {
10842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10843 }
10844 arg4 = static_cast< int >(val4);
10845 ecode5 = SWIG_AsVal_int(obj4, &val5);
10846 if (!SWIG_IsOK(ecode5)) {
10847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10848 }
10849 arg5 = static_cast< int >(val5);
10850 {
10851 PyThreadState* __tstate = wxPyBeginAllowThreads();
10852 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 {
10857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10858 }
10859 return resultobj;
10860fail:
10861 return NULL;
10862}
10863
10864
10865SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10866 PyObject *resultobj = 0;
10867 wxRegion *arg1 = (wxRegion *) 0 ;
10868 wxRect *arg2 = 0 ;
10869 bool result;
10870 void *argp1 = 0 ;
10871 int res1 = 0 ;
10872 wxRect temp2 ;
10873 PyObject * obj0 = 0 ;
10874 PyObject * obj1 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "rect", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10883 }
10884 arg1 = reinterpret_cast< wxRegion * >(argp1);
10885 {
10886 arg2 = &temp2;
10887 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10888 }
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 {
10896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10897 }
10898 return resultobj;
10899fail:
10900 return NULL;
10901}
10902
10903
10904SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10905 PyObject *resultobj = 0;
10906 wxRegion *arg1 = (wxRegion *) 0 ;
10907 wxRegion *arg2 = 0 ;
10908 bool result;
10909 void *argp1 = 0 ;
10910 int res1 = 0 ;
10911 void *argp2 = 0 ;
10912 int res2 = 0 ;
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
10915 char * kwnames[] = {
10916 (char *) "self",(char *) "region", NULL
10917 };
10918
10919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10923 }
10924 arg1 = reinterpret_cast< wxRegion * >(argp1);
10925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10926 if (!SWIG_IsOK(res2)) {
10927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10928 }
10929 if (!argp2) {
10930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10931 }
10932 arg2 = reinterpret_cast< wxRegion * >(argp2);
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 {
10940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10941 }
10942 return resultobj;
10943fail:
10944 return NULL;
d55e5bfc
RD
10945}
10946
10947
1bd55598
RD
10948SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10949 PyObject *resultobj = 0;
10950 wxRegion *arg1 = (wxRegion *) 0 ;
10951 bool result;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 PyObject *swig_obj[1] ;
10955
10956 if (!args) SWIG_fail;
10957 swig_obj[0] = args;
10958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10959 if (!SWIG_IsOK(res1)) {
10960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10961 }
10962 arg1 = reinterpret_cast< wxRegion * >(argp1);
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 result = (bool)(arg1)->IsEmpty();
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 {
10970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10971 }
10972 return resultobj;
10973fail:
10974 return NULL;
10975}
10976
10977
f5263701
RD
10978SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj = 0;
10980 wxRegion *arg1 = (wxRegion *) 0 ;
10981 wxRegion *arg2 = 0 ;
10982 bool result;
10983 void *argp1 = 0 ;
10984 int res1 = 0 ;
10985 void *argp2 = 0 ;
10986 int res2 = 0 ;
10987 PyObject * obj0 = 0 ;
10988 PyObject * obj1 = 0 ;
10989 char * kwnames[] = {
10990 (char *) "self",(char *) "region", NULL
10991 };
10992
10993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10995 if (!SWIG_IsOK(res1)) {
10996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10997 }
10998 arg1 = reinterpret_cast< wxRegion * >(argp1);
10999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11000 if (!SWIG_IsOK(res2)) {
11001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11002 }
11003 if (!argp2) {
11004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11005 }
11006 arg2 = reinterpret_cast< wxRegion * >(argp2);
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017fail:
11018 return NULL;
11019}
11020
11021
1bd55598
RD
11022SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj = 0;
11024 wxRegion *arg1 = (wxRegion *) 0 ;
11025 int arg2 ;
11026 int arg3 ;
11027 int arg4 ;
11028 int arg5 ;
11029 bool result;
11030 void *argp1 = 0 ;
11031 int res1 = 0 ;
11032 int val2 ;
11033 int ecode2 = 0 ;
11034 int val3 ;
11035 int ecode3 = 0 ;
11036 int val4 ;
11037 int ecode4 = 0 ;
11038 int val5 ;
11039 int ecode5 = 0 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 PyObject * obj2 = 0 ;
11043 PyObject * obj3 = 0 ;
11044 PyObject * obj4 = 0 ;
11045 char * kwnames[] = {
11046 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11047 };
11048
11049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11053 }
11054 arg1 = reinterpret_cast< wxRegion * >(argp1);
11055 ecode2 = SWIG_AsVal_int(obj1, &val2);
11056 if (!SWIG_IsOK(ecode2)) {
11057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11058 }
11059 arg2 = static_cast< int >(val2);
11060 ecode3 = SWIG_AsVal_int(obj2, &val3);
11061 if (!SWIG_IsOK(ecode3)) {
11062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11063 }
11064 arg3 = static_cast< int >(val3);
11065 ecode4 = SWIG_AsVal_int(obj3, &val4);
11066 if (!SWIG_IsOK(ecode4)) {
11067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11068 }
11069 arg4 = static_cast< int >(val4);
11070 ecode5 = SWIG_AsVal_int(obj4, &val5);
11071 if (!SWIG_IsOK(ecode5)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11073 }
11074 arg5 = static_cast< int >(val5);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 {
11082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11083 }
11084 return resultobj;
11085fail:
11086 return NULL;
11087}
11088
11089
11090SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj = 0;
11092 wxRegion *arg1 = (wxRegion *) 0 ;
11093 wxRect *arg2 = 0 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 wxRect temp2 ;
11098 PyObject * obj0 = 0 ;
11099 PyObject * obj1 = 0 ;
11100 char * kwnames[] = {
11101 (char *) "self",(char *) "rect", NULL
11102 };
11103
11104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11106 if (!SWIG_IsOK(res1)) {
11107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11108 }
11109 arg1 = reinterpret_cast< wxRegion * >(argp1);
11110 {
11111 arg2 = &temp2;
11112 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11113 }
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 {
11121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11122 }
11123 return resultobj;
11124fail:
11125 return NULL;
11126}
11127
11128
11129SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj = 0;
11131 wxRegion *arg1 = (wxRegion *) 0 ;
11132 wxRegion *arg2 = 0 ;
11133 bool result;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 void *argp2 = 0 ;
11137 int res2 = 0 ;
11138 PyObject * obj0 = 0 ;
11139 PyObject * obj1 = 0 ;
11140 char * kwnames[] = {
11141 (char *) "self",(char *) "region", NULL
11142 };
11143
11144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11148 }
11149 arg1 = reinterpret_cast< wxRegion * >(argp1);
11150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11151 if (!SWIG_IsOK(res2)) {
11152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11153 }
11154 if (!argp2) {
11155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11156 }
11157 arg2 = reinterpret_cast< wxRegion * >(argp2);
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 {
11165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11166 }
11167 return resultobj;
11168fail:
11169 return NULL;
11170}
11171
11172
11173SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11174 PyObject *resultobj = 0;
11175 wxRegion *arg1 = (wxRegion *) 0 ;
11176 int arg2 ;
11177 int arg3 ;
11178 int arg4 ;
11179 int arg5 ;
11180 bool result;
11181 void *argp1 = 0 ;
11182 int res1 = 0 ;
11183 int val2 ;
11184 int ecode2 = 0 ;
11185 int val3 ;
11186 int ecode3 = 0 ;
11187 int val4 ;
11188 int ecode4 = 0 ;
11189 int val5 ;
11190 int ecode5 = 0 ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 PyObject * obj2 = 0 ;
11194 PyObject * obj3 = 0 ;
11195 PyObject * obj4 = 0 ;
11196 char * kwnames[] = {
11197 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11198 };
11199
11200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11204 }
11205 arg1 = reinterpret_cast< wxRegion * >(argp1);
11206 ecode2 = SWIG_AsVal_int(obj1, &val2);
11207 if (!SWIG_IsOK(ecode2)) {
11208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11209 }
11210 arg2 = static_cast< int >(val2);
11211 ecode3 = SWIG_AsVal_int(obj2, &val3);
11212 if (!SWIG_IsOK(ecode3)) {
11213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11214 }
11215 arg3 = static_cast< int >(val3);
11216 ecode4 = SWIG_AsVal_int(obj3, &val4);
11217 if (!SWIG_IsOK(ecode4)) {
11218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11219 }
11220 arg4 = static_cast< int >(val4);
11221 ecode5 = SWIG_AsVal_int(obj4, &val5);
11222 if (!SWIG_IsOK(ecode5)) {
11223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11224 }
11225 arg5 = static_cast< int >(val5);
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 {
11233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11234 }
11235 return resultobj;
11236fail:
11237 return NULL;
11238}
11239
11240
11241SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = 0;
11243 wxRegion *arg1 = (wxRegion *) 0 ;
11244 wxRect *arg2 = 0 ;
11245 bool result;
11246 void *argp1 = 0 ;
11247 int res1 = 0 ;
11248 wxRect temp2 ;
11249 PyObject * obj0 = 0 ;
11250 PyObject * obj1 = 0 ;
11251 char * kwnames[] = {
11252 (char *) "self",(char *) "rect", NULL
11253 };
11254
11255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",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_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11259 }
11260 arg1 = reinterpret_cast< wxRegion * >(argp1);
11261 {
11262 arg2 = &temp2;
11263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11264 }
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 {
11272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11273 }
11274 return resultobj;
11275fail:
11276 return NULL;
11277}
11278
11279
11280SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj = 0;
11282 wxRegion *arg1 = (wxRegion *) 0 ;
11283 wxRegion *arg2 = 0 ;
11284 bool result;
11285 void *argp1 = 0 ;
11286 int res1 = 0 ;
11287 void *argp2 = 0 ;
11288 int res2 = 0 ;
11289 PyObject * obj0 = 0 ;
11290 PyObject * obj1 = 0 ;
11291 char * kwnames[] = {
11292 (char *) "self",(char *) "region", NULL
11293 };
11294
11295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11299 }
11300 arg1 = reinterpret_cast< wxRegion * >(argp1);
11301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11302 if (!SWIG_IsOK(res2)) {
11303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11304 }
11305 if (!argp2) {
11306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11307 }
11308 arg2 = reinterpret_cast< wxRegion * >(argp2);
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11312 wxPyEndAllowThreads(__tstate);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 {
11316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11317 }
11318 return resultobj;
11319fail:
11320 return NULL;
11321}
11322
11323
11324SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11325 PyObject *resultobj = 0;
11326 wxRegion *arg1 = (wxRegion *) 0 ;
11327 int arg2 ;
11328 int arg3 ;
11329 int arg4 ;
11330 int arg5 ;
11331 bool result;
11332 void *argp1 = 0 ;
11333 int res1 = 0 ;
11334 int val2 ;
11335 int ecode2 = 0 ;
11336 int val3 ;
11337 int ecode3 = 0 ;
11338 int val4 ;
11339 int ecode4 = 0 ;
11340 int val5 ;
11341 int ecode5 = 0 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 PyObject * obj2 = 0 ;
11345 PyObject * obj3 = 0 ;
11346 PyObject * obj4 = 0 ;
11347 char * kwnames[] = {
11348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11349 };
11350
11351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11355 }
11356 arg1 = reinterpret_cast< wxRegion * >(argp1);
11357 ecode2 = SWIG_AsVal_int(obj1, &val2);
11358 if (!SWIG_IsOK(ecode2)) {
11359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11360 }
11361 arg2 = static_cast< int >(val2);
11362 ecode3 = SWIG_AsVal_int(obj2, &val3);
11363 if (!SWIG_IsOK(ecode3)) {
11364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11365 }
11366 arg3 = static_cast< int >(val3);
11367 ecode4 = SWIG_AsVal_int(obj3, &val4);
11368 if (!SWIG_IsOK(ecode4)) {
11369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11370 }
11371 arg4 = static_cast< int >(val4);
11372 ecode5 = SWIG_AsVal_int(obj4, &val5);
11373 if (!SWIG_IsOK(ecode5)) {
11374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11375 }
11376 arg5 = static_cast< int >(val5);
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 {
11384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11385 }
11386 return resultobj;
11387fail:
11388 return NULL;
11389}
11390
11391
11392SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj = 0;
11394 wxRegion *arg1 = (wxRegion *) 0 ;
11395 wxRect *arg2 = 0 ;
11396 bool result;
11397 void *argp1 = 0 ;
11398 int res1 = 0 ;
11399 wxRect temp2 ;
11400 PyObject * obj0 = 0 ;
11401 PyObject * obj1 = 0 ;
11402 char * kwnames[] = {
11403 (char *) "self",(char *) "rect", NULL
11404 };
11405
11406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11410 }
11411 arg1 = reinterpret_cast< wxRegion * >(argp1);
11412 {
11413 arg2 = &temp2;
11414 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11415 }
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 {
11423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11424 }
11425 return resultobj;
11426fail:
11427 return NULL;
11428}
11429
11430
11431SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11432 PyObject *resultobj = 0;
11433 wxRegion *arg1 = (wxRegion *) 0 ;
11434 wxRegion *arg2 = 0 ;
11435 bool result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 void *argp2 = 0 ;
11439 int res2 = 0 ;
11440 PyObject * obj0 = 0 ;
11441 PyObject * obj1 = 0 ;
11442 char * kwnames[] = {
11443 (char *) "self",(char *) "region", NULL
11444 };
11445
11446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11450 }
11451 arg1 = reinterpret_cast< wxRegion * >(argp1);
11452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11453 if (!SWIG_IsOK(res2)) {
11454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11455 }
11456 if (!argp2) {
11457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11458 }
11459 arg2 = reinterpret_cast< wxRegion * >(argp2);
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 {
11467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11468 }
11469 return resultobj;
11470fail:
11471 return NULL;
d55e5bfc
RD
11472}
11473
11474
1bd55598
RD
11475SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11476 PyObject *resultobj = 0;
11477 wxRegion *arg1 = (wxRegion *) 0 ;
11478 SwigValueWrapper<wxBitmap > result;
11479 void *argp1 = 0 ;
11480 int res1 = 0 ;
11481 PyObject *swig_obj[1] ;
11482
11483 if (!args) SWIG_fail;
11484 swig_obj[0] = args;
11485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11486 if (!SWIG_IsOK(res1)) {
11487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11488 }
11489 arg1 = reinterpret_cast< wxRegion * >(argp1);
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 result = (arg1)->ConvertToBitmap();
11493 wxPyEndAllowThreads(__tstate);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11497 return resultobj;
11498fail:
11499 return NULL;
11500}
11501
11502
11503SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj = 0;
11505 wxRegion *arg1 = (wxRegion *) 0 ;
11506 wxBitmap *arg2 = 0 ;
11507 bool result;
11508 void *argp1 = 0 ;
11509 int res1 = 0 ;
11510 void *argp2 = 0 ;
11511 int res2 = 0 ;
11512 PyObject * obj0 = 0 ;
11513 PyObject * obj1 = 0 ;
11514 char * kwnames[] = {
11515 (char *) "self",(char *) "bmp", NULL
11516 };
11517
11518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11520 if (!SWIG_IsOK(res1)) {
11521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11522 }
11523 arg1 = reinterpret_cast< wxRegion * >(argp1);
11524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11525 if (!SWIG_IsOK(res2)) {
11526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11527 }
11528 if (!argp2) {
11529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11530 }
11531 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 {
11539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11540 }
11541 return resultobj;
11542fail:
11543 return NULL;
11544}
11545
11546
11547SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11548 PyObject *resultobj = 0;
11549 wxRegion *arg1 = (wxRegion *) 0 ;
11550 wxBitmap *arg2 = 0 ;
11551 wxColour *arg3 = 0 ;
11552 int arg4 = (int) 0 ;
11553 bool result;
11554 void *argp1 = 0 ;
11555 int res1 = 0 ;
11556 void *argp2 = 0 ;
11557 int res2 = 0 ;
11558 wxColour temp3 ;
11559 int val4 ;
11560 int ecode4 = 0 ;
11561 PyObject * obj0 = 0 ;
11562 PyObject * obj1 = 0 ;
11563 PyObject * obj2 = 0 ;
11564 PyObject * obj3 = 0 ;
11565 char * kwnames[] = {
11566 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11567 };
11568
11569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11571 if (!SWIG_IsOK(res1)) {
11572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11573 }
11574 arg1 = reinterpret_cast< wxRegion * >(argp1);
11575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11576 if (!SWIG_IsOK(res2)) {
11577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11578 }
11579 if (!argp2) {
11580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11581 }
11582 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11583 {
11584 arg3 = &temp3;
11585 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11586 }
11587 if (obj3) {
11588 ecode4 = SWIG_AsVal_int(obj3, &val4);
11589 if (!SWIG_IsOK(ecode4)) {
11590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11591 }
11592 arg4 = static_cast< int >(val4);
11593 }
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 {
11601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11602 }
11603 return resultobj;
11604fail:
11605 return NULL;
d55e5bfc
RD
11606}
11607
11608
1bd55598
RD
11609SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11610 PyObject *obj;
11611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11612 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11613 return SWIG_Py_Void();
d55e5bfc
RD
11614}
11615
1bd55598
RD
11616SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11617 return SWIG_Python_InitShadowInstance(args);
11618}
d55e5bfc 11619
1bd55598
RD
11620SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11621 PyObject *resultobj = 0;
11622 wxRegion *arg1 = 0 ;
11623 wxRegionIterator *result = 0 ;
11624 void *argp1 = 0 ;
11625 int res1 = 0 ;
11626 PyObject * obj0 = 0 ;
11627 char * kwnames[] = {
11628 (char *) "region", NULL
11629 };
11630
11631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11632 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11633 if (!SWIG_IsOK(res1)) {
11634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11635 }
11636 if (!argp1) {
11637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11638 }
11639 arg1 = reinterpret_cast< wxRegion * >(argp1);
11640 {
11641 if (!wxPyCheckForApp()) SWIG_fail;
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11648 return resultobj;
11649fail:
11650 return NULL;
d55e5bfc
RD
11651}
11652
11653
1bd55598
RD
11654SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11655 PyObject *resultobj = 0;
11656 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11657 void *argp1 = 0 ;
11658 int res1 = 0 ;
11659 PyObject *swig_obj[1] ;
11660
11661 if (!args) SWIG_fail;
11662 swig_obj[0] = args;
11663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11664 if (!SWIG_IsOK(res1)) {
11665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11666 }
11667 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 delete arg1;
d55e5bfc 11671
1bd55598
RD
11672 wxPyEndAllowThreads(__tstate);
11673 if (PyErr_Occurred()) SWIG_fail;
11674 }
11675 resultobj = SWIG_Py_Void();
11676 return resultobj;
11677fail:
11678 return NULL;
d55e5bfc
RD
11679}
11680
11681
1bd55598
RD
11682SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11683 PyObject *resultobj = 0;
11684 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11685 int result;
11686 void *argp1 = 0 ;
11687 int res1 = 0 ;
11688 PyObject *swig_obj[1] ;
11689
11690 if (!args) SWIG_fail;
11691 swig_obj[0] = args;
11692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11693 if (!SWIG_IsOK(res1)) {
11694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11695 }
11696 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11697 {
11698 PyThreadState* __tstate = wxPyBeginAllowThreads();
11699 result = (int)(arg1)->GetX();
11700 wxPyEndAllowThreads(__tstate);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 resultobj = SWIG_From_int(static_cast< int >(result));
11704 return resultobj;
11705fail:
11706 return NULL;
d55e5bfc
RD
11707}
11708
11709
1bd55598
RD
11710SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11711 PyObject *resultobj = 0;
11712 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11713 int result;
11714 void *argp1 = 0 ;
11715 int res1 = 0 ;
11716 PyObject *swig_obj[1] ;
11717
11718 if (!args) SWIG_fail;
11719 swig_obj[0] = args;
11720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11721 if (!SWIG_IsOK(res1)) {
11722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11723 }
11724 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 result = (int)(arg1)->GetY();
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 resultobj = SWIG_From_int(static_cast< int >(result));
11732 return resultobj;
11733fail:
11734 return NULL;
d55e5bfc
RD
11735}
11736
11737
1bd55598
RD
11738SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11739 PyObject *resultobj = 0;
11740 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11741 int result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 PyObject *swig_obj[1] ;
11745
11746 if (!args) SWIG_fail;
11747 swig_obj[0] = args;
11748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11749 if (!SWIG_IsOK(res1)) {
11750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11751 }
11752 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (int)(arg1)->GetW();
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 resultobj = SWIG_From_int(static_cast< int >(result));
11760 return resultobj;
11761fail:
11762 return NULL;
d55e5bfc
RD
11763}
11764
11765
1bd55598
RD
11766SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11767 PyObject *resultobj = 0;
11768 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11769 int result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 PyObject *swig_obj[1] ;
11773
11774 if (!args) SWIG_fail;
11775 swig_obj[0] = args;
11776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11779 }
11780 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (int)(arg1)->GetWidth();
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = SWIG_From_int(static_cast< int >(result));
11788 return resultobj;
11789fail:
11790 return NULL;
d55e5bfc
RD
11791}
11792
11793
1bd55598
RD
11794SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11795 PyObject *resultobj = 0;
11796 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11797 int result;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 PyObject *swig_obj[1] ;
11801
11802 if (!args) SWIG_fail;
11803 swig_obj[0] = args;
11804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11805 if (!SWIG_IsOK(res1)) {
11806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11807 }
11808 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11809 {
11810 PyThreadState* __tstate = wxPyBeginAllowThreads();
11811 result = (int)(arg1)->GetH();
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 resultobj = SWIG_From_int(static_cast< int >(result));
11816 return resultobj;
11817fail:
11818 return NULL;
d07096ad
RD
11819}
11820
11821
1bd55598
RD
11822SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11823 PyObject *resultobj = 0;
11824 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11825 int result;
11826 void *argp1 = 0 ;
11827 int res1 = 0 ;
11828 PyObject *swig_obj[1] ;
11829
11830 if (!args) SWIG_fail;
11831 swig_obj[0] = args;
11832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11833 if (!SWIG_IsOK(res1)) {
11834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11835 }
11836 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 result = (int)(arg1)->GetHeight();
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 resultobj = SWIG_From_int(static_cast< int >(result));
11844 return resultobj;
11845fail:
11846 return NULL;
d55e5bfc
RD
11847}
11848
11849
1bd55598
RD
11850SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11851 PyObject *resultobj = 0;
11852 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11853 wxRect result;
11854 void *argp1 = 0 ;
11855 int res1 = 0 ;
11856 PyObject *swig_obj[1] ;
11857
11858 if (!args) SWIG_fail;
11859 swig_obj[0] = args;
11860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11863 }
11864 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = (arg1)->GetRect();
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11872 return resultobj;
11873fail:
11874 return NULL;
d55e5bfc
RD
11875}
11876
11877
1bd55598
RD
11878SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11879 PyObject *resultobj = 0;
11880 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11881 bool result;
11882 void *argp1 = 0 ;
11883 int res1 = 0 ;
11884 PyObject *swig_obj[1] ;
11885
11886 if (!args) SWIG_fail;
11887 swig_obj[0] = args;
11888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11889 if (!SWIG_IsOK(res1)) {
11890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11891 }
11892 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 result = (bool)(arg1)->HaveRects();
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 {
11900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11901 }
11902 return resultobj;
11903fail:
11904 return NULL;
d55e5bfc
RD
11905}
11906
11907
1bd55598
RD
11908SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11909 PyObject *resultobj = 0;
11910 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11911 void *argp1 = 0 ;
11912 int res1 = 0 ;
11913 PyObject *swig_obj[1] ;
11914
11915 if (!args) SWIG_fail;
11916 swig_obj[0] = args;
11917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11918 if (!SWIG_IsOK(res1)) {
11919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11920 }
11921 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->Reset();
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_Py_Void();
11929 return resultobj;
11930fail:
11931 return NULL;
d55e5bfc
RD
11932}
11933
11934
1bd55598
RD
11935SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11936 PyObject *resultobj = 0;
11937 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11938 void *argp1 = 0 ;
11939 int res1 = 0 ;
11940 PyObject *swig_obj[1] ;
11941
11942 if (!args) SWIG_fail;
11943 swig_obj[0] = args;
11944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11945 if (!SWIG_IsOK(res1)) {
11946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11947 }
11948 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 wxRegionIterator_Next(arg1);
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 resultobj = SWIG_Py_Void();
11956 return resultobj;
11957fail:
11958 return NULL;
070c48b4
RD
11959}
11960
11961
1bd55598
RD
11962SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11963 PyObject *resultobj = 0;
11964 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11965 bool result;
11966 void *argp1 = 0 ;
11967 int res1 = 0 ;
11968 PyObject *swig_obj[1] ;
11969
11970 if (!args) SWIG_fail;
11971 swig_obj[0] = args;
11972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11973 if (!SWIG_IsOK(res1)) {
11974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11975 }
11976 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11977 {
11978 PyThreadState* __tstate = wxPyBeginAllowThreads();
11979 result = (bool)wxRegionIterator___nonzero__(arg1);
11980 wxPyEndAllowThreads(__tstate);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 }
11983 {
11984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11985 }
11986 return resultobj;
11987fail:
11988 return NULL;
d55e5bfc
RD
11989}
11990
11991
1bd55598
RD
11992SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11993 PyObject *obj;
11994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11995 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11996 return SWIG_Py_Void();
d55e5bfc
RD
11997}
11998
1bd55598
RD
11999SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12000 return SWIG_Python_InitShadowInstance(args);
12001}
d55e5bfc 12002
1bd55598
RD
12003SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12004 PyObject *resultobj = 0;
12005 wxNativeFontInfo *result = 0 ;
12006
12007 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12008 {
12009 PyThreadState* __tstate = wxPyBeginAllowThreads();
12010 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12011 wxPyEndAllowThreads(__tstate);
12012 if (PyErr_Occurred()) SWIG_fail;
12013 }
12014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12015 return resultobj;
12016fail:
12017 return NULL;
d55e5bfc
RD
12018}
12019
12020
1bd55598
RD
12021SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12022 PyObject *resultobj = 0;
12023 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12024 void *argp1 = 0 ;
12025 int res1 = 0 ;
12026 PyObject *swig_obj[1] ;
12027
12028 if (!args) SWIG_fail;
12029 swig_obj[0] = args;
12030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12033 }
12034 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 delete arg1;
d55e5bfc 12038
1bd55598
RD
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 resultobj = SWIG_Py_Void();
12043 return resultobj;
12044fail:
12045 return NULL;
d55e5bfc
RD
12046}
12047
12048
1bd55598
RD
12049SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12050 PyObject *resultobj = 0;
12051 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12052 void *argp1 = 0 ;
12053 int res1 = 0 ;
12054 PyObject *swig_obj[1] ;
12055
12056 if (!args) SWIG_fail;
12057 swig_obj[0] = args;
12058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12061 }
12062 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 (arg1)->Init();
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_Py_Void();
12070 return resultobj;
12071fail:
12072 return NULL;
12073}
12074
12075
12076SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12079 wxFont *arg2 = 0 ;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 void *argp2 = 0 ;
12083 int res2 = 0 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086 char * kwnames[] = {
12087 (char *) "self",(char *) "font", NULL
12088 };
12089
12090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12094 }
12095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12097 if (!SWIG_IsOK(res2)) {
12098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12099 }
12100 if (!argp2) {
12101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12102 }
12103 arg2 = reinterpret_cast< wxFont * >(argp2);
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 (arg1)->InitFromFont((wxFont const &)*arg2);
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_Py_Void();
12111 return resultobj;
12112fail:
12113 return NULL;
d55e5bfc
RD
12114}
12115
12116
1bd55598
RD
12117SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118 PyObject *resultobj = 0;
12119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12120 int result;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 PyObject *swig_obj[1] ;
12124
12125 if (!args) SWIG_fail;
12126 swig_obj[0] = args;
12127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12130 }
12131 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_From_int(static_cast< int >(result));
12139 return resultobj;
12140fail:
12141 return NULL;
d55e5bfc
RD
12142}
12143
12144
1bd55598
RD
12145SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12148 wxFontStyle result;
12149 void *argp1 = 0 ;
12150 int res1 = 0 ;
12151 PyObject *swig_obj[1] ;
12152
12153 if (!args) SWIG_fail;
12154 swig_obj[0] = args;
12155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12158 }
12159 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 resultobj = SWIG_From_int(static_cast< int >(result));
12167 return resultobj;
12168fail:
12169 return NULL;
d55e5bfc
RD
12170}
12171
12172
1bd55598
RD
12173SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12174 PyObject *resultobj = 0;
12175 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12176 wxFontWeight result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject *swig_obj[1] ;
12180
12181 if (!args) SWIG_fail;
12182 swig_obj[0] = args;
12183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12186 }
12187 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 resultobj = SWIG_From_int(static_cast< int >(result));
12195 return resultobj;
12196fail:
12197 return NULL;
d55e5bfc
RD
12198}
12199
12200
1bd55598
RD
12201SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12202 PyObject *resultobj = 0;
12203 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12204 bool result;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 PyObject *swig_obj[1] ;
12208
12209 if (!args) SWIG_fail;
12210 swig_obj[0] = args;
12211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12212 if (!SWIG_IsOK(res1)) {
12213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12214 }
12215 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 {
12223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12224 }
12225 return resultobj;
12226fail:
12227 return NULL;
d55e5bfc
RD
12228}
12229
12230
1bd55598
RD
12231SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12232 PyObject *resultobj = 0;
12233 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12234 wxString result;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 PyObject *swig_obj[1] ;
12238
12239 if (!args) SWIG_fail;
12240 swig_obj[0] = args;
12241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12244 }
12245 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 {
12253#if wxUSE_UNICODE
12254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12255#else
12256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12257#endif
12258 }
12259 return resultobj;
12260fail:
12261 return NULL;
d55e5bfc
RD
12262}
12263
12264
1bd55598
RD
12265SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12266 PyObject *resultobj = 0;
12267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12268 wxFontFamily result;
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_wxNativeFontInfo, 0 | 0 );
12276 if (!SWIG_IsOK(res1)) {
12277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12278 }
12279 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12283 wxPyEndAllowThreads(__tstate);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 }
12286 resultobj = SWIG_From_int(static_cast< int >(result));
12287 return resultobj;
12288fail:
12289 return NULL;
d55e5bfc
RD
12290}
12291
12292
1bd55598
RD
12293SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12294 PyObject *resultobj = 0;
12295 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12296 wxFontEncoding result;
12297 void *argp1 = 0 ;
12298 int res1 = 0 ;
12299 PyObject *swig_obj[1] ;
12300
12301 if (!args) SWIG_fail;
12302 swig_obj[0] = args;
12303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12304 if (!SWIG_IsOK(res1)) {
12305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12306 }
12307 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 resultobj = SWIG_From_int(static_cast< int >(result));
12315 return resultobj;
12316fail:
12317 return NULL;
12318}
12319
12320
12321SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj = 0;
12323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12324 int arg2 ;
12325 void *argp1 = 0 ;
12326 int res1 = 0 ;
12327 int val2 ;
12328 int ecode2 = 0 ;
12329 PyObject * obj0 = 0 ;
12330 PyObject * obj1 = 0 ;
12331 char * kwnames[] = {
12332 (char *) "self",(char *) "pointsize", NULL
12333 };
12334
12335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12337 if (!SWIG_IsOK(res1)) {
12338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12339 }
12340 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12341 ecode2 = SWIG_AsVal_int(obj1, &val2);
12342 if (!SWIG_IsOK(ecode2)) {
12343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12344 }
12345 arg2 = static_cast< int >(val2);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 (arg1)->SetPointSize(arg2);
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_Py_Void();
12353 return resultobj;
12354fail:
12355 return NULL;
12356}
12357
12358
12359SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj = 0;
12361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12362 wxFontStyle arg2 ;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 int val2 ;
12366 int ecode2 = 0 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 char * kwnames[] = {
12370 (char *) "self",(char *) "style", NULL
12371 };
12372
12373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12375 if (!SWIG_IsOK(res1)) {
12376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12377 }
12378 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12379 ecode2 = SWIG_AsVal_int(obj1, &val2);
12380 if (!SWIG_IsOK(ecode2)) {
12381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12382 }
12383 arg2 = static_cast< wxFontStyle >(val2);
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetStyle(arg2);
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 resultobj = SWIG_Py_Void();
12391 return resultobj;
12392fail:
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12400 wxFontWeight arg2 ;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 int val2 ;
12404 int ecode2 = 0 ;
12405 PyObject * obj0 = 0 ;
12406 PyObject * obj1 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "weight", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12415 }
12416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12417 ecode2 = SWIG_AsVal_int(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12420 }
12421 arg2 = static_cast< wxFontWeight >(val2);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 (arg1)->SetWeight(arg2);
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_Py_Void();
12429 return resultobj;
12430fail:
12431 return NULL;
12432}
12433
12434
12435SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj = 0;
12437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12438 bool arg2 ;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 bool val2 ;
12442 int ecode2 = 0 ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 char * kwnames[] = {
12446 (char *) "self",(char *) "underlined", NULL
12447 };
12448
12449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12453 }
12454 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12455 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12456 if (!SWIG_IsOK(ecode2)) {
12457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12458 }
12459 arg2 = static_cast< bool >(val2);
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 (arg1)->SetUnderlined(arg2);
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_Py_Void();
12467 return resultobj;
12468fail:
12469 return NULL;
12470}
12471
12472
12473SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj = 0;
12475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12476 wxString arg2 ;
704eda0c 12477 bool result;
1bd55598
RD
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 PyObject * obj0 = 0 ;
12481 PyObject * obj1 = 0 ;
12482 char * kwnames[] = {
12483 (char *) "self",(char *) "facename", NULL
12484 };
12485
12486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12488 if (!SWIG_IsOK(res1)) {
12489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12490 }
12491 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12492 {
12493 wxString* sptr = wxString_in_helper(obj1);
12494 if (sptr == NULL) SWIG_fail;
12495 arg2 = *sptr;
12496 delete sptr;
12497 }
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12500 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
704eda0c
RD
12504 {
12505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12506 }
1bd55598
RD
12507 return resultobj;
12508fail:
12509 return NULL;
12510}
12511
12512
12513SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12514 PyObject *resultobj = 0;
12515 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12516 wxFontFamily arg2 ;
12517 void *argp1 = 0 ;
12518 int res1 = 0 ;
12519 int val2 ;
12520 int ecode2 = 0 ;
12521 PyObject * obj0 = 0 ;
12522 PyObject * obj1 = 0 ;
12523 char * kwnames[] = {
12524 (char *) "self",(char *) "family", NULL
12525 };
12526
12527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12529 if (!SWIG_IsOK(res1)) {
12530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12531 }
12532 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12533 ecode2 = SWIG_AsVal_int(obj1, &val2);
12534 if (!SWIG_IsOK(ecode2)) {
12535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12536 }
12537 arg2 = static_cast< wxFontFamily >(val2);
12538 {
12539 PyThreadState* __tstate = wxPyBeginAllowThreads();
12540 (arg1)->SetFamily(arg2);
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 resultobj = SWIG_Py_Void();
12545 return resultobj;
12546fail:
12547 return NULL;
12548}
12549
12550
12551SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj = 0;
12553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12554 wxFontEncoding arg2 ;
12555 void *argp1 = 0 ;
12556 int res1 = 0 ;
12557 int val2 ;
12558 int ecode2 = 0 ;
12559 PyObject * obj0 = 0 ;
12560 PyObject * obj1 = 0 ;
12561 char * kwnames[] = {
12562 (char *) "self",(char *) "encoding", NULL
12563 };
12564
12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12569 }
12570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12571 ecode2 = SWIG_AsVal_int(obj1, &val2);
12572 if (!SWIG_IsOK(ecode2)) {
12573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12574 }
12575 arg2 = static_cast< wxFontEncoding >(val2);
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 (arg1)->SetEncoding(arg2);
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 resultobj = SWIG_Py_Void();
12583 return resultobj;
12584fail:
12585 return NULL;
12586}
12587
12588
12589SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12590 PyObject *resultobj = 0;
12591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12592 wxString *arg2 = 0 ;
12593 bool result;
12594 void *argp1 = 0 ;
12595 int res1 = 0 ;
12596 bool temp2 = false ;
12597 PyObject * obj0 = 0 ;
12598 PyObject * obj1 = 0 ;
12599 char * kwnames[] = {
12600 (char *) "self",(char *) "s", NULL
12601 };
12602
12603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12607 }
12608 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12609 {
12610 arg2 = wxString_in_helper(obj1);
12611 if (arg2 == NULL) SWIG_fail;
12612 temp2 = true;
12613 }
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 {
12621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12622 }
12623 {
12624 if (temp2)
12625 delete arg2;
12626 }
12627 return resultobj;
12628fail:
12629 {
12630 if (temp2)
12631 delete arg2;
12632 }
12633 return NULL;
d55e5bfc
RD
12634}
12635
12636
1bd55598
RD
12637SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12638 PyObject *resultobj = 0;
12639 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12640 wxString result;
12641 void *argp1 = 0 ;
12642 int res1 = 0 ;
12643 PyObject *swig_obj[1] ;
12644
12645 if (!args) SWIG_fail;
12646 swig_obj[0] = args;
12647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12648 if (!SWIG_IsOK(res1)) {
12649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12650 }
12651 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 result = ((wxNativeFontInfo const *)arg1)->ToString();
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 {
12659#if wxUSE_UNICODE
12660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12661#else
12662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12663#endif
12664 }
12665 return resultobj;
12666fail:
12667 return NULL;
d55e5bfc
RD
12668}
12669
12670
1bd55598
RD
12671SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12674 wxString result;
12675 void *argp1 = 0 ;
12676 int res1 = 0 ;
12677 PyObject *swig_obj[1] ;
12678
12679 if (!args) SWIG_fail;
12680 swig_obj[0] = args;
12681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12682 if (!SWIG_IsOK(res1)) {
12683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12684 }
12685 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 result = wxNativeFontInfo___str__(arg1);
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 {
12693#if wxUSE_UNICODE
12694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12695#else
12696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12697#endif
12698 }
12699 return resultobj;
12700fail:
12701 return NULL;
12702}
12703
12704
12705SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12706 PyObject *resultobj = 0;
12707 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12708 wxString *arg2 = 0 ;
12709 bool result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 bool temp2 = false ;
12713 PyObject * obj0 = 0 ;
12714 PyObject * obj1 = 0 ;
12715 char * kwnames[] = {
12716 (char *) "self",(char *) "s", NULL
12717 };
12718
12719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12721 if (!SWIG_IsOK(res1)) {
12722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12723 }
12724 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12725 {
12726 arg2 = wxString_in_helper(obj1);
12727 if (arg2 == NULL) SWIG_fail;
12728 temp2 = true;
12729 }
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12733 wxPyEndAllowThreads(__tstate);
12734 if (PyErr_Occurred()) SWIG_fail;
12735 }
12736 {
12737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12738 }
12739 {
12740 if (temp2)
12741 delete arg2;
12742 }
12743 return resultobj;
12744fail:
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return NULL;
d55e5bfc
RD
12750}
12751
12752
1bd55598
RD
12753SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12754 PyObject *resultobj = 0;
12755 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12756 wxString result;
12757 void *argp1 = 0 ;
12758 int res1 = 0 ;
12759 PyObject *swig_obj[1] ;
12760
12761 if (!args) SWIG_fail;
12762 swig_obj[0] = args;
12763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12764 if (!SWIG_IsOK(res1)) {
12765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12766 }
12767 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 {
36ed4f51 12775#if wxUSE_UNICODE
1bd55598 12776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12777#else
1bd55598 12778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12779#endif
1bd55598
RD
12780 }
12781 return resultobj;
12782fail:
12783 return NULL;
d55e5bfc
RD
12784}
12785
12786
1bd55598
RD
12787SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12788 PyObject *obj;
12789 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12790 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12791 return SWIG_Py_Void();
d55e5bfc
RD
12792}
12793
1bd55598
RD
12794SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12795 return SWIG_Python_InitShadowInstance(args);
12796}
d55e5bfc 12797
1bd55598
RD
12798SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12799 PyObject *resultobj = 0;
12800 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12801 wxString *arg2 = (wxString *) 0 ;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 bool temp2 = false ;
12805 PyObject *swig_obj[2] ;
12806
12807 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12809 if (!SWIG_IsOK(res1)) {
12810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12811 }
12812 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12813 {
12814 arg2 = wxString_in_helper(swig_obj[1]);
12815 if (arg2 == NULL) SWIG_fail;
12816 temp2 = true;
12817 }
12818 if (arg1) (arg1)->facename = *arg2;
12819
12820 resultobj = SWIG_Py_Void();
12821 {
12822 if (temp2)
12823 delete arg2;
12824 }
12825 return resultobj;
12826fail:
12827 {
12828 if (temp2)
12829 delete arg2;
12830 }
12831 return NULL;
d55e5bfc
RD
12832}
12833
12834
1bd55598
RD
12835SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12836 PyObject *resultobj = 0;
12837 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12838 wxString *result = 0 ;
12839 void *argp1 = 0 ;
12840 int res1 = 0 ;
12841 PyObject *swig_obj[1] ;
12842
12843 if (!args) SWIG_fail;
12844 swig_obj[0] = args;
12845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12846 if (!SWIG_IsOK(res1)) {
12847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12848 }
12849 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12850 result = (wxString *)& ((arg1)->facename);
12851 {
12852#if wxUSE_UNICODE
12853 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12854#else
12855 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12856#endif
12857 }
12858 return resultobj;
12859fail:
12860 return NULL;
d55e5bfc
RD
12861}
12862
12863
1bd55598
RD
12864SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12865 PyObject *resultobj = 0;
12866 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12867 wxFontEncoding arg2 ;
12868 void *argp1 = 0 ;
12869 int res1 = 0 ;
12870 int val2 ;
12871 int ecode2 = 0 ;
12872 PyObject *swig_obj[2] ;
12873
12874 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12876 if (!SWIG_IsOK(res1)) {
12877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12878 }
12879 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12880 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12881 if (!SWIG_IsOK(ecode2)) {
12882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12883 }
12884 arg2 = static_cast< wxFontEncoding >(val2);
12885 if (arg1) (arg1)->encoding = arg2;
12886
12887 resultobj = SWIG_Py_Void();
12888 return resultobj;
12889fail:
12890 return NULL;
d55e5bfc
RD
12891}
12892
12893
1bd55598
RD
12894SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12895 PyObject *resultobj = 0;
12896 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12897 wxFontEncoding result;
12898 void *argp1 = 0 ;
12899 int res1 = 0 ;
12900 PyObject *swig_obj[1] ;
12901
12902 if (!args) SWIG_fail;
12903 swig_obj[0] = args;
12904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12905 if (!SWIG_IsOK(res1)) {
12906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12907 }
12908 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12909 result = (wxFontEncoding) ((arg1)->encoding);
12910 resultobj = SWIG_From_int(static_cast< int >(result));
12911 return resultobj;
12912fail:
12913 return NULL;
d07096ad
RD
12914}
12915
12916
1bd55598
RD
12917SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12918 PyObject *resultobj = 0;
12919 wxNativeEncodingInfo *result = 0 ;
12920
12921 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12929 return resultobj;
12930fail:
12931 return NULL;
d55e5bfc
RD
12932}
12933
12934
1bd55598
RD
12935SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12936 PyObject *resultobj = 0;
12937 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 PyObject *swig_obj[1] ;
12941
12942 if (!args) SWIG_fail;
12943 swig_obj[0] = args;
12944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12945 if (!SWIG_IsOK(res1)) {
12946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12947 }
12948 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 delete arg1;
d55e5bfc 12952
1bd55598
RD
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 resultobj = SWIG_Py_Void();
12957 return resultobj;
12958fail:
12959 return NULL;
12960}
12961
12962
12963SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12964 PyObject *resultobj = 0;
12965 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12966 wxString *arg2 = 0 ;
12967 bool result;
12968 void *argp1 = 0 ;
12969 int res1 = 0 ;
12970 bool temp2 = false ;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 char * kwnames[] = {
12974 (char *) "self",(char *) "s", NULL
12975 };
12976
12977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12979 if (!SWIG_IsOK(res1)) {
12980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12981 }
12982 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12983 {
12984 arg2 = wxString_in_helper(obj1);
12985 if (arg2 == NULL) SWIG_fail;
12986 temp2 = true;
12987 }
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 {
12995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12996 }
12997 {
12998 if (temp2)
12999 delete arg2;
13000 }
13001 return resultobj;
13002fail:
13003 {
13004 if (temp2)
13005 delete arg2;
13006 }
13007 return NULL;
d55e5bfc
RD
13008}
13009
13010
1bd55598
RD
13011SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13012 PyObject *resultobj = 0;
13013 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13014 wxString result;
13015 void *argp1 = 0 ;
13016 int res1 = 0 ;
13017 PyObject *swig_obj[1] ;
13018
13019 if (!args) SWIG_fail;
13020 swig_obj[0] = args;
13021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13022 if (!SWIG_IsOK(res1)) {
13023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13024 }
13025 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 {
13033#if wxUSE_UNICODE
13034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13035#else
13036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13037#endif
13038 }
13039 return resultobj;
13040fail:
13041 return NULL;
d55e5bfc
RD
13042}
13043
13044
1bd55598
RD
13045SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13046 PyObject *obj;
13047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13048 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13049 return SWIG_Py_Void();
d55e5bfc
RD
13050}
13051
1bd55598
RD
13052SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13053 return SWIG_Python_InitShadowInstance(args);
13054}
d55e5bfc 13055
1bd55598
RD
13056SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13057 PyObject *resultobj = 0;
13058 wxFontEncoding arg1 ;
13059 wxNativeEncodingInfo *result = 0 ;
13060 int val1 ;
13061 int ecode1 = 0 ;
13062 PyObject * obj0 = 0 ;
13063 char * kwnames[] = {
13064 (char *) "encoding", NULL
13065 };
13066
13067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13068 ecode1 = SWIG_AsVal_int(obj0, &val1);
13069 if (!SWIG_IsOK(ecode1)) {
13070 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13071 }
13072 arg1 = static_cast< wxFontEncoding >(val1);
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13076 wxPyEndAllowThreads(__tstate);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13080 return resultobj;
13081fail:
13082 return NULL;
13083}
13084
13085
13086SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj = 0;
13088 wxNativeEncodingInfo *arg1 = 0 ;
13089 bool result;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 PyObject * obj0 = 0 ;
13093 char * kwnames[] = {
13094 (char *) "info", NULL
13095 };
13096
13097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13098 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13099 if (!SWIG_IsOK(res1)) {
13100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13101 }
13102 if (!argp1) {
13103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13104 }
13105 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13106 {
13107 PyThreadState* __tstate = wxPyBeginAllowThreads();
13108 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13109 wxPyEndAllowThreads(__tstate);
13110 if (PyErr_Occurred()) SWIG_fail;
13111 }
13112 {
13113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13114 }
13115 return resultobj;
13116fail:
13117 return NULL;
d55e5bfc
RD
13118}
13119
13120
1bd55598
RD
13121SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13122 PyObject *resultobj = 0;
13123 wxFontMapper *result = 0 ;
13124
13125 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 result = (wxFontMapper *)new wxFontMapper();
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13133 return resultobj;
13134fail:
13135 return NULL;
d55e5bfc
RD
13136}
13137
13138
1bd55598
RD
13139SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13140 PyObject *resultobj = 0;
13141 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13142 void *argp1 = 0 ;
13143 int res1 = 0 ;
13144 PyObject *swig_obj[1] ;
13145
13146 if (!args) SWIG_fail;
13147 swig_obj[0] = args;
13148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13149 if (!SWIG_IsOK(res1)) {
13150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13151 }
13152 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13153 {
13154 PyThreadState* __tstate = wxPyBeginAllowThreads();
13155 delete arg1;
d55e5bfc 13156
1bd55598
RD
13157 wxPyEndAllowThreads(__tstate);
13158 if (PyErr_Occurred()) SWIG_fail;
13159 }
13160 resultobj = SWIG_Py_Void();
13161 return resultobj;
13162fail:
13163 return NULL;
d55e5bfc
RD
13164}
13165
13166
1bd55598
RD
13167SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13168 PyObject *resultobj = 0;
13169 wxFontMapper *result = 0 ;
13170
13171 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 result = (wxFontMapper *)wxFontMapper::Get();
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13179 return resultobj;
13180fail:
13181 return NULL;
13182}
13183
13184
13185SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj = 0;
13187 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13188 wxFontMapper *result = 0 ;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 PyObject * obj0 = 0 ;
13192 char * kwnames[] = {
13193 (char *) "mapper", NULL
13194 };
13195
13196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13198 if (!SWIG_IsOK(res1)) {
13199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13200 }
13201 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13202 {
13203 PyThreadState* __tstate = wxPyBeginAllowThreads();
13204 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13205 wxPyEndAllowThreads(__tstate);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13209 return resultobj;
13210fail:
13211 return NULL;
13212}
13213
13214
13215SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13216 PyObject *resultobj = 0;
13217 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13218 wxString *arg2 = 0 ;
13219 bool arg3 = (bool) true ;
13220 wxFontEncoding result;
13221 void *argp1 = 0 ;
13222 int res1 = 0 ;
13223 bool temp2 = false ;
13224 bool val3 ;
13225 int ecode3 = 0 ;
13226 PyObject * obj0 = 0 ;
13227 PyObject * obj1 = 0 ;
13228 PyObject * obj2 = 0 ;
13229 char * kwnames[] = {
13230 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13231 };
13232
13233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13237 }
13238 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13239 {
13240 arg2 = wxString_in_helper(obj1);
13241 if (arg2 == NULL) SWIG_fail;
13242 temp2 = true;
13243 }
13244 if (obj2) {
13245 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13246 if (!SWIG_IsOK(ecode3)) {
13247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13248 }
13249 arg3 = static_cast< bool >(val3);
13250 }
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_From_int(static_cast< int >(result));
13258 {
13259 if (temp2)
13260 delete arg2;
13261 }
13262 return resultobj;
13263fail:
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return NULL;
d55e5bfc
RD
13269}
13270
13271
1bd55598
RD
13272SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 size_t result;
13275
13276 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13284 return resultobj;
13285fail:
13286 return NULL;
13287}
13288
13289
13290SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13291 PyObject *resultobj = 0;
13292 size_t arg1 ;
13293 wxFontEncoding result;
13294 size_t val1 ;
13295 int ecode1 = 0 ;
13296 PyObject * obj0 = 0 ;
13297 char * kwnames[] = {
13298 (char *) "n", NULL
13299 };
13300
13301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13302 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13303 if (!SWIG_IsOK(ecode1)) {
13304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13305 }
13306 arg1 = static_cast< size_t >(val1);
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_From_int(static_cast< int >(result));
13314 return resultobj;
13315fail:
13316 return NULL;
13317}
13318
13319
13320SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj = 0;
13322 wxFontEncoding arg1 ;
13323 wxString result;
13324 int val1 ;
13325 int ecode1 = 0 ;
13326 PyObject * obj0 = 0 ;
13327 char * kwnames[] = {
13328 (char *) "encoding", NULL
13329 };
13330
13331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13332 ecode1 = SWIG_AsVal_int(obj0, &val1);
13333 if (!SWIG_IsOK(ecode1)) {
13334 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13335 }
13336 arg1 = static_cast< wxFontEncoding >(val1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = wxFontMapper::GetEncodingName(arg1);
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344#if wxUSE_UNICODE
13345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13346#else
13347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13348#endif
13349 }
13350 return resultobj;
13351fail:
13352 return NULL;
d55e5bfc
RD
13353}
13354
13355
1bd55598
RD
13356SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13357 PyObject *resultobj = 0;
13358 wxFontEncoding arg1 ;
13359 wxString result;
13360 int val1 ;
13361 int ecode1 = 0 ;
13362 PyObject * obj0 = 0 ;
13363 char * kwnames[] = {
13364 (char *) "encoding", NULL
13365 };
13366
13367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13368 ecode1 = SWIG_AsVal_int(obj0, &val1);
13369 if (!SWIG_IsOK(ecode1)) {
13370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13371 }
13372 arg1 = static_cast< wxFontEncoding >(val1);
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 result = wxFontMapper::GetEncodingDescription(arg1);
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 {
13380#if wxUSE_UNICODE
13381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13382#else
13383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13384#endif
13385 }
13386 return resultobj;
13387fail:
13388 return NULL;
d55e5bfc
RD
13389}
13390
13391
1bd55598
RD
13392SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj = 0;
13394 wxString *arg1 = 0 ;
13395 wxFontEncoding result;
13396 bool temp1 = false ;
13397 PyObject * obj0 = 0 ;
13398 char * kwnames[] = {
13399 (char *) "name", NULL
13400 };
13401
13402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13403 {
13404 arg1 = wxString_in_helper(obj0);
13405 if (arg1 == NULL) SWIG_fail;
13406 temp1 = true;
13407 }
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_From_int(static_cast< int >(result));
13415 {
13416 if (temp1)
13417 delete arg1;
13418 }
13419 return resultobj;
13420fail:
13421 {
13422 if (temp1)
13423 delete arg1;
13424 }
13425 return NULL;
d55e5bfc
RD
13426}
13427
13428
1bd55598
RD
13429SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13430 PyObject *resultobj = 0;
13431 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13432 wxString *arg2 = 0 ;
13433 void *argp1 = 0 ;
13434 int res1 = 0 ;
13435 bool temp2 = false ;
13436 PyObject * obj0 = 0 ;
13437 PyObject * obj1 = 0 ;
13438 char * kwnames[] = {
13439 (char *) "self",(char *) "prefix", NULL
13440 };
13441
13442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13444 if (!SWIG_IsOK(res1)) {
13445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13446 }
13447 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13448 {
13449 arg2 = wxString_in_helper(obj1);
13450 if (arg2 == NULL) SWIG_fail;
13451 temp2 = true;
13452 }
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 (arg1)->SetConfigPath((wxString const &)*arg2);
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_Py_Void();
13460 {
13461 if (temp2)
13462 delete arg2;
13463 }
13464 return resultobj;
13465fail:
13466 {
13467 if (temp2)
13468 delete arg2;
13469 }
13470 return NULL;
13471}
13472
13473
13474SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxString result;
13477
13478 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = wxFontMapper::GetDefaultConfigPath();
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 {
13486#if wxUSE_UNICODE
13487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13488#else
13489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13490#endif
13491 }
13492 return resultobj;
13493fail:
13494 return NULL;
13495}
13496
13497
13498SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13499 PyObject *resultobj = 0;
13500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13501 wxFontEncoding arg2 ;
13502 wxString const &arg3_defvalue = wxPyEmptyString ;
13503 wxString *arg3 = (wxString *) &arg3_defvalue ;
13504 bool arg4 = (bool) true ;
13505 PyObject *result = 0 ;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 int val2 ;
13509 int ecode2 = 0 ;
13510 bool temp3 = false ;
13511 bool val4 ;
13512 int ecode4 = 0 ;
13513 PyObject * obj0 = 0 ;
13514 PyObject * obj1 = 0 ;
13515 PyObject * obj2 = 0 ;
13516 PyObject * obj3 = 0 ;
13517 char * kwnames[] = {
13518 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13519 };
13520
13521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13525 }
13526 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13527 ecode2 = SWIG_AsVal_int(obj1, &val2);
13528 if (!SWIG_IsOK(ecode2)) {
13529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13530 }
13531 arg2 = static_cast< wxFontEncoding >(val2);
13532 if (obj2) {
36ed4f51 13533 {
1bd55598
RD
13534 arg3 = wxString_in_helper(obj2);
13535 if (arg3 == NULL) SWIG_fail;
13536 temp3 = true;
36ed4f51 13537 }
1bd55598
RD
13538 }
13539 if (obj3) {
13540 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13541 if (!SWIG_IsOK(ecode4)) {
13542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13543 }
13544 arg4 = static_cast< bool >(val4);
13545 }
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = result;
13553 {
13554 if (temp3)
13555 delete arg3;
13556 }
13557 return resultobj;
13558fail:
13559 {
13560 if (temp3)
13561 delete arg3;
13562 }
13563 return NULL;
13564}
13565
13566
13567SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj = 0;
13569 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13570 wxFontEncoding arg2 ;
13571 wxString const &arg3_defvalue = wxPyEmptyString ;
13572 wxString *arg3 = (wxString *) &arg3_defvalue ;
13573 bool result;
13574 void *argp1 = 0 ;
13575 int res1 = 0 ;
13576 int val2 ;
13577 int ecode2 = 0 ;
13578 bool temp3 = false ;
13579 PyObject * obj0 = 0 ;
13580 PyObject * obj1 = 0 ;
13581 PyObject * obj2 = 0 ;
13582 char * kwnames[] = {
13583 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13584 };
13585
13586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13588 if (!SWIG_IsOK(res1)) {
13589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13590 }
13591 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13592 ecode2 = SWIG_AsVal_int(obj1, &val2);
13593 if (!SWIG_IsOK(ecode2)) {
13594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13595 }
13596 arg2 = static_cast< wxFontEncoding >(val2);
13597 if (obj2) {
36ed4f51 13598 {
1bd55598
RD
13599 arg3 = wxString_in_helper(obj2);
13600 if (arg3 == NULL) SWIG_fail;
13601 temp3 = true;
36ed4f51 13602 }
1bd55598
RD
13603 }
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 {
13611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13612 }
13613 {
13614 if (temp3)
13615 delete arg3;
13616 }
13617 return resultobj;
13618fail:
13619 {
13620 if (temp3)
13621 delete arg3;
13622 }
13623 return NULL;
13624}
13625
13626
13627SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13628 PyObject *resultobj = 0;
13629 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13630 wxWindow *arg2 = (wxWindow *) 0 ;
13631 void *argp1 = 0 ;
13632 int res1 = 0 ;
13633 void *argp2 = 0 ;
13634 int res2 = 0 ;
13635 PyObject * obj0 = 0 ;
13636 PyObject * obj1 = 0 ;
13637 char * kwnames[] = {
13638 (char *) "self",(char *) "parent", NULL
13639 };
13640
13641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13643 if (!SWIG_IsOK(res1)) {
13644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13645 }
13646 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13648 if (!SWIG_IsOK(res2)) {
13649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13650 }
13651 arg2 = reinterpret_cast< wxWindow * >(argp2);
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 (arg1)->SetDialogParent(arg2);
13655 wxPyEndAllowThreads(__tstate);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 }
13658 resultobj = SWIG_Py_Void();
13659 return resultobj;
13660fail:
13661 return NULL;
13662}
13663
13664
13665SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13666 PyObject *resultobj = 0;
13667 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13668 wxString *arg2 = 0 ;
13669 void *argp1 = 0 ;
13670 int res1 = 0 ;
13671 bool temp2 = false ;
13672 PyObject * obj0 = 0 ;
13673 PyObject * obj1 = 0 ;
13674 char * kwnames[] = {
13675 (char *) "self",(char *) "title", NULL
13676 };
13677
13678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13680 if (!SWIG_IsOK(res1)) {
13681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13682 }
13683 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13684 {
13685 arg2 = wxString_in_helper(obj1);
13686 if (arg2 == NULL) SWIG_fail;
13687 temp2 = true;
13688 }
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 (arg1)->SetDialogTitle((wxString const &)*arg2);
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 resultobj = SWIG_Py_Void();
13696 {
13697 if (temp2)
13698 delete arg2;
13699 }
13700 return resultobj;
13701fail:
13702 {
13703 if (temp2)
13704 delete arg2;
13705 }
13706 return NULL;
13707}
13708
13709
13710SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13711 PyObject *obj;
13712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13713 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13714 return SWIG_Py_Void();
13715}
13716
13717SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13718 return SWIG_Python_InitShadowInstance(args);
13719}
13720
13721SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 int arg1 ;
13724 int arg2 ;
13725 int arg3 ;
13726 int arg4 ;
13727 bool arg5 = (bool) false ;
13728 wxString const &arg6_defvalue = wxPyEmptyString ;
13729 wxString *arg6 = (wxString *) &arg6_defvalue ;
13730 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13731 wxFont *result = 0 ;
13732 int val1 ;
13733 int ecode1 = 0 ;
13734 int val2 ;
13735 int ecode2 = 0 ;
13736 int val3 ;
13737 int ecode3 = 0 ;
13738 int val4 ;
13739 int ecode4 = 0 ;
13740 bool val5 ;
13741 int ecode5 = 0 ;
13742 bool temp6 = false ;
13743 int val7 ;
13744 int ecode7 = 0 ;
13745 PyObject * obj0 = 0 ;
13746 PyObject * obj1 = 0 ;
13747 PyObject * obj2 = 0 ;
13748 PyObject * obj3 = 0 ;
13749 PyObject * obj4 = 0 ;
13750 PyObject * obj5 = 0 ;
13751 PyObject * obj6 = 0 ;
13752 char * kwnames[] = {
13753 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13754 };
13755
13756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13757 ecode1 = SWIG_AsVal_int(obj0, &val1);
13758 if (!SWIG_IsOK(ecode1)) {
13759 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13760 }
13761 arg1 = static_cast< int >(val1);
13762 ecode2 = SWIG_AsVal_int(obj1, &val2);
13763 if (!SWIG_IsOK(ecode2)) {
13764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13765 }
13766 arg2 = static_cast< int >(val2);
13767 ecode3 = SWIG_AsVal_int(obj2, &val3);
13768 if (!SWIG_IsOK(ecode3)) {
13769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13770 }
13771 arg3 = static_cast< int >(val3);
13772 ecode4 = SWIG_AsVal_int(obj3, &val4);
13773 if (!SWIG_IsOK(ecode4)) {
13774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13775 }
13776 arg4 = static_cast< int >(val4);
13777 if (obj4) {
13778 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13779 if (!SWIG_IsOK(ecode5)) {
13780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13781 }
13782 arg5 = static_cast< bool >(val5);
13783 }
13784 if (obj5) {
d55e5bfc 13785 {
1bd55598
RD
13786 arg6 = wxString_in_helper(obj5);
13787 if (arg6 == NULL) SWIG_fail;
13788 temp6 = true;
d55e5bfc 13789 }
1bd55598
RD
13790 }
13791 if (obj6) {
13792 ecode7 = SWIG_AsVal_int(obj6, &val7);
13793 if (!SWIG_IsOK(ecode7)) {
13794 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13795 }
13796 arg7 = static_cast< wxFontEncoding >(val7);
13797 }
13798 {
13799 if (!wxPyCheckForApp()) SWIG_fail;
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13806 {
13807 if (temp6)
13808 delete arg6;
13809 }
13810 return resultobj;
13811fail:
13812 {
13813 if (temp6)
13814 delete arg6;
13815 }
13816 return NULL;
d55e5bfc
RD
13817}
13818
13819
1bd55598
RD
13820SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13821 PyObject *resultobj = 0;
13822 wxFont *arg1 = (wxFont *) 0 ;
13823 void *argp1 = 0 ;
13824 int res1 = 0 ;
13825 PyObject *swig_obj[1] ;
13826
13827 if (!args) SWIG_fail;
13828 swig_obj[0] = args;
13829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13830 if (!SWIG_IsOK(res1)) {
13831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13832 }
13833 arg1 = reinterpret_cast< wxFont * >(argp1);
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 delete arg1;
d55e5bfc 13837
1bd55598
RD
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_Py_Void();
13842 return resultobj;
13843fail:
13844 return NULL;
13845}
13846
13847
13848SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj = 0;
13850 wxNativeFontInfo *arg1 = 0 ;
13851 wxFont *result = 0 ;
13852 void *argp1 = 0 ;
13853 int res1 = 0 ;
13854 PyObject * obj0 = 0 ;
13855 char * kwnames[] = {
13856 (char *) "info", NULL
13857 };
13858
13859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13860 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13861 if (!SWIG_IsOK(res1)) {
13862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13863 }
13864 if (!argp1) {
13865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13866 }
13867 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13868 {
13869 if (!wxPyCheckForApp()) SWIG_fail;
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13876 return resultobj;
13877fail:
13878 return NULL;
d55e5bfc
RD
13879}
13880
13881
1bd55598
RD
13882SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj = 0;
13884 wxString *arg1 = 0 ;
13885 wxFont *result = 0 ;
13886 bool temp1 = false ;
13887 PyObject * obj0 = 0 ;
13888 char * kwnames[] = {
13889 (char *) "info", NULL
13890 };
13891
13892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13893 {
13894 arg1 = wxString_in_helper(obj0);
13895 if (arg1 == NULL) SWIG_fail;
13896 temp1 = true;
13897 }
13898 {
13899 if (!wxPyCheckForApp()) SWIG_fail;
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13906 {
13907 if (temp1)
13908 delete arg1;
13909 }
13910 return resultobj;
13911fail:
13912 {
13913 if (temp1)
13914 delete arg1;
13915 }
13916 return NULL;
13917}
13918
13919
13920SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13921 PyObject *resultobj = 0;
13922 int arg1 ;
13923 wxFontFamily arg2 ;
13924 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13925 wxString const &arg4_defvalue = wxPyEmptyString ;
13926 wxString *arg4 = (wxString *) &arg4_defvalue ;
13927 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13928 wxFont *result = 0 ;
13929 int val1 ;
13930 int ecode1 = 0 ;
13931 int val2 ;
13932 int ecode2 = 0 ;
13933 int val3 ;
13934 int ecode3 = 0 ;
13935 bool temp4 = false ;
13936 int val5 ;
13937 int ecode5 = 0 ;
13938 PyObject * obj0 = 0 ;
13939 PyObject * obj1 = 0 ;
13940 PyObject * obj2 = 0 ;
13941 PyObject * obj3 = 0 ;
13942 PyObject * obj4 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13948 ecode1 = SWIG_AsVal_int(obj0, &val1);
13949 if (!SWIG_IsOK(ecode1)) {
13950 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13951 }
13952 arg1 = static_cast< int >(val1);
13953 ecode2 = SWIG_AsVal_int(obj1, &val2);
13954 if (!SWIG_IsOK(ecode2)) {
13955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13956 }
13957 arg2 = static_cast< wxFontFamily >(val2);
13958 if (obj2) {
13959 ecode3 = SWIG_AsVal_int(obj2, &val3);
13960 if (!SWIG_IsOK(ecode3)) {
13961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13962 }
13963 arg3 = static_cast< int >(val3);
13964 }
13965 if (obj3) {
36ed4f51 13966 {
1bd55598
RD
13967 arg4 = wxString_in_helper(obj3);
13968 if (arg4 == NULL) SWIG_fail;
13969 temp4 = true;
36ed4f51 13970 }
1bd55598
RD
13971 }
13972 if (obj4) {
13973 ecode5 = SWIG_AsVal_int(obj4, &val5);
13974 if (!SWIG_IsOK(ecode5)) {
13975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13976 }
13977 arg5 = static_cast< wxFontEncoding >(val5);
13978 }
13979 {
13980 if (!wxPyCheckForApp()) SWIG_fail;
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13987 {
13988 if (temp4)
13989 delete arg4;
13990 }
13991 return resultobj;
13992fail:
13993 {
13994 if (temp4)
13995 delete arg4;
13996 }
13997 return NULL;
13998}
13999
14000
14001SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14002 PyObject *resultobj = 0;
14003 wxSize *arg1 = 0 ;
14004 int arg2 ;
14005 int arg3 ;
14006 int arg4 ;
14007 bool arg5 = (bool) false ;
14008 wxString const &arg6_defvalue = wxEmptyString ;
14009 wxString *arg6 = (wxString *) &arg6_defvalue ;
14010 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14011 wxFont *result = 0 ;
14012 wxSize temp1 ;
14013 int val2 ;
14014 int ecode2 = 0 ;
14015 int val3 ;
14016 int ecode3 = 0 ;
14017 int val4 ;
14018 int ecode4 = 0 ;
14019 bool val5 ;
14020 int ecode5 = 0 ;
14021 bool temp6 = false ;
14022 int val7 ;
14023 int ecode7 = 0 ;
14024 PyObject * obj0 = 0 ;
14025 PyObject * obj1 = 0 ;
14026 PyObject * obj2 = 0 ;
14027 PyObject * obj3 = 0 ;
14028 PyObject * obj4 = 0 ;
14029 PyObject * obj5 = 0 ;
14030 PyObject * obj6 = 0 ;
14031 char * kwnames[] = {
14032 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14033 };
14034
14035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14036 {
14037 arg1 = &temp1;
14038 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14039 }
14040 ecode2 = SWIG_AsVal_int(obj1, &val2);
14041 if (!SWIG_IsOK(ecode2)) {
14042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14043 }
14044 arg2 = static_cast< int >(val2);
14045 ecode3 = SWIG_AsVal_int(obj2, &val3);
14046 if (!SWIG_IsOK(ecode3)) {
14047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14048 }
14049 arg3 = static_cast< int >(val3);
14050 ecode4 = SWIG_AsVal_int(obj3, &val4);
14051 if (!SWIG_IsOK(ecode4)) {
14052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14053 }
14054 arg4 = static_cast< int >(val4);
14055 if (obj4) {
14056 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14057 if (!SWIG_IsOK(ecode5)) {
14058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14059 }
14060 arg5 = static_cast< bool >(val5);
14061 }
14062 if (obj5) {
d55e5bfc 14063 {
1bd55598
RD
14064 arg6 = wxString_in_helper(obj5);
14065 if (arg6 == NULL) SWIG_fail;
14066 temp6 = true;
d55e5bfc 14067 }
1bd55598
RD
14068 }
14069 if (obj6) {
14070 ecode7 = SWIG_AsVal_int(obj6, &val7);
14071 if (!SWIG_IsOK(ecode7)) {
14072 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14073 }
14074 arg7 = static_cast< wxFontEncoding >(val7);
14075 }
14076 {
14077 if (!wxPyCheckForApp()) SWIG_fail;
14078 PyThreadState* __tstate = wxPyBeginAllowThreads();
14079 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
14083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14084 {
14085 if (temp6)
14086 delete arg6;
14087 }
14088 return resultobj;
14089fail:
14090 {
14091 if (temp6)
14092 delete arg6;
14093 }
14094 return NULL;
14095}
14096
14097
14098SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14099 PyObject *resultobj = 0;
14100 wxSize *arg1 = 0 ;
14101 wxFontFamily arg2 ;
14102 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14103 wxString const &arg4_defvalue = wxEmptyString ;
14104 wxString *arg4 = (wxString *) &arg4_defvalue ;
14105 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14106 wxFont *result = 0 ;
14107 wxSize temp1 ;
14108 int val2 ;
14109 int ecode2 = 0 ;
14110 int val3 ;
14111 int ecode3 = 0 ;
14112 bool temp4 = false ;
14113 int val5 ;
14114 int ecode5 = 0 ;
14115 PyObject * obj0 = 0 ;
14116 PyObject * obj1 = 0 ;
14117 PyObject * obj2 = 0 ;
14118 PyObject * obj3 = 0 ;
14119 PyObject * obj4 = 0 ;
14120 char * kwnames[] = {
14121 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14122 };
14123
14124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14125 {
14126 arg1 = &temp1;
14127 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14128 }
14129 ecode2 = SWIG_AsVal_int(obj1, &val2);
14130 if (!SWIG_IsOK(ecode2)) {
14131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14132 }
14133 arg2 = static_cast< wxFontFamily >(val2);
14134 if (obj2) {
14135 ecode3 = SWIG_AsVal_int(obj2, &val3);
14136 if (!SWIG_IsOK(ecode3)) {
14137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14138 }
14139 arg3 = static_cast< int >(val3);
14140 }
14141 if (obj3) {
36ed4f51 14142 {
1bd55598
RD
14143 arg4 = wxString_in_helper(obj3);
14144 if (arg4 == NULL) SWIG_fail;
14145 temp4 = true;
36ed4f51 14146 }
1bd55598
RD
14147 }
14148 if (obj4) {
14149 ecode5 = SWIG_AsVal_int(obj4, &val5);
14150 if (!SWIG_IsOK(ecode5)) {
14151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14152 }
14153 arg5 = static_cast< wxFontEncoding >(val5);
14154 }
14155 {
14156 if (!wxPyCheckForApp()) SWIG_fail;
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14159 wxPyEndAllowThreads(__tstate);
14160 if (PyErr_Occurred()) SWIG_fail;
14161 }
14162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14163 {
14164 if (temp4)
14165 delete arg4;
14166 }
14167 return resultobj;
14168fail:
14169 {
14170 if (temp4)
14171 delete arg4;
14172 }
14173 return NULL;
d55e5bfc
RD
14174}
14175
14176
b39fe951 14177SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14178 PyObject *resultobj = 0;
14179 wxFont *arg1 = (wxFont *) 0 ;
14180 bool result;
14181 void *argp1 = 0 ;
14182 int res1 = 0 ;
14183 PyObject *swig_obj[1] ;
14184
14185 if (!args) SWIG_fail;
14186 swig_obj[0] = args;
14187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14188 if (!SWIG_IsOK(res1)) {
b39fe951 14189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14190 }
14191 arg1 = reinterpret_cast< wxFont * >(argp1);
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14194 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 {
14199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14200 }
14201 return resultobj;
14202fail:
14203 return NULL;
14204}
14205
14206
14207SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14208 PyObject *resultobj = 0;
14209 wxFont *arg1 = (wxFont *) 0 ;
14210 wxFont *arg2 = (wxFont *) 0 ;
14211 bool result;
14212 void *argp1 = 0 ;
14213 int res1 = 0 ;
14214 void *argp2 = 0 ;
14215 int res2 = 0 ;
14216 PyObject * obj0 = 0 ;
14217 PyObject * obj1 = 0 ;
14218 char * kwnames[] = {
14219 (char *) "self",(char *) "other", NULL
14220 };
14221
14222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14224 if (!SWIG_IsOK(res1)) {
14225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14226 }
14227 arg1 = reinterpret_cast< wxFont * >(argp1);
14228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14229 if (!SWIG_IsOK(res2)) {
14230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14231 }
14232 arg2 = reinterpret_cast< wxFont * >(argp2);
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 {
14240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14241 }
14242 return resultobj;
14243fail:
14244 return NULL;
14245}
14246
14247
14248SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj = 0;
14250 wxFont *arg1 = (wxFont *) 0 ;
14251 wxFont *arg2 = (wxFont *) 0 ;
14252 bool result;
14253 void *argp1 = 0 ;
14254 int res1 = 0 ;
14255 void *argp2 = 0 ;
14256 int res2 = 0 ;
14257 PyObject * obj0 = 0 ;
14258 PyObject * obj1 = 0 ;
14259 char * kwnames[] = {
14260 (char *) "self",(char *) "other", NULL
14261 };
14262
14263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14265 if (!SWIG_IsOK(res1)) {
14266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14267 }
14268 arg1 = reinterpret_cast< wxFont * >(argp1);
14269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14270 if (!SWIG_IsOK(res2)) {
14271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14272 }
14273 arg2 = reinterpret_cast< wxFont * >(argp2);
14274 {
14275 PyThreadState* __tstate = wxPyBeginAllowThreads();
14276 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 {
14281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14282 }
14283 return resultobj;
14284fail:
14285 return NULL;
d55e5bfc
RD
14286}
14287
14288
1bd55598
RD
14289SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14290 PyObject *resultobj = 0;
14291 wxFont *arg1 = (wxFont *) 0 ;
14292 int result;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 PyObject *swig_obj[1] ;
14296
14297 if (!args) SWIG_fail;
14298 swig_obj[0] = args;
14299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14300 if (!SWIG_IsOK(res1)) {
14301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14302 }
14303 arg1 = reinterpret_cast< wxFont * >(argp1);
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = (int)((wxFont const *)arg1)->GetPointSize();
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 resultobj = SWIG_From_int(static_cast< int >(result));
14311 return resultobj;
14312fail:
14313 return NULL;
d55e5bfc
RD
14314}
14315
14316
1bd55598
RD
14317SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14318 PyObject *resultobj = 0;
14319 wxFont *arg1 = (wxFont *) 0 ;
14320 wxSize result;
14321 void *argp1 = 0 ;
14322 int res1 = 0 ;
14323 PyObject *swig_obj[1] ;
14324
14325 if (!args) SWIG_fail;
14326 swig_obj[0] = args;
14327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14328 if (!SWIG_IsOK(res1)) {
14329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14330 }
14331 arg1 = reinterpret_cast< wxFont * >(argp1);
14332 {
14333 PyThreadState* __tstate = wxPyBeginAllowThreads();
14334 result = ((wxFont const *)arg1)->GetPixelSize();
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14339 return resultobj;
14340fail:
14341 return NULL;
d55e5bfc
RD
14342}
14343
14344
1bd55598
RD
14345SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14346 PyObject *resultobj = 0;
14347 wxFont *arg1 = (wxFont *) 0 ;
14348 bool result;
14349 void *argp1 = 0 ;
14350 int res1 = 0 ;
14351 PyObject *swig_obj[1] ;
14352
14353 if (!args) SWIG_fail;
14354 swig_obj[0] = args;
14355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFont * >(argp1);
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14368 }
14369 return resultobj;
14370fail:
14371 return NULL;
d55e5bfc
RD
14372}
14373
14374
1bd55598
RD
14375SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14376 PyObject *resultobj = 0;
14377 wxFont *arg1 = (wxFont *) 0 ;
14378 int result;
14379 void *argp1 = 0 ;
14380 int res1 = 0 ;
14381 PyObject *swig_obj[1] ;
14382
14383 if (!args) SWIG_fail;
14384 swig_obj[0] = args;
14385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14386 if (!SWIG_IsOK(res1)) {
14387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14388 }
14389 arg1 = reinterpret_cast< wxFont * >(argp1);
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 result = (int)((wxFont const *)arg1)->GetFamily();
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 resultobj = SWIG_From_int(static_cast< int >(result));
14397 return resultobj;
14398fail:
14399 return NULL;
d55e5bfc
RD
14400}
14401
14402
1bd55598
RD
14403SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14404 PyObject *resultobj = 0;
14405 wxFont *arg1 = (wxFont *) 0 ;
14406 int result;
14407 void *argp1 = 0 ;
14408 int res1 = 0 ;
14409 PyObject *swig_obj[1] ;
14410
14411 if (!args) SWIG_fail;
14412 swig_obj[0] = args;
14413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14414 if (!SWIG_IsOK(res1)) {
14415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14416 }
14417 arg1 = reinterpret_cast< wxFont * >(argp1);
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 result = (int)((wxFont const *)arg1)->GetStyle();
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 resultobj = SWIG_From_int(static_cast< int >(result));
14425 return resultobj;
14426fail:
14427 return NULL;
d55e5bfc
RD
14428}
14429
14430
1bd55598
RD
14431SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14432 PyObject *resultobj = 0;
14433 wxFont *arg1 = (wxFont *) 0 ;
14434 int result;
14435 void *argp1 = 0 ;
14436 int res1 = 0 ;
14437 PyObject *swig_obj[1] ;
14438
14439 if (!args) SWIG_fail;
14440 swig_obj[0] = args;
14441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14442 if (!SWIG_IsOK(res1)) {
14443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14444 }
14445 arg1 = reinterpret_cast< wxFont * >(argp1);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (int)((wxFont const *)arg1)->GetWeight();
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 resultobj = SWIG_From_int(static_cast< int >(result));
14453 return resultobj;
14454fail:
14455 return NULL;
d55e5bfc
RD
14456}
14457
14458
1bd55598
RD
14459SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14460 PyObject *resultobj = 0;
14461 wxFont *arg1 = (wxFont *) 0 ;
14462 bool result;
14463 void *argp1 = 0 ;
14464 int res1 = 0 ;
14465 PyObject *swig_obj[1] ;
14466
14467 if (!args) SWIG_fail;
14468 swig_obj[0] = args;
14469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14470 if (!SWIG_IsOK(res1)) {
14471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14472 }
14473 arg1 = reinterpret_cast< wxFont * >(argp1);
14474 {
14475 PyThreadState* __tstate = wxPyBeginAllowThreads();
14476 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 {
14481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14482 }
14483 return resultobj;
14484fail:
14485 return NULL;
d55e5bfc
RD
14486}
14487
14488
1bd55598
RD
14489SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14490 PyObject *resultobj = 0;
14491 wxFont *arg1 = (wxFont *) 0 ;
14492 wxString result;
14493 void *argp1 = 0 ;
14494 int res1 = 0 ;
14495 PyObject *swig_obj[1] ;
14496
14497 if (!args) SWIG_fail;
14498 swig_obj[0] = args;
14499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14500 if (!SWIG_IsOK(res1)) {
14501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14502 }
14503 arg1 = reinterpret_cast< wxFont * >(argp1);
14504 {
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 result = ((wxFont const *)arg1)->GetFaceName();
14507 wxPyEndAllowThreads(__tstate);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 {
14511#if wxUSE_UNICODE
14512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14513#else
14514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14515#endif
14516 }
14517 return resultobj;
14518fail:
14519 return NULL;
d55e5bfc
RD
14520}
14521
14522
1bd55598
RD
14523SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14524 PyObject *resultobj = 0;
14525 wxFont *arg1 = (wxFont *) 0 ;
14526 wxFontEncoding result;
14527 void *argp1 = 0 ;
14528 int res1 = 0 ;
14529 PyObject *swig_obj[1] ;
14530
14531 if (!args) SWIG_fail;
14532 swig_obj[0] = args;
14533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14534 if (!SWIG_IsOK(res1)) {
14535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14536 }
14537 arg1 = reinterpret_cast< wxFont * >(argp1);
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 resultobj = SWIG_From_int(static_cast< int >(result));
14545 return resultobj;
14546fail:
14547 return NULL;
d55e5bfc
RD
14548}
14549
14550
1bd55598
RD
14551SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14552 PyObject *resultobj = 0;
14553 wxFont *arg1 = (wxFont *) 0 ;
14554 wxNativeFontInfo *result = 0 ;
14555 void *argp1 = 0 ;
14556 int res1 = 0 ;
14557 PyObject *swig_obj[1] ;
14558
14559 if (!args) SWIG_fail;
14560 swig_obj[0] = args;
14561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14562 if (!SWIG_IsOK(res1)) {
14563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14564 }
14565 arg1 = reinterpret_cast< wxFont * >(argp1);
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14573 return resultobj;
14574fail:
14575 return NULL;
d55e5bfc
RD
14576}
14577
14578
1bd55598
RD
14579SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14580 PyObject *resultobj = 0;
14581 wxFont *arg1 = (wxFont *) 0 ;
14582 bool result;
14583 void *argp1 = 0 ;
14584 int res1 = 0 ;
14585 PyObject *swig_obj[1] ;
14586
14587 if (!args) SWIG_fail;
14588 swig_obj[0] = args;
14589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14590 if (!SWIG_IsOK(res1)) {
14591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14592 }
14593 arg1 = reinterpret_cast< wxFont * >(argp1);
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 {
14601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14602 }
14603 return resultobj;
14604fail:
14605 return NULL;
d55e5bfc
RD
14606}
14607
14608
1bd55598
RD
14609SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14610 PyObject *resultobj = 0;
14611 wxFont *arg1 = (wxFont *) 0 ;
14612 wxString result;
14613 void *argp1 = 0 ;
14614 int res1 = 0 ;
14615 PyObject *swig_obj[1] ;
14616
14617 if (!args) SWIG_fail;
14618 swig_obj[0] = args;
14619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14620 if (!SWIG_IsOK(res1)) {
14621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14622 }
14623 arg1 = reinterpret_cast< wxFont * >(argp1);
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 {
14631#if wxUSE_UNICODE
14632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14633#else
14634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14635#endif
14636 }
14637 return resultobj;
14638fail:
14639 return NULL;
d55e5bfc
RD
14640}
14641
14642
1bd55598
RD
14643SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14644 PyObject *resultobj = 0;
14645 wxFont *arg1 = (wxFont *) 0 ;
14646 wxString result;
14647 void *argp1 = 0 ;
14648 int res1 = 0 ;
14649 PyObject *swig_obj[1] ;
14650
14651 if (!args) SWIG_fail;
14652 swig_obj[0] = args;
14653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14654 if (!SWIG_IsOK(res1)) {
14655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14656 }
14657 arg1 = reinterpret_cast< wxFont * >(argp1);
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 {
14665#if wxUSE_UNICODE
14666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14667#else
14668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14669#endif
14670 }
14671 return resultobj;
14672fail:
14673 return NULL;
14674}
14675
14676
14677SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14678 PyObject *resultobj = 0;
14679 wxFont *arg1 = (wxFont *) 0 ;
14680 int arg2 ;
14681 void *argp1 = 0 ;
14682 int res1 = 0 ;
14683 int val2 ;
14684 int ecode2 = 0 ;
14685 PyObject * obj0 = 0 ;
14686 PyObject * obj1 = 0 ;
14687 char * kwnames[] = {
14688 (char *) "self",(char *) "pointSize", NULL
14689 };
14690
14691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14693 if (!SWIG_IsOK(res1)) {
14694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14695 }
14696 arg1 = reinterpret_cast< wxFont * >(argp1);
14697 ecode2 = SWIG_AsVal_int(obj1, &val2);
14698 if (!SWIG_IsOK(ecode2)) {
14699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14700 }
14701 arg2 = static_cast< int >(val2);
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 (arg1)->SetPointSize(arg2);
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_Py_Void();
14709 return resultobj;
14710fail:
14711 return NULL;
14712}
14713
14714
14715SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj = 0;
14717 wxFont *arg1 = (wxFont *) 0 ;
14718 wxSize *arg2 = 0 ;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 wxSize temp2 ;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj1 = 0 ;
14724 char * kwnames[] = {
14725 (char *) "self",(char *) "pixelSize", NULL
14726 };
14727
14728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14732 }
14733 arg1 = reinterpret_cast< wxFont * >(argp1);
14734 {
14735 arg2 = &temp2;
14736 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14737 }
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 (arg1)->SetPixelSize((wxSize const &)*arg2);
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 resultobj = SWIG_Py_Void();
14745 return resultobj;
14746fail:
14747 return NULL;
14748}
14749
14750
14751SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj = 0;
14753 wxFont *arg1 = (wxFont *) 0 ;
14754 int arg2 ;
14755 void *argp1 = 0 ;
14756 int res1 = 0 ;
14757 int val2 ;
14758 int ecode2 = 0 ;
14759 PyObject * obj0 = 0 ;
14760 PyObject * obj1 = 0 ;
14761 char * kwnames[] = {
14762 (char *) "self",(char *) "family", NULL
14763 };
14764
14765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14767 if (!SWIG_IsOK(res1)) {
14768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14769 }
14770 arg1 = reinterpret_cast< wxFont * >(argp1);
14771 ecode2 = SWIG_AsVal_int(obj1, &val2);
14772 if (!SWIG_IsOK(ecode2)) {
14773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14774 }
14775 arg2 = static_cast< int >(val2);
14776 {
14777 PyThreadState* __tstate = wxPyBeginAllowThreads();
14778 (arg1)->SetFamily(arg2);
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_Py_Void();
14783 return resultobj;
14784fail:
14785 return NULL;
14786}
14787
14788
14789SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj = 0;
14791 wxFont *arg1 = (wxFont *) 0 ;
14792 int arg2 ;
14793 void *argp1 = 0 ;
14794 int res1 = 0 ;
14795 int val2 ;
14796 int ecode2 = 0 ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 char * kwnames[] = {
14800 (char *) "self",(char *) "style", NULL
14801 };
14802
14803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14805 if (!SWIG_IsOK(res1)) {
14806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14807 }
14808 arg1 = reinterpret_cast< wxFont * >(argp1);
14809 ecode2 = SWIG_AsVal_int(obj1, &val2);
14810 if (!SWIG_IsOK(ecode2)) {
14811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14812 }
14813 arg2 = static_cast< int >(val2);
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 (arg1)->SetStyle(arg2);
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = SWIG_Py_Void();
14821 return resultobj;
14822fail:
14823 return NULL;
14824}
14825
14826
14827SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14828 PyObject *resultobj = 0;
14829 wxFont *arg1 = (wxFont *) 0 ;
14830 int arg2 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "self",(char *) "weight", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14845 }
14846 arg1 = reinterpret_cast< wxFont * >(argp1);
14847 ecode2 = SWIG_AsVal_int(obj1, &val2);
14848 if (!SWIG_IsOK(ecode2)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14850 }
14851 arg2 = static_cast< int >(val2);
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 (arg1)->SetWeight(arg2);
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_Py_Void();
14859 return resultobj;
14860fail:
14861 return NULL;
14862}
14863
14864
14865SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxFont *arg1 = (wxFont *) 0 ;
14868 wxString *arg2 = 0 ;
704eda0c 14869 bool result;
1bd55598
RD
14870 void *argp1 = 0 ;
14871 int res1 = 0 ;
14872 bool temp2 = false ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "self",(char *) "faceName", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14883 }
14884 arg1 = reinterpret_cast< wxFont * >(argp1);
14885 {
14886 arg2 = wxString_in_helper(obj1);
14887 if (arg2 == NULL) SWIG_fail;
14888 temp2 = true;
14889 }
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14892 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
704eda0c
RD
14896 {
14897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14898 }
1bd55598
RD
14899 {
14900 if (temp2)
14901 delete arg2;
14902 }
14903 return resultobj;
14904fail:
14905 {
14906 if (temp2)
14907 delete arg2;
14908 }
14909 return NULL;
14910}
14911
14912
14913SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj = 0;
14915 wxFont *arg1 = (wxFont *) 0 ;
14916 bool arg2 ;
14917 void *argp1 = 0 ;
14918 int res1 = 0 ;
14919 bool val2 ;
14920 int ecode2 = 0 ;
14921 PyObject * obj0 = 0 ;
14922 PyObject * obj1 = 0 ;
14923 char * kwnames[] = {
14924 (char *) "self",(char *) "underlined", NULL
14925 };
14926
14927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14929 if (!SWIG_IsOK(res1)) {
14930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14931 }
14932 arg1 = reinterpret_cast< wxFont * >(argp1);
14933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14934 if (!SWIG_IsOK(ecode2)) {
14935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14936 }
14937 arg2 = static_cast< bool >(val2);
14938 {
14939 PyThreadState* __tstate = wxPyBeginAllowThreads();
14940 (arg1)->SetUnderlined(arg2);
14941 wxPyEndAllowThreads(__tstate);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 resultobj = SWIG_Py_Void();
14945 return resultobj;
14946fail:
14947 return NULL;
14948}
14949
14950
14951SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj = 0;
14953 wxFont *arg1 = (wxFont *) 0 ;
14954 wxFontEncoding arg2 ;
14955 void *argp1 = 0 ;
14956 int res1 = 0 ;
14957 int val2 ;
14958 int ecode2 = 0 ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "encoding", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14969 }
14970 arg1 = reinterpret_cast< wxFont * >(argp1);
14971 ecode2 = SWIG_AsVal_int(obj1, &val2);
14972 if (!SWIG_IsOK(ecode2)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14974 }
14975 arg2 = static_cast< wxFontEncoding >(val2);
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 (arg1)->SetEncoding(arg2);
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 resultobj = SWIG_Py_Void();
14983 return resultobj;
14984fail:
14985 return NULL;
14986}
14987
14988
14989SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj = 0;
14991 wxFont *arg1 = (wxFont *) 0 ;
14992 wxNativeFontInfo *arg2 = 0 ;
14993 void *argp1 = 0 ;
14994 int res1 = 0 ;
14995 void *argp2 = 0 ;
14996 int res2 = 0 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char * kwnames[] = {
15000 (char *) "self",(char *) "info", NULL
15001 };
15002
15003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15005 if (!SWIG_IsOK(res1)) {
15006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15007 }
15008 arg1 = reinterpret_cast< wxFont * >(argp1);
15009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15010 if (!SWIG_IsOK(res2)) {
15011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15012 }
15013 if (!argp2) {
15014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15015 }
15016 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 resultobj = SWIG_Py_Void();
15024 return resultobj;
15025fail:
15026 return NULL;
15027}
15028
15029
15030SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15031 PyObject *resultobj = 0;
15032 wxFont *arg1 = (wxFont *) 0 ;
15033 wxString *arg2 = 0 ;
704eda0c 15034 bool result;
1bd55598
RD
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 bool temp2 = false ;
15038 PyObject * obj0 = 0 ;
15039 PyObject * obj1 = 0 ;
15040 char * kwnames[] = {
15041 (char *) "self",(char *) "info", NULL
15042 };
15043
15044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15046 if (!SWIG_IsOK(res1)) {
15047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15048 }
15049 arg1 = reinterpret_cast< wxFont * >(argp1);
15050 {
15051 arg2 = wxString_in_helper(obj1);
15052 if (arg2 == NULL) SWIG_fail;
15053 temp2 = true;
15054 }
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15057 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
704eda0c
RD
15061 {
15062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15063 }
1bd55598
RD
15064 {
15065 if (temp2)
15066 delete arg2;
15067 }
15068 return resultobj;
15069fail:
15070 {
15071 if (temp2)
15072 delete arg2;
15073 }
15074 return NULL;
d55e5bfc
RD
15075}
15076
15077
1bd55598
RD
15078SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj = 0;
15080 wxFont *arg1 = (wxFont *) 0 ;
15081 wxString *arg2 = 0 ;
704eda0c 15082 bool result;
1bd55598
RD
15083 void *argp1 = 0 ;
15084 int res1 = 0 ;
15085 bool temp2 = false ;
15086 PyObject * obj0 = 0 ;
15087 PyObject * obj1 = 0 ;
15088 char * kwnames[] = {
15089 (char *) "self",(char *) "info", NULL
15090 };
15091
15092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15096 }
15097 arg1 = reinterpret_cast< wxFont * >(argp1);
15098 {
15099 arg2 = wxString_in_helper(obj1);
15100 if (arg2 == NULL) SWIG_fail;
15101 temp2 = true;
15102 }
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15105 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
704eda0c
RD
15109 {
15110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15111 }
1bd55598
RD
15112 {
15113 if (temp2)
15114 delete arg2;
15115 }
15116 return resultobj;
15117fail:
15118 {
15119 if (temp2)
15120 delete arg2;
15121 }
15122 return NULL;
d55e5bfc
RD
15123}
15124
15125
1bd55598
RD
15126SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15127 PyObject *resultobj = 0;
15128 wxFont *arg1 = (wxFont *) 0 ;
15129 wxString result;
15130 void *argp1 = 0 ;
15131 int res1 = 0 ;
15132 PyObject *swig_obj[1] ;
15133
15134 if (!args) SWIG_fail;
15135 swig_obj[0] = args;
15136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15137 if (!SWIG_IsOK(res1)) {
15138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15139 }
15140 arg1 = reinterpret_cast< wxFont * >(argp1);
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 result = ((wxFont const *)arg1)->GetFamilyString();
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 {
15148#if wxUSE_UNICODE
15149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15150#else
15151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15152#endif
15153 }
15154 return resultobj;
15155fail:
15156 return NULL;
d55e5bfc
RD
15157}
15158
15159
1bd55598
RD
15160SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15161 PyObject *resultobj = 0;
15162 wxFont *arg1 = (wxFont *) 0 ;
15163 wxString result;
15164 void *argp1 = 0 ;
15165 int res1 = 0 ;
15166 PyObject *swig_obj[1] ;
15167
15168 if (!args) SWIG_fail;
15169 swig_obj[0] = args;
15170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15171 if (!SWIG_IsOK(res1)) {
15172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15173 }
15174 arg1 = reinterpret_cast< wxFont * >(argp1);
15175 {
15176 PyThreadState* __tstate = wxPyBeginAllowThreads();
15177 result = ((wxFont const *)arg1)->GetStyleString();
15178 wxPyEndAllowThreads(__tstate);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 {
15182#if wxUSE_UNICODE
15183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15184#else
15185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15186#endif
15187 }
15188 return resultobj;
15189fail:
15190 return NULL;
d55e5bfc
RD
15191}
15192
15193
1bd55598
RD
15194SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15195 PyObject *resultobj = 0;
15196 wxFont *arg1 = (wxFont *) 0 ;
15197 wxString result;
15198 void *argp1 = 0 ;
15199 int res1 = 0 ;
15200 PyObject *swig_obj[1] ;
15201
15202 if (!args) SWIG_fail;
15203 swig_obj[0] = args;
15204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15205 if (!SWIG_IsOK(res1)) {
15206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15207 }
15208 arg1 = reinterpret_cast< wxFont * >(argp1);
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = ((wxFont const *)arg1)->GetWeightString();
15212 wxPyEndAllowThreads(__tstate);
15213 if (PyErr_Occurred()) SWIG_fail;
15214 }
15215 {
15216#if wxUSE_UNICODE
15217 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15218#else
15219 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15220#endif
15221 }
15222 return resultobj;
15223fail:
15224 return NULL;
15225}
15226
15227
15228SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15229 PyObject *resultobj = 0;
15230 wxFont *arg1 = (wxFont *) 0 ;
15231 bool arg2 = (bool) true ;
15232 void *argp1 = 0 ;
15233 int res1 = 0 ;
15234 bool val2 ;
15235 int ecode2 = 0 ;
15236 PyObject * obj0 = 0 ;
15237 PyObject * obj1 = 0 ;
15238 char * kwnames[] = {
15239 (char *) "self",(char *) "no", NULL
15240 };
15241
15242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15244 if (!SWIG_IsOK(res1)) {
15245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15246 }
15247 arg1 = reinterpret_cast< wxFont * >(argp1);
15248 if (obj1) {
15249 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15250 if (!SWIG_IsOK(ecode2)) {
15251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15252 }
15253 arg2 = static_cast< bool >(val2);
15254 }
15255 {
15256 PyThreadState* __tstate = wxPyBeginAllowThreads();
15257 (arg1)->SetNoAntiAliasing(arg2);
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = SWIG_Py_Void();
15262 return resultobj;
15263fail:
15264 return NULL;
d55e5bfc
RD
15265}
15266
15267
1bd55598
RD
15268SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
15270 wxFont *arg1 = (wxFont *) 0 ;
15271 bool result;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 PyObject *swig_obj[1] ;
15275
15276 if (!args) SWIG_fail;
15277 swig_obj[0] = args;
15278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15279 if (!SWIG_IsOK(res1)) {
15280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15281 }
15282 arg1 = reinterpret_cast< wxFont * >(argp1);
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 {
15290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15291 }
15292 return resultobj;
15293fail:
15294 return NULL;
d55e5bfc
RD
15295}
15296
15297
1bd55598
RD
15298SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15299 PyObject *resultobj = 0;
15300 wxFontEncoding result;
15301
15302 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15303 {
15304 if (!wxPyCheckForApp()) SWIG_fail;
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15307 wxPyEndAllowThreads(__tstate);
15308 if (PyErr_Occurred()) SWIG_fail;
15309 }
15310 resultobj = SWIG_From_int(static_cast< int >(result));
15311 return resultobj;
15312fail:
15313 return NULL;
d55e5bfc
RD
15314}
15315
15316
1bd55598
RD
15317SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15318 PyObject *resultobj = 0;
15319 wxFontEncoding arg1 ;
15320 int val1 ;
15321 int ecode1 = 0 ;
15322 PyObject * obj0 = 0 ;
15323 char * kwnames[] = {
15324 (char *) "encoding", NULL
15325 };
15326
15327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15328 ecode1 = SWIG_AsVal_int(obj0, &val1);
15329 if (!SWIG_IsOK(ecode1)) {
15330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15331 }
15332 arg1 = static_cast< wxFontEncoding >(val1);
15333 {
15334 if (!wxPyCheckForApp()) SWIG_fail;
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 wxFont::SetDefaultEncoding(arg1);
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = SWIG_Py_Void();
15341 return resultobj;
15342fail:
15343 return NULL;
d55e5bfc
RD
15344}
15345
15346
1bd55598
RD
15347SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15348 PyObject *obj;
15349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15350 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15351 return SWIG_Py_Void();
d55e5bfc 15352}
d55e5bfc 15353
1bd55598
RD
15354SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15356}
15357
1bd55598
RD
15358SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15359 PyObject *resultobj = 0;
15360 wxPyFontEnumerator *result = 0 ;
15361
15362 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15363 {
15364 if (!wxPyCheckForApp()) SWIG_fail;
15365 PyThreadState* __tstate = wxPyBeginAllowThreads();
15366 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15371 return resultobj;
15372fail:
15373 return NULL;
d55e5bfc
RD
15374}
15375
15376
1bd55598
RD
15377SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15378 PyObject *resultobj = 0;
15379 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15380 void *argp1 = 0 ;
15381 int res1 = 0 ;
15382 PyObject *swig_obj[1] ;
15383
15384 if (!args) SWIG_fail;
15385 swig_obj[0] = args;
15386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15387 if (!SWIG_IsOK(res1)) {
15388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15389 }
15390 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 delete arg1;
d55e5bfc 15394
1bd55598
RD
15395 wxPyEndAllowThreads(__tstate);
15396 if (PyErr_Occurred()) SWIG_fail;
15397 }
15398 resultobj = SWIG_Py_Void();
15399 return resultobj;
15400fail:
15401 return NULL;
15402}
15403
15404
15405SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15406 PyObject *resultobj = 0;
15407 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15408 PyObject *arg2 = (PyObject *) 0 ;
15409 PyObject *arg3 = (PyObject *) 0 ;
15410 bool arg4 ;
15411 void *argp1 = 0 ;
15412 int res1 = 0 ;
15413 bool val4 ;
15414 int ecode4 = 0 ;
15415 PyObject * obj0 = 0 ;
15416 PyObject * obj1 = 0 ;
15417 PyObject * obj2 = 0 ;
15418 PyObject * obj3 = 0 ;
15419 char * kwnames[] = {
15420 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15421 };
15422
15423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15427 }
15428 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15429 arg2 = obj1;
15430 arg3 = obj2;
15431 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15432 if (!SWIG_IsOK(ecode4)) {
15433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15434 }
15435 arg4 = static_cast< bool >(val4);
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 resultobj = SWIG_Py_Void();
15443 return resultobj;
15444fail:
15445 return NULL;
15446}
15447
15448
15449SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15452 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15453 bool arg3 = (bool) false ;
15454 bool result;
15455 void *argp1 = 0 ;
15456 int res1 = 0 ;
15457 int val2 ;
15458 int ecode2 = 0 ;
15459 bool val3 ;
15460 int ecode3 = 0 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 PyObject * obj2 = 0 ;
15464 char * kwnames[] = {
15465 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15466 };
15467
15468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15470 if (!SWIG_IsOK(res1)) {
15471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15472 }
15473 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15474 if (obj1) {
15475 ecode2 = SWIG_AsVal_int(obj1, &val2);
15476 if (!SWIG_IsOK(ecode2)) {
15477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15478 }
15479 arg2 = static_cast< wxFontEncoding >(val2);
15480 }
15481 if (obj2) {
15482 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15483 if (!SWIG_IsOK(ecode3)) {
15484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15485 }
15486 arg3 = static_cast< bool >(val3);
15487 }
15488 {
15489 PyThreadState* __tstate = wxPyBeginAllowThreads();
15490 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 {
15495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15496 }
15497 return resultobj;
15498fail:
15499 return NULL;
15500}
15501
15502
15503SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj = 0;
15505 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15506 wxString const &arg2_defvalue = wxPyEmptyString ;
15507 wxString *arg2 = (wxString *) &arg2_defvalue ;
15508 bool result;
15509 void *argp1 = 0 ;
15510 int res1 = 0 ;
15511 bool temp2 = false ;
15512 PyObject * obj0 = 0 ;
15513 PyObject * obj1 = 0 ;
15514 char * kwnames[] = {
15515 (char *) "self",(char *) "facename", NULL
15516 };
15517
15518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15522 }
15523 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15524 if (obj1) {
36ed4f51 15525 {
1bd55598
RD
15526 arg2 = wxString_in_helper(obj1);
15527 if (arg2 == NULL) SWIG_fail;
15528 temp2 = true;
36ed4f51 15529 }
1bd55598
RD
15530 }
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 {
15538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15539 }
15540 {
15541 if (temp2)
15542 delete arg2;
15543 }
15544 return resultobj;
15545fail:
15546 {
15547 if (temp2)
15548 delete arg2;
15549 }
15550 return NULL;
d55e5bfc
RD
15551}
15552
15553
1bd55598
RD
15554SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15555 PyObject *resultobj = 0;
1bd55598 15556 PyObject *result = 0 ;
1bd55598 15557
704eda0c 15558 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15561 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = result;
15566 return resultobj;
15567fail:
15568 return NULL;
d55e5bfc
RD
15569}
15570
15571
1bd55598
RD
15572SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15573 PyObject *resultobj = 0;
1bd55598 15574 PyObject *result = 0 ;
1bd55598 15575
704eda0c 15576 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15579 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15580 wxPyEndAllowThreads(__tstate);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 resultobj = result;
15584 return resultobj;
15585fail:
15586 return NULL;
d55e5bfc
RD
15587}
15588
15589
704eda0c
RD
15590SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15591 PyObject *resultobj = 0;
15592 wxString *arg1 = 0 ;
15593 bool result;
15594 bool temp1 = false ;
15595 PyObject * obj0 = 0 ;
15596 char * kwnames[] = {
15597 (char *) "str", NULL
15598 };
15599
15600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15601 {
15602 arg1 = wxString_in_helper(obj0);
15603 if (arg1 == NULL) SWIG_fail;
15604 temp1 = true;
15605 }
15606 {
15607 PyThreadState* __tstate = wxPyBeginAllowThreads();
15608 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 {
15613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15614 }
15615 {
15616 if (temp1)
15617 delete arg1;
15618 }
15619 return resultobj;
15620fail:
15621 {
15622 if (temp1)
15623 delete arg1;
15624 }
15625 return NULL;
15626}
15627
15628
1bd55598
RD
15629SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15630 PyObject *obj;
15631 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15632 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15633 return SWIG_Py_Void();
d55e5bfc
RD
15634}
15635
1bd55598
RD
15636SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15637 return SWIG_Python_InitShadowInstance(args);
15638}
d55e5bfc 15639
1bd55598
RD
15640SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15641 PyObject *resultobj = 0;
15642 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15643 int arg2 ;
15644 void *argp1 = 0 ;
15645 int res1 = 0 ;
15646 int val2 ;
15647 int ecode2 = 0 ;
15648 PyObject *swig_obj[2] ;
15649
15650 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15652 if (!SWIG_IsOK(res1)) {
15653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15654 }
15655 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15656 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15657 if (!SWIG_IsOK(ecode2)) {
15658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15659 }
15660 arg2 = static_cast< int >(val2);
15661 if (arg1) (arg1)->Language = arg2;
15662
15663 resultobj = SWIG_Py_Void();
15664 return resultobj;
15665fail:
15666 return NULL;
d55e5bfc
RD
15667}
15668
15669
1bd55598
RD
15670SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15671 PyObject *resultobj = 0;
15672 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15673 int result;
15674 void *argp1 = 0 ;
15675 int res1 = 0 ;
15676 PyObject *swig_obj[1] ;
15677
15678 if (!args) SWIG_fail;
15679 swig_obj[0] = args;
15680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15681 if (!SWIG_IsOK(res1)) {
15682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15683 }
15684 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15685 result = (int) ((arg1)->Language);
15686 resultobj = SWIG_From_int(static_cast< int >(result));
15687 return resultobj;
15688fail:
15689 return NULL;
15690}
15691
15692
15693SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *resultobj = 0;
15695 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15696 wxString *arg2 = (wxString *) 0 ;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 bool temp2 = false ;
15700 PyObject *swig_obj[2] ;
15701
15702 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15704 if (!SWIG_IsOK(res1)) {
15705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15706 }
15707 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15708 {
15709 arg2 = wxString_in_helper(swig_obj[1]);
15710 if (arg2 == NULL) SWIG_fail;
15711 temp2 = true;
15712 }
15713 if (arg1) (arg1)->CanonicalName = *arg2;
15714
15715 resultobj = SWIG_Py_Void();
15716 {
15717 if (temp2)
15718 delete arg2;
15719 }
15720 return resultobj;
15721fail:
15722 {
15723 if (temp2)
15724 delete arg2;
15725 }
15726 return NULL;
d55e5bfc
RD
15727}
15728
15729
1bd55598
RD
15730SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15731 PyObject *resultobj = 0;
15732 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15733 wxString *result = 0 ;
15734 void *argp1 = 0 ;
15735 int res1 = 0 ;
15736 PyObject *swig_obj[1] ;
15737
15738 if (!args) SWIG_fail;
15739 swig_obj[0] = args;
15740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15741 if (!SWIG_IsOK(res1)) {
15742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15743 }
15744 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15745 result = (wxString *)& ((arg1)->CanonicalName);
15746 {
15747#if wxUSE_UNICODE
15748 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15749#else
15750 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15751#endif
15752 }
15753 return resultobj;
15754fail:
15755 return NULL;
d55e5bfc
RD
15756}
15757
15758
1bd55598
RD
15759SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15760 PyObject *resultobj = 0;
15761 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15762 wxString *arg2 = (wxString *) 0 ;
15763 void *argp1 = 0 ;
15764 int res1 = 0 ;
15765 bool temp2 = false ;
15766 PyObject *swig_obj[2] ;
15767
15768 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15772 }
15773 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15774 {
15775 arg2 = wxString_in_helper(swig_obj[1]);
15776 if (arg2 == NULL) SWIG_fail;
15777 temp2 = true;
15778 }
15779 if (arg1) (arg1)->Description = *arg2;
15780
15781 resultobj = SWIG_Py_Void();
15782 {
15783 if (temp2)
15784 delete arg2;
15785 }
15786 return resultobj;
15787fail:
15788 {
15789 if (temp2)
15790 delete arg2;
15791 }
15792 return NULL;
d55e5bfc
RD
15793}
15794
15795
1bd55598
RD
15796SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 PyObject *resultobj = 0;
15798 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15799 wxString *result = 0 ;
15800 void *argp1 = 0 ;
15801 int res1 = 0 ;
15802 PyObject *swig_obj[1] ;
15803
15804 if (!args) SWIG_fail;
15805 swig_obj[0] = args;
15806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15807 if (!SWIG_IsOK(res1)) {
15808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15809 }
15810 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15811 result = (wxString *)& ((arg1)->Description);
15812 {
15813#if wxUSE_UNICODE
15814 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15815#else
15816 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15817#endif
15818 }
15819 return resultobj;
15820fail:
15821 return NULL;
15822}
15823
15824
15825SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15826 PyObject *obj;
15827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15828 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15829 return SWIG_Py_Void();
15830}
15831
15832SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15833 PyObject *resultobj = 0;
15834 int arg1 = (int) -1 ;
15835 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15836 wxLocale *result = 0 ;
15837 int val1 ;
15838 int ecode1 = 0 ;
15839 int val2 ;
15840 int ecode2 = 0 ;
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 char * kwnames[] = {
15844 (char *) "language",(char *) "flags", NULL
15845 };
15846
15847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15848 if (obj0) {
15849 ecode1 = SWIG_AsVal_int(obj0, &val1);
15850 if (!SWIG_IsOK(ecode1)) {
15851 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15852 }
15853 arg1 = static_cast< int >(val1);
15854 }
15855 if (obj1) {
15856 ecode2 = SWIG_AsVal_int(obj1, &val2);
15857 if (!SWIG_IsOK(ecode2)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15859 }
15860 arg2 = static_cast< int >(val2);
15861 }
15862 {
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (wxLocale *)new_wxLocale(arg1,arg2);
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15869 return resultobj;
15870fail:
15871 return NULL;
d55e5bfc
RD
15872}
15873
15874
1bd55598
RD
15875SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15876 PyObject *resultobj = 0;
15877 wxLocale *arg1 = (wxLocale *) 0 ;
15878 void *argp1 = 0 ;
15879 int res1 = 0 ;
15880 PyObject *swig_obj[1] ;
15881
15882 if (!args) SWIG_fail;
15883 swig_obj[0] = args;
15884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15885 if (!SWIG_IsOK(res1)) {
15886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15887 }
15888 arg1 = reinterpret_cast< wxLocale * >(argp1);
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 delete arg1;
d55e5bfc 15892
1bd55598
RD
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 resultobj = SWIG_Py_Void();
15897 return resultobj;
15898fail:
15899 return NULL;
15900}
15901
15902
15903SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj = 0;
15905 wxLocale *arg1 = (wxLocale *) 0 ;
15906 wxString *arg2 = 0 ;
15907 wxString const &arg3_defvalue = wxPyEmptyString ;
15908 wxString *arg3 = (wxString *) &arg3_defvalue ;
15909 wxString const &arg4_defvalue = wxPyEmptyString ;
15910 wxString *arg4 = (wxString *) &arg4_defvalue ;
15911 bool arg5 = (bool) true ;
15912 bool arg6 = (bool) false ;
15913 bool result;
15914 void *argp1 = 0 ;
15915 int res1 = 0 ;
15916 bool temp2 = false ;
15917 bool temp3 = false ;
15918 bool temp4 = false ;
15919 bool val5 ;
15920 int ecode5 = 0 ;
15921 bool val6 ;
15922 int ecode6 = 0 ;
15923 PyObject * obj0 = 0 ;
15924 PyObject * obj1 = 0 ;
15925 PyObject * obj2 = 0 ;
15926 PyObject * obj3 = 0 ;
15927 PyObject * obj4 = 0 ;
15928 PyObject * obj5 = 0 ;
15929 char * kwnames[] = {
15930 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15931 };
15932
15933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15935 if (!SWIG_IsOK(res1)) {
15936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15937 }
15938 arg1 = reinterpret_cast< wxLocale * >(argp1);
15939 {
15940 arg2 = wxString_in_helper(obj1);
15941 if (arg2 == NULL) SWIG_fail;
15942 temp2 = true;
15943 }
15944 if (obj2) {
d55e5bfc 15945 {
1bd55598
RD
15946 arg3 = wxString_in_helper(obj2);
15947 if (arg3 == NULL) SWIG_fail;
15948 temp3 = true;
d55e5bfc 15949 }
1bd55598
RD
15950 }
15951 if (obj3) {
36ed4f51 15952 {
1bd55598
RD
15953 arg4 = wxString_in_helper(obj3);
15954 if (arg4 == NULL) SWIG_fail;
15955 temp4 = true;
36ed4f51 15956 }
1bd55598
RD
15957 }
15958 if (obj4) {
15959 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15960 if (!SWIG_IsOK(ecode5)) {
15961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15962 }
15963 arg5 = static_cast< bool >(val5);
15964 }
15965 if (obj5) {
15966 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15967 if (!SWIG_IsOK(ecode6)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15969 }
15970 arg6 = static_cast< bool >(val6);
15971 }
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
15979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15980 }
15981 {
15982 if (temp2)
15983 delete arg2;
15984 }
15985 {
15986 if (temp3)
15987 delete arg3;
15988 }
15989 {
15990 if (temp4)
15991 delete arg4;
15992 }
15993 return resultobj;
15994fail:
15995 {
15996 if (temp2)
15997 delete arg2;
15998 }
15999 {
16000 if (temp3)
16001 delete arg3;
16002 }
16003 {
16004 if (temp4)
16005 delete arg4;
16006 }
16007 return NULL;
16008}
16009
16010
16011SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj = 0;
16013 wxLocale *arg1 = (wxLocale *) 0 ;
16014 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16015 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16016 bool result;
16017 void *argp1 = 0 ;
16018 int res1 = 0 ;
16019 int val2 ;
16020 int ecode2 = 0 ;
16021 int val3 ;
16022 int ecode3 = 0 ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 PyObject * obj2 = 0 ;
16026 char * kwnames[] = {
16027 (char *) "self",(char *) "language",(char *) "flags", NULL
16028 };
16029
16030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16032 if (!SWIG_IsOK(res1)) {
16033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16034 }
16035 arg1 = reinterpret_cast< wxLocale * >(argp1);
16036 if (obj1) {
16037 ecode2 = SWIG_AsVal_int(obj1, &val2);
16038 if (!SWIG_IsOK(ecode2)) {
16039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16040 }
16041 arg2 = static_cast< int >(val2);
16042 }
16043 if (obj2) {
16044 ecode3 = SWIG_AsVal_int(obj2, &val3);
16045 if (!SWIG_IsOK(ecode3)) {
16046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16047 }
16048 arg3 = static_cast< int >(val3);
16049 }
16050 {
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16053 wxPyEndAllowThreads(__tstate);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
16056 {
16057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16058 }
16059 return resultobj;
16060fail:
16061 return NULL;
d55e5bfc
RD
16062}
16063
16064
1bd55598
RD
16065SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16066 PyObject *resultobj = 0;
16067 int result;
16068
16069 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (int)wxLocale::GetSystemLanguage();
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 resultobj = SWIG_From_int(static_cast< int >(result));
16077 return resultobj;
16078fail:
16079 return NULL;
d55e5bfc
RD
16080}
16081
16082
1bd55598
RD
16083SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16084 PyObject *resultobj = 0;
16085 wxFontEncoding result;
16086
16087 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16091 wxPyEndAllowThreads(__tstate);
16092 if (PyErr_Occurred()) SWIG_fail;
16093 }
16094 resultobj = SWIG_From_int(static_cast< int >(result));
16095 return resultobj;
16096fail:
16097 return NULL;
d55e5bfc
RD
16098}
16099
16100
1bd55598
RD
16101SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16102 PyObject *resultobj = 0;
16103 wxString result;
16104
16105 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 result = wxLocale::GetSystemEncodingName();
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 {
16113#if wxUSE_UNICODE
16114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16115#else
16116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16117#endif
16118 }
16119 return resultobj;
16120fail:
16121 return NULL;
d55e5bfc
RD
16122}
16123
16124
1bd55598
RD
16125SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16126 PyObject *resultobj = 0;
16127 wxLocale *arg1 = (wxLocale *) 0 ;
16128 bool result;
16129 void *argp1 = 0 ;
16130 int res1 = 0 ;
16131 PyObject *swig_obj[1] ;
16132
16133 if (!args) SWIG_fail;
16134 swig_obj[0] = args;
16135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16136 if (!SWIG_IsOK(res1)) {
16137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16138 }
16139 arg1 = reinterpret_cast< wxLocale * >(argp1);
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 result = (bool)((wxLocale const *)arg1)->IsOk();
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 {
16147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16148 }
16149 return resultobj;
16150fail:
16151 return NULL;
d55e5bfc
RD
16152}
16153
16154
1bd55598
RD
16155SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16156 PyObject *resultobj = 0;
16157 wxLocale *arg1 = (wxLocale *) 0 ;
16158 wxString result;
16159 void *argp1 = 0 ;
16160 int res1 = 0 ;
16161 PyObject *swig_obj[1] ;
16162
16163 if (!args) SWIG_fail;
16164 swig_obj[0] = args;
16165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16166 if (!SWIG_IsOK(res1)) {
16167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16168 }
16169 arg1 = reinterpret_cast< wxLocale * >(argp1);
16170 {
16171 PyThreadState* __tstate = wxPyBeginAllowThreads();
16172 result = ((wxLocale const *)arg1)->GetLocale();
16173 wxPyEndAllowThreads(__tstate);
16174 if (PyErr_Occurred()) SWIG_fail;
16175 }
16176 {
16177#if wxUSE_UNICODE
16178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16179#else
16180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16181#endif
16182 }
16183 return resultobj;
16184fail:
16185 return NULL;
d55e5bfc
RD
16186}
16187
16188
1bd55598
RD
16189SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16190 PyObject *resultobj = 0;
16191 wxLocale *arg1 = (wxLocale *) 0 ;
16192 int result;
16193 void *argp1 = 0 ;
16194 int res1 = 0 ;
16195 PyObject *swig_obj[1] ;
16196
16197 if (!args) SWIG_fail;
16198 swig_obj[0] = args;
16199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16200 if (!SWIG_IsOK(res1)) {
16201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16202 }
16203 arg1 = reinterpret_cast< wxLocale * >(argp1);
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 result = (int)((wxLocale const *)arg1)->GetLanguage();
16207 wxPyEndAllowThreads(__tstate);
16208 if (PyErr_Occurred()) SWIG_fail;
16209 }
16210 resultobj = SWIG_From_int(static_cast< int >(result));
16211 return resultobj;
16212fail:
16213 return NULL;
d55e5bfc
RD
16214}
16215
16216
1bd55598
RD
16217SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16218 PyObject *resultobj = 0;
16219 wxLocale *arg1 = (wxLocale *) 0 ;
16220 wxString result;
16221 void *argp1 = 0 ;
16222 int res1 = 0 ;
16223 PyObject *swig_obj[1] ;
16224
16225 if (!args) SWIG_fail;
16226 swig_obj[0] = args;
16227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16228 if (!SWIG_IsOK(res1)) {
16229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16230 }
16231 arg1 = reinterpret_cast< wxLocale * >(argp1);
16232 {
16233 PyThreadState* __tstate = wxPyBeginAllowThreads();
16234 result = ((wxLocale const *)arg1)->GetSysName();
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 {
36ed4f51 16239#if wxUSE_UNICODE
1bd55598 16240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16241#else
1bd55598 16242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16243#endif
1bd55598
RD
16244 }
16245 return resultobj;
16246fail:
16247 return NULL;
d55e5bfc
RD
16248}
16249
16250
1bd55598
RD
16251SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16252 PyObject *resultobj = 0;
16253 wxLocale *arg1 = (wxLocale *) 0 ;
16254 wxString result;
16255 void *argp1 = 0 ;
16256 int res1 = 0 ;
16257 PyObject *swig_obj[1] ;
16258
16259 if (!args) SWIG_fail;
16260 swig_obj[0] = args;
16261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16262 if (!SWIG_IsOK(res1)) {
16263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16264 }
16265 arg1 = reinterpret_cast< wxLocale * >(argp1);
16266 {
16267 PyThreadState* __tstate = wxPyBeginAllowThreads();
16268 result = ((wxLocale const *)arg1)->GetCanonicalName();
16269 wxPyEndAllowThreads(__tstate);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 {
16273#if wxUSE_UNICODE
16274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16275#else
16276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16277#endif
16278 }
16279 return resultobj;
16280fail:
16281 return NULL;
d55e5bfc
RD
16282}
16283
16284
1bd55598
RD
16285SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj = 0;
16287 wxString *arg1 = 0 ;
16288 bool temp1 = false ;
16289 PyObject * obj0 = 0 ;
16290 char * kwnames[] = {
16291 (char *) "prefix", NULL
16292 };
16293
16294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16295 {
16296 arg1 = wxString_in_helper(obj0);
16297 if (arg1 == NULL) SWIG_fail;
16298 temp1 = true;
16299 }
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 resultobj = SWIG_Py_Void();
16307 {
16308 if (temp1)
16309 delete arg1;
16310 }
16311 return resultobj;
16312fail:
16313 {
16314 if (temp1)
16315 delete arg1;
16316 }
16317 return NULL;
16318}
16319
16320
16321SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16322 PyObject *resultobj = 0;
16323 wxLocale *arg1 = (wxLocale *) 0 ;
16324 wxString *arg2 = 0 ;
16325 bool result;
16326 void *argp1 = 0 ;
16327 int res1 = 0 ;
16328 bool temp2 = false ;
16329 PyObject * obj0 = 0 ;
16330 PyObject * obj1 = 0 ;
16331 char * kwnames[] = {
16332 (char *) "self",(char *) "szDomain", NULL
16333 };
16334
16335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16337 if (!SWIG_IsOK(res1)) {
16338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16339 }
16340 arg1 = reinterpret_cast< wxLocale * >(argp1);
16341 {
16342 arg2 = wxString_in_helper(obj1);
16343 if (arg2 == NULL) SWIG_fail;
16344 temp2 = true;
16345 }
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16349 wxPyEndAllowThreads(__tstate);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 {
16353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16354 }
16355 {
16356 if (temp2)
16357 delete arg2;
16358 }
16359 return resultobj;
16360fail:
16361 {
16362 if (temp2)
16363 delete arg2;
16364 }
16365 return NULL;
16366}
16367
16368
33d6fd3b
RD
16369SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj = 0;
16371 int arg1 ;
16372 bool result;
16373 int val1 ;
16374 int ecode1 = 0 ;
16375 PyObject * obj0 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "lang", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16381 ecode1 = SWIG_AsVal_int(obj0, &val1);
16382 if (!SWIG_IsOK(ecode1)) {
16383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16384 }
16385 arg1 = static_cast< int >(val1);
16386 {
16387 PyThreadState* __tstate = wxPyBeginAllowThreads();
16388 result = (bool)wxLocale::IsAvailable(arg1);
16389 wxPyEndAllowThreads(__tstate);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 {
16393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16394 }
16395 return resultobj;
16396fail:
16397 return NULL;
16398}
16399
16400
1bd55598
RD
16401SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj = 0;
16403 wxLocale *arg1 = (wxLocale *) 0 ;
16404 wxString *arg2 = 0 ;
16405 bool result;
16406 void *argp1 = 0 ;
16407 int res1 = 0 ;
16408 bool temp2 = false ;
16409 PyObject * obj0 = 0 ;
16410 PyObject * obj1 = 0 ;
16411 char * kwnames[] = {
16412 (char *) "self",(char *) "szDomain", NULL
16413 };
16414
16415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16419 }
16420 arg1 = reinterpret_cast< wxLocale * >(argp1);
16421 {
16422 arg2 = wxString_in_helper(obj1);
16423 if (arg2 == NULL) SWIG_fail;
16424 temp2 = true;
16425 }
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16434 }
16435 {
16436 if (temp2)
16437 delete arg2;
16438 }
16439 return resultobj;
16440fail:
16441 {
16442 if (temp2)
16443 delete arg2;
16444 }
16445 return NULL;
d55e5bfc
RD
16446}
16447
16448
1bd55598
RD
16449SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj = 0;
16451 int arg1 ;
16452 wxLanguageInfo *result = 0 ;
16453 int val1 ;
16454 int ecode1 = 0 ;
16455 PyObject * obj0 = 0 ;
16456 char * kwnames[] = {
16457 (char *) "lang", NULL
16458 };
16459
16460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16461 ecode1 = SWIG_AsVal_int(obj0, &val1);
16462 if (!SWIG_IsOK(ecode1)) {
16463 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16464 }
16465 arg1 = static_cast< int >(val1);
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16473 return resultobj;
16474fail:
16475 return NULL;
16476}
16477
16478
16479SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj = 0;
16481 int arg1 ;
16482 wxString result;
16483 int val1 ;
16484 int ecode1 = 0 ;
16485 PyObject * obj0 = 0 ;
16486 char * kwnames[] = {
16487 (char *) "lang", NULL
16488 };
16489
16490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16491 ecode1 = SWIG_AsVal_int(obj0, &val1);
16492 if (!SWIG_IsOK(ecode1)) {
16493 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16494 }
16495 arg1 = static_cast< int >(val1);
16496 {
16497 PyThreadState* __tstate = wxPyBeginAllowThreads();
16498 result = wxLocale::GetLanguageName(arg1);
16499 wxPyEndAllowThreads(__tstate);
16500 if (PyErr_Occurred()) SWIG_fail;
16501 }
16502 {
16503#if wxUSE_UNICODE
16504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16505#else
16506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16507#endif
16508 }
16509 return resultobj;
16510fail:
16511 return NULL;
d55e5bfc
RD
16512}
16513
16514
1bd55598
RD
16515SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16516 PyObject *resultobj = 0;
16517 wxString *arg1 = 0 ;
16518 wxLanguageInfo *result = 0 ;
16519 bool temp1 = false ;
16520 PyObject * obj0 = 0 ;
16521 char * kwnames[] = {
16522 (char *) "locale", NULL
16523 };
16524
16525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16526 {
16527 arg1 = wxString_in_helper(obj0);
16528 if (arg1 == NULL) SWIG_fail;
16529 temp1 = true;
16530 }
16531 {
16532 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16533 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16534 wxPyEndAllowThreads(__tstate);
16535 if (PyErr_Occurred()) SWIG_fail;
16536 }
16537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16538 {
16539 if (temp1)
16540 delete arg1;
16541 }
16542 return resultobj;
16543fail:
16544 {
16545 if (temp1)
16546 delete arg1;
16547 }
16548 return NULL;
16549}
16550
16551
16552SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj = 0;
16554 wxLanguageInfo *arg1 = 0 ;
16555 void *argp1 = 0 ;
16556 int res1 = 0 ;
16557 PyObject * obj0 = 0 ;
16558 char * kwnames[] = {
16559 (char *) "info", NULL
16560 };
16561
16562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16564 if (!SWIG_IsOK(res1)) {
16565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16566 }
16567 if (!argp1) {
16568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16569 }
16570 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 resultobj = SWIG_Py_Void();
16578 return resultobj;
16579fail:
16580 return NULL;
16581}
16582
16583
16584SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16585 PyObject *resultobj = 0;
16586 wxLocale *arg1 = (wxLocale *) 0 ;
16587 wxString *arg2 = 0 ;
16588 wxString const &arg3_defvalue = wxPyEmptyString ;
16589 wxString *arg3 = (wxString *) &arg3_defvalue ;
16590 wxString result;
16591 void *argp1 = 0 ;
16592 int res1 = 0 ;
16593 bool temp2 = false ;
16594 bool temp3 = false ;
16595 PyObject * obj0 = 0 ;
16596 PyObject * obj1 = 0 ;
16597 PyObject * obj2 = 0 ;
16598 char * kwnames[] = {
16599 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16600 };
16601
16602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16604 if (!SWIG_IsOK(res1)) {
16605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16606 }
16607 arg1 = reinterpret_cast< wxLocale * >(argp1);
16608 {
16609 arg2 = wxString_in_helper(obj1);
16610 if (arg2 == NULL) SWIG_fail;
16611 temp2 = true;
16612 }
16613 if (obj2) {
16614 {
16615 arg3 = wxString_in_helper(obj2);
16616 if (arg3 == NULL) SWIG_fail;
16617 temp3 = true;
16618 }
16619 }
16620 {
16621 PyThreadState* __tstate = wxPyBeginAllowThreads();
16622 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16623 wxPyEndAllowThreads(__tstate);
16624 if (PyErr_Occurred()) SWIG_fail;
16625 }
16626 {
16627#if wxUSE_UNICODE
16628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16629#else
16630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16631#endif
16632 }
16633 {
16634 if (temp2)
16635 delete arg2;
16636 }
16637 {
16638 if (temp3)
16639 delete arg3;
16640 }
16641 return resultobj;
16642fail:
16643 {
16644 if (temp2)
16645 delete arg2;
16646 }
16647 {
16648 if (temp3)
16649 delete arg3;
16650 }
16651 return NULL;
16652}
16653
16654
16655SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16656 PyObject *resultobj = 0;
16657 wxLocale *arg1 = (wxLocale *) 0 ;
16658 wxString *result = 0 ;
16659 void *argp1 = 0 ;
16660 int res1 = 0 ;
16661 PyObject *swig_obj[1] ;
16662
16663 if (!args) SWIG_fail;
16664 swig_obj[0] = args;
16665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16666 if (!SWIG_IsOK(res1)) {
16667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16668 }
16669 arg1 = reinterpret_cast< wxLocale * >(argp1);
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 {
16673 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16674 result = (wxString *) &_result_ref;
16675 }
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 {
16680#if wxUSE_UNICODE
16681 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16682#else
16683 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16684#endif
16685 }
16686 return resultobj;
16687fail:
16688 return NULL;
16689}
16690
16691
16692SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16693 PyObject *obj;
16694 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16695 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16696 return SWIG_Py_Void();
16697}
16698
16699SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16700 return SWIG_Python_InitShadowInstance(args);
16701}
16702
16703SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16704 PyObject *resultobj = 0;
16705 int arg1 = (int) -1 ;
16706 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16707 wxPyLocale *result = 0 ;
16708 int val1 ;
16709 int ecode1 = 0 ;
16710 int val2 ;
16711 int ecode2 = 0 ;
16712 PyObject * obj0 = 0 ;
16713 PyObject * obj1 = 0 ;
16714 char * kwnames[] = {
16715 (char *) "language",(char *) "flags", NULL
16716 };
16717
16718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16719 if (obj0) {
16720 ecode1 = SWIG_AsVal_int(obj0, &val1);
16721 if (!SWIG_IsOK(ecode1)) {
16722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16723 }
16724 arg1 = static_cast< int >(val1);
16725 }
16726 if (obj1) {
16727 ecode2 = SWIG_AsVal_int(obj1, &val2);
16728 if (!SWIG_IsOK(ecode2)) {
16729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16730 }
16731 arg2 = static_cast< int >(val2);
16732 }
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16736 wxPyEndAllowThreads(__tstate);
16737 if (PyErr_Occurred()) SWIG_fail;
16738 }
16739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16740 return resultobj;
16741fail:
16742 return NULL;
16743}
16744
16745
16746SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16747 PyObject *resultobj = 0;
16748 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16749 void *argp1 = 0 ;
16750 int res1 = 0 ;
16751 PyObject *swig_obj[1] ;
16752
16753 if (!args) SWIG_fail;
16754 swig_obj[0] = args;
16755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16756 if (!SWIG_IsOK(res1)) {
16757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16758 }
16759 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 delete arg1;
16763
1bd55598
RD
16764 wxPyEndAllowThreads(__tstate);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
fc46b7f3 16767 resultobj = SWIG_Py_Void();
1bd55598
RD
16768 return resultobj;
16769fail:
1bd55598 16770 return NULL;
d55e5bfc
RD
16771}
16772
16773
fc46b7f3 16774SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16775 PyObject *resultobj = 0;
fc46b7f3
RD
16776 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16777 PyObject *arg2 = (PyObject *) 0 ;
16778 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16779 void *argp1 = 0 ;
16780 int res1 = 0 ;
16781 PyObject * obj0 = 0 ;
fc46b7f3
RD
16782 PyObject * obj1 = 0 ;
16783 PyObject * obj2 = 0 ;
1bd55598 16784 char * kwnames[] = {
fc46b7f3 16785 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16786 };
16787
fc46b7f3
RD
16788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16790 if (!SWIG_IsOK(res1)) {
fc46b7f3 16791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16792 }
fc46b7f3
RD
16793 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16794 arg2 = obj1;
16795 arg3 = obj2;
1bd55598
RD
16796 {
16797 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16798 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16799 wxPyEndAllowThreads(__tstate);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 resultobj = SWIG_Py_Void();
16803 return resultobj;
16804fail:
16805 return NULL;
16806}
16807
16808
fc46b7f3 16809SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16810 PyObject *resultobj = 0;
fc46b7f3
RD
16811 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16812 wxChar *arg2 = (wxChar *) 0 ;
16813 wxChar *arg3 = (wxChar *) NULL ;
16814 wxChar *result = 0 ;
1bd55598
RD
16815 void *argp1 = 0 ;
16816 int res1 = 0 ;
fc46b7f3
RD
16817 void *argp2 = 0 ;
16818 int res2 = 0 ;
16819 void *argp3 = 0 ;
16820 int res3 = 0 ;
1bd55598
RD
16821 PyObject * obj0 = 0 ;
16822 PyObject * obj1 = 0 ;
16823 PyObject * obj2 = 0 ;
16824 char * kwnames[] = {
16825 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16826 };
16827
fc46b7f3
RD
16828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16830 if (!SWIG_IsOK(res1)) {
fc46b7f3 16831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16832 }
fc46b7f3
RD
16833 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16835 if (!SWIG_IsOK(res2)) {
16836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16837 }
fc46b7f3 16838 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16839 if (obj2) {
fc46b7f3
RD
16840 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16841 if (!SWIG_IsOK(res3)) {
16842 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16843 }
fc46b7f3 16844 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16845 }
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16848 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
fc46b7f3 16852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16853 return resultobj;
16854fail:
1bd55598 16855 return NULL;
d55e5bfc
RD
16856}
16857
16858
fc46b7f3 16859SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16860 PyObject *resultobj = 0;
fc46b7f3
RD
16861 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16862 wxChar *arg2 = (wxChar *) 0 ;
16863 wxChar *arg3 = (wxChar *) 0 ;
16864 size_t arg4 ;
16865 wxChar *arg5 = (wxChar *) NULL ;
16866 wxChar *result = 0 ;
1bd55598
RD
16867 void *argp1 = 0 ;
16868 int res1 = 0 ;
fc46b7f3
RD
16869 void *argp2 = 0 ;
16870 int res2 = 0 ;
16871 void *argp3 = 0 ;
16872 int res3 = 0 ;
16873 size_t val4 ;
16874 int ecode4 = 0 ;
16875 void *argp5 = 0 ;
16876 int res5 = 0 ;
16877 PyObject * obj0 = 0 ;
16878 PyObject * obj1 = 0 ;
16879 PyObject * obj2 = 0 ;
16880 PyObject * obj3 = 0 ;
16881 PyObject * obj4 = 0 ;
16882 char * kwnames[] = {
16883 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16884 };
1bd55598 16885
fc46b7f3
RD
16886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16888 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16890 }
16891 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16892 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16893 if (!SWIG_IsOK(res2)) {
16894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16895 }
16896 arg2 = reinterpret_cast< wxChar * >(argp2);
16897 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16898 if (!SWIG_IsOK(res3)) {
16899 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16900 }
16901 arg3 = reinterpret_cast< wxChar * >(argp3);
16902 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16903 if (!SWIG_IsOK(ecode4)) {
16904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16905 }
16906 arg4 = static_cast< size_t >(val4);
16907 if (obj4) {
16908 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16909 if (!SWIG_IsOK(res5)) {
16910 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16911 }
16912 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16913 }
1bd55598
RD
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16916 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16917 wxPyEndAllowThreads(__tstate);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
fc46b7f3 16920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16921 return resultobj;
16922fail:
16923 return NULL;
d55e5bfc
RD
16924}
16925
16926
fc46b7f3 16927SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16928 PyObject *obj;
16929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16930 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16931 return SWIG_Py_Void();
d55e5bfc
RD
16932}
16933
fc46b7f3 16934SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16935 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16936}
16937
1bd55598
RD
16938SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16939 PyObject *resultobj = 0;
16940 wxLocale *result = 0 ;
16941
16942 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16943 {
16944 PyThreadState* __tstate = wxPyBeginAllowThreads();
16945 result = (wxLocale *)wxGetLocale();
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16950 return resultobj;
16951fail:
16952 return NULL;
d55e5bfc
RD
16953}
16954
16955
1bd55598
RD
16956SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16957 PyObject *resultobj = 0;
16958 wxString *arg1 = 0 ;
16959 wxString result;
16960 bool temp1 = false ;
16961
16962 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16963 {
16964 arg1 = wxString_in_helper(swig_obj[0]);
16965 if (arg1 == NULL) SWIG_fail;
16966 temp1 = true;
16967 }
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 result = wxGetTranslation((wxString const &)*arg1);
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 {
36ed4f51 16975#if wxUSE_UNICODE
1bd55598 16976 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16977#else
1bd55598 16978 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16979#endif
1bd55598
RD
16980 }
16981 {
16982 if (temp1)
16983 delete arg1;
16984 }
16985 return resultobj;
16986fail:
16987 {
16988 if (temp1)
16989 delete arg1;
16990 }
16991 return NULL;
5e483524
RD
16992}
16993
16994
1bd55598 16995SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16996 PyObject *resultobj = 0;
16997 wxString *arg1 = 0 ;
16998 wxString *arg2 = 0 ;
16999 wxString result;
17000 bool temp1 = false ;
17001 bool temp2 = false ;
17002
17003 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17004 {
17005 arg1 = wxString_in_helper(swig_obj[0]);
17006 if (arg1 == NULL) SWIG_fail;
17007 temp1 = true;
17008 }
17009 {
17010 arg2 = wxString_in_helper(swig_obj[1]);
17011 if (arg2 == NULL) SWIG_fail;
17012 temp2 = true;
17013 }
17014 {
17015 PyThreadState* __tstate = wxPyBeginAllowThreads();
17016 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17017 wxPyEndAllowThreads(__tstate);
17018 if (PyErr_Occurred()) SWIG_fail;
17019 }
17020 {
17021#if wxUSE_UNICODE
17022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17023#else
17024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17025#endif
17026 }
17027 {
17028 if (temp1)
17029 delete arg1;
17030 }
17031 {
17032 if (temp2)
17033 delete arg2;
17034 }
17035 return resultobj;
17036fail:
17037 {
17038 if (temp1)
17039 delete arg1;
17040 }
17041 {
17042 if (temp2)
17043 delete arg2;
17044 }
17045 return NULL;
17046}
17047
17048
17049SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17050 PyObject *resultobj = 0;
17051 wxString *arg1 = 0 ;
17052 wxString *arg2 = 0 ;
17053 size_t arg3 ;
17054 wxString result;
17055 bool temp1 = false ;
17056 bool temp2 = false ;
17057 size_t val3 ;
17058 int ecode3 = 0 ;
17059
17060 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17061 {
17062 arg1 = wxString_in_helper(swig_obj[0]);
17063 if (arg1 == NULL) SWIG_fail;
17064 temp1 = true;
17065 }
17066 {
17067 arg2 = wxString_in_helper(swig_obj[1]);
17068 if (arg2 == NULL) SWIG_fail;
17069 temp2 = true;
17070 }
17071 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17072 if (!SWIG_IsOK(ecode3)) {
17073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17074 }
17075 arg3 = static_cast< size_t >(val3);
17076 {
17077 PyThreadState* __tstate = wxPyBeginAllowThreads();
17078 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 {
36ed4f51 17083#if wxUSE_UNICODE
1bd55598 17084 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17085#else
1bd55598 17086 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17087#endif
1bd55598
RD
17088 }
17089 {
17090 if (temp1)
17091 delete arg1;
17092 }
17093 {
17094 if (temp2)
17095 delete arg2;
17096 }
17097 return resultobj;
17098fail:
17099 {
17100 if (temp1)
17101 delete arg1;
17102 }
17103 {
17104 if (temp2)
17105 delete arg2;
17106 }
17107 return NULL;
d55e5bfc
RD
17108}
17109
17110
fc46b7f3
RD
17111SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17112 PyObject *resultobj = 0;
17113 wxString *arg1 = 0 ;
17114 wxString *arg2 = 0 ;
17115 size_t arg3 ;
17116 wxString *arg4 = 0 ;
17117 wxString result;
17118 bool temp1 = false ;
17119 bool temp2 = false ;
17120 size_t val3 ;
17121 int ecode3 = 0 ;
17122 bool temp4 = false ;
17123
17124 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17125 {
17126 arg1 = wxString_in_helper(swig_obj[0]);
17127 if (arg1 == NULL) SWIG_fail;
17128 temp1 = true;
17129 }
17130 {
17131 arg2 = wxString_in_helper(swig_obj[1]);
17132 if (arg2 == NULL) SWIG_fail;
17133 temp2 = true;
17134 }
17135 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17136 if (!SWIG_IsOK(ecode3)) {
17137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17138 }
17139 arg3 = static_cast< size_t >(val3);
17140 {
17141 arg4 = wxString_in_helper(swig_obj[3]);
17142 if (arg4 == NULL) SWIG_fail;
17143 temp4 = true;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 {
17152#if wxUSE_UNICODE
17153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17154#else
17155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17156#endif
17157 }
17158 {
17159 if (temp1)
17160 delete arg1;
17161 }
17162 {
17163 if (temp2)
17164 delete arg2;
17165 }
17166 {
17167 if (temp4)
17168 delete arg4;
17169 }
17170 return resultobj;
17171fail:
17172 {
17173 if (temp1)
17174 delete arg1;
17175 }
17176 {
17177 if (temp2)
17178 delete arg2;
17179 }
17180 {
17181 if (temp4)
17182 delete arg4;
17183 }
17184 return NULL;
17185}
17186
17187
1bd55598
RD
17188SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17189 int argc;
fc46b7f3 17190 PyObject *argv[5];
1bd55598 17191
fc46b7f3 17192 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17193 --argc;
17194 if (argc == 1) {
17195 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17196 }
fc46b7f3 17197 if (argc == 2) {
1bd55598
RD
17198 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17199 }
fc46b7f3
RD
17200 if (argc == 3) {
17201 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17202 }
17203 if (argc == 4) {
17204 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17205 }
1bd55598
RD
17206
17207fail:
17208 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17209 return NULL;
d55e5bfc
RD
17210}
17211
17212
1bd55598
RD
17213SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17214 PyObject *resultobj = 0;
17215 wxEncodingConverter *result = 0 ;
17216
17217 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17218 {
17219 PyThreadState* __tstate = wxPyBeginAllowThreads();
17220 result = (wxEncodingConverter *)new wxEncodingConverter();
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17225 return resultobj;
17226fail:
17227 return NULL;
d55e5bfc
RD
17228}
17229
17230
1bd55598
RD
17231SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17232 PyObject *resultobj = 0;
17233 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17234 void *argp1 = 0 ;
17235 int res1 = 0 ;
17236 PyObject *swig_obj[1] ;
17237
17238 if (!args) SWIG_fail;
17239 swig_obj[0] = args;
17240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17241 if (!SWIG_IsOK(res1)) {
17242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17243 }
17244 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17245 {
17246 PyThreadState* __tstate = wxPyBeginAllowThreads();
17247 delete arg1;
d55e5bfc 17248
1bd55598
RD
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 resultobj = SWIG_Py_Void();
17253 return resultobj;
17254fail:
17255 return NULL;
17256}
17257
17258
17259SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj = 0;
17261 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17262 wxFontEncoding arg2 ;
17263 wxFontEncoding arg3 ;
17264 int arg4 = (int) wxCONVERT_STRICT ;
17265 bool result;
17266 void *argp1 = 0 ;
17267 int res1 = 0 ;
17268 int val2 ;
17269 int ecode2 = 0 ;
17270 int val3 ;
17271 int ecode3 = 0 ;
17272 int val4 ;
17273 int ecode4 = 0 ;
17274 PyObject * obj0 = 0 ;
17275 PyObject * obj1 = 0 ;
17276 PyObject * obj2 = 0 ;
17277 PyObject * obj3 = 0 ;
17278 char * kwnames[] = {
17279 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17280 };
17281
17282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17284 if (!SWIG_IsOK(res1)) {
17285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17286 }
17287 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17288 ecode2 = SWIG_AsVal_int(obj1, &val2);
17289 if (!SWIG_IsOK(ecode2)) {
17290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17291 }
17292 arg2 = static_cast< wxFontEncoding >(val2);
17293 ecode3 = SWIG_AsVal_int(obj2, &val3);
17294 if (!SWIG_IsOK(ecode3)) {
17295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17296 }
17297 arg3 = static_cast< wxFontEncoding >(val3);
17298 if (obj3) {
17299 ecode4 = SWIG_AsVal_int(obj3, &val4);
17300 if (!SWIG_IsOK(ecode4)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17302 }
17303 arg4 = static_cast< int >(val4);
17304 }
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 {
17312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17313 }
17314 return resultobj;
17315fail:
17316 return NULL;
17317}
17318
17319
17320SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17321 PyObject *resultobj = 0;
17322 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17323 wxString *arg2 = 0 ;
17324 wxString result;
17325 void *argp1 = 0 ;
17326 int res1 = 0 ;
17327 bool temp2 = false ;
17328 PyObject * obj0 = 0 ;
17329 PyObject * obj1 = 0 ;
17330 char * kwnames[] = {
17331 (char *) "self",(char *) "input", NULL
17332 };
17333
17334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17336 if (!SWIG_IsOK(res1)) {
17337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17338 }
17339 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17340 {
17341 arg2 = wxString_in_helper(obj1);
17342 if (arg2 == NULL) SWIG_fail;
17343 temp2 = true;
17344 }
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 result = (arg1)->Convert((wxString const &)*arg2);
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 {
d55e5bfc 17352#if wxUSE_UNICODE
1bd55598 17353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17354#else
1bd55598 17355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17356#endif
1bd55598
RD
17357 }
17358 {
17359 if (temp2)
17360 delete arg2;
17361 }
17362 return resultobj;
17363fail:
17364 {
17365 if (temp2)
17366 delete arg2;
17367 }
17368 return NULL;
17369}
17370
17371
17372SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj = 0;
17374 wxFontEncoding arg1 ;
17375 int arg2 = (int) wxPLATFORM_CURRENT ;
17376 wxFontEncodingArray result;
17377 int val1 ;
17378 int ecode1 = 0 ;
17379 int val2 ;
17380 int ecode2 = 0 ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 char * kwnames[] = {
17384 (char *) "enc",(char *) "platform", NULL
17385 };
17386
17387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17388 ecode1 = SWIG_AsVal_int(obj0, &val1);
17389 if (!SWIG_IsOK(ecode1)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17391 }
17392 arg1 = static_cast< wxFontEncoding >(val1);
17393 if (obj1) {
17394 ecode2 = SWIG_AsVal_int(obj1, &val2);
17395 if (!SWIG_IsOK(ecode2)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17397 }
17398 arg2 = static_cast< int >(val2);
17399 }
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 {
17407 resultobj = PyList_New(0);
17408 for (size_t i=0; i < (&result)->GetCount(); i++) {
17409 PyObject* number = PyInt_FromLong((&result)->Item(i));
17410 PyList_Append(resultobj, number);
17411 Py_DECREF(number);
d55e5bfc 17412 }
1bd55598
RD
17413 }
17414 return resultobj;
17415fail:
17416 return NULL;
d55e5bfc
RD
17417}
17418
17419
1bd55598
RD
17420SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj = 0;
17422 wxFontEncoding arg1 ;
17423 wxFontEncodingArray result;
17424 int val1 ;
17425 int ecode1 = 0 ;
17426 PyObject * obj0 = 0 ;
17427 char * kwnames[] = {
17428 (char *) "enc", NULL
17429 };
17430
17431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17432 ecode1 = SWIG_AsVal_int(obj0, &val1);
17433 if (!SWIG_IsOK(ecode1)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17435 }
17436 arg1 = static_cast< wxFontEncoding >(val1);
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 result = wxEncodingConverter::GetAllEquivalents(arg1);
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 {
17444 resultobj = PyList_New(0);
17445 for (size_t i=0; i < (&result)->GetCount(); i++) {
17446 PyObject* number = PyInt_FromLong((&result)->Item(i));
17447 PyList_Append(resultobj, number);
17448 Py_DECREF(number);
d55e5bfc 17449 }
1bd55598
RD
17450 }
17451 return resultobj;
17452fail:
17453 return NULL;
17454}
17455
17456
17457SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj = 0;
17459 wxFontEncoding arg1 ;
17460 wxFontEncoding arg2 ;
17461 bool result;
17462 int val1 ;
17463 int ecode1 = 0 ;
17464 int val2 ;
17465 int ecode2 = 0 ;
17466 PyObject * obj0 = 0 ;
17467 PyObject * obj1 = 0 ;
17468 char * kwnames[] = {
17469 (char *) "encIn",(char *) "encOut", NULL
17470 };
17471
17472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17473 ecode1 = SWIG_AsVal_int(obj0, &val1);
17474 if (!SWIG_IsOK(ecode1)) {
17475 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17476 }
17477 arg1 = static_cast< wxFontEncoding >(val1);
17478 ecode2 = SWIG_AsVal_int(obj1, &val2);
17479 if (!SWIG_IsOK(ecode2)) {
17480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17481 }
17482 arg2 = static_cast< wxFontEncoding >(val2);
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 {
17490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17491 }
17492 return resultobj;
17493fail:
17494 return NULL;
d55e5bfc
RD
17495}
17496
17497
1bd55598
RD
17498SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17499 PyObject *obj;
17500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17501 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17502 return SWIG_Py_Void();
d55e5bfc
RD
17503}
17504
1bd55598
RD
17505SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17506 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17507}
17508
1bd55598
RD
17509SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17510 PyObject *resultobj = 0;
17511 wxDC *arg1 = (wxDC *) 0 ;
17512 void *argp1 = 0 ;
17513 int res1 = 0 ;
17514 PyObject *swig_obj[1] ;
17515
17516 if (!args) SWIG_fail;
17517 swig_obj[0] = args;
17518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17519 if (!SWIG_IsOK(res1)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17521 }
17522 arg1 = reinterpret_cast< wxDC * >(argp1);
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 delete arg1;
d55e5bfc 17526
1bd55598
RD
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 resultobj = SWIG_Py_Void();
17531 return resultobj;
17532fail:
17533 return NULL;
17534}
17535
17536
17537SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj = 0;
17539 wxDC *arg1 = (wxDC *) 0 ;
17540 int arg2 ;
17541 int arg3 ;
17542 wxColour *arg4 = 0 ;
17543 int arg5 = (int) wxFLOOD_SURFACE ;
17544 bool result;
17545 void *argp1 = 0 ;
17546 int res1 = 0 ;
17547 int val2 ;
17548 int ecode2 = 0 ;
17549 int val3 ;
17550 int ecode3 = 0 ;
17551 wxColour temp4 ;
17552 int val5 ;
17553 int ecode5 = 0 ;
17554 PyObject * obj0 = 0 ;
17555 PyObject * obj1 = 0 ;
17556 PyObject * obj2 = 0 ;
17557 PyObject * obj3 = 0 ;
17558 PyObject * obj4 = 0 ;
17559 char * kwnames[] = {
17560 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17561 };
17562
17563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17565 if (!SWIG_IsOK(res1)) {
17566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17567 }
17568 arg1 = reinterpret_cast< wxDC * >(argp1);
17569 ecode2 = SWIG_AsVal_int(obj1, &val2);
17570 if (!SWIG_IsOK(ecode2)) {
17571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17572 }
17573 arg2 = static_cast< int >(val2);
17574 ecode3 = SWIG_AsVal_int(obj2, &val3);
17575 if (!SWIG_IsOK(ecode3)) {
17576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17577 }
17578 arg3 = static_cast< int >(val3);
17579 {
17580 arg4 = &temp4;
17581 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17582 }
17583 if (obj4) {
17584 ecode5 = SWIG_AsVal_int(obj4, &val5);
17585 if (!SWIG_IsOK(ecode5)) {
17586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17587 }
17588 arg5 = static_cast< int >(val5);
17589 }
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
17592 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17593 wxPyEndAllowThreads(__tstate);
17594 if (PyErr_Occurred()) SWIG_fail;
17595 }
17596 {
17597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17598 }
17599 return resultobj;
17600fail:
17601 return NULL;
17602}
17603
17604
17605SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj = 0;
17607 wxDC *arg1 = (wxDC *) 0 ;
17608 wxPoint *arg2 = 0 ;
17609 wxColour *arg3 = 0 ;
17610 int arg4 = (int) wxFLOOD_SURFACE ;
17611 bool result;
17612 void *argp1 = 0 ;
17613 int res1 = 0 ;
17614 wxPoint temp2 ;
17615 wxColour temp3 ;
17616 int val4 ;
17617 int ecode4 = 0 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 PyObject * obj3 = 0 ;
17622 char * kwnames[] = {
17623 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17624 };
17625
17626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17628 if (!SWIG_IsOK(res1)) {
17629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17630 }
17631 arg1 = reinterpret_cast< wxDC * >(argp1);
17632 {
17633 arg2 = &temp2;
17634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17635 }
17636 {
17637 arg3 = &temp3;
17638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17639 }
17640 if (obj3) {
17641 ecode4 = SWIG_AsVal_int(obj3, &val4);
17642 if (!SWIG_IsOK(ecode4)) {
17643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17644 }
17645 arg4 = static_cast< int >(val4);
17646 }
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
17649 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17650 wxPyEndAllowThreads(__tstate);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 }
17653 {
17654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17655 }
17656 return resultobj;
17657fail:
17658 return NULL;
17659}
17660
17661
17662SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17663 PyObject *resultobj = 0;
17664 wxDC *arg1 = (wxDC *) 0 ;
17665 wxRect *arg2 = 0 ;
17666 wxColour *arg3 = 0 ;
17667 wxColour *arg4 = 0 ;
17668 wxPoint *arg5 = 0 ;
17669 void *argp1 = 0 ;
17670 int res1 = 0 ;
17671 wxRect temp2 ;
17672 wxColour temp3 ;
17673 wxColour temp4 ;
17674 wxPoint temp5 ;
17675 PyObject * obj0 = 0 ;
17676 PyObject * obj1 = 0 ;
17677 PyObject * obj2 = 0 ;
17678 PyObject * obj3 = 0 ;
17679 PyObject * obj4 = 0 ;
17680 char * kwnames[] = {
17681 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17682 };
17683
17684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17686 if (!SWIG_IsOK(res1)) {
17687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17688 }
17689 arg1 = reinterpret_cast< wxDC * >(argp1);
17690 {
17691 arg2 = &temp2;
17692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17693 }
17694 {
17695 arg3 = &temp3;
17696 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17697 }
17698 {
17699 arg4 = &temp4;
17700 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17701 }
17702 {
17703 arg5 = &temp5;
17704 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17705 }
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 resultobj = SWIG_Py_Void();
17713 return resultobj;
17714fail:
17715 return NULL;
17716}
17717
17718
17719SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj = 0;
17721 wxDC *arg1 = (wxDC *) 0 ;
17722 wxRect *arg2 = 0 ;
17723 wxColour *arg3 = 0 ;
17724 wxColour *arg4 = 0 ;
17725 wxDirection arg5 = (wxDirection) wxEAST ;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 wxRect temp2 ;
17729 wxColour temp3 ;
17730 wxColour temp4 ;
17731 int val5 ;
17732 int ecode5 = 0 ;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 PyObject * obj2 = 0 ;
17736 PyObject * obj3 = 0 ;
17737 PyObject * obj4 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17746 }
17747 arg1 = reinterpret_cast< wxDC * >(argp1);
17748 {
17749 arg2 = &temp2;
17750 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17751 }
17752 {
17753 arg3 = &temp3;
17754 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17755 }
17756 {
17757 arg4 = &temp4;
17758 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17759 }
17760 if (obj4) {
17761 ecode5 = SWIG_AsVal_int(obj4, &val5);
17762 if (!SWIG_IsOK(ecode5)) {
17763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17764 }
17765 arg5 = static_cast< wxDirection >(val5);
17766 }
17767 {
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 resultobj = SWIG_Py_Void();
17774 return resultobj;
17775fail:
17776 return NULL;
17777}
17778
17779
17780SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17781 PyObject *resultobj = 0;
17782 wxDC *arg1 = (wxDC *) 0 ;
17783 int arg2 ;
17784 int arg3 ;
17785 wxColour result;
17786 void *argp1 = 0 ;
17787 int res1 = 0 ;
17788 int val2 ;
17789 int ecode2 = 0 ;
17790 int val3 ;
17791 int ecode3 = 0 ;
17792 PyObject * obj0 = 0 ;
17793 PyObject * obj1 = 0 ;
17794 PyObject * obj2 = 0 ;
17795 char * kwnames[] = {
17796 (char *) "self",(char *) "x",(char *) "y", NULL
17797 };
17798
17799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17801 if (!SWIG_IsOK(res1)) {
17802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17803 }
17804 arg1 = reinterpret_cast< wxDC * >(argp1);
17805 ecode2 = SWIG_AsVal_int(obj1, &val2);
17806 if (!SWIG_IsOK(ecode2)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17808 }
17809 arg2 = static_cast< int >(val2);
17810 ecode3 = SWIG_AsVal_int(obj2, &val3);
17811 if (!SWIG_IsOK(ecode3)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17813 }
17814 arg3 = static_cast< int >(val3);
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 result = wxDC_GetPixel(arg1,arg2,arg3);
17818 wxPyEndAllowThreads(__tstate);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 }
17821 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17822 return resultobj;
17823fail:
17824 return NULL;
17825}
17826
17827
17828SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj = 0;
17830 wxDC *arg1 = (wxDC *) 0 ;
17831 wxPoint *arg2 = 0 ;
17832 wxColour result;
17833 void *argp1 = 0 ;
17834 int res1 = 0 ;
17835 wxPoint temp2 ;
17836 PyObject * obj0 = 0 ;
17837 PyObject * obj1 = 0 ;
17838 char * kwnames[] = {
17839 (char *) "self",(char *) "pt", NULL
17840 };
17841
17842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17844 if (!SWIG_IsOK(res1)) {
17845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17846 }
17847 arg1 = reinterpret_cast< wxDC * >(argp1);
17848 {
17849 arg2 = &temp2;
17850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17851 }
17852 {
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17855 wxPyEndAllowThreads(__tstate);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17859 return resultobj;
17860fail:
17861 return NULL;
17862}
17863
17864
17865SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17866 PyObject *resultobj = 0;
17867 wxDC *arg1 = (wxDC *) 0 ;
17868 int arg2 ;
17869 int arg3 ;
17870 int arg4 ;
17871 int arg5 ;
17872 void *argp1 = 0 ;
17873 int res1 = 0 ;
17874 int val2 ;
17875 int ecode2 = 0 ;
17876 int val3 ;
17877 int ecode3 = 0 ;
17878 int val4 ;
17879 int ecode4 = 0 ;
17880 int val5 ;
17881 int ecode5 = 0 ;
17882 PyObject * obj0 = 0 ;
17883 PyObject * obj1 = 0 ;
17884 PyObject * obj2 = 0 ;
17885 PyObject * obj3 = 0 ;
17886 PyObject * obj4 = 0 ;
17887 char * kwnames[] = {
17888 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17889 };
17890
17891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17893 if (!SWIG_IsOK(res1)) {
17894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17895 }
17896 arg1 = reinterpret_cast< wxDC * >(argp1);
17897 ecode2 = SWIG_AsVal_int(obj1, &val2);
17898 if (!SWIG_IsOK(ecode2)) {
17899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17900 }
17901 arg2 = static_cast< int >(val2);
17902 ecode3 = SWIG_AsVal_int(obj2, &val3);
17903 if (!SWIG_IsOK(ecode3)) {
17904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17905 }
17906 arg3 = static_cast< int >(val3);
17907 ecode4 = SWIG_AsVal_int(obj3, &val4);
17908 if (!SWIG_IsOK(ecode4)) {
17909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17910 }
17911 arg4 = static_cast< int >(val4);
17912 ecode5 = SWIG_AsVal_int(obj4, &val5);
17913 if (!SWIG_IsOK(ecode5)) {
17914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17915 }
17916 arg5 = static_cast< int >(val5);
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 resultobj = SWIG_Py_Void();
17924 return resultobj;
17925fail:
17926 return NULL;
17927}
17928
17929
17930SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17931 PyObject *resultobj = 0;
17932 wxDC *arg1 = (wxDC *) 0 ;
17933 wxPoint *arg2 = 0 ;
17934 wxPoint *arg3 = 0 ;
17935 void *argp1 = 0 ;
17936 int res1 = 0 ;
17937 wxPoint temp2 ;
17938 wxPoint temp3 ;
17939 PyObject * obj0 = 0 ;
17940 PyObject * obj1 = 0 ;
17941 PyObject * obj2 = 0 ;
17942 char * kwnames[] = {
17943 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17944 };
17945
17946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17950 }
17951 arg1 = reinterpret_cast< wxDC * >(argp1);
17952 {
17953 arg2 = &temp2;
17954 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17955 }
17956 {
17957 arg3 = &temp3;
17958 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17959 }
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17963 wxPyEndAllowThreads(__tstate);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 resultobj = SWIG_Py_Void();
17967 return resultobj;
17968fail:
17969 return NULL;
17970}
17971
17972
17973SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17974 PyObject *resultobj = 0;
17975 wxDC *arg1 = (wxDC *) 0 ;
17976 int arg2 ;
17977 int arg3 ;
17978 void *argp1 = 0 ;
17979 int res1 = 0 ;
17980 int val2 ;
17981 int ecode2 = 0 ;
17982 int val3 ;
17983 int ecode3 = 0 ;
17984 PyObject * obj0 = 0 ;
17985 PyObject * obj1 = 0 ;
17986 PyObject * obj2 = 0 ;
17987 char * kwnames[] = {
17988 (char *) "self",(char *) "x",(char *) "y", NULL
17989 };
17990
17991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17993 if (!SWIG_IsOK(res1)) {
17994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17995 }
17996 arg1 = reinterpret_cast< wxDC * >(argp1);
17997 ecode2 = SWIG_AsVal_int(obj1, &val2);
17998 if (!SWIG_IsOK(ecode2)) {
17999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18000 }
18001 arg2 = static_cast< int >(val2);
18002 ecode3 = SWIG_AsVal_int(obj2, &val3);
18003 if (!SWIG_IsOK(ecode3)) {
18004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18005 }
18006 arg3 = static_cast< int >(val3);
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->CrossHair(arg2,arg3);
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = SWIG_Py_Void();
18014 return resultobj;
18015fail:
18016 return NULL;
18017}
18018
18019
18020SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj = 0;
18022 wxDC *arg1 = (wxDC *) 0 ;
18023 wxPoint *arg2 = 0 ;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 wxPoint temp2 ;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 char * kwnames[] = {
18030 (char *) "self",(char *) "pt", NULL
18031 };
18032
18033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18037 }
18038 arg1 = reinterpret_cast< wxDC * >(argp1);
18039 {
18040 arg2 = &temp2;
18041 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18042 }
18043 {
18044 PyThreadState* __tstate = wxPyBeginAllowThreads();
18045 (arg1)->CrossHair((wxPoint const &)*arg2);
18046 wxPyEndAllowThreads(__tstate);
18047 if (PyErr_Occurred()) SWIG_fail;
18048 }
18049 resultobj = SWIG_Py_Void();
18050 return resultobj;
18051fail:
18052 return NULL;
18053}
18054
18055
18056SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18057 PyObject *resultobj = 0;
18058 wxDC *arg1 = (wxDC *) 0 ;
18059 int arg2 ;
18060 int arg3 ;
18061 int arg4 ;
18062 int arg5 ;
18063 int arg6 ;
18064 int arg7 ;
18065 void *argp1 = 0 ;
18066 int res1 = 0 ;
18067 int val2 ;
18068 int ecode2 = 0 ;
18069 int val3 ;
18070 int ecode3 = 0 ;
18071 int val4 ;
18072 int ecode4 = 0 ;
18073 int val5 ;
18074 int ecode5 = 0 ;
18075 int val6 ;
18076 int ecode6 = 0 ;
18077 int val7 ;
18078 int ecode7 = 0 ;
18079 PyObject * obj0 = 0 ;
18080 PyObject * obj1 = 0 ;
18081 PyObject * obj2 = 0 ;
18082 PyObject * obj3 = 0 ;
18083 PyObject * obj4 = 0 ;
18084 PyObject * obj5 = 0 ;
18085 PyObject * obj6 = 0 ;
18086 char * kwnames[] = {
18087 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18088 };
18089
18090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18092 if (!SWIG_IsOK(res1)) {
18093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18094 }
18095 arg1 = reinterpret_cast< wxDC * >(argp1);
18096 ecode2 = SWIG_AsVal_int(obj1, &val2);
18097 if (!SWIG_IsOK(ecode2)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18099 }
18100 arg2 = static_cast< int >(val2);
18101 ecode3 = SWIG_AsVal_int(obj2, &val3);
18102 if (!SWIG_IsOK(ecode3)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18104 }
18105 arg3 = static_cast< int >(val3);
18106 ecode4 = SWIG_AsVal_int(obj3, &val4);
18107 if (!SWIG_IsOK(ecode4)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18109 }
18110 arg4 = static_cast< int >(val4);
18111 ecode5 = SWIG_AsVal_int(obj4, &val5);
18112 if (!SWIG_IsOK(ecode5)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18114 }
18115 arg5 = static_cast< int >(val5);
18116 ecode6 = SWIG_AsVal_int(obj5, &val6);
18117 if (!SWIG_IsOK(ecode6)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18119 }
18120 arg6 = static_cast< int >(val6);
18121 ecode7 = SWIG_AsVal_int(obj6, &val7);
18122 if (!SWIG_IsOK(ecode7)) {
18123 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18124 }
18125 arg7 = static_cast< int >(val7);
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_Py_Void();
18133 return resultobj;
18134fail:
18135 return NULL;
18136}
18137
18138
18139SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxDC *arg1 = (wxDC *) 0 ;
18142 wxPoint *arg2 = 0 ;
18143 wxPoint *arg3 = 0 ;
18144 wxPoint *arg4 = 0 ;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 wxPoint temp2 ;
18148 wxPoint temp3 ;
18149 wxPoint temp4 ;
18150 PyObject * obj0 = 0 ;
18151 PyObject * obj1 = 0 ;
18152 PyObject * obj2 = 0 ;
18153 PyObject * obj3 = 0 ;
18154 char * kwnames[] = {
18155 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18156 };
18157
18158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18160 if (!SWIG_IsOK(res1)) {
18161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18162 }
18163 arg1 = reinterpret_cast< wxDC * >(argp1);
18164 {
18165 arg2 = &temp2;
18166 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18167 }
18168 {
18169 arg3 = &temp3;
18170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18171 }
18172 {
18173 arg4 = &temp4;
18174 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18175 }
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 resultobj = SWIG_Py_Void();
18183 return resultobj;
18184fail:
18185 return NULL;
18186}
18187
18188
18189SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18190 PyObject *resultobj = 0;
18191 wxDC *arg1 = (wxDC *) 0 ;
18192 int arg2 ;
18193 int arg3 ;
18194 int arg4 ;
18195 int arg5 ;
18196 void *argp1 = 0 ;
18197 int res1 = 0 ;
18198 int val2 ;
18199 int ecode2 = 0 ;
18200 int val3 ;
18201 int ecode3 = 0 ;
18202 int val4 ;
18203 int ecode4 = 0 ;
18204 int val5 ;
18205 int ecode5 = 0 ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 PyObject * obj2 = 0 ;
18209 PyObject * obj3 = 0 ;
18210 PyObject * obj4 = 0 ;
18211 char * kwnames[] = {
18212 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18213 };
18214
18215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18217 if (!SWIG_IsOK(res1)) {
18218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18219 }
18220 arg1 = reinterpret_cast< wxDC * >(argp1);
18221 ecode2 = SWIG_AsVal_int(obj1, &val2);
18222 if (!SWIG_IsOK(ecode2)) {
18223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18224 }
18225 arg2 = static_cast< int >(val2);
18226 ecode3 = SWIG_AsVal_int(obj2, &val3);
18227 if (!SWIG_IsOK(ecode3)) {
18228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18229 }
18230 arg3 = static_cast< int >(val3);
18231 ecode4 = SWIG_AsVal_int(obj3, &val4);
18232 if (!SWIG_IsOK(ecode4)) {
18233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18234 }
18235 arg4 = static_cast< int >(val4);
18236 ecode5 = SWIG_AsVal_int(obj4, &val5);
18237 if (!SWIG_IsOK(ecode5)) {
18238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18239 }
18240 arg5 = static_cast< int >(val5);
18241 {
18242 PyThreadState* __tstate = wxPyBeginAllowThreads();
18243 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18244 wxPyEndAllowThreads(__tstate);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 resultobj = SWIG_Py_Void();
18248 return resultobj;
18249fail:
18250 return NULL;
18251}
18252
18253
18254SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj = 0;
18256 wxDC *arg1 = (wxDC *) 0 ;
18257 wxRect *arg2 = 0 ;
18258 void *argp1 = 0 ;
18259 int res1 = 0 ;
18260 wxRect temp2 ;
18261 PyObject * obj0 = 0 ;
18262 PyObject * obj1 = 0 ;
18263 char * kwnames[] = {
18264 (char *) "self",(char *) "rect", NULL
18265 };
18266
18267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18271 }
18272 arg1 = reinterpret_cast< wxDC * >(argp1);
18273 {
18274 arg2 = &temp2;
18275 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18276 }
18277 {
18278 PyThreadState* __tstate = wxPyBeginAllowThreads();
18279 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18280 wxPyEndAllowThreads(__tstate);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 resultobj = SWIG_Py_Void();
18284 return resultobj;
18285fail:
18286 return NULL;
18287}
18288
18289
18290SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18291 PyObject *resultobj = 0;
18292 wxDC *arg1 = (wxDC *) 0 ;
18293 int arg2 ;
18294 int arg3 ;
18295 int arg4 ;
18296 int arg5 ;
18297 double arg6 ;
18298 double arg7 ;
18299 void *argp1 = 0 ;
18300 int res1 = 0 ;
18301 int val2 ;
18302 int ecode2 = 0 ;
18303 int val3 ;
18304 int ecode3 = 0 ;
18305 int val4 ;
18306 int ecode4 = 0 ;
18307 int val5 ;
18308 int ecode5 = 0 ;
18309 double val6 ;
18310 int ecode6 = 0 ;
18311 double val7 ;
18312 int ecode7 = 0 ;
18313 PyObject * obj0 = 0 ;
18314 PyObject * obj1 = 0 ;
18315 PyObject * obj2 = 0 ;
18316 PyObject * obj3 = 0 ;
18317 PyObject * obj4 = 0 ;
18318 PyObject * obj5 = 0 ;
18319 PyObject * obj6 = 0 ;
18320 char * kwnames[] = {
18321 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18322 };
18323
18324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18326 if (!SWIG_IsOK(res1)) {
18327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18328 }
18329 arg1 = reinterpret_cast< wxDC * >(argp1);
18330 ecode2 = SWIG_AsVal_int(obj1, &val2);
18331 if (!SWIG_IsOK(ecode2)) {
18332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18333 }
18334 arg2 = static_cast< int >(val2);
18335 ecode3 = SWIG_AsVal_int(obj2, &val3);
18336 if (!SWIG_IsOK(ecode3)) {
18337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18338 }
18339 arg3 = static_cast< int >(val3);
18340 ecode4 = SWIG_AsVal_int(obj3, &val4);
18341 if (!SWIG_IsOK(ecode4)) {
18342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18343 }
18344 arg4 = static_cast< int >(val4);
18345 ecode5 = SWIG_AsVal_int(obj4, &val5);
18346 if (!SWIG_IsOK(ecode5)) {
18347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18348 }
18349 arg5 = static_cast< int >(val5);
18350 ecode6 = SWIG_AsVal_double(obj5, &val6);
18351 if (!SWIG_IsOK(ecode6)) {
18352 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18353 }
18354 arg6 = static_cast< double >(val6);
18355 ecode7 = SWIG_AsVal_double(obj6, &val7);
18356 if (!SWIG_IsOK(ecode7)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18358 }
18359 arg7 = static_cast< double >(val7);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_Py_Void();
18367 return resultobj;
18368fail:
18369 return NULL;
18370}
18371
18372
18373SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj = 0;
18375 wxDC *arg1 = (wxDC *) 0 ;
18376 wxPoint *arg2 = 0 ;
18377 wxSize *arg3 = 0 ;
18378 double arg4 ;
18379 double arg5 ;
18380 void *argp1 = 0 ;
18381 int res1 = 0 ;
18382 wxPoint temp2 ;
18383 wxSize temp3 ;
18384 double val4 ;
18385 int ecode4 = 0 ;
18386 double val5 ;
18387 int ecode5 = 0 ;
18388 PyObject * obj0 = 0 ;
18389 PyObject * obj1 = 0 ;
18390 PyObject * obj2 = 0 ;
18391 PyObject * obj3 = 0 ;
18392 PyObject * obj4 = 0 ;
18393 char * kwnames[] = {
18394 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18395 };
18396
18397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18399 if (!SWIG_IsOK(res1)) {
18400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18401 }
18402 arg1 = reinterpret_cast< wxDC * >(argp1);
18403 {
18404 arg2 = &temp2;
18405 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18406 }
18407 {
18408 arg3 = &temp3;
18409 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18410 }
18411 ecode4 = SWIG_AsVal_double(obj3, &val4);
18412 if (!SWIG_IsOK(ecode4)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18414 }
18415 arg4 = static_cast< double >(val4);
18416 ecode5 = SWIG_AsVal_double(obj4, &val5);
18417 if (!SWIG_IsOK(ecode5)) {
18418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18419 }
18420 arg5 = static_cast< double >(val5);
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 resultobj = SWIG_Py_Void();
18428 return resultobj;
18429fail:
18430 return NULL;
18431}
18432
18433
18434SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj = 0;
18436 wxDC *arg1 = (wxDC *) 0 ;
18437 int arg2 ;
18438 int arg3 ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 int val2 ;
18442 int ecode2 = 0 ;
18443 int val3 ;
18444 int ecode3 = 0 ;
18445 PyObject * obj0 = 0 ;
18446 PyObject * obj1 = 0 ;
18447 PyObject * obj2 = 0 ;
18448 char * kwnames[] = {
18449 (char *) "self",(char *) "x",(char *) "y", NULL
18450 };
18451
18452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18454 if (!SWIG_IsOK(res1)) {
18455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18456 }
18457 arg1 = reinterpret_cast< wxDC * >(argp1);
18458 ecode2 = SWIG_AsVal_int(obj1, &val2);
18459 if (!SWIG_IsOK(ecode2)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18461 }
18462 arg2 = static_cast< int >(val2);
18463 ecode3 = SWIG_AsVal_int(obj2, &val3);
18464 if (!SWIG_IsOK(ecode3)) {
18465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18466 }
18467 arg3 = static_cast< int >(val3);
18468 {
18469 PyThreadState* __tstate = wxPyBeginAllowThreads();
18470 (arg1)->DrawPoint(arg2,arg3);
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 resultobj = SWIG_Py_Void();
18475 return resultobj;
18476fail:
18477 return NULL;
18478}
18479
18480
18481SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj = 0;
18483 wxDC *arg1 = (wxDC *) 0 ;
18484 wxPoint *arg2 = 0 ;
18485 void *argp1 = 0 ;
18486 int res1 = 0 ;
18487 wxPoint temp2 ;
18488 PyObject * obj0 = 0 ;
18489 PyObject * obj1 = 0 ;
18490 char * kwnames[] = {
18491 (char *) "self",(char *) "pt", NULL
18492 };
18493
18494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18496 if (!SWIG_IsOK(res1)) {
18497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18498 }
18499 arg1 = reinterpret_cast< wxDC * >(argp1);
18500 {
18501 arg2 = &temp2;
18502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18503 }
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 (arg1)->DrawPoint((wxPoint const &)*arg2);
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_Py_Void();
18511 return resultobj;
18512fail:
18513 return NULL;
18514}
18515
18516
18517SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxDC *arg1 = (wxDC *) 0 ;
18520 int arg2 ;
18521 int arg3 ;
18522 int arg4 ;
18523 int arg5 ;
18524 void *argp1 = 0 ;
18525 int res1 = 0 ;
18526 int val2 ;
18527 int ecode2 = 0 ;
18528 int val3 ;
18529 int ecode3 = 0 ;
18530 int val4 ;
18531 int ecode4 = 0 ;
18532 int val5 ;
18533 int ecode5 = 0 ;
18534 PyObject * obj0 = 0 ;
18535 PyObject * obj1 = 0 ;
18536 PyObject * obj2 = 0 ;
18537 PyObject * obj3 = 0 ;
18538 PyObject * obj4 = 0 ;
18539 char * kwnames[] = {
18540 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18541 };
18542
18543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18545 if (!SWIG_IsOK(res1)) {
18546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18547 }
18548 arg1 = reinterpret_cast< wxDC * >(argp1);
18549 ecode2 = SWIG_AsVal_int(obj1, &val2);
18550 if (!SWIG_IsOK(ecode2)) {
18551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18552 }
18553 arg2 = static_cast< int >(val2);
18554 ecode3 = SWIG_AsVal_int(obj2, &val3);
18555 if (!SWIG_IsOK(ecode3)) {
18556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18557 }
18558 arg3 = static_cast< int >(val3);
18559 ecode4 = SWIG_AsVal_int(obj3, &val4);
18560 if (!SWIG_IsOK(ecode4)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18562 }
18563 arg4 = static_cast< int >(val4);
18564 ecode5 = SWIG_AsVal_int(obj4, &val5);
18565 if (!SWIG_IsOK(ecode5)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18567 }
18568 arg5 = static_cast< int >(val5);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577fail:
18578 return NULL;
18579}
18580
18581
18582SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxDC *arg1 = (wxDC *) 0 ;
18585 wxRect *arg2 = 0 ;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 wxRect temp2 ;
18589 PyObject * obj0 = 0 ;
18590 PyObject * obj1 = 0 ;
18591 char * kwnames[] = {
18592 (char *) "self",(char *) "rect", NULL
18593 };
18594
18595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18597 if (!SWIG_IsOK(res1)) {
18598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18599 }
18600 arg1 = reinterpret_cast< wxDC * >(argp1);
18601 {
18602 arg2 = &temp2;
18603 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18604 }
18605 {
18606 PyThreadState* __tstate = wxPyBeginAllowThreads();
18607 (arg1)->DrawRectangle((wxRect const &)*arg2);
18608 wxPyEndAllowThreads(__tstate);
18609 if (PyErr_Occurred()) SWIG_fail;
18610 }
18611 resultobj = SWIG_Py_Void();
18612 return resultobj;
18613fail:
18614 return NULL;
18615}
18616
18617
18618SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18619 PyObject *resultobj = 0;
18620 wxDC *arg1 = (wxDC *) 0 ;
18621 wxPoint *arg2 = 0 ;
18622 wxSize *arg3 = 0 ;
18623 void *argp1 = 0 ;
18624 int res1 = 0 ;
18625 wxPoint temp2 ;
18626 wxSize temp3 ;
18627 PyObject * obj0 = 0 ;
18628 PyObject * obj1 = 0 ;
18629 PyObject * obj2 = 0 ;
18630 char * kwnames[] = {
18631 (char *) "self",(char *) "pt",(char *) "sz", NULL
18632 };
18633
18634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18636 if (!SWIG_IsOK(res1)) {
18637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18638 }
18639 arg1 = reinterpret_cast< wxDC * >(argp1);
18640 {
18641 arg2 = &temp2;
18642 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18643 }
18644 {
18645 arg3 = &temp3;
18646 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18647 }
18648 {
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_Py_Void();
18655 return resultobj;
18656fail:
18657 return NULL;
18658}
18659
18660
18661SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = 0;
18663 wxDC *arg1 = (wxDC *) 0 ;
18664 int arg2 ;
18665 int arg3 ;
18666 int arg4 ;
18667 int arg5 ;
18668 double arg6 ;
18669 void *argp1 = 0 ;
18670 int res1 = 0 ;
18671 int val2 ;
18672 int ecode2 = 0 ;
18673 int val3 ;
18674 int ecode3 = 0 ;
18675 int val4 ;
18676 int ecode4 = 0 ;
18677 int val5 ;
18678 int ecode5 = 0 ;
18679 double val6 ;
18680 int ecode6 = 0 ;
18681 PyObject * obj0 = 0 ;
18682 PyObject * obj1 = 0 ;
18683 PyObject * obj2 = 0 ;
18684 PyObject * obj3 = 0 ;
18685 PyObject * obj4 = 0 ;
18686 PyObject * obj5 = 0 ;
18687 char * kwnames[] = {
18688 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18689 };
18690
18691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18693 if (!SWIG_IsOK(res1)) {
18694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18695 }
18696 arg1 = reinterpret_cast< wxDC * >(argp1);
18697 ecode2 = SWIG_AsVal_int(obj1, &val2);
18698 if (!SWIG_IsOK(ecode2)) {
18699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18700 }
18701 arg2 = static_cast< int >(val2);
18702 ecode3 = SWIG_AsVal_int(obj2, &val3);
18703 if (!SWIG_IsOK(ecode3)) {
18704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18705 }
18706 arg3 = static_cast< int >(val3);
18707 ecode4 = SWIG_AsVal_int(obj3, &val4);
18708 if (!SWIG_IsOK(ecode4)) {
18709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18710 }
18711 arg4 = static_cast< int >(val4);
18712 ecode5 = SWIG_AsVal_int(obj4, &val5);
18713 if (!SWIG_IsOK(ecode5)) {
18714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18715 }
18716 arg5 = static_cast< int >(val5);
18717 ecode6 = SWIG_AsVal_double(obj5, &val6);
18718 if (!SWIG_IsOK(ecode6)) {
18719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18720 }
18721 arg6 = static_cast< double >(val6);
18722 {
18723 PyThreadState* __tstate = wxPyBeginAllowThreads();
18724 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18725 wxPyEndAllowThreads(__tstate);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 }
18728 resultobj = SWIG_Py_Void();
18729 return resultobj;
18730fail:
18731 return NULL;
18732}
18733
18734
18735SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18736 PyObject *resultobj = 0;
18737 wxDC *arg1 = (wxDC *) 0 ;
18738 wxRect *arg2 = 0 ;
18739 double arg3 ;
18740 void *argp1 = 0 ;
18741 int res1 = 0 ;
18742 wxRect temp2 ;
18743 double val3 ;
18744 int ecode3 = 0 ;
18745 PyObject * obj0 = 0 ;
18746 PyObject * obj1 = 0 ;
18747 PyObject * obj2 = 0 ;
18748 char * kwnames[] = {
18749 (char *) "self",(char *) "r",(char *) "radius", NULL
18750 };
18751
18752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18754 if (!SWIG_IsOK(res1)) {
18755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18756 }
18757 arg1 = reinterpret_cast< wxDC * >(argp1);
18758 {
18759 arg2 = &temp2;
18760 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18761 }
18762 ecode3 = SWIG_AsVal_double(obj2, &val3);
18763 if (!SWIG_IsOK(ecode3)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18765 }
18766 arg3 = static_cast< double >(val3);
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18770 wxPyEndAllowThreads(__tstate);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 resultobj = SWIG_Py_Void();
18774 return resultobj;
18775fail:
18776 return NULL;
18777}
18778
18779
18780SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18781 PyObject *resultobj = 0;
18782 wxDC *arg1 = (wxDC *) 0 ;
18783 wxPoint *arg2 = 0 ;
18784 wxSize *arg3 = 0 ;
18785 double arg4 ;
18786 void *argp1 = 0 ;
18787 int res1 = 0 ;
18788 wxPoint temp2 ;
18789 wxSize temp3 ;
18790 double val4 ;
18791 int ecode4 = 0 ;
18792 PyObject * obj0 = 0 ;
18793 PyObject * obj1 = 0 ;
18794 PyObject * obj2 = 0 ;
18795 PyObject * obj3 = 0 ;
18796 char * kwnames[] = {
18797 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18798 };
18799
18800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18802 if (!SWIG_IsOK(res1)) {
18803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18804 }
18805 arg1 = reinterpret_cast< wxDC * >(argp1);
18806 {
18807 arg2 = &temp2;
18808 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18809 }
18810 {
18811 arg3 = &temp3;
18812 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18813 }
18814 ecode4 = SWIG_AsVal_double(obj3, &val4);
18815 if (!SWIG_IsOK(ecode4)) {
18816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18817 }
18818 arg4 = static_cast< double >(val4);
18819 {
18820 PyThreadState* __tstate = wxPyBeginAllowThreads();
18821 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18822 wxPyEndAllowThreads(__tstate);
18823 if (PyErr_Occurred()) SWIG_fail;
18824 }
18825 resultobj = SWIG_Py_Void();
18826 return resultobj;
18827fail:
18828 return NULL;
18829}
18830
18831
18832SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18833 PyObject *resultobj = 0;
18834 wxDC *arg1 = (wxDC *) 0 ;
18835 int arg2 ;
18836 int arg3 ;
18837 int arg4 ;
18838 void *argp1 = 0 ;
18839 int res1 = 0 ;
18840 int val2 ;
18841 int ecode2 = 0 ;
18842 int val3 ;
18843 int ecode3 = 0 ;
18844 int val4 ;
18845 int ecode4 = 0 ;
18846 PyObject * obj0 = 0 ;
18847 PyObject * obj1 = 0 ;
18848 PyObject * obj2 = 0 ;
18849 PyObject * obj3 = 0 ;
18850 char * kwnames[] = {
18851 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18852 };
18853
18854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18856 if (!SWIG_IsOK(res1)) {
18857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18858 }
18859 arg1 = reinterpret_cast< wxDC * >(argp1);
18860 ecode2 = SWIG_AsVal_int(obj1, &val2);
18861 if (!SWIG_IsOK(ecode2)) {
18862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18863 }
18864 arg2 = static_cast< int >(val2);
18865 ecode3 = SWIG_AsVal_int(obj2, &val3);
18866 if (!SWIG_IsOK(ecode3)) {
18867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18868 }
18869 arg3 = static_cast< int >(val3);
18870 ecode4 = SWIG_AsVal_int(obj3, &val4);
18871 if (!SWIG_IsOK(ecode4)) {
18872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18873 }
18874 arg4 = static_cast< int >(val4);
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 (arg1)->DrawCircle(arg2,arg3,arg4);
18878 wxPyEndAllowThreads(__tstate);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 resultobj = SWIG_Py_Void();
18882 return resultobj;
18883fail:
18884 return NULL;
18885}
18886
18887
18888SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18889 PyObject *resultobj = 0;
18890 wxDC *arg1 = (wxDC *) 0 ;
18891 wxPoint *arg2 = 0 ;
18892 int arg3 ;
18893 void *argp1 = 0 ;
18894 int res1 = 0 ;
18895 wxPoint temp2 ;
18896 int val3 ;
18897 int ecode3 = 0 ;
18898 PyObject * obj0 = 0 ;
18899 PyObject * obj1 = 0 ;
18900 PyObject * obj2 = 0 ;
18901 char * kwnames[] = {
18902 (char *) "self",(char *) "pt",(char *) "radius", NULL
18903 };
18904
18905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18907 if (!SWIG_IsOK(res1)) {
18908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18909 }
18910 arg1 = reinterpret_cast< wxDC * >(argp1);
18911 {
18912 arg2 = &temp2;
18913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18914 }
18915 ecode3 = SWIG_AsVal_int(obj2, &val3);
18916 if (!SWIG_IsOK(ecode3)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18918 }
18919 arg3 = static_cast< int >(val3);
18920 {
18921 PyThreadState* __tstate = wxPyBeginAllowThreads();
18922 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 resultobj = SWIG_Py_Void();
18927 return resultobj;
18928fail:
18929 return NULL;
18930}
18931
18932
18933SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18934 PyObject *resultobj = 0;
18935 wxDC *arg1 = (wxDC *) 0 ;
18936 int arg2 ;
18937 int arg3 ;
18938 int arg4 ;
18939 int arg5 ;
18940 void *argp1 = 0 ;
18941 int res1 = 0 ;
18942 int val2 ;
18943 int ecode2 = 0 ;
18944 int val3 ;
18945 int ecode3 = 0 ;
18946 int val4 ;
18947 int ecode4 = 0 ;
18948 int val5 ;
18949 int ecode5 = 0 ;
18950 PyObject * obj0 = 0 ;
18951 PyObject * obj1 = 0 ;
18952 PyObject * obj2 = 0 ;
18953 PyObject * obj3 = 0 ;
18954 PyObject * obj4 = 0 ;
18955 char * kwnames[] = {
18956 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18957 };
18958
18959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18961 if (!SWIG_IsOK(res1)) {
18962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18963 }
18964 arg1 = reinterpret_cast< wxDC * >(argp1);
18965 ecode2 = SWIG_AsVal_int(obj1, &val2);
18966 if (!SWIG_IsOK(ecode2)) {
18967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18968 }
18969 arg2 = static_cast< int >(val2);
18970 ecode3 = SWIG_AsVal_int(obj2, &val3);
18971 if (!SWIG_IsOK(ecode3)) {
18972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18973 }
18974 arg3 = static_cast< int >(val3);
18975 ecode4 = SWIG_AsVal_int(obj3, &val4);
18976 if (!SWIG_IsOK(ecode4)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18978 }
18979 arg4 = static_cast< int >(val4);
18980 ecode5 = SWIG_AsVal_int(obj4, &val5);
18981 if (!SWIG_IsOK(ecode5)) {
18982 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18983 }
18984 arg5 = static_cast< int >(val5);
18985 {
18986 PyThreadState* __tstate = wxPyBeginAllowThreads();
18987 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18988 wxPyEndAllowThreads(__tstate);
18989 if (PyErr_Occurred()) SWIG_fail;
18990 }
18991 resultobj = SWIG_Py_Void();
18992 return resultobj;
18993fail:
18994 return NULL;
18995}
18996
18997
18998SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18999 PyObject *resultobj = 0;
19000 wxDC *arg1 = (wxDC *) 0 ;
19001 wxRect *arg2 = 0 ;
19002 void *argp1 = 0 ;
19003 int res1 = 0 ;
19004 wxRect temp2 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 char * kwnames[] = {
19008 (char *) "self",(char *) "rect", NULL
19009 };
19010
19011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19013 if (!SWIG_IsOK(res1)) {
19014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19015 }
19016 arg1 = reinterpret_cast< wxDC * >(argp1);
19017 {
19018 arg2 = &temp2;
19019 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19020 }
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 (arg1)->DrawEllipse((wxRect const &)*arg2);
19024 wxPyEndAllowThreads(__tstate);
19025 if (PyErr_Occurred()) SWIG_fail;
19026 }
19027 resultobj = SWIG_Py_Void();
19028 return resultobj;
19029fail:
19030 return NULL;
19031}
19032
19033
19034SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19035 PyObject *resultobj = 0;
19036 wxDC *arg1 = (wxDC *) 0 ;
19037 wxPoint *arg2 = 0 ;
19038 wxSize *arg3 = 0 ;
19039 void *argp1 = 0 ;
19040 int res1 = 0 ;
19041 wxPoint temp2 ;
19042 wxSize temp3 ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 PyObject * obj2 = 0 ;
19046 char * kwnames[] = {
19047 (char *) "self",(char *) "pt",(char *) "sz", NULL
19048 };
19049
19050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19052 if (!SWIG_IsOK(res1)) {
19053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19054 }
19055 arg1 = reinterpret_cast< wxDC * >(argp1);
19056 {
19057 arg2 = &temp2;
19058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19059 }
19060 {
19061 arg3 = &temp3;
19062 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19063 }
19064 {
19065 PyThreadState* __tstate = wxPyBeginAllowThreads();
19066 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 resultobj = SWIG_Py_Void();
19071 return resultobj;
19072fail:
19073 return NULL;
19074}
19075
19076
19077SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19078 PyObject *resultobj = 0;
19079 wxDC *arg1 = (wxDC *) 0 ;
19080 wxIcon *arg2 = 0 ;
19081 int arg3 ;
19082 int arg4 ;
19083 void *argp1 = 0 ;
19084 int res1 = 0 ;
19085 void *argp2 = 0 ;
19086 int res2 = 0 ;
19087 int val3 ;
19088 int ecode3 = 0 ;
19089 int val4 ;
19090 int ecode4 = 0 ;
19091 PyObject * obj0 = 0 ;
19092 PyObject * obj1 = 0 ;
19093 PyObject * obj2 = 0 ;
19094 PyObject * obj3 = 0 ;
19095 char * kwnames[] = {
19096 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19097 };
19098
19099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19101 if (!SWIG_IsOK(res1)) {
19102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19103 }
19104 arg1 = reinterpret_cast< wxDC * >(argp1);
19105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19106 if (!SWIG_IsOK(res2)) {
19107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19108 }
19109 if (!argp2) {
19110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19111 }
19112 arg2 = reinterpret_cast< wxIcon * >(argp2);
19113 ecode3 = SWIG_AsVal_int(obj2, &val3);
19114 if (!SWIG_IsOK(ecode3)) {
19115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19116 }
19117 arg3 = static_cast< int >(val3);
19118 ecode4 = SWIG_AsVal_int(obj3, &val4);
19119 if (!SWIG_IsOK(ecode4)) {
19120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19121 }
19122 arg4 = static_cast< int >(val4);
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19126 wxPyEndAllowThreads(__tstate);
19127 if (PyErr_Occurred()) SWIG_fail;
19128 }
19129 resultobj = SWIG_Py_Void();
19130 return resultobj;
19131fail:
19132 return NULL;
19133}
19134
19135
19136SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19137 PyObject *resultobj = 0;
19138 wxDC *arg1 = (wxDC *) 0 ;
19139 wxIcon *arg2 = 0 ;
19140 wxPoint *arg3 = 0 ;
19141 void *argp1 = 0 ;
19142 int res1 = 0 ;
19143 void *argp2 = 0 ;
19144 int res2 = 0 ;
19145 wxPoint temp3 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 PyObject * obj2 = 0 ;
19149 char * kwnames[] = {
19150 (char *) "self",(char *) "icon",(char *) "pt", NULL
19151 };
19152
19153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19155 if (!SWIG_IsOK(res1)) {
19156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19157 }
19158 arg1 = reinterpret_cast< wxDC * >(argp1);
19159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19160 if (!SWIG_IsOK(res2)) {
19161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19162 }
19163 if (!argp2) {
19164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19165 }
19166 arg2 = reinterpret_cast< wxIcon * >(argp2);
19167 {
19168 arg3 = &temp3;
19169 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19170 }
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_Py_Void();
19178 return resultobj;
19179fail:
19180 return NULL;
19181}
19182
19183
19184SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 wxBitmap *arg2 = 0 ;
19188 int arg3 ;
19189 int arg4 ;
19190 bool arg5 = (bool) false ;
19191 void *argp1 = 0 ;
19192 int res1 = 0 ;
19193 void *argp2 = 0 ;
19194 int res2 = 0 ;
19195 int val3 ;
19196 int ecode3 = 0 ;
19197 int val4 ;
19198 int ecode4 = 0 ;
19199 bool val5 ;
19200 int ecode5 = 0 ;
19201 PyObject * obj0 = 0 ;
19202 PyObject * obj1 = 0 ;
19203 PyObject * obj2 = 0 ;
19204 PyObject * obj3 = 0 ;
19205 PyObject * obj4 = 0 ;
19206 char * kwnames[] = {
19207 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19208 };
19209
19210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19212 if (!SWIG_IsOK(res1)) {
19213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19214 }
19215 arg1 = reinterpret_cast< wxDC * >(argp1);
19216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19217 if (!SWIG_IsOK(res2)) {
19218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19219 }
19220 if (!argp2) {
19221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19222 }
19223 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19224 ecode3 = SWIG_AsVal_int(obj2, &val3);
19225 if (!SWIG_IsOK(ecode3)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19227 }
19228 arg3 = static_cast< int >(val3);
19229 ecode4 = SWIG_AsVal_int(obj3, &val4);
19230 if (!SWIG_IsOK(ecode4)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19232 }
19233 arg4 = static_cast< int >(val4);
19234 if (obj4) {
19235 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19236 if (!SWIG_IsOK(ecode5)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19238 }
19239 arg5 = static_cast< bool >(val5);
19240 }
19241 {
19242 PyThreadState* __tstate = wxPyBeginAllowThreads();
19243 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19244 wxPyEndAllowThreads(__tstate);
19245 if (PyErr_Occurred()) SWIG_fail;
19246 }
19247 resultobj = SWIG_Py_Void();
19248 return resultobj;
19249fail:
19250 return NULL;
19251}
19252
19253
19254SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19255 PyObject *resultobj = 0;
19256 wxDC *arg1 = (wxDC *) 0 ;
19257 wxBitmap *arg2 = 0 ;
19258 wxPoint *arg3 = 0 ;
19259 bool arg4 = (bool) false ;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 void *argp2 = 0 ;
19263 int res2 = 0 ;
19264 wxPoint temp3 ;
19265 bool val4 ;
19266 int ecode4 = 0 ;
19267 PyObject * obj0 = 0 ;
19268 PyObject * obj1 = 0 ;
19269 PyObject * obj2 = 0 ;
19270 PyObject * obj3 = 0 ;
19271 char * kwnames[] = {
19272 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19273 };
19274
19275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19277 if (!SWIG_IsOK(res1)) {
19278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19279 }
19280 arg1 = reinterpret_cast< wxDC * >(argp1);
19281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19282 if (!SWIG_IsOK(res2)) {
19283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19284 }
19285 if (!argp2) {
19286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19287 }
19288 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19289 {
19290 arg3 = &temp3;
19291 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19292 }
19293 if (obj3) {
19294 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19295 if (!SWIG_IsOK(ecode4)) {
19296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19297 }
19298 arg4 = static_cast< bool >(val4);
19299 }
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19303 wxPyEndAllowThreads(__tstate);
19304 if (PyErr_Occurred()) SWIG_fail;
19305 }
19306 resultobj = SWIG_Py_Void();
19307 return resultobj;
19308fail:
19309 return NULL;
19310}
19311
19312
19313SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19314 PyObject *resultobj = 0;
19315 wxDC *arg1 = (wxDC *) 0 ;
19316 wxString *arg2 = 0 ;
19317 int arg3 ;
19318 int arg4 ;
19319 void *argp1 = 0 ;
19320 int res1 = 0 ;
19321 bool temp2 = false ;
19322 int val3 ;
19323 int ecode3 = 0 ;
19324 int val4 ;
19325 int ecode4 = 0 ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 PyObject * obj2 = 0 ;
19329 PyObject * obj3 = 0 ;
19330 char * kwnames[] = {
19331 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19332 };
19333
19334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19336 if (!SWIG_IsOK(res1)) {
19337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19338 }
19339 arg1 = reinterpret_cast< wxDC * >(argp1);
19340 {
19341 arg2 = wxString_in_helper(obj1);
19342 if (arg2 == NULL) SWIG_fail;
19343 temp2 = true;
19344 }
19345 ecode3 = SWIG_AsVal_int(obj2, &val3);
19346 if (!SWIG_IsOK(ecode3)) {
19347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19348 }
19349 arg3 = static_cast< int >(val3);
19350 ecode4 = SWIG_AsVal_int(obj3, &val4);
19351 if (!SWIG_IsOK(ecode4)) {
19352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19353 }
19354 arg4 = static_cast< int >(val4);
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19358 wxPyEndAllowThreads(__tstate);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 resultobj = SWIG_Py_Void();
19362 {
19363 if (temp2)
19364 delete arg2;
19365 }
19366 return resultobj;
19367fail:
19368 {
19369 if (temp2)
19370 delete arg2;
19371 }
19372 return NULL;
19373}
19374
19375
19376SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19377 PyObject *resultobj = 0;
19378 wxDC *arg1 = (wxDC *) 0 ;
19379 wxString *arg2 = 0 ;
19380 wxPoint *arg3 = 0 ;
19381 void *argp1 = 0 ;
19382 int res1 = 0 ;
19383 bool temp2 = false ;
19384 wxPoint temp3 ;
19385 PyObject * obj0 = 0 ;
19386 PyObject * obj1 = 0 ;
19387 PyObject * obj2 = 0 ;
19388 char * kwnames[] = {
19389 (char *) "self",(char *) "text",(char *) "pt", NULL
19390 };
19391
19392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19394 if (!SWIG_IsOK(res1)) {
19395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19396 }
19397 arg1 = reinterpret_cast< wxDC * >(argp1);
19398 {
19399 arg2 = wxString_in_helper(obj1);
19400 if (arg2 == NULL) SWIG_fail;
19401 temp2 = true;
19402 }
19403 {
19404 arg3 = &temp3;
19405 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19406 }
19407 {
19408 PyThreadState* __tstate = wxPyBeginAllowThreads();
19409 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19410 wxPyEndAllowThreads(__tstate);
19411 if (PyErr_Occurred()) SWIG_fail;
19412 }
19413 resultobj = SWIG_Py_Void();
19414 {
19415 if (temp2)
19416 delete arg2;
19417 }
19418 return resultobj;
19419fail:
19420 {
19421 if (temp2)
19422 delete arg2;
19423 }
19424 return NULL;
19425}
19426
19427
19428SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19429 PyObject *resultobj = 0;
19430 wxDC *arg1 = (wxDC *) 0 ;
19431 wxString *arg2 = 0 ;
19432 int arg3 ;
19433 int arg4 ;
19434 double arg5 ;
19435 void *argp1 = 0 ;
19436 int res1 = 0 ;
19437 bool temp2 = false ;
19438 int val3 ;
19439 int ecode3 = 0 ;
19440 int val4 ;
19441 int ecode4 = 0 ;
19442 double val5 ;
19443 int ecode5 = 0 ;
19444 PyObject * obj0 = 0 ;
19445 PyObject * obj1 = 0 ;
19446 PyObject * obj2 = 0 ;
19447 PyObject * obj3 = 0 ;
19448 PyObject * obj4 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19457 }
19458 arg1 = reinterpret_cast< wxDC * >(argp1);
19459 {
19460 arg2 = wxString_in_helper(obj1);
19461 if (arg2 == NULL) SWIG_fail;
19462 temp2 = true;
19463 }
19464 ecode3 = SWIG_AsVal_int(obj2, &val3);
19465 if (!SWIG_IsOK(ecode3)) {
19466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19467 }
19468 arg3 = static_cast< int >(val3);
19469 ecode4 = SWIG_AsVal_int(obj3, &val4);
19470 if (!SWIG_IsOK(ecode4)) {
19471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19472 }
19473 arg4 = static_cast< int >(val4);
19474 ecode5 = SWIG_AsVal_double(obj4, &val5);
19475 if (!SWIG_IsOK(ecode5)) {
19476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19477 }
19478 arg5 = static_cast< double >(val5);
19479 {
19480 PyThreadState* __tstate = wxPyBeginAllowThreads();
19481 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19482 wxPyEndAllowThreads(__tstate);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 resultobj = SWIG_Py_Void();
19486 {
19487 if (temp2)
19488 delete arg2;
19489 }
19490 return resultobj;
19491fail:
19492 {
19493 if (temp2)
19494 delete arg2;
19495 }
19496 return NULL;
19497}
19498
19499
19500SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19501 PyObject *resultobj = 0;
19502 wxDC *arg1 = (wxDC *) 0 ;
19503 wxString *arg2 = 0 ;
19504 wxPoint *arg3 = 0 ;
19505 double arg4 ;
19506 void *argp1 = 0 ;
19507 int res1 = 0 ;
19508 bool temp2 = false ;
19509 wxPoint temp3 ;
19510 double val4 ;
19511 int ecode4 = 0 ;
19512 PyObject * obj0 = 0 ;
19513 PyObject * obj1 = 0 ;
19514 PyObject * obj2 = 0 ;
19515 PyObject * obj3 = 0 ;
19516 char * kwnames[] = {
19517 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19518 };
19519
19520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19522 if (!SWIG_IsOK(res1)) {
19523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19524 }
19525 arg1 = reinterpret_cast< wxDC * >(argp1);
19526 {
19527 arg2 = wxString_in_helper(obj1);
19528 if (arg2 == NULL) SWIG_fail;
19529 temp2 = true;
19530 }
19531 {
19532 arg3 = &temp3;
19533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19534 }
19535 ecode4 = SWIG_AsVal_double(obj3, &val4);
19536 if (!SWIG_IsOK(ecode4)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19538 }
19539 arg4 = static_cast< double >(val4);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_Py_Void();
19547 {
19548 if (temp2)
19549 delete arg2;
19550 }
19551 return resultobj;
19552fail:
19553 {
19554 if (temp2)
19555 delete arg2;
19556 }
19557 return NULL;
19558}
19559
19560
19561SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19562 PyObject *resultobj = 0;
19563 wxDC *arg1 = (wxDC *) 0 ;
19564 int arg2 ;
19565 int arg3 ;
19566 int arg4 ;
19567 int arg5 ;
19568 wxDC *arg6 = (wxDC *) 0 ;
19569 int arg7 ;
19570 int arg8 ;
19571 int arg9 = (int) wxCOPY ;
19572 bool arg10 = (bool) false ;
19573 int arg11 = (int) -1 ;
19574 int arg12 = (int) -1 ;
19575 bool result;
19576 void *argp1 = 0 ;
19577 int res1 = 0 ;
19578 int val2 ;
19579 int ecode2 = 0 ;
19580 int val3 ;
19581 int ecode3 = 0 ;
19582 int val4 ;
19583 int ecode4 = 0 ;
19584 int val5 ;
19585 int ecode5 = 0 ;
19586 void *argp6 = 0 ;
19587 int res6 = 0 ;
19588 int val7 ;
19589 int ecode7 = 0 ;
19590 int val8 ;
19591 int ecode8 = 0 ;
19592 int val9 ;
19593 int ecode9 = 0 ;
19594 bool val10 ;
19595 int ecode10 = 0 ;
19596 int val11 ;
19597 int ecode11 = 0 ;
19598 int val12 ;
19599 int ecode12 = 0 ;
19600 PyObject * obj0 = 0 ;
19601 PyObject * obj1 = 0 ;
19602 PyObject * obj2 = 0 ;
19603 PyObject * obj3 = 0 ;
19604 PyObject * obj4 = 0 ;
19605 PyObject * obj5 = 0 ;
19606 PyObject * obj6 = 0 ;
19607 PyObject * obj7 = 0 ;
19608 PyObject * obj8 = 0 ;
19609 PyObject * obj9 = 0 ;
19610 PyObject * obj10 = 0 ;
19611 PyObject * obj11 = 0 ;
19612 char * kwnames[] = {
19613 (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
19614 };
19615
19616 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;
19617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19618 if (!SWIG_IsOK(res1)) {
19619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19620 }
19621 arg1 = reinterpret_cast< wxDC * >(argp1);
19622 ecode2 = SWIG_AsVal_int(obj1, &val2);
19623 if (!SWIG_IsOK(ecode2)) {
19624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19625 }
19626 arg2 = static_cast< int >(val2);
19627 ecode3 = SWIG_AsVal_int(obj2, &val3);
19628 if (!SWIG_IsOK(ecode3)) {
19629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19630 }
19631 arg3 = static_cast< int >(val3);
19632 ecode4 = SWIG_AsVal_int(obj3, &val4);
19633 if (!SWIG_IsOK(ecode4)) {
19634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19635 }
19636 arg4 = static_cast< int >(val4);
19637 ecode5 = SWIG_AsVal_int(obj4, &val5);
19638 if (!SWIG_IsOK(ecode5)) {
19639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19640 }
19641 arg5 = static_cast< int >(val5);
19642 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19643 if (!SWIG_IsOK(res6)) {
19644 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19645 }
19646 arg6 = reinterpret_cast< wxDC * >(argp6);
19647 ecode7 = SWIG_AsVal_int(obj6, &val7);
19648 if (!SWIG_IsOK(ecode7)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19650 }
19651 arg7 = static_cast< int >(val7);
19652 ecode8 = SWIG_AsVal_int(obj7, &val8);
19653 if (!SWIG_IsOK(ecode8)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19655 }
19656 arg8 = static_cast< int >(val8);
19657 if (obj8) {
19658 ecode9 = SWIG_AsVal_int(obj8, &val9);
19659 if (!SWIG_IsOK(ecode9)) {
19660 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19661 }
19662 arg9 = static_cast< int >(val9);
19663 }
19664 if (obj9) {
19665 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19666 if (!SWIG_IsOK(ecode10)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19668 }
19669 arg10 = static_cast< bool >(val10);
19670 }
19671 if (obj10) {
19672 ecode11 = SWIG_AsVal_int(obj10, &val11);
19673 if (!SWIG_IsOK(ecode11)) {
19674 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19675 }
19676 arg11 = static_cast< int >(val11);
19677 }
19678 if (obj11) {
19679 ecode12 = SWIG_AsVal_int(obj11, &val12);
19680 if (!SWIG_IsOK(ecode12)) {
19681 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19682 }
19683 arg12 = static_cast< int >(val12);
19684 }
19685 {
19686 PyThreadState* __tstate = wxPyBeginAllowThreads();
19687 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 {
19692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19693 }
19694 return resultobj;
19695fail:
19696 return NULL;
19697}
19698
19699
19700SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19701 PyObject *resultobj = 0;
19702 wxDC *arg1 = (wxDC *) 0 ;
19703 wxPoint *arg2 = 0 ;
19704 wxSize *arg3 = 0 ;
19705 wxDC *arg4 = (wxDC *) 0 ;
19706 wxPoint *arg5 = 0 ;
19707 int arg6 = (int) wxCOPY ;
19708 bool arg7 = (bool) false ;
19709 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19710 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19711 bool result;
19712 void *argp1 = 0 ;
19713 int res1 = 0 ;
19714 wxPoint temp2 ;
19715 wxSize temp3 ;
19716 void *argp4 = 0 ;
19717 int res4 = 0 ;
19718 wxPoint temp5 ;
19719 int val6 ;
19720 int ecode6 = 0 ;
19721 bool val7 ;
19722 int ecode7 = 0 ;
19723 wxPoint temp8 ;
19724 PyObject * obj0 = 0 ;
19725 PyObject * obj1 = 0 ;
19726 PyObject * obj2 = 0 ;
19727 PyObject * obj3 = 0 ;
19728 PyObject * obj4 = 0 ;
19729 PyObject * obj5 = 0 ;
19730 PyObject * obj6 = 0 ;
19731 PyObject * obj7 = 0 ;
19732 char * kwnames[] = {
19733 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19734 };
19735
19736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19738 if (!SWIG_IsOK(res1)) {
19739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19740 }
19741 arg1 = reinterpret_cast< wxDC * >(argp1);
19742 {
19743 arg2 = &temp2;
19744 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19745 }
19746 {
19747 arg3 = &temp3;
19748 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19749 }
19750 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19751 if (!SWIG_IsOK(res4)) {
19752 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19753 }
19754 arg4 = reinterpret_cast< wxDC * >(argp4);
19755 {
19756 arg5 = &temp5;
19757 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19758 }
19759 if (obj5) {
19760 ecode6 = SWIG_AsVal_int(obj5, &val6);
19761 if (!SWIG_IsOK(ecode6)) {
19762 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19763 }
19764 arg6 = static_cast< int >(val6);
19765 }
19766 if (obj6) {
19767 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19768 if (!SWIG_IsOK(ecode7)) {
19769 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19770 }
19771 arg7 = static_cast< bool >(val7);
19772 }
19773 if (obj7) {
36ed4f51 19774 {
1bd55598
RD
19775 arg8 = &temp8;
19776 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19777 }
1bd55598
RD
19778 }
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19782 wxPyEndAllowThreads(__tstate);
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 {
19786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19787 }
19788 return resultobj;
19789fail:
19790 return NULL;
19791}
19792
19793
8f514ab4
RD
19794SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19795 PyObject *resultobj = 0;
19796 wxDC *arg1 = (wxDC *) 0 ;
19797 wxRect *arg2 = (wxRect *) NULL ;
19798 SwigValueWrapper<wxBitmap > result;
19799 void *argp1 = 0 ;
19800 int res1 = 0 ;
19801 void *argp2 = 0 ;
19802 int res2 = 0 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 char * kwnames[] = {
19806 (char *) "self",(char *) "subrect", NULL
19807 };
19808
19809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19811 if (!SWIG_IsOK(res1)) {
19812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19813 }
19814 arg1 = reinterpret_cast< wxDC * >(argp1);
19815 if (obj1) {
19816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19817 if (!SWIG_IsOK(res2)) {
19818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19819 }
19820 arg2 = reinterpret_cast< wxRect * >(argp2);
19821 }
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
19824 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
19828 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19829 return resultobj;
19830fail:
19831 return NULL;
19832}
19833
19834
1bd55598
RD
19835SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxDC *arg1 = (wxDC *) 0 ;
19838 int arg2 ;
19839 int arg3 ;
19840 int arg4 ;
19841 int arg5 ;
19842 void *argp1 = 0 ;
19843 int res1 = 0 ;
19844 int val2 ;
19845 int ecode2 = 0 ;
19846 int val3 ;
19847 int ecode3 = 0 ;
19848 int val4 ;
19849 int ecode4 = 0 ;
19850 int val5 ;
19851 int ecode5 = 0 ;
19852 PyObject * obj0 = 0 ;
19853 PyObject * obj1 = 0 ;
19854 PyObject * obj2 = 0 ;
19855 PyObject * obj3 = 0 ;
19856 PyObject * obj4 = 0 ;
19857 char * kwnames[] = {
19858 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19859 };
19860
19861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19863 if (!SWIG_IsOK(res1)) {
19864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19865 }
19866 arg1 = reinterpret_cast< wxDC * >(argp1);
19867 ecode2 = SWIG_AsVal_int(obj1, &val2);
19868 if (!SWIG_IsOK(ecode2)) {
19869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19870 }
19871 arg2 = static_cast< int >(val2);
19872 ecode3 = SWIG_AsVal_int(obj2, &val3);
19873 if (!SWIG_IsOK(ecode3)) {
19874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19875 }
19876 arg3 = static_cast< int >(val3);
19877 ecode4 = SWIG_AsVal_int(obj3, &val4);
19878 if (!SWIG_IsOK(ecode4)) {
19879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19880 }
19881 arg4 = static_cast< int >(val4);
19882 ecode5 = SWIG_AsVal_int(obj4, &val5);
19883 if (!SWIG_IsOK(ecode5)) {
19884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19885 }
19886 arg5 = static_cast< int >(val5);
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19890 wxPyEndAllowThreads(__tstate);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 resultobj = SWIG_Py_Void();
19894 return resultobj;
19895fail:
19896 return NULL;
19897}
19898
19899
19900SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19901 PyObject *resultobj = 0;
19902 wxDC *arg1 = (wxDC *) 0 ;
19903 wxPoint *arg2 = 0 ;
19904 wxSize *arg3 = 0 ;
19905 void *argp1 = 0 ;
19906 int res1 = 0 ;
19907 wxPoint temp2 ;
19908 wxSize temp3 ;
19909 PyObject * obj0 = 0 ;
19910 PyObject * obj1 = 0 ;
19911 PyObject * obj2 = 0 ;
19912 char * kwnames[] = {
19913 (char *) "self",(char *) "pt",(char *) "sz", NULL
19914 };
19915
19916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19918 if (!SWIG_IsOK(res1)) {
19919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19920 }
19921 arg1 = reinterpret_cast< wxDC * >(argp1);
19922 {
19923 arg2 = &temp2;
19924 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19925 }
19926 {
19927 arg3 = &temp3;
19928 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19929 }
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19933 wxPyEndAllowThreads(__tstate);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 }
19936 resultobj = SWIG_Py_Void();
19937 return resultobj;
19938fail:
19939 return NULL;
19940}
19941
19942
19943SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19944 PyObject *resultobj = 0;
19945 wxDC *arg1 = (wxDC *) 0 ;
19946 wxRegion *arg2 = 0 ;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 void *argp2 = 0 ;
19950 int res2 = 0 ;
19951 PyObject * obj0 = 0 ;
19952 PyObject * obj1 = 0 ;
19953 char * kwnames[] = {
19954 (char *) "self",(char *) "region", NULL
19955 };
19956
19957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19961 }
19962 arg1 = reinterpret_cast< wxDC * >(argp1);
19963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19964 if (!SWIG_IsOK(res2)) {
19965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19966 }
19967 if (!argp2) {
19968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19969 }
19970 arg2 = reinterpret_cast< wxRegion * >(argp2);
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 resultobj = SWIG_Py_Void();
19978 return resultobj;
19979fail:
19980 return NULL;
19981}
19982
19983
19984SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19985 PyObject *resultobj = 0;
19986 wxDC *arg1 = (wxDC *) 0 ;
19987 wxRect *arg2 = 0 ;
19988 void *argp1 = 0 ;
19989 int res1 = 0 ;
19990 wxRect temp2 ;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 char * kwnames[] = {
19994 (char *) "self",(char *) "rect", NULL
19995 };
19996
19997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19999 if (!SWIG_IsOK(res1)) {
20000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20001 }
20002 arg1 = reinterpret_cast< wxDC * >(argp1);
20003 {
20004 arg2 = &temp2;
20005 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20006 }
20007 {
20008 PyThreadState* __tstate = wxPyBeginAllowThreads();
20009 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20010 wxPyEndAllowThreads(__tstate);
20011 if (PyErr_Occurred()) SWIG_fail;
20012 }
20013 resultobj = SWIG_Py_Void();
20014 return resultobj;
20015fail:
20016 return NULL;
20017}
20018
20019
20020SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20021 PyObject *resultobj = 0;
20022 wxDC *arg1 = (wxDC *) 0 ;
20023 int arg2 ;
20024 wxPoint *arg3 = (wxPoint *) 0 ;
20025 int arg4 = (int) 0 ;
20026 int arg5 = (int) 0 ;
20027 void *argp1 = 0 ;
20028 int res1 = 0 ;
20029 int val4 ;
20030 int ecode4 = 0 ;
20031 int val5 ;
20032 int ecode5 = 0 ;
20033 PyObject * obj0 = 0 ;
20034 PyObject * obj1 = 0 ;
20035 PyObject * obj2 = 0 ;
20036 PyObject * obj3 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 {
20048 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20049 if (arg3 == NULL) SWIG_fail;
20050 }
20051 if (obj2) {
20052 ecode4 = SWIG_AsVal_int(obj2, &val4);
20053 if (!SWIG_IsOK(ecode4)) {
20054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20055 }
20056 arg4 = static_cast< int >(val4);
20057 }
20058 if (obj3) {
20059 ecode5 = SWIG_AsVal_int(obj3, &val5);
20060 if (!SWIG_IsOK(ecode5)) {
20061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20062 }
20063 arg5 = static_cast< int >(val5);
20064 }
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20068 wxPyEndAllowThreads(__tstate);
20069 if (PyErr_Occurred()) SWIG_fail;
20070 }
20071 resultobj = SWIG_Py_Void();
20072 {
20073 if (arg3) delete [] arg3;
20074 }
20075 return resultobj;
20076fail:
20077 {
20078 if (arg3) delete [] arg3;
20079 }
20080 return NULL;
20081}
20082
20083
20084SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20085 PyObject *resultobj = 0;
20086 wxDC *arg1 = (wxDC *) 0 ;
20087 int arg2 ;
20088 wxPoint *arg3 = (wxPoint *) 0 ;
20089 int arg4 = (int) 0 ;
20090 int arg5 = (int) 0 ;
20091 int arg6 = (int) wxODDEVEN_RULE ;
20092 void *argp1 = 0 ;
20093 int res1 = 0 ;
20094 int val4 ;
20095 int ecode4 = 0 ;
20096 int val5 ;
20097 int ecode5 = 0 ;
20098 int val6 ;
20099 int ecode6 = 0 ;
20100 PyObject * obj0 = 0 ;
20101 PyObject * obj1 = 0 ;
20102 PyObject * obj2 = 0 ;
20103 PyObject * obj3 = 0 ;
20104 PyObject * obj4 = 0 ;
20105 char * kwnames[] = {
20106 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20107 };
20108
20109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20111 if (!SWIG_IsOK(res1)) {
20112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20113 }
20114 arg1 = reinterpret_cast< wxDC * >(argp1);
20115 {
20116 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20117 if (arg3 == NULL) SWIG_fail;
20118 }
20119 if (obj2) {
20120 ecode4 = SWIG_AsVal_int(obj2, &val4);
20121 if (!SWIG_IsOK(ecode4)) {
20122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20123 }
20124 arg4 = static_cast< int >(val4);
20125 }
20126 if (obj3) {
20127 ecode5 = SWIG_AsVal_int(obj3, &val5);
20128 if (!SWIG_IsOK(ecode5)) {
20129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20130 }
20131 arg5 = static_cast< int >(val5);
20132 }
20133 if (obj4) {
20134 ecode6 = SWIG_AsVal_int(obj4, &val6);
20135 if (!SWIG_IsOK(ecode6)) {
20136 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20137 }
20138 arg6 = static_cast< int >(val6);
20139 }
20140 {
20141 PyThreadState* __tstate = wxPyBeginAllowThreads();
20142 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 resultobj = SWIG_Py_Void();
20147 {
20148 if (arg3) delete [] arg3;
20149 }
20150 return resultobj;
20151fail:
20152 {
20153 if (arg3) delete [] arg3;
20154 }
20155 return NULL;
20156}
20157
20158
20159SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20160 PyObject *resultobj = 0;
20161 wxDC *arg1 = (wxDC *) 0 ;
20162 wxString *arg2 = 0 ;
20163 wxRect *arg3 = 0 ;
20164 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20165 int arg5 = (int) -1 ;
20166 void *argp1 = 0 ;
20167 int res1 = 0 ;
20168 bool temp2 = false ;
20169 wxRect temp3 ;
20170 int val4 ;
20171 int ecode4 = 0 ;
20172 int val5 ;
20173 int ecode5 = 0 ;
20174 PyObject * obj0 = 0 ;
20175 PyObject * obj1 = 0 ;
20176 PyObject * obj2 = 0 ;
20177 PyObject * obj3 = 0 ;
20178 PyObject * obj4 = 0 ;
20179 char * kwnames[] = {
20180 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20181 };
20182
20183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20185 if (!SWIG_IsOK(res1)) {
20186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20187 }
20188 arg1 = reinterpret_cast< wxDC * >(argp1);
20189 {
20190 arg2 = wxString_in_helper(obj1);
20191 if (arg2 == NULL) SWIG_fail;
20192 temp2 = true;
20193 }
20194 {
20195 arg3 = &temp3;
20196 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20197 }
20198 if (obj3) {
20199 ecode4 = SWIG_AsVal_int(obj3, &val4);
20200 if (!SWIG_IsOK(ecode4)) {
20201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20202 }
20203 arg4 = static_cast< int >(val4);
20204 }
20205 if (obj4) {
20206 ecode5 = SWIG_AsVal_int(obj4, &val5);
20207 if (!SWIG_IsOK(ecode5)) {
20208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20209 }
20210 arg5 = static_cast< int >(val5);
20211 }
20212 {
20213 PyThreadState* __tstate = wxPyBeginAllowThreads();
20214 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20215 wxPyEndAllowThreads(__tstate);
20216 if (PyErr_Occurred()) SWIG_fail;
20217 }
20218 resultobj = SWIG_Py_Void();
20219 {
20220 if (temp2)
20221 delete arg2;
20222 }
20223 return resultobj;
20224fail:
20225 {
20226 if (temp2)
20227 delete arg2;
20228 }
20229 return NULL;
20230}
20231
20232
20233SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 wxString *arg2 = 0 ;
20237 wxBitmap *arg3 = 0 ;
20238 wxRect *arg4 = 0 ;
20239 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20240 int arg6 = (int) -1 ;
20241 wxRect result;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 bool temp2 = false ;
20245 void *argp3 = 0 ;
20246 int res3 = 0 ;
20247 wxRect temp4 ;
20248 int val5 ;
20249 int ecode5 = 0 ;
20250 int val6 ;
20251 int ecode6 = 0 ;
20252 PyObject * obj0 = 0 ;
20253 PyObject * obj1 = 0 ;
20254 PyObject * obj2 = 0 ;
20255 PyObject * obj3 = 0 ;
20256 PyObject * obj4 = 0 ;
20257 PyObject * obj5 = 0 ;
20258 char * kwnames[] = {
20259 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20260 };
20261
20262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20264 if (!SWIG_IsOK(res1)) {
20265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20266 }
20267 arg1 = reinterpret_cast< wxDC * >(argp1);
20268 {
20269 arg2 = wxString_in_helper(obj1);
20270 if (arg2 == NULL) SWIG_fail;
20271 temp2 = true;
20272 }
20273 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20274 if (!SWIG_IsOK(res3)) {
20275 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20276 }
20277 if (!argp3) {
20278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20279 }
20280 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20281 {
20282 arg4 = &temp4;
20283 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20284 }
20285 if (obj4) {
20286 ecode5 = SWIG_AsVal_int(obj4, &val5);
20287 if (!SWIG_IsOK(ecode5)) {
20288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20289 }
20290 arg5 = static_cast< int >(val5);
20291 }
20292 if (obj5) {
20293 ecode6 = SWIG_AsVal_int(obj5, &val6);
20294 if (!SWIG_IsOK(ecode6)) {
20295 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20296 }
20297 arg6 = static_cast< int >(val6);
20298 }
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20302 wxPyEndAllowThreads(__tstate);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 }
20305 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20306 {
20307 if (temp2)
20308 delete arg2;
20309 }
20310 return resultobj;
20311fail:
20312 {
20313 if (temp2)
20314 delete arg2;
20315 }
20316 return NULL;
20317}
20318
20319
20320SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj = 0;
20322 wxDC *arg1 = (wxDC *) 0 ;
20323 int arg2 ;
20324 wxPoint *arg3 = (wxPoint *) 0 ;
20325 void *argp1 = 0 ;
20326 int res1 = 0 ;
20327 PyObject * obj0 = 0 ;
20328 PyObject * obj1 = 0 ;
20329 char * kwnames[] = {
20330 (char *) "self",(char *) "points", NULL
20331 };
20332
20333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20337 }
20338 arg1 = reinterpret_cast< wxDC * >(argp1);
20339 {
20340 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20341 if (arg3 == NULL) SWIG_fail;
20342 }
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 (arg1)->DrawSpline(arg2,arg3);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_Py_Void();
20350 {
20351 if (arg3) delete [] arg3;
20352 }
20353 return resultobj;
20354fail:
20355 {
20356 if (arg3) delete [] arg3;
20357 }
20358 return NULL;
20359}
20360
20361
20362SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20363 PyObject *resultobj = 0;
20364 wxDC *arg1 = (wxDC *) 0 ;
20365 void *argp1 = 0 ;
20366 int res1 = 0 ;
20367 PyObject *swig_obj[1] ;
20368
20369 if (!args) SWIG_fail;
20370 swig_obj[0] = args;
20371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20372 if (!SWIG_IsOK(res1)) {
20373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20374 }
20375 arg1 = reinterpret_cast< wxDC * >(argp1);
20376 {
20377 PyThreadState* __tstate = wxPyBeginAllowThreads();
20378 (arg1)->Clear();
20379 wxPyEndAllowThreads(__tstate);
20380 if (PyErr_Occurred()) SWIG_fail;
20381 }
20382 resultobj = SWIG_Py_Void();
20383 return resultobj;
20384fail:
20385 return NULL;
20386}
20387
20388
20389SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20390 PyObject *resultobj = 0;
20391 wxDC *arg1 = (wxDC *) 0 ;
20392 wxString *arg2 = 0 ;
20393 bool result;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 bool temp2 = false ;
20397 PyObject * obj0 = 0 ;
20398 PyObject * obj1 = 0 ;
20399 char * kwnames[] = {
20400 (char *) "self",(char *) "message", NULL
20401 };
20402
20403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20405 if (!SWIG_IsOK(res1)) {
20406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20407 }
20408 arg1 = reinterpret_cast< wxDC * >(argp1);
20409 {
20410 arg2 = wxString_in_helper(obj1);
20411 if (arg2 == NULL) SWIG_fail;
20412 temp2 = true;
20413 }
20414 {
20415 PyThreadState* __tstate = wxPyBeginAllowThreads();
20416 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 {
20421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20422 }
20423 {
20424 if (temp2)
20425 delete arg2;
20426 }
20427 return resultobj;
20428fail:
20429 {
20430 if (temp2)
20431 delete arg2;
20432 }
20433 return NULL;
20434}
20435
20436
20437SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20438 PyObject *resultobj = 0;
20439 wxDC *arg1 = (wxDC *) 0 ;
20440 void *argp1 = 0 ;
20441 int res1 = 0 ;
20442 PyObject *swig_obj[1] ;
20443
20444 if (!args) SWIG_fail;
20445 swig_obj[0] = args;
20446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20449 }
20450 arg1 = reinterpret_cast< wxDC * >(argp1);
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 (arg1)->EndDoc();
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_Py_Void();
20458 return resultobj;
20459fail:
20460 return NULL;
20461}
20462
20463
20464SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20465 PyObject *resultobj = 0;
20466 wxDC *arg1 = (wxDC *) 0 ;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 PyObject *swig_obj[1] ;
20470
20471 if (!args) SWIG_fail;
20472 swig_obj[0] = args;
20473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20476 }
20477 arg1 = reinterpret_cast< wxDC * >(argp1);
20478 {
20479 PyThreadState* __tstate = wxPyBeginAllowThreads();
20480 (arg1)->StartPage();
20481 wxPyEndAllowThreads(__tstate);
20482 if (PyErr_Occurred()) SWIG_fail;
20483 }
20484 resultobj = SWIG_Py_Void();
20485 return resultobj;
20486fail:
20487 return NULL;
20488}
20489
20490
20491SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20492 PyObject *resultobj = 0;
20493 wxDC *arg1 = (wxDC *) 0 ;
20494 void *argp1 = 0 ;
20495 int res1 = 0 ;
20496 PyObject *swig_obj[1] ;
20497
20498 if (!args) SWIG_fail;
20499 swig_obj[0] = args;
20500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20501 if (!SWIG_IsOK(res1)) {
20502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20503 }
20504 arg1 = reinterpret_cast< wxDC * >(argp1);
20505 {
20506 PyThreadState* __tstate = wxPyBeginAllowThreads();
20507 (arg1)->EndPage();
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_Py_Void();
20512 return resultobj;
20513fail:
20514 return NULL;
20515}
20516
20517
20518SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj = 0;
20520 wxDC *arg1 = (wxDC *) 0 ;
20521 wxFont *arg2 = 0 ;
20522 void *argp1 = 0 ;
20523 int res1 = 0 ;
20524 void *argp2 = 0 ;
20525 int res2 = 0 ;
20526 PyObject * obj0 = 0 ;
20527 PyObject * obj1 = 0 ;
20528 char * kwnames[] = {
20529 (char *) "self",(char *) "font", NULL
20530 };
20531
20532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20534 if (!SWIG_IsOK(res1)) {
20535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20536 }
20537 arg1 = reinterpret_cast< wxDC * >(argp1);
20538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20539 if (!SWIG_IsOK(res2)) {
20540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20541 }
20542 if (!argp2) {
20543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20544 }
20545 arg2 = reinterpret_cast< wxFont * >(argp2);
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 (arg1)->SetFont((wxFont const &)*arg2);
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 resultobj = SWIG_Py_Void();
20553 return resultobj;
20554fail:
20555 return NULL;
20556}
20557
20558
20559SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20560 PyObject *resultobj = 0;
20561 wxDC *arg1 = (wxDC *) 0 ;
20562 wxPen *arg2 = 0 ;
20563 void *argp1 = 0 ;
20564 int res1 = 0 ;
20565 void *argp2 = 0 ;
20566 int res2 = 0 ;
20567 PyObject * obj0 = 0 ;
20568 PyObject * obj1 = 0 ;
20569 char * kwnames[] = {
20570 (char *) "self",(char *) "pen", NULL
20571 };
20572
20573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20577 }
20578 arg1 = reinterpret_cast< wxDC * >(argp1);
20579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20580 if (!SWIG_IsOK(res2)) {
20581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20582 }
20583 if (!argp2) {
20584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20585 }
20586 arg2 = reinterpret_cast< wxPen * >(argp2);
20587 {
20588 PyThreadState* __tstate = wxPyBeginAllowThreads();
20589 (arg1)->SetPen((wxPen const &)*arg2);
20590 wxPyEndAllowThreads(__tstate);
20591 if (PyErr_Occurred()) SWIG_fail;
20592 }
20593 resultobj = SWIG_Py_Void();
20594 return resultobj;
20595fail:
20596 return NULL;
20597}
20598
20599
20600SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj = 0;
20602 wxDC *arg1 = (wxDC *) 0 ;
20603 wxBrush *arg2 = 0 ;
20604 void *argp1 = 0 ;
20605 int res1 = 0 ;
20606 void *argp2 = 0 ;
20607 int res2 = 0 ;
20608 PyObject * obj0 = 0 ;
20609 PyObject * obj1 = 0 ;
20610 char * kwnames[] = {
20611 (char *) "self",(char *) "brush", NULL
20612 };
20613
20614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20618 }
20619 arg1 = reinterpret_cast< wxDC * >(argp1);
20620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20621 if (!SWIG_IsOK(res2)) {
20622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20623 }
20624 if (!argp2) {
20625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20626 }
20627 arg2 = reinterpret_cast< wxBrush * >(argp2);
20628 {
20629 PyThreadState* __tstate = wxPyBeginAllowThreads();
20630 (arg1)->SetBrush((wxBrush const &)*arg2);
20631 wxPyEndAllowThreads(__tstate);
20632 if (PyErr_Occurred()) SWIG_fail;
20633 }
20634 resultobj = SWIG_Py_Void();
20635 return resultobj;
20636fail:
20637 return NULL;
20638}
20639
20640
20641SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj = 0;
20643 wxDC *arg1 = (wxDC *) 0 ;
20644 wxBrush *arg2 = 0 ;
20645 void *argp1 = 0 ;
20646 int res1 = 0 ;
20647 void *argp2 = 0 ;
20648 int res2 = 0 ;
20649 PyObject * obj0 = 0 ;
20650 PyObject * obj1 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "brush", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20659 }
20660 arg1 = reinterpret_cast< wxDC * >(argp1);
20661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20662 if (!SWIG_IsOK(res2)) {
20663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20664 }
20665 if (!argp2) {
20666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20667 }
20668 arg2 = reinterpret_cast< wxBrush * >(argp2);
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 (arg1)->SetBackground((wxBrush const &)*arg2);
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 resultobj = SWIG_Py_Void();
20676 return resultobj;
20677fail:
20678 return NULL;
20679}
20680
20681
20682SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20683 PyObject *resultobj = 0;
20684 wxDC *arg1 = (wxDC *) 0 ;
20685 int arg2 ;
20686 void *argp1 = 0 ;
20687 int res1 = 0 ;
20688 int val2 ;
20689 int ecode2 = 0 ;
20690 PyObject * obj0 = 0 ;
20691 PyObject * obj1 = 0 ;
20692 char * kwnames[] = {
20693 (char *) "self",(char *) "mode", NULL
20694 };
20695
20696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20698 if (!SWIG_IsOK(res1)) {
20699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20700 }
20701 arg1 = reinterpret_cast< wxDC * >(argp1);
20702 ecode2 = SWIG_AsVal_int(obj1, &val2);
20703 if (!SWIG_IsOK(ecode2)) {
20704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20705 }
20706 arg2 = static_cast< int >(val2);
20707 {
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 (arg1)->SetBackgroundMode(arg2);
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_Py_Void();
20714 return resultobj;
20715fail:
20716 return NULL;
20717}
20718
20719
20720SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20721 PyObject *resultobj = 0;
20722 wxDC *arg1 = (wxDC *) 0 ;
20723 wxPalette *arg2 = 0 ;
20724 void *argp1 = 0 ;
20725 int res1 = 0 ;
20726 void *argp2 = 0 ;
20727 int res2 = 0 ;
20728 PyObject * obj0 = 0 ;
20729 PyObject * obj1 = 0 ;
20730 char * kwnames[] = {
20731 (char *) "self",(char *) "palette", NULL
20732 };
20733
20734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20736 if (!SWIG_IsOK(res1)) {
20737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20738 }
20739 arg1 = reinterpret_cast< wxDC * >(argp1);
20740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20741 if (!SWIG_IsOK(res2)) {
20742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20743 }
20744 if (!argp2) {
20745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20746 }
20747 arg2 = reinterpret_cast< wxPalette * >(argp2);
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 (arg1)->SetPalette((wxPalette const &)*arg2);
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
20754 resultobj = SWIG_Py_Void();
20755 return resultobj;
20756fail:
20757 return NULL;
20758}
20759
20760
20761SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20762 PyObject *resultobj = 0;
20763 wxDC *arg1 = (wxDC *) 0 ;
20764 void *argp1 = 0 ;
20765 int res1 = 0 ;
20766 PyObject *swig_obj[1] ;
20767
20768 if (!args) SWIG_fail;
20769 swig_obj[0] = args;
20770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20771 if (!SWIG_IsOK(res1)) {
20772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20773 }
20774 arg1 = reinterpret_cast< wxDC * >(argp1);
20775 {
20776 PyThreadState* __tstate = wxPyBeginAllowThreads();
20777 (arg1)->DestroyClippingRegion();
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 resultobj = SWIG_Py_Void();
20782 return resultobj;
20783fail:
20784 return NULL;
20785}
20786
20787
20788SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20789 PyObject *resultobj = 0;
20790 wxDC *arg1 = (wxDC *) 0 ;
20791 int *arg2 = (int *) 0 ;
20792 int *arg3 = (int *) 0 ;
20793 int *arg4 = (int *) 0 ;
20794 int *arg5 = (int *) 0 ;
20795 void *argp1 = 0 ;
20796 int res1 = 0 ;
20797 int temp2 ;
20798 int res2 = SWIG_TMPOBJ ;
20799 int temp3 ;
20800 int res3 = SWIG_TMPOBJ ;
20801 int temp4 ;
20802 int res4 = SWIG_TMPOBJ ;
20803 int temp5 ;
20804 int res5 = SWIG_TMPOBJ ;
20805 PyObject *swig_obj[1] ;
20806
20807 arg2 = &temp2;
20808 arg3 = &temp3;
20809 arg4 = &temp4;
20810 arg5 = &temp5;
20811 if (!args) SWIG_fail;
20812 swig_obj[0] = args;
20813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20816 }
20817 arg1 = reinterpret_cast< wxDC * >(argp1);
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20821 wxPyEndAllowThreads(__tstate);
20822 if (PyErr_Occurred()) SWIG_fail;
20823 }
20824 resultobj = SWIG_Py_Void();
20825 if (SWIG_IsTmpObj(res2)) {
20826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20827 } else {
20828 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20830 }
20831 if (SWIG_IsTmpObj(res3)) {
20832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20833 } else {
20834 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20836 }
20837 if (SWIG_IsTmpObj(res4)) {
20838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20839 } else {
20840 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20842 }
20843 if (SWIG_IsTmpObj(res5)) {
20844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20845 } else {
20846 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20848 }
20849 return resultobj;
20850fail:
20851 return NULL;
20852}
20853
20854
20855SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20856 PyObject *resultobj = 0;
20857 wxDC *arg1 = (wxDC *) 0 ;
20858 wxRect result;
20859 void *argp1 = 0 ;
20860 int res1 = 0 ;
20861 PyObject *swig_obj[1] ;
20862
20863 if (!args) SWIG_fail;
20864 swig_obj[0] = args;
20865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20866 if (!SWIG_IsOK(res1)) {
20867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20868 }
20869 arg1 = reinterpret_cast< wxDC * >(argp1);
20870 {
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = wxDC_GetClippingRect(arg1);
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20877 return resultobj;
20878fail:
20879 return NULL;
20880}
20881
20882
20883SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *resultobj = 0;
20885 wxDC *arg1 = (wxDC *) 0 ;
20886 int result;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 PyObject *swig_obj[1] ;
20890
20891 if (!args) SWIG_fail;
20892 swig_obj[0] = args;
20893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20894 if (!SWIG_IsOK(res1)) {
20895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20896 }
20897 arg1 = reinterpret_cast< wxDC * >(argp1);
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
20900 result = (int)((wxDC const *)arg1)->GetCharHeight();
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 resultobj = SWIG_From_int(static_cast< int >(result));
20905 return resultobj;
20906fail:
20907 return NULL;
20908}
20909
20910
20911SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20912 PyObject *resultobj = 0;
20913 wxDC *arg1 = (wxDC *) 0 ;
20914 int result;
20915 void *argp1 = 0 ;
20916 int res1 = 0 ;
20917 PyObject *swig_obj[1] ;
20918
20919 if (!args) SWIG_fail;
20920 swig_obj[0] = args;
20921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20922 if (!SWIG_IsOK(res1)) {
20923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20924 }
20925 arg1 = reinterpret_cast< wxDC * >(argp1);
20926 {
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 result = (int)((wxDC const *)arg1)->GetCharWidth();
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 resultobj = SWIG_From_int(static_cast< int >(result));
20933 return resultobj;
20934fail:
20935 return NULL;
20936}
20937
20938
20939SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20940 PyObject *resultobj = 0;
20941 wxDC *arg1 = (wxDC *) 0 ;
20942 wxString *arg2 = 0 ;
20943 int *arg3 = (int *) 0 ;
20944 int *arg4 = (int *) 0 ;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 bool temp2 = false ;
20948 int temp3 ;
20949 int res3 = SWIG_TMPOBJ ;
20950 int temp4 ;
20951 int res4 = SWIG_TMPOBJ ;
20952 PyObject * obj0 = 0 ;
20953 PyObject * obj1 = 0 ;
20954 char * kwnames[] = {
20955 (char *) "self",(char *) "string", NULL
20956 };
20957
20958 arg3 = &temp3;
20959 arg4 = &temp4;
20960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20964 }
20965 arg1 = reinterpret_cast< wxDC * >(argp1);
20966 {
20967 arg2 = wxString_in_helper(obj1);
20968 if (arg2 == NULL) SWIG_fail;
20969 temp2 = true;
20970 }
20971 {
20972 PyThreadState* __tstate = wxPyBeginAllowThreads();
20973 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20974 wxPyEndAllowThreads(__tstate);
20975 if (PyErr_Occurred()) SWIG_fail;
20976 }
20977 resultobj = SWIG_Py_Void();
20978 if (SWIG_IsTmpObj(res3)) {
20979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20980 } else {
20981 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20983 }
20984 if (SWIG_IsTmpObj(res4)) {
20985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20986 } else {
20987 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20989 }
20990 {
20991 if (temp2)
20992 delete arg2;
20993 }
20994 return resultobj;
20995fail:
20996 {
20997 if (temp2)
20998 delete arg2;
20999 }
21000 return NULL;
21001}
21002
21003
21004SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj = 0;
21006 wxDC *arg1 = (wxDC *) 0 ;
21007 wxString *arg2 = 0 ;
21008 int *arg3 = (int *) 0 ;
21009 int *arg4 = (int *) 0 ;
21010 int *arg5 = (int *) 0 ;
21011 int *arg6 = (int *) 0 ;
21012 wxFont *arg7 = (wxFont *) NULL ;
21013 void *argp1 = 0 ;
21014 int res1 = 0 ;
21015 bool temp2 = false ;
21016 int temp3 ;
21017 int res3 = SWIG_TMPOBJ ;
21018 int temp4 ;
21019 int res4 = SWIG_TMPOBJ ;
21020 int temp5 ;
21021 int res5 = SWIG_TMPOBJ ;
21022 int temp6 ;
21023 int res6 = SWIG_TMPOBJ ;
21024 void *argp7 = 0 ;
21025 int res7 = 0 ;
21026 PyObject * obj0 = 0 ;
21027 PyObject * obj1 = 0 ;
21028 PyObject * obj2 = 0 ;
21029 char * kwnames[] = {
21030 (char *) "self",(char *) "string",(char *) "font", NULL
21031 };
21032
21033 arg3 = &temp3;
21034 arg4 = &temp4;
21035 arg5 = &temp5;
21036 arg6 = &temp6;
21037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21041 }
21042 arg1 = reinterpret_cast< wxDC * >(argp1);
21043 {
21044 arg2 = wxString_in_helper(obj1);
21045 if (arg2 == NULL) SWIG_fail;
21046 temp2 = true;
21047 }
21048 if (obj2) {
21049 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21050 if (!SWIG_IsOK(res7)) {
21051 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21052 }
1bd55598
RD
21053 arg7 = reinterpret_cast< wxFont * >(argp7);
21054 }
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 resultobj = SWIG_Py_Void();
21062 if (SWIG_IsTmpObj(res3)) {
21063 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21064 } else {
21065 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21067 }
21068 if (SWIG_IsTmpObj(res4)) {
21069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21070 } else {
21071 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21073 }
21074 if (SWIG_IsTmpObj(res5)) {
21075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21076 } else {
21077 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21078 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21079 }
21080 if (SWIG_IsTmpObj(res6)) {
21081 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21082 } else {
21083 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21085 }
21086 {
21087 if (temp2)
21088 delete arg2;
21089 }
21090 return resultobj;
21091fail:
21092 {
21093 if (temp2)
21094 delete arg2;
21095 }
21096 return NULL;
21097}
21098
21099
21100SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxDC *arg1 = (wxDC *) 0 ;
21103 wxString *arg2 = 0 ;
21104 int *arg3 = (int *) 0 ;
21105 int *arg4 = (int *) 0 ;
21106 int *arg5 = (int *) 0 ;
21107 wxFont *arg6 = (wxFont *) NULL ;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 bool temp2 = false ;
21111 int temp3 ;
21112 int res3 = SWIG_TMPOBJ ;
21113 int temp4 ;
21114 int res4 = SWIG_TMPOBJ ;
21115 int temp5 ;
21116 int res5 = SWIG_TMPOBJ ;
21117 void *argp6 = 0 ;
21118 int res6 = 0 ;
21119 PyObject * obj0 = 0 ;
21120 PyObject * obj1 = 0 ;
21121 PyObject * obj2 = 0 ;
21122 char * kwnames[] = {
21123 (char *) "self",(char *) "text",(char *) "font", NULL
21124 };
21125
21126 arg3 = &temp3;
21127 arg4 = &temp4;
21128 arg5 = &temp5;
21129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21131 if (!SWIG_IsOK(res1)) {
21132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21133 }
21134 arg1 = reinterpret_cast< wxDC * >(argp1);
21135 {
21136 arg2 = wxString_in_helper(obj1);
21137 if (arg2 == NULL) SWIG_fail;
21138 temp2 = true;
21139 }
21140 if (obj2) {
21141 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21142 if (!SWIG_IsOK(res6)) {
21143 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21144 }
1bd55598
RD
21145 arg6 = reinterpret_cast< wxFont * >(argp6);
21146 }
21147 {
21148 PyThreadState* __tstate = wxPyBeginAllowThreads();
21149 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 resultobj = SWIG_Py_Void();
21154 if (SWIG_IsTmpObj(res3)) {
21155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21156 } else {
21157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21159 }
21160 if (SWIG_IsTmpObj(res4)) {
21161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21162 } else {
21163 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21165 }
21166 if (SWIG_IsTmpObj(res5)) {
21167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21168 } else {
21169 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21171 }
21172 {
21173 if (temp2)
21174 delete arg2;
21175 }
21176 return resultobj;
21177fail:
21178 {
21179 if (temp2)
21180 delete arg2;
21181 }
21182 return NULL;
21183}
21184
21185
21186SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21187 PyObject *resultobj = 0;
21188 wxDC *arg1 = (wxDC *) 0 ;
21189 wxString *arg2 = 0 ;
21190 wxArrayInt result;
21191 void *argp1 = 0 ;
21192 int res1 = 0 ;
21193 bool temp2 = false ;
21194 PyObject * obj0 = 0 ;
21195 PyObject * obj1 = 0 ;
21196 char * kwnames[] = {
21197 (char *) "self",(char *) "text", NULL
21198 };
21199
21200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21202 if (!SWIG_IsOK(res1)) {
21203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21204 }
21205 arg1 = reinterpret_cast< wxDC * >(argp1);
21206 {
21207 arg2 = wxString_in_helper(obj1);
21208 if (arg2 == NULL) SWIG_fail;
21209 temp2 = true;
21210 }
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21214 wxPyEndAllowThreads(__tstate);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 }
21217 {
b39fe951 21218 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21219 }
21220 {
21221 if (temp2)
21222 delete arg2;
21223 }
21224 return resultobj;
21225fail:
21226 {
21227 if (temp2)
21228 delete arg2;
21229 }
21230 return NULL;
21231}
21232
21233
21234SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21235 PyObject *resultobj = 0;
21236 wxDC *arg1 = (wxDC *) 0 ;
21237 wxSize result;
21238 void *argp1 = 0 ;
21239 int res1 = 0 ;
21240 PyObject *swig_obj[1] ;
21241
21242 if (!args) SWIG_fail;
21243 swig_obj[0] = args;
21244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21245 if (!SWIG_IsOK(res1)) {
21246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21247 }
21248 arg1 = reinterpret_cast< wxDC * >(argp1);
21249 {
21250 PyThreadState* __tstate = wxPyBeginAllowThreads();
21251 result = (arg1)->GetSize();
21252 wxPyEndAllowThreads(__tstate);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21256 return resultobj;
21257fail:
21258 return NULL;
21259}
21260
21261
21262SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21263 PyObject *resultobj = 0;
21264 wxDC *arg1 = (wxDC *) 0 ;
21265 int *arg2 = (int *) 0 ;
21266 int *arg3 = (int *) 0 ;
21267 void *argp1 = 0 ;
21268 int res1 = 0 ;
21269 int temp2 ;
21270 int res2 = SWIG_TMPOBJ ;
21271 int temp3 ;
21272 int res3 = SWIG_TMPOBJ ;
21273 PyObject *swig_obj[1] ;
21274
21275 arg2 = &temp2;
21276 arg3 = &temp3;
21277 if (!args) SWIG_fail;
21278 swig_obj[0] = args;
21279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21280 if (!SWIG_IsOK(res1)) {
21281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21282 }
21283 arg1 = reinterpret_cast< wxDC * >(argp1);
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->GetSize(arg2,arg3);
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_Py_Void();
21291 if (SWIG_IsTmpObj(res2)) {
21292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21293 } else {
21294 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21296 }
21297 if (SWIG_IsTmpObj(res3)) {
21298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21299 } else {
21300 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21302 }
21303 return resultobj;
21304fail:
21305 return NULL;
21306}
21307
21308
21309SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21310 PyObject *resultobj = 0;
21311 wxDC *arg1 = (wxDC *) 0 ;
21312 wxSize result;
21313 void *argp1 = 0 ;
21314 int res1 = 0 ;
21315 PyObject *swig_obj[1] ;
21316
21317 if (!args) SWIG_fail;
21318 swig_obj[0] = args;
21319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21320 if (!SWIG_IsOK(res1)) {
21321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21322 }
21323 arg1 = reinterpret_cast< wxDC * >(argp1);
21324 {
21325 PyThreadState* __tstate = wxPyBeginAllowThreads();
21326 result = ((wxDC const *)arg1)->GetSizeMM();
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21331 return resultobj;
21332fail:
21333 return NULL;
21334}
21335
21336
21337SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21338 PyObject *resultobj = 0;
21339 wxDC *arg1 = (wxDC *) 0 ;
21340 int *arg2 = (int *) 0 ;
21341 int *arg3 = (int *) 0 ;
21342 void *argp1 = 0 ;
21343 int res1 = 0 ;
21344 int temp2 ;
21345 int res2 = SWIG_TMPOBJ ;
21346 int temp3 ;
21347 int res3 = SWIG_TMPOBJ ;
21348 PyObject *swig_obj[1] ;
21349
21350 arg2 = &temp2;
21351 arg3 = &temp3;
21352 if (!args) SWIG_fail;
21353 swig_obj[0] = args;
21354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21355 if (!SWIG_IsOK(res1)) {
21356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21357 }
21358 arg1 = reinterpret_cast< wxDC * >(argp1);
21359 {
21360 PyThreadState* __tstate = wxPyBeginAllowThreads();
21361 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21362 wxPyEndAllowThreads(__tstate);
21363 if (PyErr_Occurred()) SWIG_fail;
21364 }
21365 resultobj = SWIG_Py_Void();
21366 if (SWIG_IsTmpObj(res2)) {
21367 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21368 } else {
21369 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21371 }
21372 if (SWIG_IsTmpObj(res3)) {
21373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21374 } else {
21375 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21377 }
21378 return resultobj;
21379fail:
21380 return NULL;
21381}
21382
21383
21384SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21385 PyObject *resultobj = 0;
21386 wxDC *arg1 = (wxDC *) 0 ;
21387 int arg2 ;
21388 int result;
21389 void *argp1 = 0 ;
21390 int res1 = 0 ;
21391 int val2 ;
21392 int ecode2 = 0 ;
21393 PyObject * obj0 = 0 ;
21394 PyObject * obj1 = 0 ;
21395 char * kwnames[] = {
21396 (char *) "self",(char *) "x", NULL
21397 };
21398
21399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21401 if (!SWIG_IsOK(res1)) {
21402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21403 }
21404 arg1 = reinterpret_cast< wxDC * >(argp1);
21405 ecode2 = SWIG_AsVal_int(obj1, &val2);
21406 if (!SWIG_IsOK(ecode2)) {
21407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21408 }
21409 arg2 = static_cast< int >(val2);
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 resultobj = SWIG_From_int(static_cast< int >(result));
21417 return resultobj;
21418fail:
21419 return NULL;
21420}
21421
21422
21423SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21424 PyObject *resultobj = 0;
21425 wxDC *arg1 = (wxDC *) 0 ;
21426 int arg2 ;
21427 int result;
21428 void *argp1 = 0 ;
21429 int res1 = 0 ;
21430 int val2 ;
21431 int ecode2 = 0 ;
21432 PyObject * obj0 = 0 ;
21433 PyObject * obj1 = 0 ;
21434 char * kwnames[] = {
21435 (char *) "self",(char *) "y", NULL
21436 };
21437
21438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21440 if (!SWIG_IsOK(res1)) {
21441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21442 }
21443 arg1 = reinterpret_cast< wxDC * >(argp1);
21444 ecode2 = SWIG_AsVal_int(obj1, &val2);
21445 if (!SWIG_IsOK(ecode2)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21447 }
21448 arg2 = static_cast< int >(val2);
21449 {
21450 PyThreadState* __tstate = wxPyBeginAllowThreads();
21451 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21452 wxPyEndAllowThreads(__tstate);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 }
21455 resultobj = SWIG_From_int(static_cast< int >(result));
21456 return resultobj;
21457fail:
21458 return NULL;
21459}
21460
21461
21462SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj = 0;
21464 wxDC *arg1 = (wxDC *) 0 ;
21465 int arg2 ;
21466 int result;
21467 void *argp1 = 0 ;
21468 int res1 = 0 ;
21469 int val2 ;
21470 int ecode2 = 0 ;
21471 PyObject * obj0 = 0 ;
21472 PyObject * obj1 = 0 ;
21473 char * kwnames[] = {
21474 (char *) "self",(char *) "x", NULL
21475 };
21476
21477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21479 if (!SWIG_IsOK(res1)) {
21480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21481 }
21482 arg1 = reinterpret_cast< wxDC * >(argp1);
21483 ecode2 = SWIG_AsVal_int(obj1, &val2);
21484 if (!SWIG_IsOK(ecode2)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21486 }
21487 arg2 = static_cast< int >(val2);
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_From_int(static_cast< int >(result));
21495 return resultobj;
21496fail:
21497 return NULL;
21498}
21499
21500
21501SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21502 PyObject *resultobj = 0;
21503 wxDC *arg1 = (wxDC *) 0 ;
21504 int arg2 ;
21505 int result;
21506 void *argp1 = 0 ;
21507 int res1 = 0 ;
21508 int val2 ;
21509 int ecode2 = 0 ;
21510 PyObject * obj0 = 0 ;
21511 PyObject * obj1 = 0 ;
21512 char * kwnames[] = {
21513 (char *) "self",(char *) "y", NULL
21514 };
21515
21516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21518 if (!SWIG_IsOK(res1)) {
21519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21520 }
21521 arg1 = reinterpret_cast< wxDC * >(argp1);
21522 ecode2 = SWIG_AsVal_int(obj1, &val2);
21523 if (!SWIG_IsOK(ecode2)) {
21524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21525 }
21526 arg2 = static_cast< int >(val2);
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 resultobj = SWIG_From_int(static_cast< int >(result));
21534 return resultobj;
21535fail:
21536 return NULL;
21537}
21538
21539
21540SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21541 PyObject *resultobj = 0;
21542 wxDC *arg1 = (wxDC *) 0 ;
21543 int arg2 ;
21544 int result;
21545 void *argp1 = 0 ;
21546 int res1 = 0 ;
21547 int val2 ;
21548 int ecode2 = 0 ;
21549 PyObject * obj0 = 0 ;
21550 PyObject * obj1 = 0 ;
21551 char * kwnames[] = {
21552 (char *) "self",(char *) "x", NULL
21553 };
21554
21555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21557 if (!SWIG_IsOK(res1)) {
21558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21559 }
21560 arg1 = reinterpret_cast< wxDC * >(argp1);
21561 ecode2 = SWIG_AsVal_int(obj1, &val2);
21562 if (!SWIG_IsOK(ecode2)) {
21563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21564 }
21565 arg2 = static_cast< int >(val2);
21566 {
21567 PyThreadState* __tstate = wxPyBeginAllowThreads();
21568 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21569 wxPyEndAllowThreads(__tstate);
21570 if (PyErr_Occurred()) SWIG_fail;
21571 }
21572 resultobj = SWIG_From_int(static_cast< int >(result));
21573 return resultobj;
21574fail:
21575 return NULL;
21576}
21577
21578
21579SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21580 PyObject *resultobj = 0;
21581 wxDC *arg1 = (wxDC *) 0 ;
21582 int arg2 ;
21583 int result;
21584 void *argp1 = 0 ;
21585 int res1 = 0 ;
21586 int val2 ;
21587 int ecode2 = 0 ;
21588 PyObject * obj0 = 0 ;
21589 PyObject * obj1 = 0 ;
21590 char * kwnames[] = {
21591 (char *) "self",(char *) "y", NULL
21592 };
21593
21594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21596 if (!SWIG_IsOK(res1)) {
21597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21598 }
21599 arg1 = reinterpret_cast< wxDC * >(argp1);
21600 ecode2 = SWIG_AsVal_int(obj1, &val2);
21601 if (!SWIG_IsOK(ecode2)) {
21602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21603 }
21604 arg2 = static_cast< int >(val2);
21605 {
21606 PyThreadState* __tstate = wxPyBeginAllowThreads();
21607 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21608 wxPyEndAllowThreads(__tstate);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 resultobj = SWIG_From_int(static_cast< int >(result));
21612 return resultobj;
21613fail:
21614 return NULL;
21615}
21616
21617
21618SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj = 0;
21620 wxDC *arg1 = (wxDC *) 0 ;
21621 int arg2 ;
21622 int result;
21623 void *argp1 = 0 ;
21624 int res1 = 0 ;
21625 int val2 ;
21626 int ecode2 = 0 ;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 char * kwnames[] = {
21630 (char *) "self",(char *) "x", NULL
21631 };
21632
21633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21637 }
21638 arg1 = reinterpret_cast< wxDC * >(argp1);
21639 ecode2 = SWIG_AsVal_int(obj1, &val2);
21640 if (!SWIG_IsOK(ecode2)) {
21641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21642 }
21643 arg2 = static_cast< int >(val2);
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21647 wxPyEndAllowThreads(__tstate);
21648 if (PyErr_Occurred()) SWIG_fail;
21649 }
21650 resultobj = SWIG_From_int(static_cast< int >(result));
21651 return resultobj;
21652fail:
21653 return NULL;
21654}
21655
21656
21657SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21658 PyObject *resultobj = 0;
21659 wxDC *arg1 = (wxDC *) 0 ;
21660 int arg2 ;
21661 int result;
21662 void *argp1 = 0 ;
21663 int res1 = 0 ;
21664 int val2 ;
21665 int ecode2 = 0 ;
21666 PyObject * obj0 = 0 ;
21667 PyObject * obj1 = 0 ;
21668 char * kwnames[] = {
21669 (char *) "self",(char *) "y", NULL
21670 };
21671
21672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21674 if (!SWIG_IsOK(res1)) {
21675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21676 }
21677 arg1 = reinterpret_cast< wxDC * >(argp1);
21678 ecode2 = SWIG_AsVal_int(obj1, &val2);
21679 if (!SWIG_IsOK(ecode2)) {
21680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21681 }
21682 arg2 = static_cast< int >(val2);
21683 {
21684 PyThreadState* __tstate = wxPyBeginAllowThreads();
21685 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21686 wxPyEndAllowThreads(__tstate);
21687 if (PyErr_Occurred()) SWIG_fail;
21688 }
21689 resultobj = SWIG_From_int(static_cast< int >(result));
21690 return resultobj;
21691fail:
21692 return NULL;
21693}
21694
21695
21696SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21697 PyObject *resultobj = 0;
21698 wxDC *arg1 = (wxDC *) 0 ;
21699 bool result;
21700 void *argp1 = 0 ;
21701 int res1 = 0 ;
21702 PyObject *swig_obj[1] ;
21703
21704 if (!args) SWIG_fail;
21705 swig_obj[0] = args;
21706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21707 if (!SWIG_IsOK(res1)) {
21708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21709 }
21710 arg1 = reinterpret_cast< wxDC * >(argp1);
21711 {
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 {
21718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21719 }
21720 return resultobj;
21721fail:
21722 return NULL;
21723}
21724
21725
21726SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21727 PyObject *resultobj = 0;
21728 wxDC *arg1 = (wxDC *) 0 ;
21729 bool result;
21730 void *argp1 = 0 ;
21731 int res1 = 0 ;
21732 PyObject *swig_obj[1] ;
21733
21734 if (!args) SWIG_fail;
21735 swig_obj[0] = args;
21736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21737 if (!SWIG_IsOK(res1)) {
21738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21739 }
21740 arg1 = reinterpret_cast< wxDC * >(argp1);
21741 {
21742 PyThreadState* __tstate = wxPyBeginAllowThreads();
21743 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21744 wxPyEndAllowThreads(__tstate);
21745 if (PyErr_Occurred()) SWIG_fail;
21746 }
21747 {
21748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21749 }
21750 return resultobj;
21751fail:
21752 return NULL;
21753}
21754
21755
21756SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21757 PyObject *resultobj = 0;
21758 wxDC *arg1 = (wxDC *) 0 ;
21759 int result;
21760 void *argp1 = 0 ;
21761 int res1 = 0 ;
21762 PyObject *swig_obj[1] ;
21763
21764 if (!args) SWIG_fail;
21765 swig_obj[0] = args;
21766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21767 if (!SWIG_IsOK(res1)) {
21768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21769 }
21770 arg1 = reinterpret_cast< wxDC * >(argp1);
21771 {
21772 PyThreadState* __tstate = wxPyBeginAllowThreads();
21773 result = (int)((wxDC const *)arg1)->GetDepth();
21774 wxPyEndAllowThreads(__tstate);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 }
21777 resultobj = SWIG_From_int(static_cast< int >(result));
21778 return resultobj;
21779fail:
21780 return NULL;
21781}
21782
21783
21784SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21785 PyObject *resultobj = 0;
21786 wxDC *arg1 = (wxDC *) 0 ;
21787 wxSize result;
21788 void *argp1 = 0 ;
21789 int res1 = 0 ;
21790 PyObject *swig_obj[1] ;
21791
21792 if (!args) SWIG_fail;
21793 swig_obj[0] = args;
21794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21795 if (!SWIG_IsOK(res1)) {
21796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21797 }
21798 arg1 = reinterpret_cast< wxDC * >(argp1);
21799 {
21800 PyThreadState* __tstate = wxPyBeginAllowThreads();
21801 result = ((wxDC const *)arg1)->GetPPI();
21802 wxPyEndAllowThreads(__tstate);
21803 if (PyErr_Occurred()) SWIG_fail;
21804 }
21805 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21806 return resultobj;
21807fail:
21808 return NULL;
21809}
21810
21811
b39fe951 21812SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21813 PyObject *resultobj = 0;
21814 wxDC *arg1 = (wxDC *) 0 ;
21815 bool result;
21816 void *argp1 = 0 ;
21817 int res1 = 0 ;
21818 PyObject *swig_obj[1] ;
21819
21820 if (!args) SWIG_fail;
21821 swig_obj[0] = args;
21822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21823 if (!SWIG_IsOK(res1)) {
b39fe951 21824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21825 }
21826 arg1 = reinterpret_cast< wxDC * >(argp1);
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21829 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 {
21834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21835 }
21836 return resultobj;
21837fail:
21838 return NULL;
21839}
21840
21841
21842SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21843 PyObject *resultobj = 0;
21844 wxDC *arg1 = (wxDC *) 0 ;
21845 int result;
21846 void *argp1 = 0 ;
21847 int res1 = 0 ;
21848 PyObject *swig_obj[1] ;
21849
21850 if (!args) SWIG_fail;
21851 swig_obj[0] = args;
21852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21853 if (!SWIG_IsOK(res1)) {
21854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21855 }
21856 arg1 = reinterpret_cast< wxDC * >(argp1);
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 resultobj = SWIG_From_int(static_cast< int >(result));
21864 return resultobj;
21865fail:
21866 return NULL;
21867}
21868
21869
21870SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21871 PyObject *resultobj = 0;
21872 wxDC *arg1 = (wxDC *) 0 ;
21873 wxBrush *result = 0 ;
21874 void *argp1 = 0 ;
21875 int res1 = 0 ;
21876 PyObject *swig_obj[1] ;
21877
21878 if (!args) SWIG_fail;
21879 swig_obj[0] = args;
21880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21881 if (!SWIG_IsOK(res1)) {
21882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21883 }
21884 arg1 = reinterpret_cast< wxDC * >(argp1);
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21887 {
1bd55598
RD
21888 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21889 result = (wxBrush *) &_result_ref;
36ed4f51 21890 }
1bd55598
RD
21891 wxPyEndAllowThreads(__tstate);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 {
21895 wxBrush* resultptr = new wxBrush(*result);
21896 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21897 }
21898 return resultobj;
21899fail:
21900 return NULL;
21901}
21902
21903
21904SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21905 PyObject *resultobj = 0;
21906 wxDC *arg1 = (wxDC *) 0 ;
21907 wxBrush *result = 0 ;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 PyObject *swig_obj[1] ;
21911
21912 if (!args) SWIG_fail;
21913 swig_obj[0] = args;
21914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21915 if (!SWIG_IsOK(res1)) {
21916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21917 }
21918 arg1 = reinterpret_cast< wxDC * >(argp1);
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21921 {
1bd55598
RD
21922 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21923 result = (wxBrush *) &_result_ref;
36ed4f51 21924 }
1bd55598
RD
21925 wxPyEndAllowThreads(__tstate);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 }
21928 {
21929 wxBrush* resultptr = new wxBrush(*result);
21930 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21931 }
21932 return resultobj;
21933fail:
21934 return NULL;
21935}
21936
21937
21938SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxDC *arg1 = (wxDC *) 0 ;
21941 wxFont *result = 0 ;
21942 void *argp1 = 0 ;
21943 int res1 = 0 ;
21944 PyObject *swig_obj[1] ;
21945
21946 if (!args) SWIG_fail;
21947 swig_obj[0] = args;
21948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21951 }
21952 arg1 = reinterpret_cast< wxDC * >(argp1);
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21955 {
1bd55598
RD
21956 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21957 result = (wxFont *) &_result_ref;
36ed4f51 21958 }
1bd55598
RD
21959 wxPyEndAllowThreads(__tstate);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 {
21963 wxFont* resultptr = new wxFont(*result);
21964 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21965 }
21966 return resultobj;
21967fail:
21968 return NULL;
21969}
21970
21971
21972SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21973 PyObject *resultobj = 0;
21974 wxDC *arg1 = (wxDC *) 0 ;
21975 wxPen *result = 0 ;
21976 void *argp1 = 0 ;
21977 int res1 = 0 ;
21978 PyObject *swig_obj[1] ;
21979
21980 if (!args) SWIG_fail;
21981 swig_obj[0] = args;
21982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21983 if (!SWIG_IsOK(res1)) {
21984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21985 }
21986 arg1 = reinterpret_cast< wxDC * >(argp1);
21987 {
21988 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21989 {
1bd55598
RD
21990 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21991 result = (wxPen *) &_result_ref;
36ed4f51 21992 }
1bd55598
RD
21993 wxPyEndAllowThreads(__tstate);
21994 if (PyErr_Occurred()) SWIG_fail;
21995 }
21996 {
21997 wxPen* resultptr = new wxPen(*result);
21998 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21999 }
22000 return resultobj;
22001fail:
22002 return NULL;
22003}
22004
22005
22006SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22007 PyObject *resultobj = 0;
22008 wxDC *arg1 = (wxDC *) 0 ;
22009 wxColour *result = 0 ;
22010 void *argp1 = 0 ;
22011 int res1 = 0 ;
22012 PyObject *swig_obj[1] ;
22013
22014 if (!args) SWIG_fail;
22015 swig_obj[0] = args;
22016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22017 if (!SWIG_IsOK(res1)) {
22018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22019 }
22020 arg1 = reinterpret_cast< wxDC * >(argp1);
22021 {
22022 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22023 {
1bd55598
RD
22024 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22025 result = (wxColour *) &_result_ref;
36ed4f51 22026 }
1bd55598
RD
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22031 return resultobj;
22032fail:
22033 return NULL;
22034}
22035
22036
22037SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22038 PyObject *resultobj = 0;
22039 wxDC *arg1 = (wxDC *) 0 ;
22040 wxColour *result = 0 ;
22041 void *argp1 = 0 ;
22042 int res1 = 0 ;
22043 PyObject *swig_obj[1] ;
22044
22045 if (!args) SWIG_fail;
22046 swig_obj[0] = args;
22047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22048 if (!SWIG_IsOK(res1)) {
22049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22050 }
22051 arg1 = reinterpret_cast< wxDC * >(argp1);
22052 {
22053 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22054 {
1bd55598
RD
22055 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22056 result = (wxColour *) &_result_ref;
36ed4f51 22057 }
1bd55598
RD
22058 wxPyEndAllowThreads(__tstate);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 }
22061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22062 return resultobj;
22063fail:
22064 return NULL;
22065}
22066
22067
22068SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22069 PyObject *resultobj = 0;
22070 wxDC *arg1 = (wxDC *) 0 ;
22071 wxColour *arg2 = 0 ;
22072 void *argp1 = 0 ;
22073 int res1 = 0 ;
22074 wxColour temp2 ;
22075 PyObject * obj0 = 0 ;
22076 PyObject * obj1 = 0 ;
22077 char * kwnames[] = {
22078 (char *) "self",(char *) "colour", NULL
22079 };
22080
22081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22083 if (!SWIG_IsOK(res1)) {
22084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22085 }
22086 arg1 = reinterpret_cast< wxDC * >(argp1);
22087 {
22088 arg2 = &temp2;
22089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22090 }
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 (arg1)->SetTextForeground((wxColour const &)*arg2);
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 resultobj = SWIG_Py_Void();
22098 return resultobj;
22099fail:
22100 return NULL;
22101}
22102
22103
22104SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22105 PyObject *resultobj = 0;
22106 wxDC *arg1 = (wxDC *) 0 ;
22107 wxColour *arg2 = 0 ;
22108 void *argp1 = 0 ;
22109 int res1 = 0 ;
22110 wxColour temp2 ;
22111 PyObject * obj0 = 0 ;
22112 PyObject * obj1 = 0 ;
22113 char * kwnames[] = {
22114 (char *) "self",(char *) "colour", NULL
22115 };
22116
22117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22119 if (!SWIG_IsOK(res1)) {
22120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22121 }
22122 arg1 = reinterpret_cast< wxDC * >(argp1);
22123 {
22124 arg2 = &temp2;
22125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22126 }
22127 {
22128 PyThreadState* __tstate = wxPyBeginAllowThreads();
22129 (arg1)->SetTextBackground((wxColour const &)*arg2);
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 resultobj = SWIG_Py_Void();
22134 return resultobj;
22135fail:
22136 return NULL;
22137}
22138
22139
22140SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22141 PyObject *resultobj = 0;
22142 wxDC *arg1 = (wxDC *) 0 ;
22143 int result;
22144 void *argp1 = 0 ;
22145 int res1 = 0 ;
22146 PyObject *swig_obj[1] ;
22147
22148 if (!args) SWIG_fail;
22149 swig_obj[0] = args;
22150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22151 if (!SWIG_IsOK(res1)) {
22152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22153 }
22154 arg1 = reinterpret_cast< wxDC * >(argp1);
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
22157 result = (int)((wxDC const *)arg1)->GetMapMode();
22158 wxPyEndAllowThreads(__tstate);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 }
22161 resultobj = SWIG_From_int(static_cast< int >(result));
22162 return resultobj;
22163fail:
22164 return NULL;
22165}
22166
22167
22168SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22169 PyObject *resultobj = 0;
22170 wxDC *arg1 = (wxDC *) 0 ;
22171 int arg2 ;
22172 void *argp1 = 0 ;
22173 int res1 = 0 ;
22174 int val2 ;
22175 int ecode2 = 0 ;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 char * kwnames[] = {
22179 (char *) "self",(char *) "mode", NULL
22180 };
22181
22182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22184 if (!SWIG_IsOK(res1)) {
22185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22186 }
22187 arg1 = reinterpret_cast< wxDC * >(argp1);
22188 ecode2 = SWIG_AsVal_int(obj1, &val2);
22189 if (!SWIG_IsOK(ecode2)) {
22190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22191 }
22192 arg2 = static_cast< int >(val2);
22193 {
22194 PyThreadState* __tstate = wxPyBeginAllowThreads();
22195 (arg1)->SetMapMode(arg2);
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 resultobj = SWIG_Py_Void();
22200 return resultobj;
22201fail:
22202 return NULL;
22203}
22204
22205
22206SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22207 PyObject *resultobj = 0;
22208 wxDC *arg1 = (wxDC *) 0 ;
22209 double *arg2 = (double *) 0 ;
22210 double *arg3 = (double *) 0 ;
22211 void *argp1 = 0 ;
22212 int res1 = 0 ;
22213 double temp2 ;
22214 int res2 = SWIG_TMPOBJ ;
22215 double temp3 ;
22216 int res3 = SWIG_TMPOBJ ;
22217 PyObject *swig_obj[1] ;
22218
22219 arg2 = &temp2;
22220 arg3 = &temp3;
22221 if (!args) SWIG_fail;
22222 swig_obj[0] = args;
22223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22224 if (!SWIG_IsOK(res1)) {
22225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22226 }
22227 arg1 = reinterpret_cast< wxDC * >(argp1);
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 resultobj = SWIG_Py_Void();
22235 if (SWIG_IsTmpObj(res2)) {
22236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22237 } else {
22238 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22240 }
22241 if (SWIG_IsTmpObj(res3)) {
22242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22243 } else {
22244 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22246 }
22247 return resultobj;
22248fail:
22249 return NULL;
22250}
22251
22252
22253SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22254 PyObject *resultobj = 0;
22255 wxDC *arg1 = (wxDC *) 0 ;
22256 double arg2 ;
22257 double arg3 ;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 double val2 ;
22261 int ecode2 = 0 ;
22262 double val3 ;
22263 int ecode3 = 0 ;
22264 PyObject * obj0 = 0 ;
22265 PyObject * obj1 = 0 ;
22266 PyObject * obj2 = 0 ;
22267 char * kwnames[] = {
22268 (char *) "self",(char *) "x",(char *) "y", NULL
22269 };
22270
22271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22273 if (!SWIG_IsOK(res1)) {
22274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22275 }
22276 arg1 = reinterpret_cast< wxDC * >(argp1);
22277 ecode2 = SWIG_AsVal_double(obj1, &val2);
22278 if (!SWIG_IsOK(ecode2)) {
22279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22280 }
22281 arg2 = static_cast< double >(val2);
22282 ecode3 = SWIG_AsVal_double(obj2, &val3);
22283 if (!SWIG_IsOK(ecode3)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22285 }
22286 arg3 = static_cast< double >(val3);
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 (arg1)->SetUserScale(arg2,arg3);
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 resultobj = SWIG_Py_Void();
22294 return resultobj;
22295fail:
22296 return NULL;
22297}
22298
22299
22300SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22301 PyObject *resultobj = 0;
22302 wxDC *arg1 = (wxDC *) 0 ;
22303 double *arg2 = (double *) 0 ;
22304 double *arg3 = (double *) 0 ;
22305 void *argp1 = 0 ;
22306 int res1 = 0 ;
22307 double temp2 ;
22308 int res2 = SWIG_TMPOBJ ;
22309 double temp3 ;
22310 int res3 = SWIG_TMPOBJ ;
22311 PyObject *swig_obj[1] ;
22312
22313 arg2 = &temp2;
22314 arg3 = &temp3;
22315 if (!args) SWIG_fail;
22316 swig_obj[0] = args;
22317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22318 if (!SWIG_IsOK(res1)) {
22319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22320 }
22321 arg1 = reinterpret_cast< wxDC * >(argp1);
22322 {
22323 PyThreadState* __tstate = wxPyBeginAllowThreads();
22324 (arg1)->GetLogicalScale(arg2,arg3);
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 resultobj = SWIG_Py_Void();
22329 if (SWIG_IsTmpObj(res2)) {
22330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22331 } else {
22332 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22334 }
22335 if (SWIG_IsTmpObj(res3)) {
22336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22337 } else {
22338 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22340 }
22341 return resultobj;
22342fail:
22343 return NULL;
22344}
22345
22346
22347SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22348 PyObject *resultobj = 0;
22349 wxDC *arg1 = (wxDC *) 0 ;
22350 double arg2 ;
22351 double arg3 ;
22352 void *argp1 = 0 ;
22353 int res1 = 0 ;
22354 double val2 ;
22355 int ecode2 = 0 ;
22356 double val3 ;
22357 int ecode3 = 0 ;
22358 PyObject * obj0 = 0 ;
22359 PyObject * obj1 = 0 ;
22360 PyObject * obj2 = 0 ;
22361 char * kwnames[] = {
22362 (char *) "self",(char *) "x",(char *) "y", NULL
22363 };
22364
22365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22367 if (!SWIG_IsOK(res1)) {
22368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22369 }
22370 arg1 = reinterpret_cast< wxDC * >(argp1);
22371 ecode2 = SWIG_AsVal_double(obj1, &val2);
22372 if (!SWIG_IsOK(ecode2)) {
22373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22374 }
22375 arg2 = static_cast< double >(val2);
22376 ecode3 = SWIG_AsVal_double(obj2, &val3);
22377 if (!SWIG_IsOK(ecode3)) {
22378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22379 }
22380 arg3 = static_cast< double >(val3);
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 (arg1)->SetLogicalScale(arg2,arg3);
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 resultobj = SWIG_Py_Void();
22388 return resultobj;
22389fail:
22390 return NULL;
22391}
22392
22393
22394SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395 PyObject *resultobj = 0;
22396 wxDC *arg1 = (wxDC *) 0 ;
22397 wxPoint result;
22398 void *argp1 = 0 ;
22399 int res1 = 0 ;
22400 PyObject *swig_obj[1] ;
22401
22402 if (!args) SWIG_fail;
22403 swig_obj[0] = args;
22404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22405 if (!SWIG_IsOK(res1)) {
22406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22407 }
22408 arg1 = reinterpret_cast< wxDC * >(argp1);
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22416 return resultobj;
22417fail:
22418 return NULL;
22419}
22420
22421
22422SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22423 PyObject *resultobj = 0;
22424 wxDC *arg1 = (wxDC *) 0 ;
22425 int *arg2 = (int *) 0 ;
22426 int *arg3 = (int *) 0 ;
22427 void *argp1 = 0 ;
22428 int res1 = 0 ;
22429 int temp2 ;
22430 int res2 = SWIG_TMPOBJ ;
22431 int temp3 ;
22432 int res3 = SWIG_TMPOBJ ;
22433 PyObject *swig_obj[1] ;
22434
22435 arg2 = &temp2;
22436 arg3 = &temp3;
22437 if (!args) SWIG_fail;
22438 swig_obj[0] = args;
22439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_Py_Void();
22451 if (SWIG_IsTmpObj(res2)) {
22452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22453 } else {
22454 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22456 }
22457 if (SWIG_IsTmpObj(res3)) {
22458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22459 } else {
22460 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22462 }
22463 return resultobj;
22464fail:
22465 return NULL;
22466}
22467
22468
22469SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22470 PyObject *resultobj = 0;
22471 wxDC *arg1 = (wxDC *) 0 ;
22472 int arg2 ;
22473 int arg3 ;
22474 void *argp1 = 0 ;
22475 int res1 = 0 ;
22476 int val2 ;
22477 int ecode2 = 0 ;
22478 int val3 ;
22479 int ecode3 = 0 ;
22480 PyObject * obj0 = 0 ;
22481 PyObject * obj1 = 0 ;
22482 PyObject * obj2 = 0 ;
22483 char * kwnames[] = {
22484 (char *) "self",(char *) "x",(char *) "y", NULL
22485 };
22486
22487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22489 if (!SWIG_IsOK(res1)) {
22490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22491 }
22492 arg1 = reinterpret_cast< wxDC * >(argp1);
22493 ecode2 = SWIG_AsVal_int(obj1, &val2);
22494 if (!SWIG_IsOK(ecode2)) {
22495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22496 }
22497 arg2 = static_cast< int >(val2);
22498 ecode3 = SWIG_AsVal_int(obj2, &val3);
22499 if (!SWIG_IsOK(ecode3)) {
22500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22501 }
22502 arg3 = static_cast< int >(val3);
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 (arg1)->SetLogicalOrigin(arg2,arg3);
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 resultobj = SWIG_Py_Void();
22510 return resultobj;
22511fail:
22512 return NULL;
22513}
22514
22515
22516SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj = 0;
22518 wxDC *arg1 = (wxDC *) 0 ;
22519 wxPoint *arg2 = 0 ;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 wxPoint temp2 ;
22523 PyObject * obj0 = 0 ;
22524 PyObject * obj1 = 0 ;
22525 char * kwnames[] = {
22526 (char *) "self",(char *) "point", NULL
22527 };
22528
22529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22531 if (!SWIG_IsOK(res1)) {
22532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22533 }
22534 arg1 = reinterpret_cast< wxDC * >(argp1);
22535 {
22536 arg2 = &temp2;
22537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22538 }
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22542 wxPyEndAllowThreads(__tstate);
22543 if (PyErr_Occurred()) SWIG_fail;
22544 }
22545 resultobj = SWIG_Py_Void();
22546 return resultobj;
22547fail:
22548 return NULL;
22549}
22550
22551
22552SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22553 PyObject *resultobj = 0;
22554 wxDC *arg1 = (wxDC *) 0 ;
22555 wxPoint result;
22556 void *argp1 = 0 ;
22557 int res1 = 0 ;
22558 PyObject *swig_obj[1] ;
22559
22560 if (!args) SWIG_fail;
22561 swig_obj[0] = args;
22562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22563 if (!SWIG_IsOK(res1)) {
22564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22565 }
22566 arg1 = reinterpret_cast< wxDC * >(argp1);
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22574 return resultobj;
22575fail:
22576 return NULL;
22577}
22578
22579
22580SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxDC *arg1 = (wxDC *) 0 ;
22583 int *arg2 = (int *) 0 ;
22584 int *arg3 = (int *) 0 ;
22585 void *argp1 = 0 ;
22586 int res1 = 0 ;
22587 int temp2 ;
22588 int res2 = SWIG_TMPOBJ ;
22589 int temp3 ;
22590 int res3 = SWIG_TMPOBJ ;
22591 PyObject *swig_obj[1] ;
22592
22593 arg2 = &temp2;
22594 arg3 = &temp3;
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22600 }
22601 arg1 = reinterpret_cast< wxDC * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_Py_Void();
22609 if (SWIG_IsTmpObj(res2)) {
22610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22611 } else {
22612 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22614 }
22615 if (SWIG_IsTmpObj(res3)) {
22616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22617 } else {
22618 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22620 }
22621 return resultobj;
22622fail:
22623 return NULL;
22624}
22625
22626
22627SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22628 PyObject *resultobj = 0;
22629 wxDC *arg1 = (wxDC *) 0 ;
22630 int arg2 ;
22631 int arg3 ;
22632 void *argp1 = 0 ;
22633 int res1 = 0 ;
22634 int val2 ;
22635 int ecode2 = 0 ;
22636 int val3 ;
22637 int ecode3 = 0 ;
22638 PyObject * obj0 = 0 ;
22639 PyObject * obj1 = 0 ;
22640 PyObject * obj2 = 0 ;
22641 char * kwnames[] = {
22642 (char *) "self",(char *) "x",(char *) "y", NULL
22643 };
22644
22645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22647 if (!SWIG_IsOK(res1)) {
22648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22649 }
22650 arg1 = reinterpret_cast< wxDC * >(argp1);
22651 ecode2 = SWIG_AsVal_int(obj1, &val2);
22652 if (!SWIG_IsOK(ecode2)) {
22653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22654 }
22655 arg2 = static_cast< int >(val2);
22656 ecode3 = SWIG_AsVal_int(obj2, &val3);
22657 if (!SWIG_IsOK(ecode3)) {
22658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22659 }
22660 arg3 = static_cast< int >(val3);
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 (arg1)->SetDeviceOrigin(arg2,arg3);
22664 wxPyEndAllowThreads(__tstate);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 resultobj = SWIG_Py_Void();
22668 return resultobj;
22669fail:
22670 return NULL;
22671}
22672
22673
22674SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22675 PyObject *resultobj = 0;
22676 wxDC *arg1 = (wxDC *) 0 ;
22677 wxPoint *arg2 = 0 ;
22678 void *argp1 = 0 ;
22679 int res1 = 0 ;
22680 wxPoint temp2 ;
22681 PyObject * obj0 = 0 ;
22682 PyObject * obj1 = 0 ;
22683 char * kwnames[] = {
22684 (char *) "self",(char *) "point", NULL
22685 };
22686
22687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22689 if (!SWIG_IsOK(res1)) {
22690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22691 }
22692 arg1 = reinterpret_cast< wxDC * >(argp1);
22693 {
22694 arg2 = &temp2;
22695 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22696 }
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_Py_Void();
22704 return resultobj;
22705fail:
22706 return NULL;
22707}
22708
22709
22710SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22711 PyObject *resultobj = 0;
22712 wxDC *arg1 = (wxDC *) 0 ;
22713 bool arg2 ;
22714 bool arg3 ;
22715 void *argp1 = 0 ;
22716 int res1 = 0 ;
22717 bool val2 ;
22718 int ecode2 = 0 ;
22719 bool val3 ;
22720 int ecode3 = 0 ;
22721 PyObject * obj0 = 0 ;
22722 PyObject * obj1 = 0 ;
22723 PyObject * obj2 = 0 ;
22724 char * kwnames[] = {
22725 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22726 };
22727
22728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22730 if (!SWIG_IsOK(res1)) {
22731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22732 }
22733 arg1 = reinterpret_cast< wxDC * >(argp1);
22734 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22735 if (!SWIG_IsOK(ecode2)) {
22736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22737 }
22738 arg2 = static_cast< bool >(val2);
22739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22740 if (!SWIG_IsOK(ecode3)) {
22741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22742 }
22743 arg3 = static_cast< bool >(val3);
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 (arg1)->SetAxisOrientation(arg2,arg3);
22747 wxPyEndAllowThreads(__tstate);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 }
22750 resultobj = SWIG_Py_Void();
22751 return resultobj;
22752fail:
22753 return NULL;
22754}
22755
22756
22757SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22758 PyObject *resultobj = 0;
22759 wxDC *arg1 = (wxDC *) 0 ;
22760 int result;
22761 void *argp1 = 0 ;
22762 int res1 = 0 ;
22763 PyObject *swig_obj[1] ;
22764
22765 if (!args) SWIG_fail;
22766 swig_obj[0] = args;
22767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22770 }
22771 arg1 = reinterpret_cast< wxDC * >(argp1);
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22775 wxPyEndAllowThreads(__tstate);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 }
22778 resultobj = SWIG_From_int(static_cast< int >(result));
22779 return resultobj;
22780fail:
22781 return NULL;
22782}
22783
22784
22785SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22786 PyObject *resultobj = 0;
22787 wxDC *arg1 = (wxDC *) 0 ;
22788 int arg2 ;
22789 void *argp1 = 0 ;
22790 int res1 = 0 ;
22791 int val2 ;
22792 int ecode2 = 0 ;
22793 PyObject * obj0 = 0 ;
22794 PyObject * obj1 = 0 ;
22795 char * kwnames[] = {
22796 (char *) "self",(char *) "function", NULL
22797 };
22798
22799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22801 if (!SWIG_IsOK(res1)) {
22802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22803 }
22804 arg1 = reinterpret_cast< wxDC * >(argp1);
22805 ecode2 = SWIG_AsVal_int(obj1, &val2);
22806 if (!SWIG_IsOK(ecode2)) {
22807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22808 }
22809 arg2 = static_cast< int >(val2);
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 (arg1)->SetLogicalFunction(arg2);
22813 wxPyEndAllowThreads(__tstate);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 resultobj = SWIG_Py_Void();
22817 return resultobj;
22818fail:
22819 return NULL;
22820}
22821
22822
22823SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22824 PyObject *resultobj = 0;
22825 wxDC *arg1 = (wxDC *) 0 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 PyObject *swig_obj[1] ;
22829
22830 if (!args) SWIG_fail;
22831 swig_obj[0] = args;
22832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22833 if (!SWIG_IsOK(res1)) {
22834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22835 }
22836 arg1 = reinterpret_cast< wxDC * >(argp1);
22837 {
22838 PyThreadState* __tstate = wxPyBeginAllowThreads();
22839 (arg1)->ComputeScaleAndOrigin();
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 resultobj = SWIG_Py_Void();
22844 return resultobj;
22845fail:
22846 return NULL;
22847}
22848
22849
22850SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22851 PyObject *resultobj = 0;
22852 wxDC *arg1 = (wxDC *) 0 ;
22853 int arg2 ;
22854 int arg3 ;
22855 void *argp1 = 0 ;
22856 int res1 = 0 ;
22857 int val2 ;
22858 int ecode2 = 0 ;
22859 int val3 ;
22860 int ecode3 = 0 ;
22861 PyObject * obj0 = 0 ;
22862 PyObject * obj1 = 0 ;
22863 PyObject * obj2 = 0 ;
22864 char * kwnames[] = {
22865 (char *) "self",(char *) "x",(char *) "y", NULL
22866 };
22867
22868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22870 if (!SWIG_IsOK(res1)) {
22871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22872 }
22873 arg1 = reinterpret_cast< wxDC * >(argp1);
22874 ecode2 = SWIG_AsVal_int(obj1, &val2);
22875 if (!SWIG_IsOK(ecode2)) {
22876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22877 }
22878 arg2 = static_cast< int >(val2);
22879 ecode3 = SWIG_AsVal_int(obj2, &val3);
22880 if (!SWIG_IsOK(ecode3)) {
22881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22882 }
22883 arg3 = static_cast< int >(val3);
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 (arg1)->CalcBoundingBox(arg2,arg3);
22887 wxPyEndAllowThreads(__tstate);
22888 if (PyErr_Occurred()) SWIG_fail;
22889 }
22890 resultobj = SWIG_Py_Void();
22891 return resultobj;
22892fail:
22893 return NULL;
22894}
22895
22896
22897SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22898 PyObject *resultobj = 0;
22899 wxDC *arg1 = (wxDC *) 0 ;
22900 wxPoint *arg2 = 0 ;
22901 void *argp1 = 0 ;
22902 int res1 = 0 ;
22903 wxPoint temp2 ;
22904 PyObject * obj0 = 0 ;
22905 PyObject * obj1 = 0 ;
22906 char * kwnames[] = {
22907 (char *) "self",(char *) "point", NULL
22908 };
22909
22910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22912 if (!SWIG_IsOK(res1)) {
22913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22914 }
22915 arg1 = reinterpret_cast< wxDC * >(argp1);
22916 {
22917 arg2 = &temp2;
22918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22919 }
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_Py_Void();
22927 return resultobj;
22928fail:
22929 return NULL;
22930}
22931
22932
22933SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22934 PyObject *resultobj = 0;
22935 wxDC *arg1 = (wxDC *) 0 ;
22936 void *argp1 = 0 ;
22937 int res1 = 0 ;
22938 PyObject *swig_obj[1] ;
22939
22940 if (!args) SWIG_fail;
22941 swig_obj[0] = args;
22942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22943 if (!SWIG_IsOK(res1)) {
22944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22945 }
22946 arg1 = reinterpret_cast< wxDC * >(argp1);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 (arg1)->ResetBoundingBox();
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = SWIG_Py_Void();
22954 return resultobj;
22955fail:
22956 return NULL;
22957}
22958
22959
22960SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22961 PyObject *resultobj = 0;
22962 wxDC *arg1 = (wxDC *) 0 ;
22963 int result;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22973 }
22974 arg1 = reinterpret_cast< wxDC * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = (int)((wxDC const *)arg1)->MinX();
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_From_int(static_cast< int >(result));
22982 return resultobj;
22983fail:
22984 return NULL;
22985}
22986
22987
22988SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22989 PyObject *resultobj = 0;
22990 wxDC *arg1 = (wxDC *) 0 ;
22991 int result;
22992 void *argp1 = 0 ;
22993 int res1 = 0 ;
22994 PyObject *swig_obj[1] ;
22995
22996 if (!args) SWIG_fail;
22997 swig_obj[0] = args;
22998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22999 if (!SWIG_IsOK(res1)) {
23000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23001 }
23002 arg1 = reinterpret_cast< wxDC * >(argp1);
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (int)((wxDC const *)arg1)->MaxX();
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 resultobj = SWIG_From_int(static_cast< int >(result));
23010 return resultobj;
23011fail:
23012 return NULL;
23013}
23014
23015
23016SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23017 PyObject *resultobj = 0;
23018 wxDC *arg1 = (wxDC *) 0 ;
23019 int result;
23020 void *argp1 = 0 ;
23021 int res1 = 0 ;
23022 PyObject *swig_obj[1] ;
23023
23024 if (!args) SWIG_fail;
23025 swig_obj[0] = args;
23026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23027 if (!SWIG_IsOK(res1)) {
23028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23029 }
23030 arg1 = reinterpret_cast< wxDC * >(argp1);
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 result = (int)((wxDC const *)arg1)->MinY();
23034 wxPyEndAllowThreads(__tstate);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 resultobj = SWIG_From_int(static_cast< int >(result));
23038 return resultobj;
23039fail:
23040 return NULL;
23041}
23042
23043
23044SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23045 PyObject *resultobj = 0;
23046 wxDC *arg1 = (wxDC *) 0 ;
23047 int result;
23048 void *argp1 = 0 ;
23049 int res1 = 0 ;
23050 PyObject *swig_obj[1] ;
23051
23052 if (!args) SWIG_fail;
23053 swig_obj[0] = args;
23054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23057 }
23058 arg1 = reinterpret_cast< wxDC * >(argp1);
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (int)((wxDC const *)arg1)->MaxY();
23062 wxPyEndAllowThreads(__tstate);
23063 if (PyErr_Occurred()) SWIG_fail;
23064 }
23065 resultobj = SWIG_From_int(static_cast< int >(result));
23066 return resultobj;
23067fail:
23068 return NULL;
23069}
23070
23071
23072SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23073 PyObject *resultobj = 0;
23074 wxDC *arg1 = (wxDC *) 0 ;
23075 int *arg2 = (int *) 0 ;
23076 int *arg3 = (int *) 0 ;
23077 int *arg4 = (int *) 0 ;
23078 int *arg5 = (int *) 0 ;
23079 void *argp1 = 0 ;
23080 int res1 = 0 ;
23081 int temp2 ;
23082 int res2 = SWIG_TMPOBJ ;
23083 int temp3 ;
23084 int res3 = SWIG_TMPOBJ ;
23085 int temp4 ;
23086 int res4 = SWIG_TMPOBJ ;
23087 int temp5 ;
23088 int res5 = SWIG_TMPOBJ ;
23089 PyObject *swig_obj[1] ;
23090
23091 arg2 = &temp2;
23092 arg3 = &temp3;
23093 arg4 = &temp4;
23094 arg5 = &temp5;
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23100 }
23101 arg1 = reinterpret_cast< wxDC * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = SWIG_Py_Void();
23109 if (SWIG_IsTmpObj(res2)) {
23110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23111 } else {
23112 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23114 }
23115 if (SWIG_IsTmpObj(res3)) {
23116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23117 } else {
23118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23120 }
23121 if (SWIG_IsTmpObj(res4)) {
23122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23123 } else {
23124 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23126 }
23127 if (SWIG_IsTmpObj(res5)) {
23128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23129 } else {
23130 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23132 }
23133 return resultobj;
23134fail:
23135 return NULL;
23136}
23137
23138
b39fe951
RD
23139SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23140 PyObject *resultobj = 0;
23141 wxDC *arg1 = (wxDC *) 0 ;
23142 wxLayoutDirection result;
23143 void *argp1 = 0 ;
23144 int res1 = 0 ;
23145 PyObject *swig_obj[1] ;
23146
23147 if (!args) SWIG_fail;
23148 swig_obj[0] = args;
23149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23150 if (!SWIG_IsOK(res1)) {
23151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23152 }
23153 arg1 = reinterpret_cast< wxDC * >(argp1);
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23157 wxPyEndAllowThreads(__tstate);
23158 if (PyErr_Occurred()) SWIG_fail;
23159 }
23160 resultobj = SWIG_From_int(static_cast< int >(result));
23161 return resultobj;
23162fail:
23163 return NULL;
23164}
23165
23166
23167SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23168 PyObject *resultobj = 0;
23169 wxDC *arg1 = (wxDC *) 0 ;
23170 wxLayoutDirection arg2 ;
23171 void *argp1 = 0 ;
23172 int res1 = 0 ;
23173 int val2 ;
23174 int ecode2 = 0 ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "dir", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 ecode2 = SWIG_AsVal_int(obj1, &val2);
23188 if (!SWIG_IsOK(ecode2)) {
23189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23190 }
23191 arg2 = static_cast< wxLayoutDirection >(val2);
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 (arg1)->SetLayoutDirection(arg2);
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 resultobj = SWIG_Py_Void();
23199 return resultobj;
23200fail:
23201 return NULL;
23202}
23203
23204
1bd55598
RD
23205SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23206 PyObject *resultobj = 0;
23207 wxDC *arg1 = (wxDC *) 0 ;
23208 PyObject *arg2 = (PyObject *) 0 ;
23209 PyObject *arg3 = (PyObject *) 0 ;
23210 PyObject *arg4 = (PyObject *) 0 ;
23211 PyObject *result = 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 PyObject * obj0 = 0 ;
23215 PyObject * obj1 = 0 ;
23216 PyObject * obj2 = 0 ;
23217 PyObject * obj3 = 0 ;
23218 char * kwnames[] = {
23219 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23220 };
23221
23222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23224 if (!SWIG_IsOK(res1)) {
23225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23226 }
23227 arg1 = reinterpret_cast< wxDC * >(argp1);
23228 arg2 = obj1;
23229 arg3 = obj2;
23230 arg4 = obj3;
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23234 wxPyEndAllowThreads(__tstate);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 }
23237 resultobj = result;
23238 return resultobj;
23239fail:
23240 return NULL;
23241}
23242
23243
23244SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23245 PyObject *resultobj = 0;
23246 wxDC *arg1 = (wxDC *) 0 ;
23247 PyObject *arg2 = (PyObject *) 0 ;
23248 PyObject *arg3 = (PyObject *) 0 ;
23249 PyObject *arg4 = (PyObject *) 0 ;
23250 PyObject *result = 0 ;
23251 void *argp1 = 0 ;
23252 int res1 = 0 ;
23253 PyObject * obj0 = 0 ;
23254 PyObject * obj1 = 0 ;
23255 PyObject * obj2 = 0 ;
23256 PyObject * obj3 = 0 ;
23257 char * kwnames[] = {
23258 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23259 };
23260
23261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23263 if (!SWIG_IsOK(res1)) {
23264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23265 }
23266 arg1 = reinterpret_cast< wxDC * >(argp1);
23267 arg2 = obj1;
23268 arg3 = obj2;
23269 arg4 = obj3;
23270 {
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 resultobj = result;
23277 return resultobj;
23278fail:
23279 return NULL;
23280}
23281
23282
23283SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj = 0;
23285 wxDC *arg1 = (wxDC *) 0 ;
23286 PyObject *arg2 = (PyObject *) 0 ;
23287 PyObject *arg3 = (PyObject *) 0 ;
23288 PyObject *arg4 = (PyObject *) 0 ;
23289 PyObject *result = 0 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 PyObject * obj0 = 0 ;
23293 PyObject * obj1 = 0 ;
23294 PyObject * obj2 = 0 ;
23295 PyObject * obj3 = 0 ;
23296 char * kwnames[] = {
23297 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23298 };
23299
23300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23302 if (!SWIG_IsOK(res1)) {
23303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23304 }
23305 arg1 = reinterpret_cast< wxDC * >(argp1);
23306 arg2 = obj1;
23307 arg3 = obj2;
23308 arg4 = obj3;
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23312 wxPyEndAllowThreads(__tstate);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 resultobj = result;
23316 return resultobj;
23317fail:
23318 return NULL;
23319}
23320
23321
23322SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23323 PyObject *resultobj = 0;
23324 wxDC *arg1 = (wxDC *) 0 ;
23325 PyObject *arg2 = (PyObject *) 0 ;
23326 PyObject *arg3 = (PyObject *) 0 ;
23327 PyObject *arg4 = (PyObject *) 0 ;
23328 PyObject *result = 0 ;
23329 void *argp1 = 0 ;
23330 int res1 = 0 ;
23331 PyObject * obj0 = 0 ;
23332 PyObject * obj1 = 0 ;
23333 PyObject * obj2 = 0 ;
23334 PyObject * obj3 = 0 ;
23335 char * kwnames[] = {
23336 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23337 };
23338
23339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23341 if (!SWIG_IsOK(res1)) {
23342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23343 }
23344 arg1 = reinterpret_cast< wxDC * >(argp1);
23345 arg2 = obj1;
23346 arg3 = obj2;
23347 arg4 = obj3;
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 resultobj = result;
23355 return resultobj;
23356fail:
23357 return NULL;
23358}
23359
23360
23361SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23362 PyObject *resultobj = 0;
23363 wxDC *arg1 = (wxDC *) 0 ;
23364 PyObject *arg2 = (PyObject *) 0 ;
23365 PyObject *arg3 = (PyObject *) 0 ;
23366 PyObject *arg4 = (PyObject *) 0 ;
23367 PyObject *result = 0 ;
23368 void *argp1 = 0 ;
23369 int res1 = 0 ;
23370 PyObject * obj0 = 0 ;
23371 PyObject * obj1 = 0 ;
23372 PyObject * obj2 = 0 ;
23373 PyObject * obj3 = 0 ;
23374 char * kwnames[] = {
23375 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23376 };
23377
23378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23382 }
23383 arg1 = reinterpret_cast< wxDC * >(argp1);
23384 arg2 = obj1;
23385 arg3 = obj2;
23386 arg4 = obj3;
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = result;
23394 return resultobj;
23395fail:
23396 return NULL;
23397}
23398
23399
23400SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23401 PyObject *resultobj = 0;
23402 wxDC *arg1 = (wxDC *) 0 ;
23403 PyObject *arg2 = (PyObject *) 0 ;
23404 PyObject *arg3 = (PyObject *) 0 ;
23405 PyObject *arg4 = (PyObject *) 0 ;
23406 PyObject *arg5 = (PyObject *) 0 ;
23407 PyObject *result = 0 ;
23408 void *argp1 = 0 ;
23409 int res1 = 0 ;
23410 PyObject * obj0 = 0 ;
23411 PyObject * obj1 = 0 ;
23412 PyObject * obj2 = 0 ;
23413 PyObject * obj3 = 0 ;
23414 PyObject * obj4 = 0 ;
23415 char * kwnames[] = {
23416 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23417 };
23418
23419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23421 if (!SWIG_IsOK(res1)) {
23422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23423 }
23424 arg1 = reinterpret_cast< wxDC * >(argp1);
23425 arg2 = obj1;
23426 arg3 = obj2;
23427 arg4 = obj3;
23428 arg5 = obj4;
23429 {
23430 PyThreadState* __tstate = wxPyBeginAllowThreads();
23431 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23432 wxPyEndAllowThreads(__tstate);
23433 if (PyErr_Occurred()) SWIG_fail;
23434 }
23435 resultobj = result;
23436 return resultobj;
23437fail:
23438 return NULL;
23439}
23440
23441
23442SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23443 PyObject *obj;
23444 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23445 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23446 return SWIG_Py_Void();
23447}
23448
70d7cb34
RD
23449SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23450 PyObject *resultobj = 0;
23451 wxDC *arg1 = 0 ;
23452 wxColour *arg2 = 0 ;
23453 wxDCTextColourChanger *result = 0 ;
23454 void *argp1 = 0 ;
23455 int res1 = 0 ;
23456 wxColour temp2 ;
23457 PyObject * obj0 = 0 ;
23458 PyObject * obj1 = 0 ;
23459 char * kwnames[] = {
23460 (char *) "dc",(char *) "col", NULL
23461 };
23462
23463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23464 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23465 if (!SWIG_IsOK(res1)) {
23466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23467 }
23468 if (!argp1) {
23469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23470 }
23471 arg1 = reinterpret_cast< wxDC * >(argp1);
23472 {
23473 arg2 = &temp2;
23474 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23475 }
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23479 wxPyEndAllowThreads(__tstate);
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
23482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23483 return resultobj;
23484fail:
23485 return NULL;
23486}
23487
23488
23489SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23490 PyObject *resultobj = 0;
23491 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23492 void *argp1 = 0 ;
23493 int res1 = 0 ;
23494 PyObject *swig_obj[1] ;
23495
23496 if (!args) SWIG_fail;
23497 swig_obj[0] = args;
23498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23499 if (!SWIG_IsOK(res1)) {
23500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23501 }
23502 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23503 {
23504 PyThreadState* __tstate = wxPyBeginAllowThreads();
23505 delete arg1;
23506
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 resultobj = SWIG_Py_Void();
23511 return resultobj;
23512fail:
23513 return NULL;
23514}
23515
23516
23517SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23518 PyObject *obj;
23519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23520 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23521 return SWIG_Py_Void();
23522}
23523
23524SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23525 return SWIG_Python_InitShadowInstance(args);
23526}
23527
23528SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23529 PyObject *resultobj = 0;
23530 wxDC *arg1 = 0 ;
23531 wxPen *arg2 = 0 ;
23532 wxDCPenChanger *result = 0 ;
23533 void *argp1 = 0 ;
23534 int res1 = 0 ;
23535 void *argp2 = 0 ;
23536 int res2 = 0 ;
23537 PyObject * obj0 = 0 ;
23538 PyObject * obj1 = 0 ;
23539 char * kwnames[] = {
23540 (char *) "dc",(char *) "pen", NULL
23541 };
23542
23543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23544 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23545 if (!SWIG_IsOK(res1)) {
23546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23547 }
23548 if (!argp1) {
23549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23550 }
23551 arg1 = reinterpret_cast< wxDC * >(argp1);
23552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23553 if (!SWIG_IsOK(res2)) {
23554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23555 }
23556 if (!argp2) {
23557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23558 }
23559 arg2 = reinterpret_cast< wxPen * >(argp2);
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23567 return resultobj;
23568fail:
23569 return NULL;
23570}
23571
23572
23573SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23574 PyObject *resultobj = 0;
23575 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 PyObject *swig_obj[1] ;
23579
23580 if (!args) SWIG_fail;
23581 swig_obj[0] = args;
23582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23583 if (!SWIG_IsOK(res1)) {
23584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23585 }
23586 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 delete arg1;
23590
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 resultobj = SWIG_Py_Void();
23595 return resultobj;
23596fail:
23597 return NULL;
23598}
23599
23600
23601SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23602 PyObject *obj;
23603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23604 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23605 return SWIG_Py_Void();
23606}
23607
23608SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609 return SWIG_Python_InitShadowInstance(args);
23610}
23611
23612SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23613 PyObject *resultobj = 0;
23614 wxDC *arg1 = 0 ;
23615 wxBrush *arg2 = 0 ;
23616 wxDCBrushChanger *result = 0 ;
23617 void *argp1 = 0 ;
23618 int res1 = 0 ;
23619 void *argp2 = 0 ;
23620 int res2 = 0 ;
23621 PyObject * obj0 = 0 ;
23622 PyObject * obj1 = 0 ;
23623 char * kwnames[] = {
23624 (char *) "dc",(char *) "brush", NULL
23625 };
23626
23627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23628 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23629 if (!SWIG_IsOK(res1)) {
23630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23631 }
23632 if (!argp1) {
23633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23634 }
23635 arg1 = reinterpret_cast< wxDC * >(argp1);
23636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23637 if (!SWIG_IsOK(res2)) {
23638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23639 }
23640 if (!argp2) {
23641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23642 }
23643 arg2 = reinterpret_cast< wxBrush * >(argp2);
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23647 wxPyEndAllowThreads(__tstate);
23648 if (PyErr_Occurred()) SWIG_fail;
23649 }
23650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23651 return resultobj;
23652fail:
23653 return NULL;
23654}
23655
23656
23657SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23658 PyObject *resultobj = 0;
23659 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23660 void *argp1 = 0 ;
23661 int res1 = 0 ;
23662 PyObject *swig_obj[1] ;
23663
23664 if (!args) SWIG_fail;
23665 swig_obj[0] = args;
23666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23667 if (!SWIG_IsOK(res1)) {
23668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23669 }
23670 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23671 {
23672 PyThreadState* __tstate = wxPyBeginAllowThreads();
23673 delete arg1;
23674
23675 wxPyEndAllowThreads(__tstate);
23676 if (PyErr_Occurred()) SWIG_fail;
23677 }
23678 resultobj = SWIG_Py_Void();
23679 return resultobj;
23680fail:
23681 return NULL;
23682}
23683
23684
23685SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23686 PyObject *obj;
23687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23688 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23689 return SWIG_Py_Void();
23690}
23691
23692SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23693 return SWIG_Python_InitShadowInstance(args);
23694}
23695
23696SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23697 PyObject *resultobj = 0;
23698 wxDC *arg1 = 0 ;
23699 wxRegion *arg2 = 0 ;
23700 wxDCClipper *result = 0 ;
23701 void *argp1 = 0 ;
23702 int res1 = 0 ;
23703 void *argp2 = 0 ;
23704 int res2 = 0 ;
23705
23706 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23708 if (!SWIG_IsOK(res1)) {
23709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23710 }
23711 if (!argp1) {
23712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23713 }
23714 arg1 = reinterpret_cast< wxDC * >(argp1);
23715 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23716 if (!SWIG_IsOK(res2)) {
23717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23718 }
23719 if (!argp2) {
23720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23721 }
23722 arg2 = reinterpret_cast< wxRegion * >(argp2);
23723 {
23724 PyThreadState* __tstate = wxPyBeginAllowThreads();
23725 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23726 wxPyEndAllowThreads(__tstate);
23727 if (PyErr_Occurred()) SWIG_fail;
23728 }
23729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23730 return resultobj;
23731fail:
23732 return NULL;
23733}
23734
23735
23736SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23737 PyObject *resultobj = 0;
23738 wxDC *arg1 = 0 ;
23739 wxRect *arg2 = 0 ;
23740 wxDCClipper *result = 0 ;
23741 void *argp1 = 0 ;
23742 int res1 = 0 ;
23743 wxRect temp2 ;
23744
23745 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23747 if (!SWIG_IsOK(res1)) {
23748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23749 }
23750 if (!argp1) {
23751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23752 }
23753 arg1 = reinterpret_cast< wxDC * >(argp1);
23754 {
23755 arg2 = &temp2;
23756 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23757 }
23758 {
23759 PyThreadState* __tstate = wxPyBeginAllowThreads();
23760 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23761 wxPyEndAllowThreads(__tstate);
23762 if (PyErr_Occurred()) SWIG_fail;
23763 }
23764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23765 return resultobj;
23766fail:
23767 return NULL;
23768}
23769
23770
23771SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23772 PyObject *resultobj = 0;
23773 wxDC *arg1 = 0 ;
23774 int arg2 ;
23775 int arg3 ;
23776 int arg4 ;
23777 int arg5 ;
23778 wxDCClipper *result = 0 ;
23779 void *argp1 = 0 ;
23780 int res1 = 0 ;
23781 int val2 ;
23782 int ecode2 = 0 ;
23783 int val3 ;
23784 int ecode3 = 0 ;
23785 int val4 ;
23786 int ecode4 = 0 ;
23787 int val5 ;
23788 int ecode5 = 0 ;
23789
23790 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23792 if (!SWIG_IsOK(res1)) {
23793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23794 }
23795 if (!argp1) {
23796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23797 }
23798 arg1 = reinterpret_cast< wxDC * >(argp1);
23799 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23800 if (!SWIG_IsOK(ecode2)) {
23801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23802 }
23803 arg2 = static_cast< int >(val2);
23804 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23805 if (!SWIG_IsOK(ecode3)) {
23806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23807 }
23808 arg3 = static_cast< int >(val3);
23809 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23810 if (!SWIG_IsOK(ecode4)) {
23811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23812 }
23813 arg4 = static_cast< int >(val4);
23814 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23815 if (!SWIG_IsOK(ecode5)) {
23816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23817 }
23818 arg5 = static_cast< int >(val5);
23819 {
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
23821 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23826 return resultobj;
23827fail:
23828 return NULL;
23829}
23830
23831
23832SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23833 int argc;
23834 PyObject *argv[6];
23835
23836 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23837 --argc;
23838 if (argc == 2) {
23839 int _v = 0;
23840 {
23841 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23842 _v = SWIG_CheckState(res);
23843 }
23844 if (!_v) goto check_1;
23845 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23846 }
23847check_1:
23848
23849 if (argc == 2) {
23850 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23851 }
23852 if (argc == 5) {
23853 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23854 }
23855
23856fail:
23857 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23858 return NULL;
23859}
23860
23861
23862SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23863 PyObject *resultobj = 0;
23864 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23865 void *argp1 = 0 ;
23866 int res1 = 0 ;
23867 PyObject *swig_obj[1] ;
23868
23869 if (!args) SWIG_fail;
23870 swig_obj[0] = args;
23871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23872 if (!SWIG_IsOK(res1)) {
23873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23874 }
23875 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 delete arg1;
23879
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_Py_Void();
23884 return resultobj;
23885fail:
23886 return NULL;
23887}
23888
23889
23890SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23891 PyObject *obj;
23892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23893 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23894 return SWIG_Py_Void();
23895}
23896
23897SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23898 return SWIG_Python_InitShadowInstance(args);
23899}
23900
8e99bda9 23901SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23902 PyObject *resultobj = 0;
8f514ab4 23903 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 23904 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23905 wxMemoryDC *result = 0 ;
8e99bda9
RD
23906 void *argp1 = 0 ;
23907 int res1 = 0 ;
23908 PyObject * obj0 = 0 ;
23909 char * kwnames[] = {
23910 (char *) "bitmap", NULL
23911 };
1bd55598 23912
8e99bda9
RD
23913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23914 if (obj0) {
8f514ab4 23915 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 23916 if (!SWIG_IsOK(res1)) {
8f514ab4 23917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23918 }
23919 if (!argp1) {
8f514ab4 23920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23921 }
23922 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23923 }
1bd55598
RD
23924 {
23925 if (!wxPyCheckForApp()) SWIG_fail;
23926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 23927 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
1bd55598
RD
23928 wxPyEndAllowThreads(__tstate);
23929 if (PyErr_Occurred()) SWIG_fail;
23930 }
23931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23932 return resultobj;
23933fail:
23934 return NULL;
23935}
23936
23937
23938SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23939 PyObject *resultobj = 0;
23940 wxDC *arg1 = (wxDC *) 0 ;
23941 wxMemoryDC *result = 0 ;
23942 void *argp1 = 0 ;
23943 int res1 = 0 ;
23944 PyObject * obj0 = 0 ;
23945 char * kwnames[] = {
23946 (char *) "oldDC", NULL
23947 };
23948
23949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23951 if (!SWIG_IsOK(res1)) {
23952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23953 }
23954 arg1 = reinterpret_cast< wxDC * >(argp1);
23955 {
23956 if (!wxPyCheckForApp()) SWIG_fail;
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23959 wxPyEndAllowThreads(__tstate);
23960 if (PyErr_Occurred()) SWIG_fail;
23961 }
23962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23963 return resultobj;
23964fail:
23965 return NULL;
23966}
23967
23968
23969SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23970 PyObject *resultobj = 0;
23971 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23972 wxBitmap *arg2 = 0 ;
23973 void *argp1 = 0 ;
23974 int res1 = 0 ;
23975 void *argp2 = 0 ;
23976 int res2 = 0 ;
23977 PyObject * obj0 = 0 ;
23978 PyObject * obj1 = 0 ;
23979 char * kwnames[] = {
23980 (char *) "self",(char *) "bitmap", NULL
23981 };
23982
23983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23985 if (!SWIG_IsOK(res1)) {
23986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23987 }
23988 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
23989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
23990 if (!SWIG_IsOK(res2)) {
23991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23992 }
23993 if (!argp2) {
23994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23995 }
23996 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 (arg1)->SelectObject(*arg2);
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 resultobj = SWIG_Py_Void();
24004 return resultobj;
24005fail:
24006 return NULL;
24007}
24008
24009
24010SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj = 0;
24012 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24013 wxBitmap *arg2 = 0 ;
24014 void *argp1 = 0 ;
24015 int res1 = 0 ;
24016 void *argp2 = 0 ;
24017 int res2 = 0 ;
24018 PyObject * obj0 = 0 ;
24019 PyObject * obj1 = 0 ;
24020 char * kwnames[] = {
24021 (char *) "self",(char *) "bmp", NULL
24022 };
24023
24024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24026 if (!SWIG_IsOK(res1)) {
24027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24028 }
24029 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
1bd55598
RD
24030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24031 if (!SWIG_IsOK(res2)) {
8f514ab4 24032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
1bd55598
RD
24033 }
24034 if (!argp2) {
8f514ab4 24035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
1bd55598
RD
24036 }
24037 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24038 {
24039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24040 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
1bd55598
RD
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 resultobj = SWIG_Py_Void();
24045 return resultobj;
24046fail:
24047 return NULL;
24048}
24049
24050
24051SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 PyObject *obj;
24053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24054 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24055 return SWIG_Py_Void();
24056}
24057
24058SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24059 return SWIG_Python_InitShadowInstance(args);
24060}
24061
24f6c4e8
RD
24062SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24063 PyObject *resultobj = 0;
24064 wxScreenDC *result = 0 ;
24065
24066 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24067 {
24068 if (!wxPyCheckForApp()) SWIG_fail;
24069 PyThreadState* __tstate = wxPyBeginAllowThreads();
24070 result = (wxScreenDC *)new wxScreenDC();
24071 wxPyEndAllowThreads(__tstate);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 }
24074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24075 return resultobj;
24076fail:
24077 return NULL;
24078}
24079
24080
24081SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24082 PyObject *resultobj = 0;
24083 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24084 wxWindow *arg2 = (wxWindow *) 0 ;
24085 bool result;
24086 void *argp1 = 0 ;
24087 int res1 = 0 ;
24088 void *argp2 = 0 ;
24089 int res2 = 0 ;
24090 PyObject * obj0 = 0 ;
24091 PyObject * obj1 = 0 ;
24092 char * kwnames[] = {
24093 (char *) "self",(char *) "window", NULL
24094 };
24095
24096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24098 if (!SWIG_IsOK(res1)) {
24099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24100 }
24101 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24103 if (!SWIG_IsOK(res2)) {
24104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24105 }
24106 arg2 = reinterpret_cast< wxWindow * >(argp2);
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 {
24114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24115 }
24116 return resultobj;
24117fail:
24118 return NULL;
24119}
24120
24121
24122SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj = 0;
24124 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24125 wxRect *arg2 = (wxRect *) NULL ;
24126 bool result;
24127 void *argp1 = 0 ;
24128 int res1 = 0 ;
24129 void *argp2 = 0 ;
24130 int res2 = 0 ;
24131 PyObject * obj0 = 0 ;
24132 PyObject * obj1 = 0 ;
24133 char * kwnames[] = {
24134 (char *) "self",(char *) "rect", NULL
24135 };
24136
24137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24139 if (!SWIG_IsOK(res1)) {
24140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24141 }
24142 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24143 if (obj1) {
24144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24145 if (!SWIG_IsOK(res2)) {
24146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24147 }
24148 arg2 = reinterpret_cast< wxRect * >(argp2);
24149 }
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 {
24157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24158 }
24159 return resultobj;
24160fail:
24161 return NULL;
24162}
24163
24164
24165SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 PyObject *resultobj = 0;
24167 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24168 bool result;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 PyObject *swig_obj[1] ;
24172
24173 if (!args) SWIG_fail;
24174 swig_obj[0] = args;
24175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24176 if (!SWIG_IsOK(res1)) {
24177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24178 }
24179 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (bool)(arg1)->EndDrawingOnTop();
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 {
24187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24188 }
24189 return resultobj;
24190fail:
24191 return NULL;
24192}
24193
24194
24195SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24196 PyObject *obj;
24197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24198 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24199 return SWIG_Py_Void();
24200}
24201
24202SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24203 return SWIG_Python_InitShadowInstance(args);
24204}
24205
24206SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj = 0;
24208 wxWindow *arg1 = (wxWindow *) 0 ;
24209 wxWindowDC *result = 0 ;
24210 void *argp1 = 0 ;
24211 int res1 = 0 ;
24212 PyObject * obj0 = 0 ;
24213 char * kwnames[] = {
24214 (char *) "win", NULL
24215 };
24216
24217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24219 if (!SWIG_IsOK(res1)) {
24220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24221 }
24222 arg1 = reinterpret_cast< wxWindow * >(argp1);
24223 {
24224 if (!wxPyCheckForApp()) SWIG_fail;
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 result = (wxWindowDC *)new wxWindowDC(arg1);
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24231 return resultobj;
24232fail:
24233 return NULL;
24234}
24235
24236
24237SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24238 PyObject *obj;
24239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24240 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24241 return SWIG_Py_Void();
24242}
24243
24244SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24245 return SWIG_Python_InitShadowInstance(args);
24246}
24247
24248SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24249 PyObject *resultobj = 0;
24250 wxWindow *arg1 = (wxWindow *) 0 ;
24251 wxClientDC *result = 0 ;
24252 void *argp1 = 0 ;
24253 int res1 = 0 ;
24254 PyObject * obj0 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "win", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24263 }
24264 arg1 = reinterpret_cast< wxWindow * >(argp1);
24265 {
24266 if (!wxPyCheckForApp()) SWIG_fail;
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (wxClientDC *)new wxClientDC(arg1);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24273 return resultobj;
24274fail:
24275 return NULL;
24276}
24277
24278
24279SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *obj;
24281 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24282 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24283 return SWIG_Py_Void();
24284}
24285
24286SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24287 return SWIG_Python_InitShadowInstance(args);
24288}
24289
24290SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj = 0;
24292 wxWindow *arg1 = (wxWindow *) 0 ;
24293 wxPaintDC *result = 0 ;
24294 void *argp1 = 0 ;
24295 int res1 = 0 ;
24296 PyObject * obj0 = 0 ;
24297 char * kwnames[] = {
24298 (char *) "win", NULL
24299 };
24300
24301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24303 if (!SWIG_IsOK(res1)) {
24304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24305 }
24306 arg1 = reinterpret_cast< wxWindow * >(argp1);
24307 {
24308 if (!wxPyCheckForApp()) SWIG_fail;
24309 PyThreadState* __tstate = wxPyBeginAllowThreads();
24310 result = (wxPaintDC *)new wxPaintDC(arg1);
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24315 return resultobj;
24316fail:
24317 return NULL;
24318}
24319
24320
24321SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24322 PyObject *obj;
24323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24324 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24325 return SWIG_Py_Void();
24326}
24327
24328SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24329 return SWIG_Python_InitShadowInstance(args);
24330}
24331
1bd55598
RD
24332SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24333 PyObject *resultobj = 0;
24334 wxDC *arg1 = (wxDC *) 0 ;
24335 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24336 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24337 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24338 wxBufferedDC *result = 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 void *argp2 = 0 ;
24342 int res2 = 0 ;
24343 int val3 ;
24344 int ecode3 = 0 ;
24345
24346 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24348 if (!SWIG_IsOK(res1)) {
24349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24350 }
24351 arg1 = reinterpret_cast< wxDC * >(argp1);
24352 if (swig_obj[1]) {
24353 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24354 if (!SWIG_IsOK(res2)) {
24355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24356 }
1bd55598
RD
24357 if (!argp2) {
24358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24359 }
1bd55598
RD
24360 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24361 }
24362 if (swig_obj[2]) {
24363 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24364 if (!SWIG_IsOK(ecode3)) {
24365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24366 }
24367 arg3 = static_cast< int >(val3);
24368 }
24369 {
24370 if (!wxPyCheckForApp()) SWIG_fail;
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
24372 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24373 wxPyEndAllowThreads(__tstate);
24374 if (PyErr_Occurred()) SWIG_fail;
24375 }
24376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24377 return resultobj;
24378fail:
24379 return NULL;
24380}
24381
24382
24383SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24384 PyObject *resultobj = 0;
24385 wxDC *arg1 = (wxDC *) 0 ;
24386 wxSize *arg2 = 0 ;
24387 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24388 wxBufferedDC *result = 0 ;
24389 void *argp1 = 0 ;
24390 int res1 = 0 ;
24391 wxSize temp2 ;
24392 int val3 ;
24393 int ecode3 = 0 ;
24394
24395 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24399 }
24400 arg1 = reinterpret_cast< wxDC * >(argp1);
24401 {
24402 arg2 = &temp2;
24403 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24404 }
24405 if (swig_obj[2]) {
24406 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24407 if (!SWIG_IsOK(ecode3)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24409 }
24410 arg3 = static_cast< int >(val3);
24411 }
24412 {
24413 if (!wxPyCheckForApp()) SWIG_fail;
24414 PyThreadState* __tstate = wxPyBeginAllowThreads();
24415 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24420 return resultobj;
24421fail:
24422 return NULL;
24423}
24424
24425
24426SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24427 int argc;
8e99bda9 24428 PyObject *argv[4];
1bd55598 24429
8e99bda9 24430 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24431 --argc;
24432 if ((argc >= 1) && (argc <= 3)) {
24433 int _v = 0;
24434 if (argc > 1) {
24435 {
24436 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24437 _v = SWIG_CheckState(res);
24438 }
24439 if (!_v) goto check_1;
36ed4f51 24440 }
1bd55598
RD
24441 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24442 }
24443check_1:
24444
24445 if ((argc >= 2) && (argc <= 3)) {
24446 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24447 }
24448
24449fail:
24450 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24451 return NULL;
24452}
24453
24454
24455SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24456 PyObject *resultobj = 0;
24457 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 PyObject *swig_obj[1] ;
24461
24462 if (!args) SWIG_fail;
24463 swig_obj[0] = args;
24464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24467 }
24468 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 delete arg1;
24472
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_Py_Void();
24477 return resultobj;
24478fail:
24479 return NULL;
24480}
24481
24482
24483SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24484 PyObject *resultobj = 0;
24485 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24486 void *argp1 = 0 ;
24487 int res1 = 0 ;
24488 PyObject *swig_obj[1] ;
24489
24490 if (!args) SWIG_fail;
24491 swig_obj[0] = args;
24492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24493 if (!SWIG_IsOK(res1)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24495 }
24496 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 (arg1)->UnMask();
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 resultobj = SWIG_Py_Void();
24504 return resultobj;
24505fail:
24506 return NULL;
24507}
24508
24509
24510SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24511 PyObject *obj;
24512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24513 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24514 return SWIG_Py_Void();
24515}
24516
24517SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24518 return SWIG_Python_InitShadowInstance(args);
24519}
24520
24521SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24522 PyObject *resultobj = 0;
24523 wxWindow *arg1 = (wxWindow *) 0 ;
24524 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24525 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24526 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24527 wxBufferedPaintDC *result = 0 ;
24528 void *argp1 = 0 ;
24529 int res1 = 0 ;
24530 void *argp2 = 0 ;
24531 int res2 = 0 ;
24532 int val3 ;
24533 int ecode3 = 0 ;
24534 PyObject * obj0 = 0 ;
24535 PyObject * obj1 = 0 ;
24536 PyObject * obj2 = 0 ;
24537 char * kwnames[] = {
24538 (char *) "window",(char *) "buffer",(char *) "style", NULL
24539 };
24540
24541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24543 if (!SWIG_IsOK(res1)) {
24544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24545 }
24546 arg1 = reinterpret_cast< wxWindow * >(argp1);
24547 if (obj1) {
24548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24549 if (!SWIG_IsOK(res2)) {
24550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24551 }
1bd55598
RD
24552 if (!argp2) {
24553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24554 }
1bd55598
RD
24555 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24556 }
24557 if (obj2) {
24558 ecode3 = SWIG_AsVal_int(obj2, &val3);
24559 if (!SWIG_IsOK(ecode3)) {
24560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24561 }
24562 arg3 = static_cast< int >(val3);
24563 }
24564 {
24565 if (!wxPyCheckForApp()) SWIG_fail;
24566 PyThreadState* __tstate = wxPyBeginAllowThreads();
24567 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24572 return resultobj;
24573fail:
24574 return NULL;
24575}
24576
24577
24578SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24579 PyObject *obj;
24580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24581 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24582 return SWIG_Py_Void();
24583}
24584
24585SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24586 return SWIG_Python_InitShadowInstance(args);
24587}
24588
24f6c4e8 24589SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24590 PyObject *resultobj = 0;
24591 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24592 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 PyObject * obj0 = 0 ;
24596 char * kwnames[] = {
24597 (char *) "win", NULL
24598 };
24599
24f6c4e8 24600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24602 if (!SWIG_IsOK(res1)) {
24f6c4e8 24603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24604 }
24605 arg1 = reinterpret_cast< wxWindow * >(argp1);
24606 {
1bd55598 24607 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24608 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24f6c4e8 24612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24613 return resultobj;
24614fail:
24615 return NULL;
24616}
24617
24618
24f6c4e8 24619SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24620 PyObject *obj;
24621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24622 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24623 return SWIG_Py_Void();
24624}
24625
24f6c4e8 24626SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24627 return SWIG_Python_InitShadowInstance(args);
24628}
24629
8e99bda9
RD
24630SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxWindow *arg1 = (wxWindow *) 0 ;
24633 wxDC *result = 0 ;
24634 void *argp1 = 0 ;
24635 int res1 = 0 ;
24636 PyObject * obj0 = 0 ;
24637 char * kwnames[] = {
24638 (char *) "window", NULL
24639 };
24640
24641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24643 if (!SWIG_IsOK(res1)) {
24644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24645 }
24646 arg1 = reinterpret_cast< wxWindow * >(argp1);
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24650 wxPyEndAllowThreads(__tstate);
24651 if (PyErr_Occurred()) SWIG_fail;
24652 }
24653 {
24654 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24655 }
24656 return resultobj;
24657fail:
24658 return NULL;
24659}
24660
24661
1bd55598
RD
24662SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24663 PyObject *resultobj = 0;
24664 wxDC *arg1 = 0 ;
24665 bool arg2 ;
24666 wxMirrorDC *result = 0 ;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 bool val2 ;
24670 int ecode2 = 0 ;
24671 PyObject * obj0 = 0 ;
24672 PyObject * obj1 = 0 ;
24673 char * kwnames[] = {
24674 (char *) "dc",(char *) "mirror", NULL
24675 };
24676
24677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24678 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24679 if (!SWIG_IsOK(res1)) {
24680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24681 }
24682 if (!argp1) {
24683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24684 }
24685 arg1 = reinterpret_cast< wxDC * >(argp1);
24686 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24687 if (!SWIG_IsOK(ecode2)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24689 }
24690 arg2 = static_cast< bool >(val2);
24691 {
24692 if (!wxPyCheckForApp()) SWIG_fail;
24693 PyThreadState* __tstate = wxPyBeginAllowThreads();
24694 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24695 wxPyEndAllowThreads(__tstate);
24696 if (PyErr_Occurred()) SWIG_fail;
24697 }
24698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24699 return resultobj;
24700fail:
24701 return NULL;
24702}
24703
24704
24705SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24706 PyObject *obj;
24707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24708 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24709 return SWIG_Py_Void();
24710}
24711
24712SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24713 return SWIG_Python_InitShadowInstance(args);
24714}
24715
24716SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24717 PyObject *resultobj = 0;
24718 wxPrintData *arg1 = 0 ;
24719 wxPostScriptDC *result = 0 ;
24720 void *argp1 = 0 ;
24721 int res1 = 0 ;
24722 PyObject * obj0 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "printData", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24731 }
24732 if (!argp1) {
24733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24734 }
24735 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24736 {
24737 if (!wxPyCheckForApp()) SWIG_fail;
24738 PyThreadState* __tstate = wxPyBeginAllowThreads();
24739 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24740 wxPyEndAllowThreads(__tstate);
24741 if (PyErr_Occurred()) SWIG_fail;
24742 }
24743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24744 return resultobj;
24745fail:
24746 return NULL;
24747}
24748
24749
24750SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24751 PyObject *resultobj = 0;
24752 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24753 wxPrintData *result = 0 ;
24754 void *argp1 = 0 ;
24755 int res1 = 0 ;
24756 PyObject *swig_obj[1] ;
24757
24758 if (!args) SWIG_fail;
24759 swig_obj[0] = args;
24760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24761 if (!SWIG_IsOK(res1)) {
24762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24763 }
24764 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24765 {
24766 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24767 {
1bd55598
RD
24768 wxPrintData &_result_ref = (arg1)->GetPrintData();
24769 result = (wxPrintData *) &_result_ref;
e2950dbb 24770 }
1bd55598
RD
24771 wxPyEndAllowThreads(__tstate);
24772 if (PyErr_Occurred()) SWIG_fail;
24773 }
24774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24775 return resultobj;
24776fail:
24777 return NULL;
24778}
24779
24780
24781SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24782 PyObject *resultobj = 0;
24783 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24784 wxPrintData *arg2 = 0 ;
24785 void *argp1 = 0 ;
24786 int res1 = 0 ;
24787 void *argp2 = 0 ;
24788 int res2 = 0 ;
24789 PyObject * obj0 = 0 ;
24790 PyObject * obj1 = 0 ;
24791 char * kwnames[] = {
24792 (char *) "self",(char *) "data", NULL
24793 };
24794
24795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24797 if (!SWIG_IsOK(res1)) {
24798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24799 }
24800 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24802 if (!SWIG_IsOK(res2)) {
24803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24804 }
24805 if (!argp2) {
24806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24807 }
24808 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24809 {
24810 PyThreadState* __tstate = wxPyBeginAllowThreads();
24811 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24812 wxPyEndAllowThreads(__tstate);
24813 if (PyErr_Occurred()) SWIG_fail;
24814 }
24815 resultobj = SWIG_Py_Void();
24816 return resultobj;
24817fail:
24818 return NULL;
24819}
24820
24821
24822SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj = 0;
24824 int arg1 ;
24825 int val1 ;
24826 int ecode1 = 0 ;
24827 PyObject * obj0 = 0 ;
24828 char * kwnames[] = {
24829 (char *) "ppi", NULL
24830 };
24831
24832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24833 ecode1 = SWIG_AsVal_int(obj0, &val1);
24834 if (!SWIG_IsOK(ecode1)) {
24835 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24836 }
24837 arg1 = static_cast< int >(val1);
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 wxPostScriptDC::SetResolution(arg1);
24841 wxPyEndAllowThreads(__tstate);
24842 if (PyErr_Occurred()) SWIG_fail;
24843 }
24844 resultobj = SWIG_Py_Void();
24845 return resultobj;
24846fail:
24847 return NULL;
24848}
24849
24850
24851SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24852 PyObject *resultobj = 0;
24853 int result;
24854
24855 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24856 {
24857 PyThreadState* __tstate = wxPyBeginAllowThreads();
24858 result = (int)wxPostScriptDC::GetResolution();
24859 wxPyEndAllowThreads(__tstate);
24860 if (PyErr_Occurred()) SWIG_fail;
24861 }
24862 resultobj = SWIG_From_int(static_cast< int >(result));
24863 return resultobj;
24864fail:
24865 return NULL;
24866}
24867
24868
24869SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24870 PyObject *obj;
24871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24872 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24873 return SWIG_Py_Void();
24874}
24875
24876SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24877 return SWIG_Python_InitShadowInstance(args);
24878}
24879
24880SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj = 0;
24882 wxString const &arg1_defvalue = wxPyEmptyString ;
24883 wxString *arg1 = (wxString *) &arg1_defvalue ;
24884 wxMetaFile *result = 0 ;
24885 bool temp1 = false ;
24886 PyObject * obj0 = 0 ;
24887 char * kwnames[] = {
24888 (char *) "filename", NULL
24889 };
24890
24891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24892 if (obj0) {
36ed4f51 24893 {
1bd55598
RD
24894 arg1 = wxString_in_helper(obj0);
24895 if (arg1 == NULL) SWIG_fail;
24896 temp1 = true;
36ed4f51 24897 }
1bd55598
RD
24898 }
24899 {
24900 if (!wxPyCheckForApp()) SWIG_fail;
24901 PyThreadState* __tstate = wxPyBeginAllowThreads();
24902 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24903 wxPyEndAllowThreads(__tstate);
24904 if (PyErr_Occurred()) SWIG_fail;
24905 }
24906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24907 {
24908 if (temp1)
24909 delete arg1;
24910 }
24911 return resultobj;
24912fail:
24913 {
24914 if (temp1)
24915 delete arg1;
24916 }
24917 return NULL;
24918}
24919
24920
24921SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24922 PyObject *resultobj = 0;
24923 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24924 void *argp1 = 0 ;
24925 int res1 = 0 ;
24926 PyObject *swig_obj[1] ;
24927
24928 if (!args) SWIG_fail;
24929 swig_obj[0] = args;
24930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24931 if (!SWIG_IsOK(res1)) {
24932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24933 }
24934 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24935 {
24936 PyThreadState* __tstate = wxPyBeginAllowThreads();
24937 delete arg1;
24938
24939 wxPyEndAllowThreads(__tstate);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_Py_Void();
24943 return resultobj;
24944fail:
24945 return NULL;
24946}
24947
24948
b39fe951 24949SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24950 PyObject *resultobj = 0;
24951 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24952 bool result;
24953 void *argp1 = 0 ;
24954 int res1 = 0 ;
24955 PyObject *swig_obj[1] ;
24956
24957 if (!args) SWIG_fail;
24958 swig_obj[0] = args;
24959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24960 if (!SWIG_IsOK(res1)) {
b39fe951 24961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24962 }
24963 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24964 {
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24966 result = (bool)(arg1)->IsOk();
1bd55598
RD
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 {
24971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24972 }
24973 return resultobj;
24974fail:
24975 return NULL;
24976}
24977
24978
24979SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj = 0;
24981 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24982 int arg2 = (int) 0 ;
24983 int arg3 = (int) 0 ;
24984 bool result;
24985 void *argp1 = 0 ;
24986 int res1 = 0 ;
24987 int val2 ;
24988 int ecode2 = 0 ;
24989 int val3 ;
24990 int ecode3 = 0 ;
24991 PyObject * obj0 = 0 ;
24992 PyObject * obj1 = 0 ;
24993 PyObject * obj2 = 0 ;
24994 char * kwnames[] = {
24995 (char *) "self",(char *) "width",(char *) "height", NULL
24996 };
24997
24998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25000 if (!SWIG_IsOK(res1)) {
25001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25002 }
25003 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25004 if (obj1) {
25005 ecode2 = SWIG_AsVal_int(obj1, &val2);
25006 if (!SWIG_IsOK(ecode2)) {
25007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25008 }
25009 arg2 = static_cast< int >(val2);
25010 }
25011 if (obj2) {
25012 ecode3 = SWIG_AsVal_int(obj2, &val3);
25013 if (!SWIG_IsOK(ecode3)) {
25014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25015 }
25016 arg3 = static_cast< int >(val3);
25017 }
25018 {
25019 PyThreadState* __tstate = wxPyBeginAllowThreads();
25020 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25021 wxPyEndAllowThreads(__tstate);
25022 if (PyErr_Occurred()) SWIG_fail;
25023 }
25024 {
25025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25026 }
25027 return resultobj;
25028fail:
25029 return NULL;
25030}
25031
25032
25033SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25034 PyObject *resultobj = 0;
25035 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25036 wxSize result;
25037 void *argp1 = 0 ;
25038 int res1 = 0 ;
25039 PyObject *swig_obj[1] ;
25040
25041 if (!args) SWIG_fail;
25042 swig_obj[0] = args;
25043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25044 if (!SWIG_IsOK(res1)) {
25045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25046 }
25047 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25048 {
25049 PyThreadState* __tstate = wxPyBeginAllowThreads();
25050 result = (arg1)->GetSize();
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25055 return resultobj;
25056fail:
25057 return NULL;
25058}
25059
25060
25061SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25062 PyObject *resultobj = 0;
25063 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25064 int result;
25065 void *argp1 = 0 ;
25066 int res1 = 0 ;
25067 PyObject *swig_obj[1] ;
25068
25069 if (!args) SWIG_fail;
25070 swig_obj[0] = args;
25071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25072 if (!SWIG_IsOK(res1)) {
25073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25074 }
25075 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25076 {
25077 PyThreadState* __tstate = wxPyBeginAllowThreads();
25078 result = (int)(arg1)->GetWidth();
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 resultobj = SWIG_From_int(static_cast< int >(result));
25083 return resultobj;
25084fail:
25085 return NULL;
25086}
25087
25088
25089SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25090 PyObject *resultobj = 0;
25091 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25092 int result;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 PyObject *swig_obj[1] ;
25096
25097 if (!args) SWIG_fail;
25098 swig_obj[0] = args;
25099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25100 if (!SWIG_IsOK(res1)) {
25101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25102 }
25103 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25104 {
25105 PyThreadState* __tstate = wxPyBeginAllowThreads();
25106 result = (int)(arg1)->GetHeight();
25107 wxPyEndAllowThreads(__tstate);
25108 if (PyErr_Occurred()) SWIG_fail;
25109 }
25110 resultobj = SWIG_From_int(static_cast< int >(result));
25111 return resultobj;
25112fail:
25113 return NULL;
25114}
25115
25116
25117SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25118 PyObject *obj;
25119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25120 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25121 return SWIG_Py_Void();
25122}
25123
25124SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25125 return SWIG_Python_InitShadowInstance(args);
25126}
25127
25128SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25129 PyObject *resultobj = 0;
25130 wxString const &arg1_defvalue = wxPyEmptyString ;
25131 wxString *arg1 = (wxString *) &arg1_defvalue ;
25132 int arg2 = (int) 0 ;
25133 int arg3 = (int) 0 ;
25134 wxString const &arg4_defvalue = wxPyEmptyString ;
25135 wxString *arg4 = (wxString *) &arg4_defvalue ;
25136 wxMetaFileDC *result = 0 ;
25137 bool temp1 = false ;
25138 int val2 ;
25139 int ecode2 = 0 ;
25140 int val3 ;
25141 int ecode3 = 0 ;
25142 bool temp4 = false ;
25143 PyObject * obj0 = 0 ;
25144 PyObject * obj1 = 0 ;
25145 PyObject * obj2 = 0 ;
25146 PyObject * obj3 = 0 ;
25147 char * kwnames[] = {
25148 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25149 };
25150
25151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25152 if (obj0) {
36ed4f51 25153 {
1bd55598
RD
25154 arg1 = wxString_in_helper(obj0);
25155 if (arg1 == NULL) SWIG_fail;
25156 temp1 = true;
36ed4f51 25157 }
1bd55598
RD
25158 }
25159 if (obj1) {
25160 ecode2 = SWIG_AsVal_int(obj1, &val2);
25161 if (!SWIG_IsOK(ecode2)) {
25162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25163 }
25164 arg2 = static_cast< int >(val2);
25165 }
25166 if (obj2) {
25167 ecode3 = SWIG_AsVal_int(obj2, &val3);
25168 if (!SWIG_IsOK(ecode3)) {
25169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25170 }
25171 arg3 = static_cast< int >(val3);
25172 }
25173 if (obj3) {
36ed4f51 25174 {
1bd55598
RD
25175 arg4 = wxString_in_helper(obj3);
25176 if (arg4 == NULL) SWIG_fail;
25177 temp4 = true;
36ed4f51 25178 }
1bd55598
RD
25179 }
25180 {
25181 if (!wxPyCheckForApp()) SWIG_fail;
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25188 {
25189 if (temp1)
25190 delete arg1;
25191 }
25192 {
25193 if (temp4)
25194 delete arg4;
25195 }
25196 return resultobj;
25197fail:
25198 {
25199 if (temp1)
25200 delete arg1;
25201 }
25202 {
25203 if (temp4)
25204 delete arg4;
25205 }
25206 return NULL;
25207}
25208
25209
25210SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25211 PyObject *resultobj = 0;
25212 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25213 wxMetaFile *result = 0 ;
25214 void *argp1 = 0 ;
25215 int res1 = 0 ;
25216 PyObject *swig_obj[1] ;
25217
25218 if (!args) SWIG_fail;
25219 swig_obj[0] = args;
25220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25221 if (!SWIG_IsOK(res1)) {
25222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25223 }
25224 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25225 {
25226 PyThreadState* __tstate = wxPyBeginAllowThreads();
25227 result = (wxMetaFile *)(arg1)->Close();
25228 wxPyEndAllowThreads(__tstate);
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25232 return resultobj;
25233fail:
25234 return NULL;
25235}
25236
25237
25238SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25239 PyObject *obj;
25240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25241 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25242 return SWIG_Py_Void();
25243}
25244
25245SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25246 return SWIG_Python_InitShadowInstance(args);
25247}
25248
25249SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25250 PyObject *resultobj = 0;
25251 wxPrintData *arg1 = 0 ;
25252 wxPrinterDC *result = 0 ;
25253 void *argp1 = 0 ;
25254 int res1 = 0 ;
25255 PyObject * obj0 = 0 ;
25256 char * kwnames[] = {
25257 (char *) "printData", NULL
25258 };
25259
25260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25261 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25262 if (!SWIG_IsOK(res1)) {
25263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25264 }
25265 if (!argp1) {
25266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25267 }
25268 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25269 {
25270 if (!wxPyCheckForApp()) SWIG_fail;
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25273 wxPyEndAllowThreads(__tstate);
25274 if (PyErr_Occurred()) SWIG_fail;
25275 }
25276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25277 return resultobj;
25278fail:
25279 return NULL;
25280}
25281
25282
25283SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25284 PyObject *obj;
25285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25286 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25287 return SWIG_Py_Void();
25288}
25289
25290SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25291 return SWIG_Python_InitShadowInstance(args);
25292}
25293
70d7cb34
RD
25294SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25295 PyObject *resultobj = 0;
25296 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25297 wxGraphicsObject *result = 0 ;
25298 void *argp1 = 0 ;
25299 int res1 = 0 ;
25300 PyObject * obj0 = 0 ;
25301 char * kwnames[] = {
25302 (char *) "renderer", NULL
25303 };
25304
25305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25306 if (obj0) {
25307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25308 if (!SWIG_IsOK(res1)) {
25309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25310 }
25311 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25312 }
25313 {
25314 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25318 return resultobj;
25319fail:
25320 return NULL;
25321}
25322
25323
25324SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25325 PyObject *resultobj = 0;
25326 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 PyObject *swig_obj[1] ;
25330
25331 if (!args) SWIG_fail;
25332 swig_obj[0] = args;
25333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25336 }
25337 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25338 {
25339 delete arg1;
25340
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 resultobj = SWIG_Py_Void();
25344 return resultobj;
25345fail:
25346 return NULL;
25347}
25348
25349
25350SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25351 PyObject *resultobj = 0;
25352 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25353 bool result;
25354 void *argp1 = 0 ;
25355 int res1 = 0 ;
25356 PyObject *swig_obj[1] ;
25357
25358 if (!args) SWIG_fail;
25359 swig_obj[0] = args;
25360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25361 if (!SWIG_IsOK(res1)) {
25362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25363 }
25364 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25365 {
25366 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 {
25370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25371 }
25372 return resultobj;
25373fail:
25374 return NULL;
25375}
25376
25377
25378SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25379 PyObject *resultobj = 0;
25380 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25381 wxGraphicsRenderer *result = 0 ;
25382 void *argp1 = 0 ;
25383 int res1 = 0 ;
25384 PyObject *swig_obj[1] ;
25385
25386 if (!args) SWIG_fail;
25387 swig_obj[0] = args;
25388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25389 if (!SWIG_IsOK(res1)) {
25390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25391 }
25392 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25393 {
25394 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25395 if (PyErr_Occurred()) SWIG_fail;
25396 }
25397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25398 return resultobj;
25399fail:
25400 return NULL;
25401}
25402
25403
25404SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25405 PyObject *obj;
25406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25407 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25408 return SWIG_Py_Void();
25409}
25410
25411SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25412 return SWIG_Python_InitShadowInstance(args);
25413}
25414
25415SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25416 PyObject *resultobj = 0;
25417 wxGraphicsPen *result = 0 ;
25418
25419 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25420 {
25421 result = (wxGraphicsPen *)new wxGraphicsPen();
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25425 return resultobj;
25426fail:
25427 return NULL;
25428}
25429
25430
25431SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25432 PyObject *resultobj = 0;
25433 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25434 void *argp1 = 0 ;
25435 int res1 = 0 ;
25436 PyObject *swig_obj[1] ;
25437
25438 if (!args) SWIG_fail;
25439 swig_obj[0] = args;
25440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25443 }
25444 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25445 {
25446 delete arg1;
25447
25448 if (PyErr_Occurred()) SWIG_fail;
25449 }
25450 resultobj = SWIG_Py_Void();
25451 return resultobj;
25452fail:
25453 return NULL;
25454}
25455
25456
25457SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25458 PyObject *obj;
25459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25460 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25461 return SWIG_Py_Void();
25462}
25463
25464SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25465 return SWIG_Python_InitShadowInstance(args);
25466}
25467
25468SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25469 PyObject *resultobj = 0;
25470 wxGraphicsBrush *result = 0 ;
25471
25472 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25473 {
25474 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25478 return resultobj;
25479fail:
25480 return NULL;
25481}
25482
25483
25484SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25485 PyObject *resultobj = 0;
25486 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25487 void *argp1 = 0 ;
25488 int res1 = 0 ;
25489 PyObject *swig_obj[1] ;
25490
25491 if (!args) SWIG_fail;
25492 swig_obj[0] = args;
25493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25494 if (!SWIG_IsOK(res1)) {
25495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25496 }
25497 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25498 {
25499 delete arg1;
25500
25501 if (PyErr_Occurred()) SWIG_fail;
25502 }
25503 resultobj = SWIG_Py_Void();
25504 return resultobj;
25505fail:
25506 return NULL;
25507}
25508
25509
25510SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25511 PyObject *obj;
25512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25513 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25514 return SWIG_Py_Void();
25515}
25516
25517SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25518 return SWIG_Python_InitShadowInstance(args);
25519}
25520
25521SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25522 PyObject *resultobj = 0;
25523 wxGraphicsFont *result = 0 ;
25524
25525 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25526 {
25527 result = (wxGraphicsFont *)new wxGraphicsFont();
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25531 return resultobj;
25532fail:
25533 return NULL;
25534}
25535
25536
25537SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25538 PyObject *resultobj = 0;
25539 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25540 void *argp1 = 0 ;
25541 int res1 = 0 ;
25542 PyObject *swig_obj[1] ;
25543
25544 if (!args) SWIG_fail;
25545 swig_obj[0] = args;
25546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25547 if (!SWIG_IsOK(res1)) {
25548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25549 }
25550 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25551 {
25552 delete arg1;
25553
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 resultobj = SWIG_Py_Void();
25557 return resultobj;
25558fail:
25559 return NULL;
25560}
25561
25562
25563SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25564 PyObject *obj;
25565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25566 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25567 return SWIG_Py_Void();
25568}
25569
25570SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25571 return SWIG_Python_InitShadowInstance(args);
25572}
25573
8f514ab4
RD
25574SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25575 PyObject *resultobj = 0;
25576 wxGraphicsMatrix *result = 0 ;
25577
25578 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25579 {
25580 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25584 return resultobj;
25585fail:
25586 return NULL;
25587}
25588
25589
5c8c7dd3 25590SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25591 PyObject *resultobj = 0;
5c8c7dd3 25592 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25593 void *argp1 = 0 ;
25594 int res1 = 0 ;
25595 PyObject *swig_obj[1] ;
25596
25597 if (!args) SWIG_fail;
25598 swig_obj[0] = args;
5c8c7dd3 25599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25600 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25602 }
5c8c7dd3 25603 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25604 {
1bd55598
RD
25605 delete arg1;
25606
1bd55598
RD
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
25609 resultobj = SWIG_Py_Void();
25610 return resultobj;
25611fail:
25612 return NULL;
25613}
25614
25615
5c8c7dd3 25616SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25617 PyObject *resultobj = 0;
5c8c7dd3
RD
25618 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25619 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25620 void *argp1 = 0 ;
25621 int res1 = 0 ;
5c8c7dd3
RD
25622 void *argp2 = 0 ;
25623 int res2 = 0 ;
25624 PyObject * obj0 = 0 ;
25625 PyObject * obj1 = 0 ;
25626 char * kwnames[] = {
25627 (char *) "self",(char *) "t", NULL
25628 };
70d7cb34 25629
5c8c7dd3
RD
25630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25632 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25634 }
5c8c7dd3
RD
25635 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25637 if (!SWIG_IsOK(res2)) {
25638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25639 }
25640 if (!argp2) {
25641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25642 }
25643 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25644 {
5c8c7dd3 25645 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
5c8c7dd3 25648 resultobj = SWIG_Py_Void();
70d7cb34
RD
25649 return resultobj;
25650fail:
25651 return NULL;
25652}
25653
25654
5c8c7dd3 25655SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25656 PyObject *resultobj = 0;
5c8c7dd3
RD
25657 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25658 wxGraphicsMatrix *arg2 = 0 ;
1bd55598
RD
25659 void *argp1 = 0 ;
25660 int res1 = 0 ;
5c8c7dd3
RD
25661 void *argp2 = 0 ;
25662 int res2 = 0 ;
25663 PyObject * obj0 = 0 ;
25664 PyObject * obj1 = 0 ;
25665 char * kwnames[] = {
25666 (char *) "self",(char *) "t", NULL
25667 };
1bd55598 25668
5c8c7dd3
RD
25669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25671 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25673 }
5c8c7dd3
RD
25674 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25676 if (!SWIG_IsOK(res2)) {
25677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25678 }
25679 if (!argp2) {
25680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25681 }
25682 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
1bd55598 25683 {
5c8c7dd3 25684 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
1bd55598
RD
25685 if (PyErr_Occurred()) SWIG_fail;
25686 }
72ef6efb 25687 resultobj = SWIG_Py_Void();
1bd55598
RD
25688 return resultobj;
25689fail:
25690 return NULL;
25691}
25692
25693
5c8c7dd3 25694SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25695 PyObject *resultobj = 0;
5c8c7dd3
RD
25696 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25697 wxDouble arg2 = (wxDouble) 1.0 ;
25698 wxDouble arg3 = (wxDouble) 0.0 ;
25699 wxDouble arg4 = (wxDouble) 0.0 ;
25700 wxDouble arg5 = (wxDouble) 1.0 ;
25701 wxDouble arg6 = (wxDouble) 0.0 ;
25702 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25703 void *argp1 = 0 ;
25704 int res1 = 0 ;
5c8c7dd3
RD
25705 double val2 ;
25706 int ecode2 = 0 ;
25707 double val3 ;
25708 int ecode3 = 0 ;
25709 double val4 ;
25710 int ecode4 = 0 ;
25711 double val5 ;
25712 int ecode5 = 0 ;
25713 double val6 ;
25714 int ecode6 = 0 ;
25715 double val7 ;
25716 int ecode7 = 0 ;
25717 PyObject * obj0 = 0 ;
25718 PyObject * obj1 = 0 ;
25719 PyObject * obj2 = 0 ;
25720 PyObject * obj3 = 0 ;
25721 PyObject * obj4 = 0 ;
25722 PyObject * obj5 = 0 ;
25723 PyObject * obj6 = 0 ;
25724 char * kwnames[] = {
25725 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25726 };
70d7cb34 25727
5c8c7dd3
RD
25728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25730 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25732 }
5c8c7dd3
RD
25733 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25734 if (obj1) {
25735 ecode2 = SWIG_AsVal_double(obj1, &val2);
25736 if (!SWIG_IsOK(ecode2)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25738 }
25739 arg2 = static_cast< wxDouble >(val2);
25740 }
25741 if (obj2) {
25742 ecode3 = SWIG_AsVal_double(obj2, &val3);
25743 if (!SWIG_IsOK(ecode3)) {
25744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25745 }
25746 arg3 = static_cast< wxDouble >(val3);
25747 }
25748 if (obj3) {
25749 ecode4 = SWIG_AsVal_double(obj3, &val4);
25750 if (!SWIG_IsOK(ecode4)) {
25751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25752 }
25753 arg4 = static_cast< wxDouble >(val4);
25754 }
25755 if (obj4) {
25756 ecode5 = SWIG_AsVal_double(obj4, &val5);
25757 if (!SWIG_IsOK(ecode5)) {
25758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25759 }
25760 arg5 = static_cast< wxDouble >(val5);
25761 }
25762 if (obj5) {
25763 ecode6 = SWIG_AsVal_double(obj5, &val6);
25764 if (!SWIG_IsOK(ecode6)) {
25765 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25766 }
25767 arg6 = static_cast< wxDouble >(val6);
25768 }
25769 if (obj6) {
25770 ecode7 = SWIG_AsVal_double(obj6, &val7);
25771 if (!SWIG_IsOK(ecode7)) {
25772 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25773 }
25774 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25775 }
25776 {
5c8c7dd3 25777 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 resultobj = SWIG_Py_Void();
25781 return resultobj;
25782fail:
25783 return NULL;
25784}
25785
25786
5c8c7dd3 25787SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25788 PyObject *resultobj = 0;
5c8c7dd3 25789 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25790 void *argp1 = 0 ;
25791 int res1 = 0 ;
5c8c7dd3 25792 PyObject *swig_obj[1] ;
1bd55598 25793
5c8c7dd3
RD
25794 if (!args) SWIG_fail;
25795 swig_obj[0] = args;
25796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25797 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25799 }
5c8c7dd3 25800 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25801 {
5c8c7dd3 25802 (arg1)->Invert();
1bd55598
RD
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
72ef6efb 25805 resultobj = SWIG_Py_Void();
1bd55598
RD
25806 return resultobj;
25807fail:
25808 return NULL;
25809}
25810
25811
5c8c7dd3 25812SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25813 PyObject *resultobj = 0;
5c8c7dd3
RD
25814 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25815 wxGraphicsMatrix *arg2 = 0 ;
25816 bool result;
70d7cb34
RD
25817 void *argp1 = 0 ;
25818 int res1 = 0 ;
5c8c7dd3
RD
25819 void *argp2 = 0 ;
25820 int res2 = 0 ;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 char * kwnames[] = {
25824 (char *) "self",(char *) "t", NULL
25825 };
70d7cb34 25826
5c8c7dd3
RD
25827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25829 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25831 }
5c8c7dd3
RD
25832 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25834 if (!SWIG_IsOK(res2)) {
25835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25836 }
25837 if (!argp2) {
25838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25839 }
5c8c7dd3 25840 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25841 {
5c8c7dd3 25842 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
5c8c7dd3
RD
25845 {
25846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25847 }
70d7cb34
RD
25848 return resultobj;
25849fail:
25850 return NULL;
25851}
25852
25853
5c8c7dd3
RD
25854SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25855 PyObject *resultobj = 0;
25856 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25857 bool result;
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
25860 PyObject *swig_obj[1] ;
70d7cb34 25861
5c8c7dd3
RD
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
8f514ab4 25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25867 }
5c8c7dd3
RD
25868 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25869 {
8f514ab4 25870 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 25871 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25872 }
5c8c7dd3
RD
25873 {
25874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25875 }
25876 return resultobj;
70d7cb34 25877fail:
70d7cb34
RD
25878 return NULL;
25879}
25880
25881
5c8c7dd3 25882SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25883 PyObject *resultobj = 0;
5c8c7dd3 25884 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25885 wxDouble arg2 ;
25886 wxDouble arg3 ;
1bd55598
RD
25887 void *argp1 = 0 ;
25888 int res1 = 0 ;
72ef6efb
RD
25889 double val2 ;
25890 int ecode2 = 0 ;
25891 double val3 ;
25892 int ecode3 = 0 ;
5c8c7dd3
RD
25893 PyObject * obj0 = 0 ;
25894 PyObject * obj1 = 0 ;
25895 PyObject * obj2 = 0 ;
25896 char * kwnames[] = {
25897 (char *) "self",(char *) "dx",(char *) "dy", NULL
25898 };
72ef6efb 25899
5c8c7dd3
RD
25900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25902 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25904 }
5c8c7dd3
RD
25905 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25906 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25907 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25909 }
25910 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25911 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25912 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25914 }
25915 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25916 {
5c8c7dd3 25917 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25918 if (PyErr_Occurred()) SWIG_fail;
25919 }
25920 resultobj = SWIG_Py_Void();
25921 return resultobj;
25922fail:
25923 return NULL;
25924}
25925
25926
5c8c7dd3 25927SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25928 PyObject *resultobj = 0;
5c8c7dd3
RD
25929 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25930 wxDouble arg2 ;
25931 wxDouble arg3 ;
70d7cb34
RD
25932 void *argp1 = 0 ;
25933 int res1 = 0 ;
5c8c7dd3
RD
25934 double val2 ;
25935 int ecode2 = 0 ;
25936 double val3 ;
25937 int ecode3 = 0 ;
25938 PyObject * obj0 = 0 ;
25939 PyObject * obj1 = 0 ;
25940 PyObject * obj2 = 0 ;
25941 char * kwnames[] = {
25942 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25943 };
70d7cb34 25944
5c8c7dd3
RD
25945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25947 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25949 }
5c8c7dd3
RD
25950 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25951 ecode2 = SWIG_AsVal_double(obj1, &val2);
25952 if (!SWIG_IsOK(ecode2)) {
25953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25954 }
25955 arg2 = static_cast< wxDouble >(val2);
25956 ecode3 = SWIG_AsVal_double(obj2, &val3);
25957 if (!SWIG_IsOK(ecode3)) {
25958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25959 }
25960 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25961 {
5c8c7dd3 25962 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25963 if (PyErr_Occurred()) SWIG_fail;
25964 }
25965 resultobj = SWIG_Py_Void();
25966 return resultobj;
25967fail:
25968 return NULL;
25969}
25970
25971
5c8c7dd3 25972SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25973 PyObject *resultobj = 0;
5c8c7dd3
RD
25974 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25975 wxDouble arg2 ;
70d7cb34
RD
25976 void *argp1 = 0 ;
25977 int res1 = 0 ;
5c8c7dd3
RD
25978 double val2 ;
25979 int ecode2 = 0 ;
70d7cb34
RD
25980 PyObject * obj0 = 0 ;
25981 PyObject * obj1 = 0 ;
25982 char * kwnames[] = {
5c8c7dd3 25983 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25984 };
25985
5c8c7dd3
RD
25986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25988 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25990 }
5c8c7dd3
RD
25991 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25992 ecode2 = SWIG_AsVal_double(obj1, &val2);
25993 if (!SWIG_IsOK(ecode2)) {
25994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25995 }
25996 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25997 {
5c8c7dd3 25998 (arg1)->Rotate(arg2);
70d7cb34
RD
25999 if (PyErr_Occurred()) SWIG_fail;
26000 }
26001 resultobj = SWIG_Py_Void();
26002 return resultobj;
26003fail:
26004 return NULL;
26005}
26006
26007
5c8c7dd3 26008SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26009 PyObject *resultobj = 0;
5c8c7dd3
RD
26010 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26011 wxDouble *arg2 = (wxDouble *) 0 ;
26012 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26013 void *argp1 = 0 ;
26014 int res1 = 0 ;
5c8c7dd3
RD
26015 wxDouble temp2 ;
26016 int res2 = 0 ;
26017 wxDouble temp3 ;
26018 int res3 = 0 ;
26019 PyObject * obj0 = 0 ;
26020 PyObject * obj1 = 0 ;
26021 PyObject * obj2 = 0 ;
26022 char * kwnames[] = {
26023 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26024 };
72ef6efb 26025
5c8c7dd3
RD
26026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26028 if (!SWIG_IsOK(res1)) {
8f514ab4 26029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26030 }
5c8c7dd3
RD
26031 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26032 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26033 double val;
26034 int ecode = SWIG_AsVal_double(obj1, &val);
26035 if (!SWIG_IsOK(ecode)) {
26036 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26037 }
26038 temp2 = static_cast< wxDouble >(val);
26039 arg2 = &temp2;
26040 res2 = SWIG_AddTmpMask(ecode);
26041 }
26042 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26043 double val;
26044 int ecode = SWIG_AsVal_double(obj2, &val);
26045 if (!SWIG_IsOK(ecode)) {
26046 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26047 }
26048 temp3 = static_cast< wxDouble >(val);
26049 arg3 = &temp3;
26050 res3 = SWIG_AddTmpMask(ecode);
26051 }
26052 {
8f514ab4 26053 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26057 if (SWIG_IsTmpObj(res2)) {
26058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26059 } else {
26060 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26061 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26062 }
26063 if (SWIG_IsTmpObj(res3)) {
26064 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26065 } else {
26066 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26068 }
72ef6efb
RD
26069 return resultobj;
26070fail:
26071 return NULL;
26072}
26073
26074
5c8c7dd3
RD
26075SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26076 PyObject *resultobj = 0;
26077 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26078 wxDouble *arg2 = (wxDouble *) 0 ;
26079 wxDouble *arg3 = (wxDouble *) 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 wxDouble temp2 ;
26083 int res2 = 0 ;
26084 wxDouble temp3 ;
26085 int res3 = 0 ;
26086 PyObject * obj0 = 0 ;
26087 PyObject * obj1 = 0 ;
26088 PyObject * obj2 = 0 ;
26089 char * kwnames[] = {
26090 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26091 };
26092
26093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26095 if (!SWIG_IsOK(res1)) {
8f514ab4 26096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26097 }
26098 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26099 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26100 double val;
26101 int ecode = SWIG_AsVal_double(obj1, &val);
26102 if (!SWIG_IsOK(ecode)) {
26103 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26104 }
26105 temp2 = static_cast< wxDouble >(val);
26106 arg2 = &temp2;
26107 res2 = SWIG_AddTmpMask(ecode);
26108 }
26109 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26110 double val;
26111 int ecode = SWIG_AsVal_double(obj2, &val);
26112 if (!SWIG_IsOK(ecode)) {
26113 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26114 }
26115 temp3 = static_cast< wxDouble >(val);
26116 arg3 = &temp3;
26117 res3 = SWIG_AddTmpMask(ecode);
26118 }
26119 {
8f514ab4 26120 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26121 if (PyErr_Occurred()) SWIG_fail;
26122 }
26123 resultobj = SWIG_Py_Void();
26124 if (SWIG_IsTmpObj(res2)) {
26125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26126 } else {
26127 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26129 }
26130 if (SWIG_IsTmpObj(res3)) {
26131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26132 } else {
26133 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26135 }
26136 return resultobj;
26137fail:
26138 return NULL;
26139}
26140
26141
26142SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26143 PyObject *resultobj = 0;
26144 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26145 void *result = 0 ;
26146 void *argp1 = 0 ;
26147 int res1 = 0 ;
26148 PyObject *swig_obj[1] ;
26149
26150 if (!args) SWIG_fail;
26151 swig_obj[0] = args;
26152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26153 if (!SWIG_IsOK(res1)) {
26154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26155 }
26156 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26157 {
26158 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26162 return resultobj;
26163fail:
26164 return NULL;
26165}
26166
26167
26168SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26169 PyObject *obj;
26170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26171 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26172 return SWIG_Py_Void();
26173}
26174
8f514ab4
RD
26175SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26176 return SWIG_Python_InitShadowInstance(args);
26177}
26178
26179SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26180 PyObject *resultobj = 0;
26181 wxGraphicsPath *result = 0 ;
26182
26183 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26184 {
26185 if (!wxPyCheckForApp()) SWIG_fail;
26186 PyThreadState* __tstate = wxPyBeginAllowThreads();
26187 result = (wxGraphicsPath *)new wxGraphicsPath();
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26192 return resultobj;
26193fail:
26194 return NULL;
26195}
26196
26197
5c8c7dd3 26198SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26199 PyObject *resultobj = 0;
26200 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
26203 PyObject *swig_obj[1] ;
26204
26205 if (!args) SWIG_fail;
26206 swig_obj[0] = args;
5c8c7dd3 26207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26208 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26210 }
26211 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26212 {
5c8c7dd3
RD
26213 delete arg1;
26214
72ef6efb
RD
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
5c8c7dd3 26217 resultobj = SWIG_Py_Void();
70d7cb34
RD
26218 return resultobj;
26219fail:
26220 return NULL;
26221}
26222
26223
5c8c7dd3 26224SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26225 PyObject *resultobj = 0;
26226 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26227 wxDouble arg2 ;
26228 wxDouble arg3 ;
70d7cb34
RD
26229 void *argp1 = 0 ;
26230 int res1 = 0 ;
26231 double val2 ;
26232 int ecode2 = 0 ;
26233 double val3 ;
26234 int ecode3 = 0 ;
70d7cb34 26235
5c8c7dd3 26236 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26238 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26240 }
26241 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26242 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26243 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26245 }
26246 arg2 = static_cast< wxDouble >(val2);
26247 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26248 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26250 }
26251 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26252 {
5c8c7dd3 26253 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_Py_Void();
26257 return resultobj;
26258fail:
26259 return NULL;
26260}
26261
26262
5c8c7dd3 26263SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26264 PyObject *resultobj = 0;
26265 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26266 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 wxPoint2D temp2 ;
70d7cb34 26270
5c8c7dd3 26271 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26275 }
26276 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26277 {
26278 arg2 = &temp2;
26279 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26280 }
70d7cb34 26281 {
5c8c7dd3 26282 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_Py_Void();
26286 return resultobj;
26287fail:
26288 return NULL;
26289}
26290
26291
5c8c7dd3 26292SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26293 int argc;
5c8c7dd3 26294 PyObject *argv[4];
70d7cb34 26295
5c8c7dd3 26296 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26297 --argc;
5c8c7dd3
RD
26298 if (argc == 2) {
26299 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26300 }
5c8c7dd3
RD
26301 if (argc == 3) {
26302 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26303 }
26304
26305fail:
5c8c7dd3 26306 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26307 return NULL;
26308}
26309
26310
5c8c7dd3 26311SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26312 PyObject *resultobj = 0;
26313 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26314 wxDouble arg2 ;
26315 wxDouble arg3 ;
70d7cb34
RD
26316 void *argp1 = 0 ;
26317 int res1 = 0 ;
26318 double val2 ;
26319 int ecode2 = 0 ;
26320 double val3 ;
26321 int ecode3 = 0 ;
70d7cb34 26322
5c8c7dd3
RD
26323 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26325 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26327 }
26328 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26329 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26330 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26332 }
26333 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26334 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26335 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26337 }
26338 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26339 {
5c8c7dd3 26340 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_Py_Void();
26344 return resultobj;
26345fail:
26346 return NULL;
26347}
26348
26349
5c8c7dd3 26350SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26351 PyObject *resultobj = 0;
26352 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26353 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
5c8c7dd3 26356 wxPoint2D temp2 ;
70d7cb34 26357
5c8c7dd3
RD
26358 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26360 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26362 }
26363 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26364 {
5c8c7dd3
RD
26365 arg2 = &temp2;
26366 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26367 }
26368 {
26369 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26370 if (PyErr_Occurred()) SWIG_fail;
26371 }
26372 resultobj = SWIG_Py_Void();
26373 return resultobj;
26374fail:
26375 return NULL;
26376}
26377
26378
5c8c7dd3
RD
26379SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26380 int argc;
26381 PyObject *argv[4];
70d7cb34 26382
5c8c7dd3
RD
26383 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26384 --argc;
26385 if (argc == 2) {
26386 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26387 }
5c8c7dd3
RD
26388 if (argc == 3) {
26389 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26390 }
5c8c7dd3 26391
70d7cb34 26392fail:
5c8c7dd3 26393 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26394 return NULL;
26395}
26396
26397
5c8c7dd3 26398SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26399 PyObject *resultobj = 0;
26400 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26401 wxDouble arg2 ;
26402 wxDouble arg3 ;
26403 wxDouble arg4 ;
26404 wxDouble arg5 ;
26405 wxDouble arg6 ;
5c8c7dd3 26406 wxDouble arg7 ;
70d7cb34
RD
26407 void *argp1 = 0 ;
26408 int res1 = 0 ;
26409 double val2 ;
26410 int ecode2 = 0 ;
26411 double val3 ;
26412 int ecode3 = 0 ;
26413 double val4 ;
26414 int ecode4 = 0 ;
26415 double val5 ;
26416 int ecode5 = 0 ;
26417 double val6 ;
26418 int ecode6 = 0 ;
5c8c7dd3
RD
26419 double val7 ;
26420 int ecode7 = 0 ;
70d7cb34 26421
5c8c7dd3
RD
26422 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26424 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26426 }
26427 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26428 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26429 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26431 }
26432 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26433 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26434 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26436 }
26437 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26438 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26439 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26441 }
26442 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26443 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26444 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26446 }
26447 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26448 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26449 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26451 }
26452 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26453 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26454 if (!SWIG_IsOK(ecode7)) {
26455 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26456 }
26457 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26458 {
5c8c7dd3 26459 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26460 if (PyErr_Occurred()) SWIG_fail;
26461 }
26462 resultobj = SWIG_Py_Void();
26463 return resultobj;
26464fail:
26465 return NULL;
26466}
26467
26468
5c8c7dd3 26469SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26470 PyObject *resultobj = 0;
26471 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26472 wxPoint2D *arg2 = 0 ;
26473 wxPoint2D *arg3 = 0 ;
26474 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26475 void *argp1 = 0 ;
26476 int res1 = 0 ;
5c8c7dd3
RD
26477 wxPoint2D temp2 ;
26478 wxPoint2D temp3 ;
26479 wxPoint2D temp4 ;
70d7cb34 26480
5c8c7dd3
RD
26481 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26483 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26485 }
26486 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26487 {
5c8c7dd3
RD
26488 arg2 = &temp2;
26489 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26490 }
5c8c7dd3
RD
26491 {
26492 arg3 = &temp3;
26493 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26494 }
70d7cb34 26495 {
5c8c7dd3
RD
26496 arg4 = &temp4;
26497 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26498 }
26499 {
26500 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 resultobj = SWIG_Py_Void();
26504 return resultobj;
26505fail:
26506 return NULL;
26507}
26508
26509
5c8c7dd3
RD
26510SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26511 int argc;
26512 PyObject *argv[8];
70d7cb34 26513
5c8c7dd3
RD
26514 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26515 --argc;
26516 if (argc == 4) {
26517 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26518 }
5c8c7dd3
RD
26519 if (argc == 7) {
26520 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26521 }
5c8c7dd3 26522
70d7cb34 26523fail:
5c8c7dd3 26524 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26525 return NULL;
26526}
26527
26528
5c8c7dd3 26529SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26530 PyObject *resultobj = 0;
26531 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26532 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26533 void *argp1 = 0 ;
26534 int res1 = 0 ;
5c8c7dd3
RD
26535 void *argp2 = 0 ;
26536 int res2 = 0 ;
70d7cb34
RD
26537 PyObject * obj0 = 0 ;
26538 PyObject * obj1 = 0 ;
26539 char * kwnames[] = {
5c8c7dd3 26540 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26541 };
26542
5c8c7dd3 26543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26545 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26547 }
26548 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26550 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26552 }
26553 if (!argp2) {
26554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26555 }
5c8c7dd3 26556 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26557 {
5c8c7dd3 26558 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_Py_Void();
26562 return resultobj;
26563fail:
26564 return NULL;
26565}
26566
26567
5c8c7dd3 26568SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26569 PyObject *resultobj = 0;
26570 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26571 void *argp1 = 0 ;
26572 int res1 = 0 ;
5c8c7dd3 26573 PyObject *swig_obj[1] ;
70d7cb34 26574
5c8c7dd3
RD
26575 if (!args) SWIG_fail;
26576 swig_obj[0] = args;
26577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26578 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26580 }
26581 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26582 {
5c8c7dd3 26583 (arg1)->CloseSubpath();
70d7cb34
RD
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 resultobj = SWIG_Py_Void();
26587 return resultobj;
26588fail:
26589 return NULL;
26590}
26591
26592
5c8c7dd3 26593SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26594 PyObject *resultobj = 0;
26595 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26596 wxPoint2D result;
70d7cb34
RD
26597 void *argp1 = 0 ;
26598 int res1 = 0 ;
26599 PyObject *swig_obj[1] ;
26600
26601 if (!args) SWIG_fail;
26602 swig_obj[0] = args;
26603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26604 if (!SWIG_IsOK(res1)) {
8f514ab4 26605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26606 }
26607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26608 {
8f514ab4 26609 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26610 if (PyErr_Occurred()) SWIG_fail;
26611 }
5c8c7dd3 26612 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26613 return resultobj;
26614fail:
26615 return NULL;
26616}
26617
26618
5c8c7dd3 26619SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26620 PyObject *resultobj = 0;
26621 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26622 wxDouble arg2 ;
26623 wxDouble arg3 ;
5c8c7dd3
RD
26624 wxDouble arg4 ;
26625 wxDouble arg5 ;
26626 wxDouble arg6 ;
26627 bool arg7 ;
70d7cb34
RD
26628 void *argp1 = 0 ;
26629 int res1 = 0 ;
26630 double val2 ;
26631 int ecode2 = 0 ;
26632 double val3 ;
26633 int ecode3 = 0 ;
5c8c7dd3 26634 double val4 ;
70d7cb34 26635 int ecode4 = 0 ;
5c8c7dd3
RD
26636 double val5 ;
26637 int ecode5 = 0 ;
26638 double val6 ;
26639 int ecode6 = 0 ;
26640 bool val7 ;
26641 int ecode7 = 0 ;
70d7cb34 26642
5c8c7dd3 26643 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26645 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26647 }
26648 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26649 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26650 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26652 }
26653 arg2 = static_cast< wxDouble >(val2);
26654 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26655 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26657 }
26658 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26659 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26660 if (!SWIG_IsOK(ecode4)) {
26661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26662 }
26663 arg4 = static_cast< wxDouble >(val4);
26664 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26665 if (!SWIG_IsOK(ecode5)) {
26666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26667 }
26668 arg5 = static_cast< wxDouble >(val5);
26669 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26670 if (!SWIG_IsOK(ecode6)) {
26671 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26672 }
26673 arg6 = static_cast< wxDouble >(val6);
26674 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26675 if (!SWIG_IsOK(ecode7)) {
26676 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26677 }
26678 arg7 = static_cast< bool >(val7);
70d7cb34 26679 {
5c8c7dd3 26680 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
5c8c7dd3 26683 resultobj = SWIG_Py_Void();
70d7cb34
RD
26684 return resultobj;
26685fail:
26686 return NULL;
26687}
26688
26689
5c8c7dd3 26690SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26691 PyObject *resultobj = 0;
26692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26693 wxPoint2D *arg2 = 0 ;
26694 wxDouble arg3 ;
26695 wxDouble arg4 ;
26696 wxDouble arg5 ;
26697 bool arg6 ;
70d7cb34
RD
26698 void *argp1 = 0 ;
26699 int res1 = 0 ;
5c8c7dd3
RD
26700 wxPoint2D temp2 ;
26701 double val3 ;
70d7cb34 26702 int ecode3 = 0 ;
5c8c7dd3
RD
26703 double val4 ;
26704 int ecode4 = 0 ;
26705 double val5 ;
26706 int ecode5 = 0 ;
26707 bool val6 ;
26708 int ecode6 = 0 ;
70d7cb34 26709
5c8c7dd3 26710 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26712 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26714 }
26715 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26716 {
5c8c7dd3
RD
26717 arg2 = &temp2;
26718 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26719 }
5c8c7dd3
RD
26720 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26721 if (!SWIG_IsOK(ecode3)) {
26722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26723 }
26724 arg3 = static_cast< wxDouble >(val3);
26725 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26726 if (!SWIG_IsOK(ecode4)) {
26727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26728 }
26729 arg4 = static_cast< wxDouble >(val4);
26730 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26731 if (!SWIG_IsOK(ecode5)) {
26732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26733 }
26734 arg5 = static_cast< wxDouble >(val5);
26735 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26736 if (!SWIG_IsOK(ecode6)) {
26737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26738 }
26739 arg6 = static_cast< bool >(val6);
70d7cb34 26740 {
5c8c7dd3
RD
26741 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26742 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26743 }
5c8c7dd3 26744 resultobj = SWIG_Py_Void();
70d7cb34
RD
26745 return resultobj;
26746fail:
26747 return NULL;
26748}
26749
26750
5c8c7dd3 26751SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26752 int argc;
5c8c7dd3 26753 PyObject *argv[8];
70d7cb34 26754
5c8c7dd3 26755 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26756 --argc;
5c8c7dd3
RD
26757 if (argc == 6) {
26758 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26759 }
5c8c7dd3
RD
26760 if (argc == 7) {
26761 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26762 }
26763
26764fail:
5c8c7dd3 26765 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26766 return NULL;
26767}
26768
26769
5c8c7dd3 26770SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26771 PyObject *resultobj = 0;
5c8c7dd3
RD
26772 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26773 wxDouble arg2 ;
26774 wxDouble arg3 ;
26775 wxDouble arg4 ;
26776 wxDouble arg5 ;
70d7cb34
RD
26777 void *argp1 = 0 ;
26778 int res1 = 0 ;
5c8c7dd3
RD
26779 double val2 ;
26780 int ecode2 = 0 ;
26781 double val3 ;
26782 int ecode3 = 0 ;
26783 double val4 ;
26784 int ecode4 = 0 ;
26785 double val5 ;
26786 int ecode5 = 0 ;
26787 PyObject * obj0 = 0 ;
26788 PyObject * obj1 = 0 ;
26789 PyObject * obj2 = 0 ;
26790 PyObject * obj3 = 0 ;
26791 PyObject * obj4 = 0 ;
26792 char * kwnames[] = {
26793 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26794 };
70d7cb34 26795
5c8c7dd3
RD
26796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26798 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26800 }
5c8c7dd3
RD
26801 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26802 ecode2 = SWIG_AsVal_double(obj1, &val2);
26803 if (!SWIG_IsOK(ecode2)) {
26804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26805 }
26806 arg2 = static_cast< wxDouble >(val2);
26807 ecode3 = SWIG_AsVal_double(obj2, &val3);
26808 if (!SWIG_IsOK(ecode3)) {
26809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26810 }
26811 arg3 = static_cast< wxDouble >(val3);
26812 ecode4 = SWIG_AsVal_double(obj3, &val4);
26813 if (!SWIG_IsOK(ecode4)) {
26814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26815 }
26816 arg4 = static_cast< wxDouble >(val4);
26817 ecode5 = SWIG_AsVal_double(obj4, &val5);
26818 if (!SWIG_IsOK(ecode5)) {
26819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26820 }
26821 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26822 {
5c8c7dd3 26823 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26824 if (PyErr_Occurred()) SWIG_fail;
26825 }
26826 resultobj = SWIG_Py_Void();
26827 return resultobj;
26828fail:
26829 return NULL;
26830}
26831
26832
5c8c7dd3 26833SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26834 PyObject *resultobj = 0;
5c8c7dd3
RD
26835 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26836 wxDouble arg2 ;
26837 wxDouble arg3 ;
26838 wxDouble arg4 ;
26839 wxDouble arg5 ;
70d7cb34
RD
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
5c8c7dd3
RD
26842 double val2 ;
26843 int ecode2 = 0 ;
26844 double val3 ;
26845 int ecode3 = 0 ;
26846 double val4 ;
26847 int ecode4 = 0 ;
26848 double val5 ;
26849 int ecode5 = 0 ;
70d7cb34
RD
26850 PyObject * obj0 = 0 ;
26851 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26852 PyObject * obj2 = 0 ;
26853 PyObject * obj3 = 0 ;
26854 PyObject * obj4 = 0 ;
70d7cb34 26855 char * kwnames[] = {
5c8c7dd3 26856 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26857 };
26858
5c8c7dd3
RD
26859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26861 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26863 }
5c8c7dd3
RD
26864 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26865 ecode2 = SWIG_AsVal_double(obj1, &val2);
26866 if (!SWIG_IsOK(ecode2)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26868 }
26869 arg2 = static_cast< wxDouble >(val2);
26870 ecode3 = SWIG_AsVal_double(obj2, &val3);
26871 if (!SWIG_IsOK(ecode3)) {
26872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26873 }
26874 arg3 = static_cast< wxDouble >(val3);
26875 ecode4 = SWIG_AsVal_double(obj3, &val4);
26876 if (!SWIG_IsOK(ecode4)) {
26877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26878 }
26879 arg4 = static_cast< wxDouble >(val4);
26880 ecode5 = SWIG_AsVal_double(obj4, &val5);
26881 if (!SWIG_IsOK(ecode5)) {
26882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26883 }
26884 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26885 {
5c8c7dd3 26886 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_Py_Void();
26890 return resultobj;
26891fail:
26892 return NULL;
26893}
26894
26895
5c8c7dd3 26896SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26897 PyObject *resultobj = 0;
5c8c7dd3
RD
26898 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26899 wxDouble arg2 ;
26900 wxDouble arg3 ;
26901 wxDouble arg4 ;
70d7cb34
RD
26902 void *argp1 = 0 ;
26903 int res1 = 0 ;
5c8c7dd3
RD
26904 double val2 ;
26905 int ecode2 = 0 ;
26906 double val3 ;
26907 int ecode3 = 0 ;
26908 double val4 ;
26909 int ecode4 = 0 ;
70d7cb34
RD
26910 PyObject * obj0 = 0 ;
26911 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26912 PyObject * obj2 = 0 ;
26913 PyObject * obj3 = 0 ;
70d7cb34 26914 char * kwnames[] = {
5c8c7dd3 26915 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26916 };
26917
5c8c7dd3
RD
26918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26920 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26922 }
5c8c7dd3
RD
26923 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26924 ecode2 = SWIG_AsVal_double(obj1, &val2);
26925 if (!SWIG_IsOK(ecode2)) {
26926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26927 }
26928 arg2 = static_cast< wxDouble >(val2);
26929 ecode3 = SWIG_AsVal_double(obj2, &val3);
26930 if (!SWIG_IsOK(ecode3)) {
26931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26932 }
26933 arg3 = static_cast< wxDouble >(val3);
26934 ecode4 = SWIG_AsVal_double(obj3, &val4);
26935 if (!SWIG_IsOK(ecode4)) {
26936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26937 }
26938 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26939 {
5c8c7dd3 26940 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
26943 resultobj = SWIG_Py_Void();
26944 return resultobj;
26945fail:
26946 return NULL;
26947}
26948
26949
5c8c7dd3 26950SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26951 PyObject *resultobj = 0;
5c8c7dd3
RD
26952 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26953 wxDouble arg2 ;
26954 wxDouble arg3 ;
26955 wxDouble arg4 ;
26956 wxDouble arg5 ;
26957 wxDouble arg6 ;
70d7cb34
RD
26958 void *argp1 = 0 ;
26959 int res1 = 0 ;
26960 double val2 ;
26961 int ecode2 = 0 ;
26962 double val3 ;
26963 int ecode3 = 0 ;
26964 double val4 ;
26965 int ecode4 = 0 ;
26966 double val5 ;
26967 int ecode5 = 0 ;
26968 double val6 ;
26969 int ecode6 = 0 ;
70d7cb34
RD
26970 PyObject * obj0 = 0 ;
26971 PyObject * obj1 = 0 ;
26972 PyObject * obj2 = 0 ;
26973 PyObject * obj3 = 0 ;
26974 PyObject * obj4 = 0 ;
26975 PyObject * obj5 = 0 ;
70d7cb34 26976 char * kwnames[] = {
5c8c7dd3 26977 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26978 };
26979
5c8c7dd3
RD
26980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26982 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26984 }
5c8c7dd3
RD
26985 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26986 ecode2 = SWIG_AsVal_double(obj1, &val2);
26987 if (!SWIG_IsOK(ecode2)) {
26988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26989 }
26990 arg2 = static_cast< wxDouble >(val2);
26991 ecode3 = SWIG_AsVal_double(obj2, &val3);
26992 if (!SWIG_IsOK(ecode3)) {
26993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26994 }
26995 arg3 = static_cast< wxDouble >(val3);
26996 ecode4 = SWIG_AsVal_double(obj3, &val4);
26997 if (!SWIG_IsOK(ecode4)) {
26998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26999 }
27000 arg4 = static_cast< wxDouble >(val4);
27001 ecode5 = SWIG_AsVal_double(obj4, &val5);
27002 if (!SWIG_IsOK(ecode5)) {
27003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27004 }
27005 arg5 = static_cast< wxDouble >(val5);
27006 ecode6 = SWIG_AsVal_double(obj5, &val6);
27007 if (!SWIG_IsOK(ecode6)) {
27008 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27009 }
27010 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27011 {
5c8c7dd3 27012 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 resultobj = SWIG_Py_Void();
27016 return resultobj;
27017fail:
27018 return NULL;
27019}
27020
27021
5c8c7dd3 27022SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27023 PyObject *resultobj = 0;
5c8c7dd3
RD
27024 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27025 wxDouble arg2 ;
27026 wxDouble arg3 ;
27027 wxDouble arg4 ;
27028 wxDouble arg5 ;
70d7cb34
RD
27029 void *argp1 = 0 ;
27030 int res1 = 0 ;
5c8c7dd3
RD
27031 double val2 ;
27032 int ecode2 = 0 ;
27033 double val3 ;
27034 int ecode3 = 0 ;
27035 double val4 ;
27036 int ecode4 = 0 ;
27037 double val5 ;
27038 int ecode5 = 0 ;
27039 PyObject * obj0 = 0 ;
27040 PyObject * obj1 = 0 ;
27041 PyObject * obj2 = 0 ;
27042 PyObject * obj3 = 0 ;
27043 PyObject * obj4 = 0 ;
27044 char * kwnames[] = {
27045 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27046 };
70d7cb34 27047
5c8c7dd3
RD
27048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27050 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27052 }
5c8c7dd3
RD
27053 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27054 ecode2 = SWIG_AsVal_double(obj1, &val2);
27055 if (!SWIG_IsOK(ecode2)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27057 }
27058 arg2 = static_cast< wxDouble >(val2);
27059 ecode3 = SWIG_AsVal_double(obj2, &val3);
27060 if (!SWIG_IsOK(ecode3)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27062 }
27063 arg3 = static_cast< wxDouble >(val3);
27064 ecode4 = SWIG_AsVal_double(obj3, &val4);
27065 if (!SWIG_IsOK(ecode4)) {
27066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27067 }
27068 arg4 = static_cast< wxDouble >(val4);
27069 ecode5 = SWIG_AsVal_double(obj4, &val5);
27070 if (!SWIG_IsOK(ecode5)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27072 }
27073 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27074 {
5c8c7dd3 27075 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27076 if (PyErr_Occurred()) SWIG_fail;
27077 }
27078 resultobj = SWIG_Py_Void();
27079 return resultobj;
27080fail:
27081 return NULL;
27082}
27083
27084
5c8c7dd3 27085SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27086 PyObject *resultobj = 0;
5c8c7dd3
RD
27087 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27088 wxDouble arg2 ;
27089 wxDouble arg3 ;
27090 wxDouble arg4 ;
27091 wxDouble arg5 ;
27092 wxDouble arg6 ;
70d7cb34
RD
27093 void *argp1 = 0 ;
27094 int res1 = 0 ;
5c8c7dd3
RD
27095 double val2 ;
27096 int ecode2 = 0 ;
27097 double val3 ;
27098 int ecode3 = 0 ;
27099 double val4 ;
27100 int ecode4 = 0 ;
27101 double val5 ;
27102 int ecode5 = 0 ;
27103 double val6 ;
27104 int ecode6 = 0 ;
70d7cb34
RD
27105 PyObject * obj0 = 0 ;
27106 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27107 PyObject * obj2 = 0 ;
27108 PyObject * obj3 = 0 ;
27109 PyObject * obj4 = 0 ;
27110 PyObject * obj5 = 0 ;
70d7cb34 27111 char * kwnames[] = {
5c8c7dd3 27112 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27113 };
27114
5c8c7dd3
RD
27115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27117 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27119 }
5c8c7dd3
RD
27120 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27121 ecode2 = SWIG_AsVal_double(obj1, &val2);
27122 if (!SWIG_IsOK(ecode2)) {
27123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27124 }
27125 arg2 = static_cast< wxDouble >(val2);
27126 ecode3 = SWIG_AsVal_double(obj2, &val3);
27127 if (!SWIG_IsOK(ecode3)) {
27128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27129 }
27130 arg3 = static_cast< wxDouble >(val3);
27131 ecode4 = SWIG_AsVal_double(obj3, &val4);
27132 if (!SWIG_IsOK(ecode4)) {
27133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27134 }
27135 arg4 = static_cast< wxDouble >(val4);
27136 ecode5 = SWIG_AsVal_double(obj4, &val5);
27137 if (!SWIG_IsOK(ecode5)) {
27138 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27139 }
27140 arg5 = static_cast< wxDouble >(val5);
27141 ecode6 = SWIG_AsVal_double(obj5, &val6);
27142 if (!SWIG_IsOK(ecode6)) {
27143 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27144 }
27145 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27146 {
5c8c7dd3 27147 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27148 if (PyErr_Occurred()) SWIG_fail;
27149 }
5c8c7dd3 27150 resultobj = SWIG_Py_Void();
70d7cb34
RD
27151 return resultobj;
27152fail:
27153 return NULL;
27154}
27155
27156
5c8c7dd3 27157SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27158 PyObject *resultobj = 0;
5c8c7dd3
RD
27159 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27160 void *result = 0 ;
70d7cb34
RD
27161 void *argp1 = 0 ;
27162 int res1 = 0 ;
27163 PyObject *swig_obj[1] ;
27164
27165 if (!args) SWIG_fail;
27166 swig_obj[0] = args;
5c8c7dd3 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_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27170 }
5c8c7dd3 27171 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27172 {
5c8c7dd3 27173 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
5c8c7dd3 27176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27177 return resultobj;
27178fail:
27179 return NULL;
27180}
27181
27182
5c8c7dd3 27183SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27184 PyObject *resultobj = 0;
5c8c7dd3
RD
27185 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27186 void *arg2 = (void *) 0 ;
70d7cb34
RD
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
5c8c7dd3 27189 int res2 ;
70d7cb34
RD
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
70d7cb34 27192 char * kwnames[] = {
5c8c7dd3 27193 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27194 };
27195
5c8c7dd3
RD
27196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27198 if (!SWIG_IsOK(res1)) {
8f514ab4 27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27200 }
27201 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27202 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27203 if (!SWIG_IsOK(res2)) {
27204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27205 }
70d7cb34 27206 {
8f514ab4 27207 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27208 if (PyErr_Occurred()) SWIG_fail;
27209 }
27210 resultobj = SWIG_Py_Void();
27211 return resultobj;
27212fail:
27213 return NULL;
27214}
27215
27216
5c8c7dd3 27217SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27218 PyObject *resultobj = 0;
5c8c7dd3
RD
27219 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27220 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27221 void *argp1 = 0 ;
27222 int res1 = 0 ;
5c8c7dd3
RD
27223 void *argp2 = 0 ;
27224 int res2 = 0 ;
70d7cb34
RD
27225 PyObject * obj0 = 0 ;
27226 PyObject * obj1 = 0 ;
70d7cb34 27227 char * kwnames[] = {
5c8c7dd3 27228 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27229 };
27230
5c8c7dd3
RD
27231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27233 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27235 }
5c8c7dd3
RD
27236 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27238 if (!SWIG_IsOK(res2)) {
27239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27240 }
27241 if (!argp2) {
27242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27243 }
27244 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27245 {
5c8c7dd3 27246 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27247 if (PyErr_Occurred()) SWIG_fail;
27248 }
27249 resultobj = SWIG_Py_Void();
27250 return resultobj;
27251fail:
27252 return NULL;
27253}
27254
27255
5c8c7dd3 27256SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27257 PyObject *resultobj = 0;
5c8c7dd3
RD
27258 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27259 wxRect2DDouble result;
70d7cb34
RD
27260 void *argp1 = 0 ;
27261 int res1 = 0 ;
5c8c7dd3 27262 PyObject *swig_obj[1] ;
70d7cb34 27263
5c8c7dd3
RD
27264 if (!args) SWIG_fail;
27265 swig_obj[0] = args;
27266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27267 if (!SWIG_IsOK(res1)) {
8f514ab4 27268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27269 }
5c8c7dd3 27270 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27271 {
8f514ab4 27272 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27273 if (PyErr_Occurred()) SWIG_fail;
27274 }
5c8c7dd3 27275 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27276 return resultobj;
27277fail:
27278 return NULL;
27279}
27280
27281
5c8c7dd3 27282SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27283 PyObject *resultobj = 0;
5c8c7dd3
RD
27284 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27285 wxDouble arg2 ;
27286 wxDouble arg3 ;
8f514ab4 27287 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27288 bool result;
70d7cb34
RD
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
5c8c7dd3
RD
27291 double val2 ;
27292 int ecode2 = 0 ;
27293 double val3 ;
27294 int ecode3 = 0 ;
27295 int val4 ;
27296 int ecode4 = 0 ;
70d7cb34 27297
5c8c7dd3
RD
27298 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27300 if (!SWIG_IsOK(res1)) {
8f514ab4 27301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27302 }
5c8c7dd3
RD
27303 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27304 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27305 if (!SWIG_IsOK(ecode2)) {
27306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27307 }
27308 arg2 = static_cast< wxDouble >(val2);
27309 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27310 if (!SWIG_IsOK(ecode3)) {
27311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27312 }
27313 arg3 = static_cast< wxDouble >(val3);
27314 if (swig_obj[3]) {
27315 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27316 if (!SWIG_IsOK(ecode4)) {
27317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27318 }
27319 arg4 = static_cast< int >(val4);
70d7cb34
RD
27320 }
27321 {
8f514ab4 27322 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27323 if (PyErr_Occurred()) SWIG_fail;
27324 }
5c8c7dd3
RD
27325 {
27326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27327 }
27328 return resultobj;
27329fail:
27330 return NULL;
27331}
27332
27333
5c8c7dd3 27334SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27335 PyObject *resultobj = 0;
5c8c7dd3
RD
27336 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27337 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 27338 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27339 bool result;
70d7cb34
RD
27340 void *argp1 = 0 ;
27341 int res1 = 0 ;
5c8c7dd3 27342 void *argp2 = 0 ;
70d7cb34 27343 int res2 = 0 ;
5c8c7dd3
RD
27344 int val3 ;
27345 int ecode3 = 0 ;
70d7cb34 27346
5c8c7dd3
RD
27347 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27349 if (!SWIG_IsOK(res1)) {
8f514ab4 27350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27351 }
5c8c7dd3
RD
27352 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27353 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27354 if (!SWIG_IsOK(res2)) {
27355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27356 }
5c8c7dd3
RD
27357 if (!argp2) {
27358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27359 }
27360 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27361 if (swig_obj[2]) {
27362 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27363 if (!SWIG_IsOK(ecode3)) {
27364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27365 }
27366 arg3 = static_cast< int >(val3);
70d7cb34
RD
27367 }
27368 {
8f514ab4 27369 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
5c8c7dd3
RD
27372 {
27373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27374 }
27375 return resultobj;
27376fail:
27377 return NULL;
27378}
27379
27380
5c8c7dd3
RD
27381SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27382 int argc;
27383 PyObject *argv[5];
70d7cb34 27384
5c8c7dd3
RD
27385 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27386 --argc;
27387 if ((argc >= 2) && (argc <= 3)) {
27388 int _v = 0;
27389 {
27390 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27391 _v = SWIG_CheckState(res);
27392 }
27393 if (!_v) goto check_1;
27394 if (argc > 2) {
27395 {
27396 {
27397 int res = SWIG_AsVal_int(argv[2], NULL);
27398 _v = SWIG_CheckState(res);
27399 }
27400 }
27401 if (!_v) goto check_1;
27402 }
27403 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27404 }
5c8c7dd3
RD
27405check_1:
27406
27407 if ((argc >= 3) && (argc <= 4)) {
27408 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27409 }
5c8c7dd3 27410
70d7cb34 27411fail:
5c8c7dd3 27412 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27413 return NULL;
27414}
27415
27416
5c8c7dd3 27417SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27418 PyObject *obj;
27419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27420 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27421 return SWIG_Py_Void();
27422}
27423
8f514ab4
RD
27424SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27425 return SWIG_Python_InitShadowInstance(args);
27426}
27427
5c8c7dd3
RD
27428SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27429 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27430 return 1;
27431}
27432
27433
27434SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27435 PyObject *pyobj = 0;
27436
27437 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27438 return pyobj;
27439}
27440
27441
27442SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27443 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27444 return 1;
27445}
27446
27447
27448SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27449 PyObject *pyobj = 0;
27450
27451 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27452 return pyobj;
27453}
27454
27455
27456SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27457 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27458 return 1;
27459}
27460
27461
27462SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27463 PyObject *pyobj = 0;
27464
27465 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27466 return pyobj;
27467}
27468
27469
27470SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27471 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27472 return 1;
27473}
27474
27475
27476SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27477 PyObject *pyobj = 0;
27478
27479 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27480 return pyobj;
27481}
27482
27483
27484SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27485 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27486 return 1;
27487}
27488
27489
27490SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27491 PyObject *pyobj = 0;
27492
27493 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27494 return pyobj;
27495}
27496
27497
70d7cb34
RD
27498SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27499 PyObject *resultobj = 0;
27500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 PyObject *swig_obj[1] ;
27504
27505 if (!args) SWIG_fail;
27506 swig_obj[0] = args;
27507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27508 if (!SWIG_IsOK(res1)) {
27509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27510 }
27511 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27512 {
27513 delete arg1;
27514
27515 if (PyErr_Occurred()) SWIG_fail;
27516 }
27517 resultobj = SWIG_Py_Void();
27518 return resultobj;
27519fail:
27520 return NULL;
27521}
27522
27523
27524SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27525 PyObject *resultobj = 0;
27526 wxWindowDC *arg1 = 0 ;
27527 wxGraphicsContext *result = 0 ;
27528 void *argp1 = 0 ;
27529 int res1 = 0 ;
27530
27531 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27533 if (!SWIG_IsOK(res1)) {
27534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27535 }
27536 if (!argp1) {
27537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27538 }
27539 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27540 {
27541 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27545 return resultobj;
27546fail:
27547 return NULL;
27548}
27549
27550
27551SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27552 PyObject *resultobj = 0;
27553 wxWindow *arg1 = (wxWindow *) 0 ;
27554 wxGraphicsContext *result = 0 ;
27555 void *argp1 = 0 ;
27556 int res1 = 0 ;
27557
27558 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27560 if (!SWIG_IsOK(res1)) {
27561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27562 }
27563 arg1 = reinterpret_cast< wxWindow * >(argp1);
27564 {
27565 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27566 if (PyErr_Occurred()) SWIG_fail;
27567 }
27568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27569 return resultobj;
27570fail:
27571 return NULL;
27572}
27573
27574
27575SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27576 int argc;
27577 PyObject *argv[2];
27578
27579 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27580 --argc;
27581 if (argc == 1) {
27582 int _v = 0;
27583 {
27584 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27585 _v = SWIG_CheckState(res);
27586 }
27587 if (!_v) goto check_1;
27588 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27589 }
27590check_1:
27591
27592 if (argc == 1) {
27593 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27594 }
27595
27596fail:
27597 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27598 return NULL;
27599}
27600
27601
27602SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27603 PyObject *resultobj = 0;
27604 void *arg1 = (void *) 0 ;
27605 wxGraphicsContext *result = 0 ;
27606 int res1 ;
27607 PyObject * obj0 = 0 ;
27608 char * kwnames[] = {
27609 (char *) "context", NULL
27610 };
27611
27612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27613 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27614 if (!SWIG_IsOK(res1)) {
27615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27616 }
27617 {
27618 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 }
27621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27622 return resultobj;
27623fail:
27624 return NULL;
27625}
27626
27627
27628SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27629 PyObject *resultobj = 0;
27630 void *arg1 = (void *) 0 ;
27631 wxGraphicsContext *result = 0 ;
27632 int res1 ;
27633 PyObject * obj0 = 0 ;
27634 char * kwnames[] = {
27635 (char *) "window", NULL
27636 };
27637
27638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27639 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27642 }
27643 {
27644 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27648 return resultobj;
27649fail:
27650 return NULL;
27651}
27652
27653
27654SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27657 wxGraphicsPath result;
70d7cb34
RD
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 PyObject *swig_obj[1] ;
27661
27662 if (!args) SWIG_fail;
27663 swig_obj[0] = args;
27664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27665 if (!SWIG_IsOK(res1)) {
27666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27667 }
27668 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27669 {
5c8c7dd3 27670 result = (arg1)->CreatePath();
70d7cb34
RD
27671 if (PyErr_Occurred()) SWIG_fail;
27672 }
5c8c7dd3 27673 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27674 return resultobj;
27675fail:
27676 return NULL;
27677}
27678
27679
70d7cb34 27680SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27681 PyObject *resultobj = 0;
70d7cb34
RD
27682 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27683 wxPen *arg2 = 0 ;
27684 wxGraphicsPen result;
72ef6efb
RD
27685 void *argp1 = 0 ;
27686 int res1 = 0 ;
70d7cb34
RD
27687 void *argp2 = 0 ;
27688 int res2 = 0 ;
72ef6efb
RD
27689 PyObject * obj0 = 0 ;
27690 PyObject * obj1 = 0 ;
72ef6efb 27691 char * kwnames[] = {
70d7cb34 27692 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27693 };
27694
70d7cb34
RD
27695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27697 if (!SWIG_IsOK(res1)) {
70d7cb34 27698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27699 }
70d7cb34
RD
27700 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27702 if (!SWIG_IsOK(res2)) {
27703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27704 }
27705 if (!argp2) {
27706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27707 }
27708 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27709 {
70d7cb34 27710 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27711 if (PyErr_Occurred()) SWIG_fail;
27712 }
70d7cb34 27713 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27714 return resultobj;
27715fail:
27716 return NULL;
27717}
27718
27719
70d7cb34 27720SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27721 PyObject *resultobj = 0;
70d7cb34
RD
27722 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27723 wxBrush *arg2 = 0 ;
27724 wxGraphicsBrush result;
72ef6efb
RD
27725 void *argp1 = 0 ;
27726 int res1 = 0 ;
70d7cb34
RD
27727 void *argp2 = 0 ;
27728 int res2 = 0 ;
72ef6efb
RD
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
72ef6efb 27731 char * kwnames[] = {
70d7cb34 27732 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27733 };
27734
70d7cb34
RD
27735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27737 if (!SWIG_IsOK(res1)) {
70d7cb34 27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27739 }
70d7cb34
RD
27740 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27742 if (!SWIG_IsOK(res2)) {
27743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27744 }
27745 if (!argp2) {
27746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27747 }
27748 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27749 {
70d7cb34 27750 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
70d7cb34 27753 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27754 return resultobj;
27755fail:
27756 return NULL;
27757}
27758
27759
70d7cb34 27760SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27761 PyObject *resultobj = 0;
70d7cb34 27762 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27763 wxDouble arg2 ;
27764 wxDouble arg3 ;
27765 wxDouble arg4 ;
27766 wxDouble arg5 ;
70d7cb34
RD
27767 wxColour *arg6 = 0 ;
27768 wxColour *arg7 = 0 ;
27769 wxGraphicsBrush result;
72ef6efb
RD
27770 void *argp1 = 0 ;
27771 int res1 = 0 ;
27772 double val2 ;
27773 int ecode2 = 0 ;
27774 double val3 ;
27775 int ecode3 = 0 ;
27776 double val4 ;
27777 int ecode4 = 0 ;
27778 double val5 ;
27779 int ecode5 = 0 ;
70d7cb34
RD
27780 wxColour temp6 ;
27781 wxColour temp7 ;
72ef6efb
RD
27782 PyObject * obj0 = 0 ;
27783 PyObject * obj1 = 0 ;
27784 PyObject * obj2 = 0 ;
27785 PyObject * obj3 = 0 ;
27786 PyObject * obj4 = 0 ;
70d7cb34
RD
27787 PyObject * obj5 = 0 ;
27788 PyObject * obj6 = 0 ;
72ef6efb 27789 char * kwnames[] = {
70d7cb34 27790 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27791 };
27792
70d7cb34
RD
27793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27795 if (!SWIG_IsOK(res1)) {
70d7cb34 27796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27797 }
70d7cb34 27798 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27799 ecode2 = SWIG_AsVal_double(obj1, &val2);
27800 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27802 }
27803 arg2 = static_cast< wxDouble >(val2);
27804 ecode3 = SWIG_AsVal_double(obj2, &val3);
27805 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27807 }
27808 arg3 = static_cast< wxDouble >(val3);
27809 ecode4 = SWIG_AsVal_double(obj3, &val4);
27810 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27812 }
27813 arg4 = static_cast< wxDouble >(val4);
27814 ecode5 = SWIG_AsVal_double(obj4, &val5);
27815 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27817 }
27818 arg5 = static_cast< wxDouble >(val5);
27819 {
70d7cb34
RD
27820 arg6 = &temp6;
27821 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27822 }
70d7cb34
RD
27823 {
27824 arg7 = &temp7;
27825 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27826 }
72ef6efb 27827 {
70d7cb34 27828 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27829 if (PyErr_Occurred()) SWIG_fail;
27830 }
70d7cb34 27831 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27832 return resultobj;
27833fail:
27834 return NULL;
27835}
27836
27837
70d7cb34 27838SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27839 PyObject *resultobj = 0;
70d7cb34 27840 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27841 wxDouble arg2 ;
27842 wxDouble arg3 ;
27843 wxDouble arg4 ;
27844 wxDouble arg5 ;
27845 wxDouble arg6 ;
70d7cb34
RD
27846 wxColour *arg7 = 0 ;
27847 wxColour *arg8 = 0 ;
27848 wxGraphicsBrush result;
72ef6efb
RD
27849 void *argp1 = 0 ;
27850 int res1 = 0 ;
27851 double val2 ;
27852 int ecode2 = 0 ;
27853 double val3 ;
27854 int ecode3 = 0 ;
27855 double val4 ;
27856 int ecode4 = 0 ;
27857 double val5 ;
27858 int ecode5 = 0 ;
27859 double val6 ;
27860 int ecode6 = 0 ;
70d7cb34
RD
27861 wxColour temp7 ;
27862 wxColour temp8 ;
72ef6efb
RD
27863 PyObject * obj0 = 0 ;
27864 PyObject * obj1 = 0 ;
27865 PyObject * obj2 = 0 ;
27866 PyObject * obj3 = 0 ;
27867 PyObject * obj4 = 0 ;
27868 PyObject * obj5 = 0 ;
70d7cb34
RD
27869 PyObject * obj6 = 0 ;
27870 PyObject * obj7 = 0 ;
72ef6efb 27871 char * kwnames[] = {
70d7cb34 27872 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27873 };
27874
70d7cb34
RD
27875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27877 if (!SWIG_IsOK(res1)) {
70d7cb34 27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27879 }
70d7cb34 27880 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27881 ecode2 = SWIG_AsVal_double(obj1, &val2);
27882 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27884 }
27885 arg2 = static_cast< wxDouble >(val2);
27886 ecode3 = SWIG_AsVal_double(obj2, &val3);
27887 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27889 }
27890 arg3 = static_cast< wxDouble >(val3);
27891 ecode4 = SWIG_AsVal_double(obj3, &val4);
27892 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27894 }
27895 arg4 = static_cast< wxDouble >(val4);
27896 ecode5 = SWIG_AsVal_double(obj4, &val5);
27897 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27899 }
27900 arg5 = static_cast< wxDouble >(val5);
27901 ecode6 = SWIG_AsVal_double(obj5, &val6);
27902 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27903 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27904 }
27905 arg6 = static_cast< wxDouble >(val6);
27906 {
70d7cb34
RD
27907 arg7 = &temp7;
27908 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27909 }
27910 {
27911 arg8 = &temp8;
27912 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27913 }
27914 {
27915 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27916 if (PyErr_Occurred()) SWIG_fail;
27917 }
70d7cb34 27918 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27919 return resultobj;
27920fail:
27921 return NULL;
27922}
27923
27924
70d7cb34 27925SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27926 PyObject *resultobj = 0;
27927 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27928 wxFont *arg2 = 0 ;
27929 wxColour const &arg3_defvalue = *wxBLACK ;
27930 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27931 wxGraphicsFont result;
72ef6efb
RD
27932 void *argp1 = 0 ;
27933 int res1 = 0 ;
70d7cb34
RD
27934 void *argp2 = 0 ;
27935 int res2 = 0 ;
27936 wxColour temp3 ;
27937 PyObject * obj0 = 0 ;
27938 PyObject * obj1 = 0 ;
27939 PyObject * obj2 = 0 ;
27940 char * kwnames[] = {
27941 (char *) "self",(char *) "font",(char *) "col", NULL
27942 };
72ef6efb 27943
70d7cb34
RD
27944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27946 if (!SWIG_IsOK(res1)) {
70d7cb34 27947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27948 }
27949 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27951 if (!SWIG_IsOK(res2)) {
27952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27953 }
70d7cb34
RD
27954 if (!argp2) {
27955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27956 }
70d7cb34
RD
27957 arg2 = reinterpret_cast< wxFont * >(argp2);
27958 if (obj2) {
27959 {
27960 arg3 = &temp3;
27961 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27962 }
72ef6efb 27963 }
72ef6efb 27964 {
70d7cb34 27965 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
70d7cb34 27968 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27969 return resultobj;
27970fail:
27971 return NULL;
27972}
27973
27974
70d7cb34 27975SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27976 PyObject *resultobj = 0;
70d7cb34
RD
27977 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27978 wxDouble arg2 = (wxDouble) 1.0 ;
27979 wxDouble arg3 = (wxDouble) 0.0 ;
27980 wxDouble arg4 = (wxDouble) 0.0 ;
27981 wxDouble arg5 = (wxDouble) 1.0 ;
27982 wxDouble arg6 = (wxDouble) 0.0 ;
27983 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27984 wxGraphicsMatrix result;
0a27f394
RD
27985 void *argp1 = 0 ;
27986 int res1 = 0 ;
70d7cb34
RD
27987 double val2 ;
27988 int ecode2 = 0 ;
27989 double val3 ;
27990 int ecode3 = 0 ;
27991 double val4 ;
27992 int ecode4 = 0 ;
27993 double val5 ;
27994 int ecode5 = 0 ;
27995 double val6 ;
27996 int ecode6 = 0 ;
27997 double val7 ;
27998 int ecode7 = 0 ;
27999 PyObject * obj0 = 0 ;
28000 PyObject * obj1 = 0 ;
28001 PyObject * obj2 = 0 ;
28002 PyObject * obj3 = 0 ;
28003 PyObject * obj4 = 0 ;
28004 PyObject * obj5 = 0 ;
28005 PyObject * obj6 = 0 ;
28006 char * kwnames[] = {
28007 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28008 };
0a27f394 28009
70d7cb34
RD
28010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28012 if (!SWIG_IsOK(res1)) {
70d7cb34 28013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28014 }
70d7cb34
RD
28015 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28016 if (obj1) {
28017 ecode2 = SWIG_AsVal_double(obj1, &val2);
28018 if (!SWIG_IsOK(ecode2)) {
28019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28020 }
28021 arg2 = static_cast< wxDouble >(val2);
0a27f394 28022 }
70d7cb34
RD
28023 if (obj2) {
28024 ecode3 = SWIG_AsVal_double(obj2, &val3);
28025 if (!SWIG_IsOK(ecode3)) {
28026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28027 }
28028 arg3 = static_cast< wxDouble >(val3);
0a27f394 28029 }
70d7cb34
RD
28030 if (obj3) {
28031 ecode4 = SWIG_AsVal_double(obj3, &val4);
28032 if (!SWIG_IsOK(ecode4)) {
28033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28034 }
28035 arg4 = static_cast< wxDouble >(val4);
0a27f394 28036 }
70d7cb34
RD
28037 if (obj4) {
28038 ecode5 = SWIG_AsVal_double(obj4, &val5);
28039 if (!SWIG_IsOK(ecode5)) {
28040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28041 }
28042 arg5 = static_cast< wxDouble >(val5);
0a27f394 28043 }
70d7cb34
RD
28044 if (obj5) {
28045 ecode6 = SWIG_AsVal_double(obj5, &val6);
28046 if (!SWIG_IsOK(ecode6)) {
28047 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28048 }
28049 arg6 = static_cast< wxDouble >(val6);
0a27f394 28050 }
70d7cb34
RD
28051 if (obj6) {
28052 ecode7 = SWIG_AsVal_double(obj6, &val7);
28053 if (!SWIG_IsOK(ecode7)) {
28054 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28055 }
28056 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28057 }
72ef6efb 28058 {
5c8c7dd3 28059 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
5c8c7dd3 28062 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28063 return resultobj;
28064fail:
28065 return NULL;
28066}
28067
28068
28069SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28070 PyObject *resultobj = 0;
28071 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28072 void *argp1 = 0 ;
28073 int res1 = 0 ;
28074 PyObject *swig_obj[1] ;
28075
28076 if (!args) SWIG_fail;
28077 swig_obj[0] = args;
28078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28079 if (!SWIG_IsOK(res1)) {
28080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28081 }
28082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28083 {
72ef6efb 28084 (arg1)->PushState();
72ef6efb
RD
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 resultobj = SWIG_Py_Void();
28088 return resultobj;
28089fail:
28090 return NULL;
28091}
28092
28093
28094SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28095 PyObject *resultobj = 0;
28096 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
28099 PyObject *swig_obj[1] ;
28100
28101 if (!args) SWIG_fail;
28102 swig_obj[0] = args;
28103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28104 if (!SWIG_IsOK(res1)) {
28105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28106 }
28107 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28108 {
72ef6efb 28109 (arg1)->PopState();
72ef6efb
RD
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 resultobj = SWIG_Py_Void();
28113 return resultobj;
28114fail:
28115 return NULL;
28116}
28117
28118
0a27f394 28119SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28120 PyObject *resultobj = 0;
28121 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28122 wxRegion *arg2 = 0 ;
28123 void *argp1 = 0 ;
28124 int res1 = 0 ;
28125 void *argp2 = 0 ;
28126 int res2 = 0 ;
28127 PyObject * obj0 = 0 ;
28128 PyObject * obj1 = 0 ;
28129 char * kwnames[] = {
28130 (char *) "self",(char *) "region", NULL
28131 };
28132
0a27f394 28133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28135 if (!SWIG_IsOK(res1)) {
0a27f394 28136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28137 }
28138 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28139 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28140 if (!SWIG_IsOK(res2)) {
0a27f394 28141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28142 }
28143 if (!argp2) {
0a27f394 28144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28145 }
28146 arg2 = reinterpret_cast< wxRegion * >(argp2);
28147 {
72ef6efb 28148 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 resultobj = SWIG_Py_Void();
28152 return resultobj;
28153fail:
28154 return NULL;
28155}
28156
28157
0a27f394
RD
28158SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28159 PyObject *resultobj = 0;
28160 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28161 wxDouble arg2 ;
28162 wxDouble arg3 ;
28163 wxDouble arg4 ;
28164 wxDouble arg5 ;
28165 void *argp1 = 0 ;
28166 int res1 = 0 ;
28167 double val2 ;
28168 int ecode2 = 0 ;
28169 double val3 ;
28170 int ecode3 = 0 ;
28171 double val4 ;
28172 int ecode4 = 0 ;
28173 double val5 ;
28174 int ecode5 = 0 ;
28175 PyObject * obj0 = 0 ;
28176 PyObject * obj1 = 0 ;
28177 PyObject * obj2 = 0 ;
28178 PyObject * obj3 = 0 ;
28179 PyObject * obj4 = 0 ;
28180 char * kwnames[] = {
28181 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28182 };
28183
28184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28186 if (!SWIG_IsOK(res1)) {
28187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28188 }
28189 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28190 ecode2 = SWIG_AsVal_double(obj1, &val2);
28191 if (!SWIG_IsOK(ecode2)) {
28192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28193 }
28194 arg2 = static_cast< wxDouble >(val2);
28195 ecode3 = SWIG_AsVal_double(obj2, &val3);
28196 if (!SWIG_IsOK(ecode3)) {
28197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28198 }
28199 arg3 = static_cast< wxDouble >(val3);
28200 ecode4 = SWIG_AsVal_double(obj3, &val4);
28201 if (!SWIG_IsOK(ecode4)) {
28202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28203 }
28204 arg4 = static_cast< wxDouble >(val4);
28205 ecode5 = SWIG_AsVal_double(obj4, &val5);
28206 if (!SWIG_IsOK(ecode5)) {
28207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28208 }
28209 arg5 = static_cast< wxDouble >(val5);
28210 {
28211 (arg1)->Clip(arg2,arg3,arg4,arg5);
28212 if (PyErr_Occurred()) SWIG_fail;
28213 }
28214 resultobj = SWIG_Py_Void();
28215 return resultobj;
28216fail:
28217 return NULL;
28218}
28219
28220
28221SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28222 PyObject *resultobj = 0;
28223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28224 void *argp1 = 0 ;
28225 int res1 = 0 ;
28226 PyObject *swig_obj[1] ;
28227
28228 if (!args) SWIG_fail;
28229 swig_obj[0] = args;
28230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28231 if (!SWIG_IsOK(res1)) {
28232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28233 }
28234 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28235 {
28236 (arg1)->ResetClip();
28237 if (PyErr_Occurred()) SWIG_fail;
28238 }
28239 resultobj = SWIG_Py_Void();
28240 return resultobj;
28241fail:
28242 return NULL;
28243}
28244
28245
28246SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *resultobj = 0;
28248 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28249 void *result = 0 ;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 PyObject *swig_obj[1] ;
28253
28254 if (!args) SWIG_fail;
28255 swig_obj[0] = args;
28256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28257 if (!SWIG_IsOK(res1)) {
28258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28259 }
28260 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28261 {
28262 result = (void *)(arg1)->GetNativeContext();
28263 if (PyErr_Occurred()) SWIG_fail;
28264 }
28265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28266 return resultobj;
28267fail:
28268 return NULL;
28269}
28270
28271
72ef6efb
RD
28272SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28273 PyObject *resultobj = 0;
28274 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28275 wxDouble arg2 ;
28276 wxDouble arg3 ;
28277 void *argp1 = 0 ;
28278 int res1 = 0 ;
28279 double val2 ;
28280 int ecode2 = 0 ;
28281 double val3 ;
28282 int ecode3 = 0 ;
28283 PyObject * obj0 = 0 ;
28284 PyObject * obj1 = 0 ;
28285 PyObject * obj2 = 0 ;
28286 char * kwnames[] = {
28287 (char *) "self",(char *) "dx",(char *) "dy", NULL
28288 };
28289
28290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28292 if (!SWIG_IsOK(res1)) {
28293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28294 }
28295 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28296 ecode2 = SWIG_AsVal_double(obj1, &val2);
28297 if (!SWIG_IsOK(ecode2)) {
28298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28299 }
28300 arg2 = static_cast< wxDouble >(val2);
28301 ecode3 = SWIG_AsVal_double(obj2, &val3);
28302 if (!SWIG_IsOK(ecode3)) {
28303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28304 }
28305 arg3 = static_cast< wxDouble >(val3);
28306 {
72ef6efb 28307 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28308 if (PyErr_Occurred()) SWIG_fail;
28309 }
28310 resultobj = SWIG_Py_Void();
28311 return resultobj;
28312fail:
28313 return NULL;
28314}
28315
28316
28317SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28318 PyObject *resultobj = 0;
28319 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28320 wxDouble arg2 ;
28321 wxDouble arg3 ;
28322 void *argp1 = 0 ;
28323 int res1 = 0 ;
28324 double val2 ;
28325 int ecode2 = 0 ;
28326 double val3 ;
28327 int ecode3 = 0 ;
28328 PyObject * obj0 = 0 ;
28329 PyObject * obj1 = 0 ;
28330 PyObject * obj2 = 0 ;
28331 char * kwnames[] = {
28332 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28333 };
28334
28335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28337 if (!SWIG_IsOK(res1)) {
28338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28339 }
28340 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28341 ecode2 = SWIG_AsVal_double(obj1, &val2);
28342 if (!SWIG_IsOK(ecode2)) {
28343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28344 }
28345 arg2 = static_cast< wxDouble >(val2);
28346 ecode3 = SWIG_AsVal_double(obj2, &val3);
28347 if (!SWIG_IsOK(ecode3)) {
28348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28349 }
28350 arg3 = static_cast< wxDouble >(val3);
28351 {
72ef6efb 28352 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28353 if (PyErr_Occurred()) SWIG_fail;
28354 }
28355 resultobj = SWIG_Py_Void();
28356 return resultobj;
28357fail:
28358 return NULL;
28359}
28360
28361
28362SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28363 PyObject *resultobj = 0;
28364 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28365 wxDouble arg2 ;
28366 void *argp1 = 0 ;
28367 int res1 = 0 ;
28368 double val2 ;
28369 int ecode2 = 0 ;
28370 PyObject * obj0 = 0 ;
28371 PyObject * obj1 = 0 ;
28372 char * kwnames[] = {
28373 (char *) "self",(char *) "angle", NULL
28374 };
28375
28376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28378 if (!SWIG_IsOK(res1)) {
28379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28380 }
28381 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28382 ecode2 = SWIG_AsVal_double(obj1, &val2);
28383 if (!SWIG_IsOK(ecode2)) {
28384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28385 }
28386 arg2 = static_cast< wxDouble >(val2);
28387 {
72ef6efb 28388 (arg1)->Rotate(arg2);
72ef6efb
RD
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 resultobj = SWIG_Py_Void();
28392 return resultobj;
28393fail:
28394 return NULL;
28395}
28396
28397
5c8c7dd3
RD
28398SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj = 0;
28400 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28401 wxGraphicsMatrix *arg2 = 0 ;
28402 void *argp1 = 0 ;
28403 int res1 = 0 ;
28404 void *argp2 = 0 ;
28405 int res2 = 0 ;
28406 PyObject * obj0 = 0 ;
28407 PyObject * obj1 = 0 ;
28408 char * kwnames[] = {
28409 (char *) "self",(char *) "matrix", NULL
28410 };
28411
28412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28414 if (!SWIG_IsOK(res1)) {
28415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28416 }
28417 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28419 if (!SWIG_IsOK(res2)) {
28420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28421 }
28422 if (!argp2) {
28423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28424 }
28425 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28426 {
28427 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_Py_Void();
28431 return resultobj;
28432fail:
28433 return NULL;
28434}
28435
28436
28437SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28438 PyObject *resultobj = 0;
28439 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28440 wxGraphicsMatrix *arg2 = 0 ;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 void *argp2 = 0 ;
28444 int res2 = 0 ;
28445 PyObject * obj0 = 0 ;
28446 PyObject * obj1 = 0 ;
28447 char * kwnames[] = {
28448 (char *) "self",(char *) "matrix", NULL
28449 };
28450
28451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28453 if (!SWIG_IsOK(res1)) {
28454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28455 }
28456 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28458 if (!SWIG_IsOK(res2)) {
28459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28460 }
28461 if (!argp2) {
28462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28463 }
28464 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28465 {
28466 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_Py_Void();
28470 return resultobj;
28471fail:
28472 return NULL;
28473}
28474
28475
28476SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28477 PyObject *resultobj = 0;
28478 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28479 wxGraphicsMatrix result;
28480 void *argp1 = 0 ;
28481 int res1 = 0 ;
28482 PyObject *swig_obj[1] ;
28483
28484 if (!args) SWIG_fail;
28485 swig_obj[0] = args;
28486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28487 if (!SWIG_IsOK(res1)) {
28488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28489 }
28490 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28491 {
28492 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28496 return resultobj;
28497fail:
28498 return NULL;
28499}
28500
28501
70d7cb34
RD
28502SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28503 PyObject *resultobj = 0;
28504 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28505 wxGraphicsPen *arg2 = 0 ;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 void *argp2 = 0 ;
28509 int res2 = 0 ;
28510
28511 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28515 }
28516 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28517 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28518 if (!SWIG_IsOK(res2)) {
28519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28520 }
28521 if (!argp2) {
28522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28523 }
28524 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28525 {
28526 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 resultobj = SWIG_Py_Void();
28530 return resultobj;
28531fail:
28532 return NULL;
28533}
28534
28535
28536SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28537 PyObject *resultobj = 0;
28538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28539 wxPen *arg2 = 0 ;
28540 void *argp1 = 0 ;
28541 int res1 = 0 ;
28542 void *argp2 = 0 ;
28543 int res2 = 0 ;
72ef6efb 28544
70d7cb34
RD
28545 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28547 if (!SWIG_IsOK(res1)) {
28548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28549 }
28550 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28551 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28552 if (!SWIG_IsOK(res2)) {
28553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28554 }
28555 if (!argp2) {
28556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28557 }
28558 arg2 = reinterpret_cast< wxPen * >(argp2);
28559 {
72ef6efb 28560 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_Py_Void();
28564 return resultobj;
28565fail:
28566 return NULL;
28567}
28568
28569
70d7cb34
RD
28570SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28571 int argc;
28572 PyObject *argv[3];
28573
28574 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28575 --argc;
28576 if (argc == 2) {
28577 int _v = 0;
28578 {
28579 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28580 _v = SWIG_CheckState(res);
28581 }
28582 if (!_v) goto check_1;
28583 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28584 }
28585check_1:
28586
28587 if (argc == 2) {
28588 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28589 }
28590
28591fail:
28592 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28593 return NULL;
28594}
28595
28596
28597SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28598 PyObject *resultobj = 0;
28599 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28600 wxGraphicsBrush *arg2 = 0 ;
28601 void *argp1 = 0 ;
28602 int res1 = 0 ;
28603 void *argp2 = 0 ;
28604 int res2 = 0 ;
28605
28606 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28608 if (!SWIG_IsOK(res1)) {
28609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28610 }
28611 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28612 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28613 if (!SWIG_IsOK(res2)) {
28614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28615 }
28616 if (!argp2) {
28617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28618 }
28619 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28620 {
28621 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 resultobj = SWIG_Py_Void();
28625 return resultobj;
28626fail:
28627 return NULL;
28628}
28629
28630
28631SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28632 PyObject *resultobj = 0;
28633 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28634 wxBrush *arg2 = 0 ;
28635 void *argp1 = 0 ;
28636 int res1 = 0 ;
28637 void *argp2 = 0 ;
28638 int res2 = 0 ;
72ef6efb 28639
70d7cb34
RD
28640 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28642 if (!SWIG_IsOK(res1)) {
28643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28644 }
28645 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28646 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28647 if (!SWIG_IsOK(res2)) {
28648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28649 }
28650 if (!argp2) {
28651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28652 }
28653 arg2 = reinterpret_cast< wxBrush * >(argp2);
28654 {
72ef6efb 28655 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28656 if (PyErr_Occurred()) SWIG_fail;
28657 }
28658 resultobj = SWIG_Py_Void();
28659 return resultobj;
28660fail:
28661 return NULL;
28662}
28663
28664
70d7cb34
RD
28665SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28666 int argc;
28667 PyObject *argv[3];
72ef6efb 28668
70d7cb34
RD
28669 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28670 --argc;
28671 if (argc == 2) {
28672 int _v = 0;
28673 {
28674 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28675 _v = SWIG_CheckState(res);
28676 }
28677 if (!_v) goto check_1;
28678 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28679 }
70d7cb34
RD
28680check_1:
28681
28682 if (argc == 2) {
28683 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28684 }
70d7cb34 28685
72ef6efb 28686fail:
70d7cb34 28687 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28688 return NULL;
28689}
28690
28691
70d7cb34 28692SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28693 PyObject *resultobj = 0;
28694 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28695 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28696 void *argp1 = 0 ;
28697 int res1 = 0 ;
70d7cb34
RD
28698 void *argp2 = 0 ;
28699 int res2 = 0 ;
72ef6efb 28700
70d7cb34
RD
28701 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28703 if (!SWIG_IsOK(res1)) {
70d7cb34 28704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28705 }
28706 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28707 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28708 if (!SWIG_IsOK(res2)) {
28709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28710 }
70d7cb34
RD
28711 if (!argp2) {
28712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28713 }
70d7cb34 28714 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28715 {
70d7cb34 28716 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 resultobj = SWIG_Py_Void();
28720 return resultobj;
28721fail:
28722 return NULL;
28723}
28724
28725
70d7cb34 28726SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28727 PyObject *resultobj = 0;
28728 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28729 wxFont *arg2 = 0 ;
70d7cb34
RD
28730 wxColour const &arg3_defvalue = *wxBLACK ;
28731 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28732 void *argp1 = 0 ;
28733 int res1 = 0 ;
28734 void *argp2 = 0 ;
28735 int res2 = 0 ;
70d7cb34 28736 wxColour temp3 ;
72ef6efb 28737
70d7cb34
RD
28738 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28740 if (!SWIG_IsOK(res1)) {
28741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28742 }
28743 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28744 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28745 if (!SWIG_IsOK(res2)) {
28746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28747 }
28748 if (!argp2) {
28749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28750 }
28751 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28752 if (swig_obj[2]) {
28753 {
28754 arg3 = &temp3;
28755 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28756 }
28757 }
72ef6efb 28758 {
70d7cb34 28759 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28760 if (PyErr_Occurred()) SWIG_fail;
28761 }
28762 resultobj = SWIG_Py_Void();
28763 return resultobj;
28764fail:
28765 return NULL;
28766}
28767
28768
70d7cb34
RD
28769SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28770 int argc;
28771 PyObject *argv[4];
72ef6efb 28772
70d7cb34
RD
28773 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28774 --argc;
28775 if (argc == 2) {
28776 int _v = 0;
28777 {
28778 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28779 _v = SWIG_CheckState(res);
28780 }
28781 if (!_v) goto check_1;
28782 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28783 }
70d7cb34
RD
28784check_1:
28785
28786 if ((argc >= 2) && (argc <= 3)) {
28787 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28788 }
70d7cb34 28789
72ef6efb 28790fail:
70d7cb34 28791 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28792 return NULL;
28793}
28794
28795
28796SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28797 PyObject *resultobj = 0;
28798 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28799 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28800 void *argp1 = 0 ;
28801 int res1 = 0 ;
28802 void *argp2 = 0 ;
28803 int res2 = 0 ;
28804 PyObject * obj0 = 0 ;
28805 PyObject * obj1 = 0 ;
28806 char * kwnames[] = {
28807 (char *) "self",(char *) "path", NULL
28808 };
28809
28810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28812 if (!SWIG_IsOK(res1)) {
28813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28814 }
28815 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28817 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28819 }
28820 if (!argp2) {
28821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28822 }
28823 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28824 {
5c8c7dd3 28825 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28826 if (PyErr_Occurred()) SWIG_fail;
28827 }
28828 resultobj = SWIG_Py_Void();
28829 return resultobj;
28830fail:
28831 return NULL;
28832}
28833
28834
28835SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28836 PyObject *resultobj = 0;
28837 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28838 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28839 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28840 void *argp1 = 0 ;
28841 int res1 = 0 ;
28842 void *argp2 = 0 ;
28843 int res2 = 0 ;
28844 int val3 ;
28845 int ecode3 = 0 ;
28846 PyObject * obj0 = 0 ;
28847 PyObject * obj1 = 0 ;
28848 PyObject * obj2 = 0 ;
28849 char * kwnames[] = {
28850 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28851 };
28852
28853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28855 if (!SWIG_IsOK(res1)) {
28856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28857 }
28858 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28860 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28862 }
28863 if (!argp2) {
28864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28865 }
28866 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28867 if (obj2) {
28868 ecode3 = SWIG_AsVal_int(obj2, &val3);
28869 if (!SWIG_IsOK(ecode3)) {
28870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28871 }
28872 arg3 = static_cast< int >(val3);
28873 }
28874 {
5c8c7dd3 28875 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 resultobj = SWIG_Py_Void();
28879 return resultobj;
28880fail:
28881 return NULL;
28882}
28883
28884
28885SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28886 PyObject *resultobj = 0;
28887 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28888 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28889 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28890 void *argp1 = 0 ;
28891 int res1 = 0 ;
28892 void *argp2 = 0 ;
28893 int res2 = 0 ;
28894 int val3 ;
28895 int ecode3 = 0 ;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 PyObject * obj2 = 0 ;
28899 char * kwnames[] = {
28900 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28901 };
28902
28903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28905 if (!SWIG_IsOK(res1)) {
28906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28907 }
28908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28910 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28912 }
28913 if (!argp2) {
28914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28915 }
28916 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28917 if (obj2) {
28918 ecode3 = SWIG_AsVal_int(obj2, &val3);
28919 if (!SWIG_IsOK(ecode3)) {
28920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28921 }
28922 arg3 = static_cast< int >(val3);
28923 }
28924 {
5c8c7dd3 28925 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28926 if (PyErr_Occurred()) SWIG_fail;
28927 }
28928 resultobj = SWIG_Py_Void();
28929 return resultobj;
28930fail:
28931 return NULL;
28932}
28933
28934
b39fe951 28935SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28936 PyObject *resultobj = 0;
28937 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28938 wxString *arg2 = 0 ;
28939 wxDouble arg3 ;
28940 wxDouble arg4 ;
28941 void *argp1 = 0 ;
28942 int res1 = 0 ;
28943 bool temp2 = false ;
28944 double val3 ;
28945 int ecode3 = 0 ;
28946 double val4 ;
28947 int ecode4 = 0 ;
b39fe951
RD
28948 PyObject * obj0 = 0 ;
28949 PyObject * obj1 = 0 ;
28950 PyObject * obj2 = 0 ;
28951 PyObject * obj3 = 0 ;
28952 char * kwnames[] = {
28953 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28954 };
72ef6efb 28955
b39fe951
RD
28956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28958 if (!SWIG_IsOK(res1)) {
28959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28960 }
28961 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28962 {
b39fe951 28963 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28964 if (arg2 == NULL) SWIG_fail;
28965 temp2 = true;
28966 }
b39fe951 28967 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28968 if (!SWIG_IsOK(ecode3)) {
28969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28970 }
28971 arg3 = static_cast< wxDouble >(val3);
b39fe951 28972 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28973 if (!SWIG_IsOK(ecode4)) {
28974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28975 }
28976 arg4 = static_cast< wxDouble >(val4);
28977 {
72ef6efb 28978 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 resultobj = SWIG_Py_Void();
28982 {
28983 if (temp2)
28984 delete arg2;
28985 }
28986 return resultobj;
28987fail:
28988 {
28989 if (temp2)
28990 delete arg2;
28991 }
28992 return NULL;
28993}
28994
28995
b39fe951 28996SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28997 PyObject *resultobj = 0;
28998 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28999 wxString *arg2 = 0 ;
29000 wxDouble arg3 ;
29001 wxDouble arg4 ;
29002 wxDouble arg5 ;
29003 void *argp1 = 0 ;
29004 int res1 = 0 ;
29005 bool temp2 = false ;
29006 double val3 ;
29007 int ecode3 = 0 ;
29008 double val4 ;
29009 int ecode4 = 0 ;
29010 double val5 ;
29011 int ecode5 = 0 ;
b39fe951
RD
29012 PyObject * obj0 = 0 ;
29013 PyObject * obj1 = 0 ;
29014 PyObject * obj2 = 0 ;
29015 PyObject * obj3 = 0 ;
29016 PyObject * obj4 = 0 ;
29017 char * kwnames[] = {
29018 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29019 };
72ef6efb 29020
b39fe951
RD
29021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29023 if (!SWIG_IsOK(res1)) {
b39fe951 29024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29025 }
29026 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29027 {
b39fe951 29028 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29029 if (arg2 == NULL) SWIG_fail;
29030 temp2 = true;
29031 }
b39fe951 29032 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29033 if (!SWIG_IsOK(ecode3)) {
b39fe951 29034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29035 }
29036 arg3 = static_cast< wxDouble >(val3);
b39fe951 29037 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29038 if (!SWIG_IsOK(ecode4)) {
b39fe951 29039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29040 }
29041 arg4 = static_cast< wxDouble >(val4);
b39fe951 29042 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29043 if (!SWIG_IsOK(ecode5)) {
b39fe951 29044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29045 }
29046 arg5 = static_cast< wxDouble >(val5);
29047 {
72ef6efb 29048 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29049 if (PyErr_Occurred()) SWIG_fail;
29050 }
29051 resultobj = SWIG_Py_Void();
29052 {
29053 if (temp2)
29054 delete arg2;
29055 }
29056 return resultobj;
29057fail:
29058 {
29059 if (temp2)
29060 delete arg2;
29061 }
29062 return NULL;
29063}
29064
29065
be68621e 29066SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29067 PyObject *resultobj = 0;
29068 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29069 wxString *arg2 = 0 ;
29070 wxDouble *arg3 = (wxDouble *) 0 ;
29071 wxDouble *arg4 = (wxDouble *) 0 ;
29072 wxDouble *arg5 = (wxDouble *) 0 ;
29073 wxDouble *arg6 = (wxDouble *) 0 ;
29074 void *argp1 = 0 ;
29075 int res1 = 0 ;
29076 bool temp2 = false ;
29077 wxDouble temp3 ;
29078 int res3 = SWIG_TMPOBJ ;
29079 wxDouble temp4 ;
29080 int res4 = SWIG_TMPOBJ ;
29081 wxDouble temp5 ;
29082 int res5 = SWIG_TMPOBJ ;
29083 wxDouble temp6 ;
29084 int res6 = SWIG_TMPOBJ ;
29085 PyObject * obj0 = 0 ;
29086 PyObject * obj1 = 0 ;
29087 char * kwnames[] = {
29088 (char *) "self",(char *) "text", NULL
29089 };
29090
29091 arg3 = &temp3;
29092 arg4 = &temp4;
29093 arg5 = &temp5;
29094 arg6 = &temp6;
be68621e 29095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29097 if (!SWIG_IsOK(res1)) {
be68621e 29098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29099 }
29100 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29101 {
29102 arg2 = wxString_in_helper(obj1);
29103 if (arg2 == NULL) SWIG_fail;
29104 temp2 = true;
29105 }
29106 {
72ef6efb 29107 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29108 if (PyErr_Occurred()) SWIG_fail;
29109 }
29110 resultobj = SWIG_Py_Void();
29111 if (SWIG_IsTmpObj(res3)) {
29112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29113 } else {
29114 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29116 }
29117 if (SWIG_IsTmpObj(res4)) {
29118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29119 } else {
29120 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29122 }
29123 if (SWIG_IsTmpObj(res5)) {
29124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29125 } else {
29126 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29128 }
29129 if (SWIG_IsTmpObj(res6)) {
29130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29131 } else {
29132 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29134 }
29135 {
29136 if (temp2)
29137 delete arg2;
29138 }
29139 return resultobj;
29140fail:
29141 {
29142 if (temp2)
29143 delete arg2;
29144 }
29145 return NULL;
29146}
29147
29148
be68621e
RD
29149SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29150 PyObject *resultobj = 0;
29151 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29152 wxString *arg2 = 0 ;
29153 PyObject *result = 0 ;
29154 void *argp1 = 0 ;
29155 int res1 = 0 ;
29156 bool temp2 = false ;
29157 PyObject * obj0 = 0 ;
29158 PyObject * obj1 = 0 ;
29159 char * kwnames[] = {
29160 (char *) "self",(char *) "text", NULL
29161 };
29162
29163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29165 if (!SWIG_IsOK(res1)) {
29166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29167 }
29168 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29169 {
29170 arg2 = wxString_in_helper(obj1);
29171 if (arg2 == NULL) SWIG_fail;
29172 temp2 = true;
29173 }
29174 {
29175 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29176 if (PyErr_Occurred()) SWIG_fail;
29177 }
29178 resultobj = result;
29179 {
29180 if (temp2)
29181 delete arg2;
29182 }
29183 return resultobj;
29184fail:
29185 {
29186 if (temp2)
29187 delete arg2;
29188 }
29189 return NULL;
29190}
29191
29192
72ef6efb
RD
29193SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29194 PyObject *resultobj = 0;
29195 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29196 wxString *arg2 = 0 ;
b39fe951 29197 wxArrayDouble result;
72ef6efb
RD
29198 void *argp1 = 0 ;
29199 int res1 = 0 ;
29200 bool temp2 = false ;
72ef6efb
RD
29201 PyObject * obj0 = 0 ;
29202 PyObject * obj1 = 0 ;
72ef6efb 29203 char * kwnames[] = {
b39fe951 29204 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29205 };
29206
b39fe951 29207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29209 if (!SWIG_IsOK(res1)) {
b39fe951 29210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29211 }
29212 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29213 {
29214 arg2 = wxString_in_helper(obj1);
29215 if (arg2 == NULL) SWIG_fail;
29216 temp2 = true;
29217 }
72ef6efb 29218 {
b39fe951 29219 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29220 if (PyErr_Occurred()) SWIG_fail;
29221 }
b39fe951
RD
29222 {
29223 resultobj = wxArrayDouble2PyList_helper(result);
29224 }
72ef6efb
RD
29225 {
29226 if (temp2)
29227 delete arg2;
29228 }
29229 return resultobj;
29230fail:
29231 {
29232 if (temp2)
29233 delete arg2;
29234 }
29235 return NULL;
29236}
29237
29238
29239SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29240 PyObject *resultobj = 0;
29241 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29242 wxBitmap *arg2 = 0 ;
29243 wxDouble arg3 ;
29244 wxDouble arg4 ;
29245 wxDouble arg5 ;
29246 wxDouble arg6 ;
29247 void *argp1 = 0 ;
29248 int res1 = 0 ;
29249 void *argp2 = 0 ;
29250 int res2 = 0 ;
29251 double val3 ;
29252 int ecode3 = 0 ;
29253 double val4 ;
29254 int ecode4 = 0 ;
29255 double val5 ;
29256 int ecode5 = 0 ;
29257 double val6 ;
29258 int ecode6 = 0 ;
29259 PyObject * obj0 = 0 ;
29260 PyObject * obj1 = 0 ;
29261 PyObject * obj2 = 0 ;
29262 PyObject * obj3 = 0 ;
29263 PyObject * obj4 = 0 ;
29264 PyObject * obj5 = 0 ;
29265 char * kwnames[] = {
29266 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29267 };
29268
29269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29271 if (!SWIG_IsOK(res1)) {
29272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29273 }
29274 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29276 if (!SWIG_IsOK(res2)) {
29277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29278 }
29279 if (!argp2) {
29280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29281 }
29282 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29283 ecode3 = SWIG_AsVal_double(obj2, &val3);
29284 if (!SWIG_IsOK(ecode3)) {
29285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29286 }
29287 arg3 = static_cast< wxDouble >(val3);
29288 ecode4 = SWIG_AsVal_double(obj3, &val4);
29289 if (!SWIG_IsOK(ecode4)) {
29290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29291 }
29292 arg4 = static_cast< wxDouble >(val4);
29293 ecode5 = SWIG_AsVal_double(obj4, &val5);
29294 if (!SWIG_IsOK(ecode5)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29296 }
29297 arg5 = static_cast< wxDouble >(val5);
29298 ecode6 = SWIG_AsVal_double(obj5, &val6);
29299 if (!SWIG_IsOK(ecode6)) {
29300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29301 }
29302 arg6 = static_cast< wxDouble >(val6);
29303 {
72ef6efb 29304 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29305 if (PyErr_Occurred()) SWIG_fail;
29306 }
29307 resultobj = SWIG_Py_Void();
29308 return resultobj;
29309fail:
29310 return NULL;
29311}
29312
29313
29314SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29315 PyObject *resultobj = 0;
29316 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29317 wxIcon *arg2 = 0 ;
29318 wxDouble arg3 ;
29319 wxDouble arg4 ;
29320 wxDouble arg5 ;
29321 wxDouble arg6 ;
29322 void *argp1 = 0 ;
29323 int res1 = 0 ;
29324 void *argp2 = 0 ;
29325 int res2 = 0 ;
29326 double val3 ;
29327 int ecode3 = 0 ;
29328 double val4 ;
29329 int ecode4 = 0 ;
29330 double val5 ;
29331 int ecode5 = 0 ;
70d7cb34
RD
29332 double val6 ;
29333 int ecode6 = 0 ;
29334 PyObject * obj0 = 0 ;
29335 PyObject * obj1 = 0 ;
29336 PyObject * obj2 = 0 ;
29337 PyObject * obj3 = 0 ;
29338 PyObject * obj4 = 0 ;
29339 PyObject * obj5 = 0 ;
29340 char * kwnames[] = {
29341 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29342 };
29343
29344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29346 if (!SWIG_IsOK(res1)) {
29347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29348 }
29349 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29351 if (!SWIG_IsOK(res2)) {
29352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29353 }
29354 if (!argp2) {
29355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29356 }
29357 arg2 = reinterpret_cast< wxIcon * >(argp2);
29358 ecode3 = SWIG_AsVal_double(obj2, &val3);
29359 if (!SWIG_IsOK(ecode3)) {
29360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29361 }
29362 arg3 = static_cast< wxDouble >(val3);
29363 ecode4 = SWIG_AsVal_double(obj3, &val4);
29364 if (!SWIG_IsOK(ecode4)) {
29365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29366 }
29367 arg4 = static_cast< wxDouble >(val4);
29368 ecode5 = SWIG_AsVal_double(obj4, &val5);
29369 if (!SWIG_IsOK(ecode5)) {
29370 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29371 }
29372 arg5 = static_cast< wxDouble >(val5);
29373 ecode6 = SWIG_AsVal_double(obj5, &val6);
29374 if (!SWIG_IsOK(ecode6)) {
29375 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29376 }
29377 arg6 = static_cast< wxDouble >(val6);
29378 {
29379 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29380 if (PyErr_Occurred()) SWIG_fail;
29381 }
29382 resultobj = SWIG_Py_Void();
29383 return resultobj;
29384fail:
29385 return NULL;
29386}
29387
29388
29389SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj = 0;
29391 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29392 wxDouble arg2 ;
29393 wxDouble arg3 ;
29394 wxDouble arg4 ;
29395 wxDouble arg5 ;
29396 void *argp1 = 0 ;
29397 int res1 = 0 ;
29398 double val2 ;
29399 int ecode2 = 0 ;
29400 double val3 ;
29401 int ecode3 = 0 ;
29402 double val4 ;
29403 int ecode4 = 0 ;
29404 double val5 ;
29405 int ecode5 = 0 ;
29406 PyObject * obj0 = 0 ;
29407 PyObject * obj1 = 0 ;
29408 PyObject * obj2 = 0 ;
29409 PyObject * obj3 = 0 ;
29410 PyObject * obj4 = 0 ;
29411 char * kwnames[] = {
29412 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29413 };
29414
29415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29417 if (!SWIG_IsOK(res1)) {
29418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29419 }
29420 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29421 ecode2 = SWIG_AsVal_double(obj1, &val2);
29422 if (!SWIG_IsOK(ecode2)) {
29423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29424 }
29425 arg2 = static_cast< wxDouble >(val2);
29426 ecode3 = SWIG_AsVal_double(obj2, &val3);
29427 if (!SWIG_IsOK(ecode3)) {
29428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29429 }
29430 arg3 = static_cast< wxDouble >(val3);
29431 ecode4 = SWIG_AsVal_double(obj3, &val4);
29432 if (!SWIG_IsOK(ecode4)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29434 }
29435 arg4 = static_cast< wxDouble >(val4);
29436 ecode5 = SWIG_AsVal_double(obj4, &val5);
29437 if (!SWIG_IsOK(ecode5)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29439 }
29440 arg5 = static_cast< wxDouble >(val5);
29441 {
29442 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 resultobj = SWIG_Py_Void();
29446 return resultobj;
29447fail:
29448 return NULL;
29449}
29450
29451
29452SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29453 PyObject *resultobj = 0;
29454 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29455 size_t arg2 ;
29456 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 PyObject * obj0 = 0 ;
29460 PyObject * obj1 = 0 ;
29461 char * kwnames[] = {
29462 (char *) "self",(char *) "points", NULL
29463 };
29464
29465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29467 if (!SWIG_IsOK(res1)) {
29468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29469 }
29470 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29471 {
29472 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29473 if (arg3 == NULL) SWIG_fail;
29474 }
29475 {
29476 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29477 if (PyErr_Occurred()) SWIG_fail;
29478 }
29479 resultobj = SWIG_Py_Void();
29480 {
29481 if (arg3) delete [] arg3;
29482 }
29483 return resultobj;
29484fail:
29485 {
29486 if (arg3) delete [] arg3;
29487 }
29488 return NULL;
29489}
29490
29491
29492SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29493 PyObject *resultobj = 0;
29494 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29495 PyObject *arg2 = (PyObject *) 0 ;
29496 PyObject *arg3 = (PyObject *) 0 ;
29497 void *argp1 = 0 ;
29498 int res1 = 0 ;
29499 PyObject * obj0 = 0 ;
29500 PyObject * obj1 = 0 ;
29501 PyObject * obj2 = 0 ;
29502 char * kwnames[] = {
29503 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29504 };
29505
29506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29508 if (!SWIG_IsOK(res1)) {
29509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29510 }
29511 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29512 arg2 = obj1;
29513 arg3 = obj2;
29514 {
29515 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 resultobj = SWIG_Py_Void();
29519 return resultobj;
29520fail:
29521 return NULL;
29522}
29523
29524
29525SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29526 PyObject *resultobj = 0;
29527 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29528 size_t arg2 ;
29529 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29530 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29531 void *argp1 = 0 ;
29532 int res1 = 0 ;
29533 int val4 ;
29534 int ecode4 = 0 ;
29535 PyObject * obj0 = 0 ;
29536 PyObject * obj1 = 0 ;
29537 PyObject * obj2 = 0 ;
29538 char * kwnames[] = {
29539 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29540 };
29541
29542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29544 if (!SWIG_IsOK(res1)) {
29545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29546 }
29547 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29548 {
29549 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29550 if (arg3 == NULL) SWIG_fail;
29551 }
29552 if (obj2) {
29553 ecode4 = SWIG_AsVal_int(obj2, &val4);
29554 if (!SWIG_IsOK(ecode4)) {
29555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29556 }
29557 arg4 = static_cast< int >(val4);
29558 }
29559 {
29560 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_Py_Void();
29564 {
29565 if (arg3) delete [] arg3;
29566 }
29567 return resultobj;
29568fail:
29569 {
29570 if (arg3) delete [] arg3;
29571 }
29572 return NULL;
29573}
29574
29575
29576SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29579 wxDouble arg2 ;
29580 wxDouble arg3 ;
29581 wxDouble arg4 ;
29582 wxDouble arg5 ;
29583 void *argp1 = 0 ;
29584 int res1 = 0 ;
29585 double val2 ;
29586 int ecode2 = 0 ;
29587 double val3 ;
29588 int ecode3 = 0 ;
29589 double val4 ;
29590 int ecode4 = 0 ;
29591 double val5 ;
29592 int ecode5 = 0 ;
29593 PyObject * obj0 = 0 ;
29594 PyObject * obj1 = 0 ;
29595 PyObject * obj2 = 0 ;
29596 PyObject * obj3 = 0 ;
29597 PyObject * obj4 = 0 ;
29598 char * kwnames[] = {
29599 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29600 };
29601
29602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29604 if (!SWIG_IsOK(res1)) {
29605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29606 }
29607 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29608 ecode2 = SWIG_AsVal_double(obj1, &val2);
29609 if (!SWIG_IsOK(ecode2)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29611 }
29612 arg2 = static_cast< wxDouble >(val2);
29613 ecode3 = SWIG_AsVal_double(obj2, &val3);
29614 if (!SWIG_IsOK(ecode3)) {
29615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29616 }
29617 arg3 = static_cast< wxDouble >(val3);
29618 ecode4 = SWIG_AsVal_double(obj3, &val4);
29619 if (!SWIG_IsOK(ecode4)) {
29620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29621 }
29622 arg4 = static_cast< wxDouble >(val4);
29623 ecode5 = SWIG_AsVal_double(obj4, &val5);
29624 if (!SWIG_IsOK(ecode5)) {
29625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29626 }
29627 arg5 = static_cast< wxDouble >(val5);
29628 {
29629 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29630 if (PyErr_Occurred()) SWIG_fail;
29631 }
29632 resultobj = SWIG_Py_Void();
29633 return resultobj;
29634fail:
29635 return NULL;
29636}
29637
29638
29639SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29640 PyObject *resultobj = 0;
29641 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29642 wxDouble arg2 ;
29643 wxDouble arg3 ;
29644 wxDouble arg4 ;
29645 wxDouble arg5 ;
29646 void *argp1 = 0 ;
29647 int res1 = 0 ;
29648 double val2 ;
29649 int ecode2 = 0 ;
29650 double val3 ;
29651 int ecode3 = 0 ;
29652 double val4 ;
29653 int ecode4 = 0 ;
29654 double val5 ;
29655 int ecode5 = 0 ;
72ef6efb
RD
29656 PyObject * obj0 = 0 ;
29657 PyObject * obj1 = 0 ;
29658 PyObject * obj2 = 0 ;
29659 PyObject * obj3 = 0 ;
29660 PyObject * obj4 = 0 ;
72ef6efb 29661 char * kwnames[] = {
70d7cb34 29662 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29663 };
29664
70d7cb34 29665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29667 if (!SWIG_IsOK(res1)) {
70d7cb34 29668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29669 }
29670 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29671 ecode2 = SWIG_AsVal_double(obj1, &val2);
29672 if (!SWIG_IsOK(ecode2)) {
29673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29674 }
29675 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29676 ecode3 = SWIG_AsVal_double(obj2, &val3);
29677 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29679 }
29680 arg3 = static_cast< wxDouble >(val3);
29681 ecode4 = SWIG_AsVal_double(obj3, &val4);
29682 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29684 }
29685 arg4 = static_cast< wxDouble >(val4);
29686 ecode5 = SWIG_AsVal_double(obj4, &val5);
29687 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29689 }
29690 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29691 {
70d7cb34 29692 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29693 if (PyErr_Occurred()) SWIG_fail;
29694 }
29695 resultobj = SWIG_Py_Void();
29696 return resultobj;
29697fail:
29698 return NULL;
29699}
29700
29701
70d7cb34 29702SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29703 PyObject *resultobj = 0;
29704 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29705 wxDouble arg2 ;
29706 wxDouble arg3 ;
29707 wxDouble arg4 ;
29708 wxDouble arg5 ;
70d7cb34 29709 wxDouble arg6 ;
72ef6efb
RD
29710 void *argp1 = 0 ;
29711 int res1 = 0 ;
29712 double val2 ;
29713 int ecode2 = 0 ;
29714 double val3 ;
29715 int ecode3 = 0 ;
29716 double val4 ;
29717 int ecode4 = 0 ;
29718 double val5 ;
29719 int ecode5 = 0 ;
70d7cb34
RD
29720 double val6 ;
29721 int ecode6 = 0 ;
72ef6efb
RD
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 PyObject * obj2 = 0 ;
29725 PyObject * obj3 = 0 ;
29726 PyObject * obj4 = 0 ;
70d7cb34 29727 PyObject * obj5 = 0 ;
72ef6efb 29728 char * kwnames[] = {
70d7cb34 29729 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29730 };
29731
70d7cb34 29732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29734 if (!SWIG_IsOK(res1)) {
70d7cb34 29735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29736 }
29737 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29738 ecode2 = SWIG_AsVal_double(obj1, &val2);
29739 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29741 }
29742 arg2 = static_cast< wxDouble >(val2);
29743 ecode3 = SWIG_AsVal_double(obj2, &val3);
29744 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29746 }
29747 arg3 = static_cast< wxDouble >(val3);
29748 ecode4 = SWIG_AsVal_double(obj3, &val4);
29749 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29751 }
29752 arg4 = static_cast< wxDouble >(val4);
29753 ecode5 = SWIG_AsVal_double(obj4, &val5);
29754 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29756 }
29757 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29758 ecode6 = SWIG_AsVal_double(obj5, &val6);
29759 if (!SWIG_IsOK(ecode6)) {
29760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29761 }
29762 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29763 {
70d7cb34 29764 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29765 if (PyErr_Occurred()) SWIG_fail;
29766 }
29767 resultobj = SWIG_Py_Void();
29768 return resultobj;
29769fail:
29770 return NULL;
29771}
29772
29773
70d7cb34 29774SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29775 PyObject *resultobj = 0;
29776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29777 bool result;
72ef6efb
RD
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
70d7cb34 29780 PyObject *swig_obj[1] ;
72ef6efb 29781
70d7cb34
RD
29782 if (!args) SWIG_fail;
29783 swig_obj[0] = args;
29784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29785 if (!SWIG_IsOK(res1)) {
70d7cb34 29786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29787 }
29788 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29789 {
70d7cb34
RD
29790 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29791 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29792 }
72ef6efb 29793 {
70d7cb34
RD
29794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29795 }
29796 return resultobj;
29797fail:
29798 return NULL;
29799}
29800
29801
29802SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29803 PyObject *obj;
29804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29805 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29806 return SWIG_Py_Void();
29807}
29808
29809SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29810 PyObject *resultobj = 0;
29811 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29812 void *argp1 = 0 ;
29813 int res1 = 0 ;
29814 PyObject *swig_obj[1] ;
29815
29816 if (!args) SWIG_fail;
29817 swig_obj[0] = args;
29818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29819 if (!SWIG_IsOK(res1)) {
29820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29821 }
29822 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29823 {
29824 delete arg1;
29825
72ef6efb
RD
29826 if (PyErr_Occurred()) SWIG_fail;
29827 }
29828 resultobj = SWIG_Py_Void();
70d7cb34
RD
29829 return resultobj;
29830fail:
29831 return NULL;
29832}
29833
29834
29835SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29836 PyObject *resultobj = 0;
29837 wxGraphicsRenderer *result = 0 ;
29838
29839 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29840 {
70d7cb34
RD
29841 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29842 if (PyErr_Occurred()) SWIG_fail;
29843 }
29844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29845 return resultobj;
29846fail:
29847 return NULL;
29848}
29849
29850
29851SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29852 PyObject *resultobj = 0;
29853 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29854 wxWindowDC *arg2 = 0 ;
29855 wxGraphicsContext *result = 0 ;
29856 void *argp1 = 0 ;
29857 int res1 = 0 ;
29858 void *argp2 = 0 ;
29859 int res2 = 0 ;
29860
29861 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29863 if (!SWIG_IsOK(res1)) {
29864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29865 }
29866 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29867 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29868 if (!SWIG_IsOK(res2)) {
29869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29870 }
29871 if (!argp2) {
29872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29873 }
29874 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29875 {
29876 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29877 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29878 }
70d7cb34 29879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29880 return resultobj;
29881fail:
70d7cb34
RD
29882 return NULL;
29883}
29884
29885
29886SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29887 PyObject *resultobj = 0;
29888 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29889 wxWindow *arg2 = (wxWindow *) 0 ;
29890 wxGraphicsContext *result = 0 ;
29891 void *argp1 = 0 ;
29892 int res1 = 0 ;
29893 void *argp2 = 0 ;
29894 int res2 = 0 ;
29895
29896 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29898 if (!SWIG_IsOK(res1)) {
29899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29900 }
29901 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29902 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29903 if (!SWIG_IsOK(res2)) {
29904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29905 }
29906 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29907 {
70d7cb34
RD
29908 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29909 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29910 }
70d7cb34
RD
29911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29912 return resultobj;
29913fail:
72ef6efb
RD
29914 return NULL;
29915}
29916
29917
70d7cb34
RD
29918SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29919 int argc;
29920 PyObject *argv[3];
29921
29922 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29923 --argc;
29924 if (argc == 2) {
29925 int _v = 0;
29926 {
29927 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29928 _v = SWIG_CheckState(res);
29929 }
29930 if (!_v) goto check_1;
29931 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29932 }
29933check_1:
29934
29935 if (argc == 2) {
29936 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29937 }
29938
29939fail:
29940 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29941 return NULL;
29942}
29943
29944
29945SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29946 PyObject *resultobj = 0;
70d7cb34
RD
29947 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29948 void *arg2 = (void *) 0 ;
29949 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
70d7cb34 29952 int res2 ;
b39fe951
RD
29953 PyObject * obj0 = 0 ;
29954 PyObject * obj1 = 0 ;
b39fe951 29955 char * kwnames[] = {
70d7cb34 29956 (char *) "self",(char *) "context", NULL
b39fe951 29957 };
72ef6efb 29958
70d7cb34
RD
29959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29961 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29963 }
29964 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29965 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29966 if (!SWIG_IsOK(res2)) {
29967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29968 }
72ef6efb 29969 {
70d7cb34 29970 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29971 if (PyErr_Occurred()) SWIG_fail;
29972 }
70d7cb34 29973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29974 return resultobj;
29975fail:
29976 return NULL;
29977}
29978
29979
70d7cb34 29980SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29981 PyObject *resultobj = 0;
70d7cb34
RD
29982 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29983 void *arg2 = (void *) 0 ;
29984 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29985 void *argp1 = 0 ;
29986 int res1 = 0 ;
70d7cb34 29987 int res2 ;
72ef6efb
RD
29988 PyObject * obj0 = 0 ;
29989 PyObject * obj1 = 0 ;
72ef6efb 29990 char * kwnames[] = {
70d7cb34 29991 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29992 };
29993
70d7cb34
RD
29994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29996 if (!SWIG_IsOK(res1)) {
70d7cb34 29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29998 }
70d7cb34
RD
29999 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30000 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30001 if (!SWIG_IsOK(res2)) {
30002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30003 }
30004 {
70d7cb34 30005 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30006 if (PyErr_Occurred()) SWIG_fail;
30007 }
70d7cb34 30008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30009 return resultobj;
30010fail:
70d7cb34
RD
30011 return NULL;
30012}
30013
30014
30015SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30016 PyObject *resultobj = 0;
30017 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30018 wxGraphicsPath result;
70d7cb34
RD
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 PyObject *swig_obj[1] ;
30022
30023 if (!args) SWIG_fail;
30024 swig_obj[0] = args;
30025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30026 if (!SWIG_IsOK(res1)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30028 }
30029 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30030 {
5c8c7dd3 30031 result = (arg1)->CreatePath();
70d7cb34 30032 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30033 }
5c8c7dd3 30034 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30035 return resultobj;
30036fail:
72ef6efb
RD
30037 return NULL;
30038}
30039
30040
70d7cb34 30041SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30042 PyObject *resultobj = 0;
70d7cb34
RD
30043 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30044 wxDouble arg2 = (wxDouble) 1.0 ;
30045 wxDouble arg3 = (wxDouble) 0.0 ;
30046 wxDouble arg4 = (wxDouble) 0.0 ;
30047 wxDouble arg5 = (wxDouble) 1.0 ;
30048 wxDouble arg6 = (wxDouble) 0.0 ;
30049 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30050 wxGraphicsMatrix result;
72ef6efb
RD
30051 void *argp1 = 0 ;
30052 int res1 = 0 ;
30053 double val2 ;
30054 int ecode2 = 0 ;
30055 double val3 ;
30056 int ecode3 = 0 ;
30057 double val4 ;
30058 int ecode4 = 0 ;
30059 double val5 ;
30060 int ecode5 = 0 ;
70d7cb34
RD
30061 double val6 ;
30062 int ecode6 = 0 ;
30063 double val7 ;
30064 int ecode7 = 0 ;
72ef6efb
RD
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 PyObject * obj2 = 0 ;
30068 PyObject * obj3 = 0 ;
30069 PyObject * obj4 = 0 ;
70d7cb34
RD
30070 PyObject * obj5 = 0 ;
30071 PyObject * obj6 = 0 ;
72ef6efb 30072 char * kwnames[] = {
70d7cb34 30073 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30074 };
30075
70d7cb34
RD
30076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30078 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30080 }
30081 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30082 if (obj1) {
30083 ecode2 = SWIG_AsVal_double(obj1, &val2);
30084 if (!SWIG_IsOK(ecode2)) {
30085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30086 }
30087 arg2 = static_cast< wxDouble >(val2);
30088 }
30089 if (obj2) {
30090 ecode3 = SWIG_AsVal_double(obj2, &val3);
30091 if (!SWIG_IsOK(ecode3)) {
30092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30093 }
30094 arg3 = static_cast< wxDouble >(val3);
30095 }
30096 if (obj3) {
30097 ecode4 = SWIG_AsVal_double(obj3, &val4);
30098 if (!SWIG_IsOK(ecode4)) {
30099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30100 }
30101 arg4 = static_cast< wxDouble >(val4);
30102 }
30103 if (obj4) {
30104 ecode5 = SWIG_AsVal_double(obj4, &val5);
30105 if (!SWIG_IsOK(ecode5)) {
30106 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30107 }
30108 arg5 = static_cast< wxDouble >(val5);
30109 }
30110 if (obj5) {
30111 ecode6 = SWIG_AsVal_double(obj5, &val6);
30112 if (!SWIG_IsOK(ecode6)) {
30113 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30114 }
30115 arg6 = static_cast< wxDouble >(val6);
30116 }
30117 if (obj6) {
30118 ecode7 = SWIG_AsVal_double(obj6, &val7);
30119 if (!SWIG_IsOK(ecode7)) {
30120 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30121 }
30122 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30123 }
72ef6efb 30124 {
5c8c7dd3 30125 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30126 if (PyErr_Occurred()) SWIG_fail;
30127 }
5c8c7dd3 30128 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30129 return resultobj;
30130fail:
30131 return NULL;
30132}
30133
30134
70d7cb34 30135SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30136 PyObject *resultobj = 0;
70d7cb34
RD
30137 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30138 wxPen *arg2 = 0 ;
30139 wxGraphicsPen result;
30140 void *argp1 = 0 ;
30141 int res1 = 0 ;
30142 void *argp2 = 0 ;
30143 int res2 = 0 ;
30144 PyObject * obj0 = 0 ;
30145 PyObject * obj1 = 0 ;
30146 char * kwnames[] = {
30147 (char *) "self",(char *) "pen", NULL
30148 };
30149
30150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30152 if (!SWIG_IsOK(res1)) {
30153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30154 }
30155 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30157 if (!SWIG_IsOK(res2)) {
30158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30159 }
30160 if (!argp2) {
30161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30162 }
30163 arg2 = reinterpret_cast< wxPen * >(argp2);
30164 {
30165 result = (arg1)->CreatePen((wxPen const &)*arg2);
30166 if (PyErr_Occurred()) SWIG_fail;
30167 }
30168 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30169 return resultobj;
30170fail:
30171 return NULL;
30172}
30173
30174
30175SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30176 PyObject *resultobj = 0;
30177 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30178 wxBrush *arg2 = 0 ;
30179 wxGraphicsBrush result;
30180 void *argp1 = 0 ;
30181 int res1 = 0 ;
30182 void *argp2 = 0 ;
30183 int res2 = 0 ;
30184 PyObject * obj0 = 0 ;
30185 PyObject * obj1 = 0 ;
30186 char * kwnames[] = {
30187 (char *) "self",(char *) "brush", NULL
30188 };
30189
30190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30192 if (!SWIG_IsOK(res1)) {
30193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30194 }
30195 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30197 if (!SWIG_IsOK(res2)) {
30198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30199 }
30200 if (!argp2) {
30201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30202 }
30203 arg2 = reinterpret_cast< wxBrush * >(argp2);
30204 {
30205 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30206 if (PyErr_Occurred()) SWIG_fail;
30207 }
30208 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30209 return resultobj;
30210fail:
30211 return NULL;
30212}
30213
30214
30215SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30218 wxDouble arg2 ;
30219 wxDouble arg3 ;
30220 wxDouble arg4 ;
30221 wxDouble arg5 ;
70d7cb34
RD
30222 wxColour *arg6 = 0 ;
30223 wxColour *arg7 = 0 ;
30224 wxGraphicsBrush result;
72ef6efb
RD
30225 void *argp1 = 0 ;
30226 int res1 = 0 ;
30227 double val2 ;
30228 int ecode2 = 0 ;
30229 double val3 ;
30230 int ecode3 = 0 ;
30231 double val4 ;
30232 int ecode4 = 0 ;
30233 double val5 ;
30234 int ecode5 = 0 ;
70d7cb34
RD
30235 wxColour temp6 ;
30236 wxColour temp7 ;
72ef6efb
RD
30237 PyObject * obj0 = 0 ;
30238 PyObject * obj1 = 0 ;
30239 PyObject * obj2 = 0 ;
30240 PyObject * obj3 = 0 ;
30241 PyObject * obj4 = 0 ;
70d7cb34
RD
30242 PyObject * obj5 = 0 ;
30243 PyObject * obj6 = 0 ;
72ef6efb 30244 char * kwnames[] = {
70d7cb34 30245 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30246 };
30247
70d7cb34
RD
30248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30250 if (!SWIG_IsOK(res1)) {
70d7cb34 30251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30252 }
70d7cb34 30253 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30254 ecode2 = SWIG_AsVal_double(obj1, &val2);
30255 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30257 }
30258 arg2 = static_cast< wxDouble >(val2);
30259 ecode3 = SWIG_AsVal_double(obj2, &val3);
30260 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30262 }
30263 arg3 = static_cast< wxDouble >(val3);
30264 ecode4 = SWIG_AsVal_double(obj3, &val4);
30265 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30267 }
30268 arg4 = static_cast< wxDouble >(val4);
30269 ecode5 = SWIG_AsVal_double(obj4, &val5);
30270 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30272 }
30273 arg5 = static_cast< wxDouble >(val5);
30274 {
70d7cb34
RD
30275 arg6 = &temp6;
30276 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30277 }
30278 {
30279 arg7 = &temp7;
30280 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30281 }
30282 {
30283 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
70d7cb34 30286 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30287 return resultobj;
30288fail:
30289 return NULL;
30290}
30291
30292
70d7cb34 30293SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30294 PyObject *resultobj = 0;
70d7cb34 30295 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30296 wxDouble arg2 ;
30297 wxDouble arg3 ;
30298 wxDouble arg4 ;
30299 wxDouble arg5 ;
30300 wxDouble arg6 ;
70d7cb34
RD
30301 wxColour *arg7 = 0 ;
30302 wxColour *arg8 = 0 ;
30303 wxGraphicsBrush result;
72ef6efb
RD
30304 void *argp1 = 0 ;
30305 int res1 = 0 ;
30306 double val2 ;
30307 int ecode2 = 0 ;
30308 double val3 ;
30309 int ecode3 = 0 ;
30310 double val4 ;
30311 int ecode4 = 0 ;
30312 double val5 ;
30313 int ecode5 = 0 ;
30314 double val6 ;
30315 int ecode6 = 0 ;
70d7cb34
RD
30316 wxColour temp7 ;
30317 wxColour temp8 ;
72ef6efb
RD
30318 PyObject * obj0 = 0 ;
30319 PyObject * obj1 = 0 ;
30320 PyObject * obj2 = 0 ;
30321 PyObject * obj3 = 0 ;
30322 PyObject * obj4 = 0 ;
30323 PyObject * obj5 = 0 ;
70d7cb34
RD
30324 PyObject * obj6 = 0 ;
30325 PyObject * obj7 = 0 ;
72ef6efb 30326 char * kwnames[] = {
70d7cb34 30327 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30328 };
30329
70d7cb34
RD
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30332 if (!SWIG_IsOK(res1)) {
70d7cb34 30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30334 }
70d7cb34 30335 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30336 ecode2 = SWIG_AsVal_double(obj1, &val2);
30337 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30339 }
30340 arg2 = static_cast< wxDouble >(val2);
30341 ecode3 = SWIG_AsVal_double(obj2, &val3);
30342 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30344 }
30345 arg3 = static_cast< wxDouble >(val3);
30346 ecode4 = SWIG_AsVal_double(obj3, &val4);
30347 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30349 }
30350 arg4 = static_cast< wxDouble >(val4);
30351 ecode5 = SWIG_AsVal_double(obj4, &val5);
30352 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30353 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30354 }
30355 arg5 = static_cast< wxDouble >(val5);
30356 ecode6 = SWIG_AsVal_double(obj5, &val6);
30357 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30358 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30359 }
30360 arg6 = static_cast< wxDouble >(val6);
30361 {
70d7cb34
RD
30362 arg7 = &temp7;
30363 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30364 }
30365 {
30366 arg8 = &temp8;
30367 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30368 }
30369 {
30370 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
70d7cb34 30373 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30374 return resultobj;
30375fail:
30376 return NULL;
30377}
30378
30379
70d7cb34
RD
30380SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30381 PyObject *resultobj = 0;
30382 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30383 wxFont *arg2 = 0 ;
30384 wxColour const &arg3_defvalue = *wxBLACK ;
30385 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30386 wxGraphicsFont result;
30387 void *argp1 = 0 ;
30388 int res1 = 0 ;
30389 void *argp2 = 0 ;
30390 int res2 = 0 ;
30391 wxColour temp3 ;
30392 PyObject * obj0 = 0 ;
30393 PyObject * obj1 = 0 ;
30394 PyObject * obj2 = 0 ;
30395 char * kwnames[] = {
30396 (char *) "self",(char *) "font",(char *) "col", NULL
30397 };
30398
30399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30401 if (!SWIG_IsOK(res1)) {
30402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30403 }
30404 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30406 if (!SWIG_IsOK(res2)) {
30407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30408 }
30409 if (!argp2) {
30410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30411 }
30412 arg2 = reinterpret_cast< wxFont * >(argp2);
30413 if (obj2) {
30414 {
30415 arg3 = &temp3;
30416 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30417 }
30418 }
30419 {
30420 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30421 if (PyErr_Occurred()) SWIG_fail;
30422 }
30423 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30424 return resultobj;
30425fail:
30426 return NULL;
30427}
30428
30429
30430SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30431 PyObject *obj;
30432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30433 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30434 return SWIG_Py_Void();
30435}
30436
30437SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30438 PyObject *resultobj = 0;
30439 wxWindowDC *arg1 = 0 ;
30440 wxGCDC *result = 0 ;
30441 void *argp1 = 0 ;
30442 int res1 = 0 ;
30443 PyObject * obj0 = 0 ;
30444 char * kwnames[] = {
30445 (char *) "dc", NULL
30446 };
30447
30448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30449 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30450 if (!SWIG_IsOK(res1)) {
30451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30452 }
30453 if (!argp1) {
30454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30455 }
30456 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30457 {
30458 if (!wxPyCheckForApp()) SWIG_fail;
30459 PyThreadState* __tstate = wxPyBeginAllowThreads();
30460 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30465 return resultobj;
30466fail:
30467 return NULL;
30468}
30469
30470
30471SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30472 PyObject *resultobj = 0;
30473 wxGCDC *arg1 = (wxGCDC *) 0 ;
30474 void *argp1 = 0 ;
30475 int res1 = 0 ;
30476 PyObject *swig_obj[1] ;
30477
30478 if (!args) SWIG_fail;
30479 swig_obj[0] = args;
30480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30481 if (!SWIG_IsOK(res1)) {
30482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30483 }
30484 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30485 {
72ef6efb
RD
30486 delete arg1;
30487
72ef6efb
RD
30488 if (PyErr_Occurred()) SWIG_fail;
30489 }
30490 resultobj = SWIG_Py_Void();
30491 return resultobj;
30492fail:
30493 return NULL;
30494}
30495
30496
0a27f394 30497SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30498 PyObject *resultobj = 0;
30499 wxGCDC *arg1 = (wxGCDC *) 0 ;
30500 wxGraphicsContext *result = 0 ;
30501 void *argp1 = 0 ;
30502 int res1 = 0 ;
30503 PyObject *swig_obj[1] ;
30504
30505 if (!args) SWIG_fail;
30506 swig_obj[0] = args;
30507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30508 if (!SWIG_IsOK(res1)) {
0a27f394 30509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30510 }
30511 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30512 {
0a27f394 30513 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30514 if (PyErr_Occurred()) SWIG_fail;
30515 }
30516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30517 return resultobj;
30518fail:
30519 return NULL;
30520}
30521
30522
0a27f394
RD
30523SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30524 PyObject *resultobj = 0;
30525 wxGCDC *arg1 = (wxGCDC *) 0 ;
30526 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30527 void *argp1 = 0 ;
30528 int res1 = 0 ;
30529 void *argp2 = 0 ;
30530 int res2 = 0 ;
30531 PyObject * obj0 = 0 ;
30532 PyObject * obj1 = 0 ;
30533 char * kwnames[] = {
30534 (char *) "self",(char *) "ctx", NULL
30535 };
30536
30537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30539 if (!SWIG_IsOK(res1)) {
30540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30541 }
30542 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30544 if (!SWIG_IsOK(res2)) {
30545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30546 }
30547 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30548 {
30549 (arg1)->SetGraphicsContext(arg2);
30550 if (PyErr_Occurred()) SWIG_fail;
30551 }
30552 resultobj = SWIG_Py_Void();
30553 return resultobj;
30554fail:
30555 return NULL;
30556}
30557
30558
72ef6efb
RD
30559SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30560 PyObject *obj;
30561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30562 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30563 return SWIG_Py_Void();
30564}
30565
30566SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30567 return SWIG_Python_InitShadowInstance(args);
30568}
30569
b39fe951
RD
30570SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30571 PyObject *resultobj = 0;
30572 wxOverlay *result = 0 ;
30573
30574 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30575 {
30576 PyThreadState* __tstate = wxPyBeginAllowThreads();
30577 result = (wxOverlay *)new wxOverlay();
30578 wxPyEndAllowThreads(__tstate);
30579 if (PyErr_Occurred()) SWIG_fail;
30580 }
30581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30582 return resultobj;
30583fail:
30584 return NULL;
30585}
30586
30587
30588SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30589 PyObject *resultobj = 0;
30590 wxOverlay *arg1 = (wxOverlay *) 0 ;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 PyObject *swig_obj[1] ;
30594
30595 if (!args) SWIG_fail;
30596 swig_obj[0] = args;
30597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30598 if (!SWIG_IsOK(res1)) {
30599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30600 }
30601 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30602 {
30603 PyThreadState* __tstate = wxPyBeginAllowThreads();
30604 delete arg1;
30605
30606 wxPyEndAllowThreads(__tstate);
30607 if (PyErr_Occurred()) SWIG_fail;
30608 }
30609 resultobj = SWIG_Py_Void();
30610 return resultobj;
30611fail:
30612 return NULL;
30613}
30614
30615
30616SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30617 PyObject *resultobj = 0;
30618 wxOverlay *arg1 = (wxOverlay *) 0 ;
30619 void *argp1 = 0 ;
30620 int res1 = 0 ;
30621 PyObject *swig_obj[1] ;
30622
30623 if (!args) SWIG_fail;
30624 swig_obj[0] = args;
30625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30626 if (!SWIG_IsOK(res1)) {
30627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30628 }
30629 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30630 {
30631 PyThreadState* __tstate = wxPyBeginAllowThreads();
30632 (arg1)->Reset();
30633 wxPyEndAllowThreads(__tstate);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 resultobj = SWIG_Py_Void();
30637 return resultobj;
30638fail:
30639 return NULL;
30640}
30641
30642
30643SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30644 PyObject *obj;
30645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30646 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30647 return SWIG_Py_Void();
30648}
30649
30650SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30651 return SWIG_Python_InitShadowInstance(args);
30652}
30653
30654SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30655 PyObject *resultobj = 0;
30656 wxOverlay *arg1 = 0 ;
30657 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30658 int arg3 ;
30659 int arg4 ;
30660 int arg5 ;
30661 int arg6 ;
30662 wxDCOverlay *result = 0 ;
30663 void *argp1 = 0 ;
30664 int res1 = 0 ;
30665 void *argp2 = 0 ;
30666 int res2 = 0 ;
30667 int val3 ;
30668 int ecode3 = 0 ;
30669 int val4 ;
30670 int ecode4 = 0 ;
30671 int val5 ;
30672 int ecode5 = 0 ;
30673 int val6 ;
30674 int ecode6 = 0 ;
30675
30676 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30678 if (!SWIG_IsOK(res1)) {
30679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30680 }
30681 if (!argp1) {
30682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30683 }
30684 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30685 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30686 if (!SWIG_IsOK(res2)) {
30687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30688 }
30689 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30690 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30691 if (!SWIG_IsOK(ecode3)) {
30692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30693 }
30694 arg3 = static_cast< int >(val3);
30695 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30696 if (!SWIG_IsOK(ecode4)) {
30697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30698 }
30699 arg4 = static_cast< int >(val4);
30700 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30701 if (!SWIG_IsOK(ecode5)) {
30702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30703 }
30704 arg5 = static_cast< int >(val5);
30705 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30706 if (!SWIG_IsOK(ecode6)) {
30707 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30708 }
30709 arg6 = static_cast< int >(val6);
30710 {
30711 PyThreadState* __tstate = wxPyBeginAllowThreads();
30712 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30713 wxPyEndAllowThreads(__tstate);
30714 if (PyErr_Occurred()) SWIG_fail;
30715 }
30716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30717 return resultobj;
30718fail:
30719 return NULL;
30720}
30721
30722
30723SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30724 PyObject *resultobj = 0;
30725 wxOverlay *arg1 = 0 ;
30726 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30727 wxDCOverlay *result = 0 ;
30728 void *argp1 = 0 ;
30729 int res1 = 0 ;
30730 void *argp2 = 0 ;
30731 int res2 = 0 ;
30732
30733 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30735 if (!SWIG_IsOK(res1)) {
30736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30737 }
30738 if (!argp1) {
30739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30740 }
30741 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30743 if (!SWIG_IsOK(res2)) {
30744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30745 }
30746 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30747 {
30748 PyThreadState* __tstate = wxPyBeginAllowThreads();
30749 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30750 wxPyEndAllowThreads(__tstate);
30751 if (PyErr_Occurred()) SWIG_fail;
30752 }
30753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30754 return resultobj;
30755fail:
30756 return NULL;
30757}
30758
30759
30760SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30761 int argc;
30762 PyObject *argv[7];
30763
30764 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30765 --argc;
30766 if (argc == 2) {
30767 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30768 }
30769 if (argc == 6) {
30770 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30771 }
30772
30773fail:
30774 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30775 return NULL;
30776}
30777
30778
30779SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30780 PyObject *resultobj = 0;
30781 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30782 void *argp1 = 0 ;
30783 int res1 = 0 ;
30784 PyObject *swig_obj[1] ;
30785
30786 if (!args) SWIG_fail;
30787 swig_obj[0] = args;
30788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30789 if (!SWIG_IsOK(res1)) {
30790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30791 }
30792 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30793 {
30794 PyThreadState* __tstate = wxPyBeginAllowThreads();
30795 delete arg1;
30796
30797 wxPyEndAllowThreads(__tstate);
30798 if (PyErr_Occurred()) SWIG_fail;
30799 }
30800 resultobj = SWIG_Py_Void();
30801 return resultobj;
30802fail:
30803 return NULL;
30804}
30805
30806
30807SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30808 PyObject *resultobj = 0;
30809 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30810 void *argp1 = 0 ;
30811 int res1 = 0 ;
30812 PyObject *swig_obj[1] ;
30813
30814 if (!args) SWIG_fail;
30815 swig_obj[0] = args;
30816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30817 if (!SWIG_IsOK(res1)) {
30818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30819 }
30820 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30821 {
30822 PyThreadState* __tstate = wxPyBeginAllowThreads();
30823 (arg1)->Clear();
30824 wxPyEndAllowThreads(__tstate);
30825 if (PyErr_Occurred()) SWIG_fail;
30826 }
30827 resultobj = SWIG_Py_Void();
30828 return resultobj;
30829fail:
30830 return NULL;
30831}
30832
30833
30834SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30835 PyObject *obj;
30836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30837 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30838 return SWIG_Py_Void();
30839}
30840
30841SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30842 return SWIG_Python_InitShadowInstance(args);
30843}
30844
72ef6efb
RD
30845SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30846 PyObject *resultobj = 0;
30847 int arg1 ;
30848 int arg2 ;
30849 int arg3 = (int) true ;
30850 int arg4 = (int) 1 ;
30851 wxImageList *result = 0 ;
30852 int val1 ;
30853 int ecode1 = 0 ;
30854 int val2 ;
30855 int ecode2 = 0 ;
30856 int val3 ;
30857 int ecode3 = 0 ;
30858 int val4 ;
30859 int ecode4 = 0 ;
30860 PyObject * obj0 = 0 ;
30861 PyObject * obj1 = 0 ;
30862 PyObject * obj2 = 0 ;
30863 PyObject * obj3 = 0 ;
30864 char * kwnames[] = {
30865 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30866 };
30867
30868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30869 ecode1 = SWIG_AsVal_int(obj0, &val1);
30870 if (!SWIG_IsOK(ecode1)) {
30871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30872 }
30873 arg1 = static_cast< int >(val1);
30874 ecode2 = SWIG_AsVal_int(obj1, &val2);
30875 if (!SWIG_IsOK(ecode2)) {
30876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30877 }
30878 arg2 = static_cast< int >(val2);
30879 if (obj2) {
30880 ecode3 = SWIG_AsVal_int(obj2, &val3);
30881 if (!SWIG_IsOK(ecode3)) {
30882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30883 }
30884 arg3 = static_cast< int >(val3);
30885 }
30886 if (obj3) {
30887 ecode4 = SWIG_AsVal_int(obj3, &val4);
30888 if (!SWIG_IsOK(ecode4)) {
30889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30890 }
30891 arg4 = static_cast< int >(val4);
30892 }
30893 {
30894 if (!wxPyCheckForApp()) SWIG_fail;
30895 PyThreadState* __tstate = wxPyBeginAllowThreads();
30896 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
e02c0a13 30900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30901 return resultobj;
30902fail:
30903 return NULL;
30904}
30905
30906
30907SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30908 PyObject *resultobj = 0;
30909 wxImageList *arg1 = (wxImageList *) 0 ;
30910 void *argp1 = 0 ;
30911 int res1 = 0 ;
30912 PyObject *swig_obj[1] ;
30913
30914 if (!args) SWIG_fail;
30915 swig_obj[0] = args;
30916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30917 if (!SWIG_IsOK(res1)) {
30918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30919 }
30920 arg1 = reinterpret_cast< wxImageList * >(argp1);
30921 {
30922 PyThreadState* __tstate = wxPyBeginAllowThreads();
30923 delete arg1;
30924
30925 wxPyEndAllowThreads(__tstate);
30926 if (PyErr_Occurred()) SWIG_fail;
30927 }
30928 resultobj = SWIG_Py_Void();
30929 return resultobj;
30930fail:
30931 return NULL;
30932}
30933
30934
30935SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30936 PyObject *resultobj = 0;
30937 wxImageList *arg1 = (wxImageList *) 0 ;
30938 wxBitmap *arg2 = 0 ;
30939 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30940 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30941 int result;
30942 void *argp1 = 0 ;
30943 int res1 = 0 ;
30944 void *argp2 = 0 ;
30945 int res2 = 0 ;
30946 void *argp3 = 0 ;
30947 int res3 = 0 ;
30948 PyObject * obj0 = 0 ;
30949 PyObject * obj1 = 0 ;
30950 PyObject * obj2 = 0 ;
30951 char * kwnames[] = {
30952 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30953 };
30954
30955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30957 if (!SWIG_IsOK(res1)) {
30958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30959 }
30960 arg1 = reinterpret_cast< wxImageList * >(argp1);
30961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30962 if (!SWIG_IsOK(res2)) {
30963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30964 }
30965 if (!argp2) {
30966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30967 }
30968 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30969 if (obj2) {
30970 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30971 if (!SWIG_IsOK(res3)) {
30972 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30973 }
30974 if (!argp3) {
30975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30976 }
30977 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30978 }
30979 {
30980 PyThreadState* __tstate = wxPyBeginAllowThreads();
30981 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30982 wxPyEndAllowThreads(__tstate);
30983 if (PyErr_Occurred()) SWIG_fail;
30984 }
30985 resultobj = SWIG_From_int(static_cast< int >(result));
30986 return resultobj;
30987fail:
30988 return NULL;
30989}
30990
30991
30992SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30993 PyObject *resultobj = 0;
30994 wxImageList *arg1 = (wxImageList *) 0 ;
30995 wxBitmap *arg2 = 0 ;
30996 wxColour *arg3 = 0 ;
30997 int result;
30998 void *argp1 = 0 ;
30999 int res1 = 0 ;
31000 void *argp2 = 0 ;
31001 int res2 = 0 ;
31002 wxColour temp3 ;
31003 PyObject * obj0 = 0 ;
31004 PyObject * obj1 = 0 ;
31005 PyObject * obj2 = 0 ;
31006 char * kwnames[] = {
31007 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31008 };
31009
31010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31012 if (!SWIG_IsOK(res1)) {
31013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31014 }
31015 arg1 = reinterpret_cast< wxImageList * >(argp1);
31016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31017 if (!SWIG_IsOK(res2)) {
31018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31019 }
31020 if (!argp2) {
31021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31022 }
31023 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31024 {
31025 arg3 = &temp3;
31026 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31027 }
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_From_int(static_cast< int >(result));
31035 return resultobj;
31036fail:
31037 return NULL;
31038}
31039
31040
31041SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31042 PyObject *resultobj = 0;
31043 wxImageList *arg1 = (wxImageList *) 0 ;
31044 wxIcon *arg2 = 0 ;
31045 int result;
31046 void *argp1 = 0 ;
31047 int res1 = 0 ;
31048 void *argp2 = 0 ;
31049 int res2 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "icon", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31060 }
1bd55598
RD
31061 arg1 = reinterpret_cast< wxImageList * >(argp1);
31062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31063 if (!SWIG_IsOK(res2)) {
31064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31065 }
31066 if (!argp2) {
31067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31068 }
31069 arg2 = reinterpret_cast< wxIcon * >(argp2);
31070 {
31071 PyThreadState* __tstate = wxPyBeginAllowThreads();
31072 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31073 wxPyEndAllowThreads(__tstate);
31074 if (PyErr_Occurred()) SWIG_fail;
31075 }
31076 resultobj = SWIG_From_int(static_cast< int >(result));
31077 return resultobj;
31078fail:
31079 return NULL;
31080}
31081
31082
31083SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31084 PyObject *resultobj = 0;
31085 wxImageList *arg1 = (wxImageList *) 0 ;
31086 int arg2 ;
31087 SwigValueWrapper<wxBitmap > result;
31088 void *argp1 = 0 ;
31089 int res1 = 0 ;
31090 int val2 ;
31091 int ecode2 = 0 ;
31092 PyObject * obj0 = 0 ;
31093 PyObject * obj1 = 0 ;
31094 char * kwnames[] = {
31095 (char *) "self",(char *) "index", NULL
31096 };
31097
31098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31100 if (!SWIG_IsOK(res1)) {
31101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31102 }
31103 arg1 = reinterpret_cast< wxImageList * >(argp1);
31104 ecode2 = SWIG_AsVal_int(obj1, &val2);
31105 if (!SWIG_IsOK(ecode2)) {
31106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31107 }
31108 arg2 = static_cast< int >(val2);
31109 {
31110 PyThreadState* __tstate = wxPyBeginAllowThreads();
31111 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31112 wxPyEndAllowThreads(__tstate);
31113 if (PyErr_Occurred()) SWIG_fail;
31114 }
31115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31116 return resultobj;
31117fail:
31118 return NULL;
31119}
31120
31121
31122SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj = 0;
31124 wxImageList *arg1 = (wxImageList *) 0 ;
31125 int arg2 ;
31126 wxIcon result;
31127 void *argp1 = 0 ;
31128 int res1 = 0 ;
31129 int val2 ;
31130 int ecode2 = 0 ;
31131 PyObject * obj0 = 0 ;
31132 PyObject * obj1 = 0 ;
31133 char * kwnames[] = {
31134 (char *) "self",(char *) "index", NULL
31135 };
31136
31137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31139 if (!SWIG_IsOK(res1)) {
31140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31141 }
31142 arg1 = reinterpret_cast< wxImageList * >(argp1);
31143 ecode2 = SWIG_AsVal_int(obj1, &val2);
31144 if (!SWIG_IsOK(ecode2)) {
31145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31146 }
31147 arg2 = static_cast< int >(val2);
31148 {
31149 PyThreadState* __tstate = wxPyBeginAllowThreads();
31150 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31151 wxPyEndAllowThreads(__tstate);
31152 if (PyErr_Occurred()) SWIG_fail;
31153 }
31154 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31155 return resultobj;
31156fail:
31157 return NULL;
31158}
31159
31160
31161SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31162 PyObject *resultobj = 0;
31163 wxImageList *arg1 = (wxImageList *) 0 ;
31164 int arg2 ;
31165 wxBitmap *arg3 = 0 ;
2131d850
RD
31166 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31167 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31168 bool result;
31169 void *argp1 = 0 ;
31170 int res1 = 0 ;
31171 int val2 ;
31172 int ecode2 = 0 ;
31173 void *argp3 = 0 ;
31174 int res3 = 0 ;
2131d850
RD
31175 void *argp4 = 0 ;
31176 int res4 = 0 ;
1bd55598
RD
31177 PyObject * obj0 = 0 ;
31178 PyObject * obj1 = 0 ;
31179 PyObject * obj2 = 0 ;
2131d850 31180 PyObject * obj3 = 0 ;
1bd55598 31181 char * kwnames[] = {
2131d850 31182 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31183 };
31184
2131d850 31185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31187 if (!SWIG_IsOK(res1)) {
31188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31189 }
31190 arg1 = reinterpret_cast< wxImageList * >(argp1);
31191 ecode2 = SWIG_AsVal_int(obj1, &val2);
31192 if (!SWIG_IsOK(ecode2)) {
31193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31194 }
31195 arg2 = static_cast< int >(val2);
31196 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31197 if (!SWIG_IsOK(res3)) {
31198 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31199 }
31200 if (!argp3) {
31201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31202 }
31203 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31204 if (obj3) {
31205 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31206 if (!SWIG_IsOK(res4)) {
31207 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31208 }
31209 if (!argp4) {
31210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31211 }
31212 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31213 }
1bd55598
RD
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31216 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31217 wxPyEndAllowThreads(__tstate);
31218 if (PyErr_Occurred()) SWIG_fail;
31219 }
31220 {
31221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31222 }
31223 return resultobj;
31224fail:
31225 return NULL;
31226}
31227
31228
31229SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31230 PyObject *resultobj = 0;
31231 wxImageList *arg1 = (wxImageList *) 0 ;
31232 int arg2 ;
31233 wxDC *arg3 = 0 ;
31234 int arg4 ;
31235 int arg5 ;
31236 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31237 bool arg7 = (bool) (bool)false ;
31238 bool result;
31239 void *argp1 = 0 ;
31240 int res1 = 0 ;
31241 int val2 ;
31242 int ecode2 = 0 ;
31243 void *argp3 = 0 ;
31244 int res3 = 0 ;
31245 int val4 ;
31246 int ecode4 = 0 ;
31247 int val5 ;
31248 int ecode5 = 0 ;
31249 int val6 ;
31250 int ecode6 = 0 ;
31251 bool val7 ;
31252 int ecode7 = 0 ;
31253 PyObject * obj0 = 0 ;
31254 PyObject * obj1 = 0 ;
31255 PyObject * obj2 = 0 ;
31256 PyObject * obj3 = 0 ;
31257 PyObject * obj4 = 0 ;
31258 PyObject * obj5 = 0 ;
31259 PyObject * obj6 = 0 ;
31260 char * kwnames[] = {
31261 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31262 };
31263
31264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31266 if (!SWIG_IsOK(res1)) {
31267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31268 }
31269 arg1 = reinterpret_cast< wxImageList * >(argp1);
31270 ecode2 = SWIG_AsVal_int(obj1, &val2);
31271 if (!SWIG_IsOK(ecode2)) {
31272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31273 }
31274 arg2 = static_cast< int >(val2);
31275 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31276 if (!SWIG_IsOK(res3)) {
31277 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31278 }
31279 if (!argp3) {
31280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31281 }
31282 arg3 = reinterpret_cast< wxDC * >(argp3);
31283 ecode4 = SWIG_AsVal_int(obj3, &val4);
31284 if (!SWIG_IsOK(ecode4)) {
31285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31286 }
31287 arg4 = static_cast< int >(val4);
31288 ecode5 = SWIG_AsVal_int(obj4, &val5);
31289 if (!SWIG_IsOK(ecode5)) {
31290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31291 }
31292 arg5 = static_cast< int >(val5);
31293 if (obj5) {
31294 ecode6 = SWIG_AsVal_int(obj5, &val6);
31295 if (!SWIG_IsOK(ecode6)) {
31296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31297 }
31298 arg6 = static_cast< int >(val6);
31299 }
31300 if (obj6) {
31301 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31302 if (!SWIG_IsOK(ecode7)) {
31303 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31304 }
31305 arg7 = static_cast< bool >(val7);
31306 }
31307 {
31308 PyThreadState* __tstate = wxPyBeginAllowThreads();
31309 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31310 wxPyEndAllowThreads(__tstate);
31311 if (PyErr_Occurred()) SWIG_fail;
31312 }
31313 {
31314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31315 }
31316 return resultobj;
31317fail:
31318 return NULL;
31319}
31320
31321
31322SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31323 PyObject *resultobj = 0;
31324 wxImageList *arg1 = (wxImageList *) 0 ;
31325 int result;
31326 void *argp1 = 0 ;
31327 int res1 = 0 ;
31328 PyObject *swig_obj[1] ;
31329
31330 if (!args) SWIG_fail;
31331 swig_obj[0] = args;
31332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31333 if (!SWIG_IsOK(res1)) {
31334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31335 }
31336 arg1 = reinterpret_cast< wxImageList * >(argp1);
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 result = (int)(arg1)->GetImageCount();
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_From_int(static_cast< int >(result));
31344 return resultobj;
31345fail:
31346 return NULL;
31347}
31348
31349
31350SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31351 PyObject *resultobj = 0;
31352 wxImageList *arg1 = (wxImageList *) 0 ;
31353 int arg2 ;
31354 bool result;
31355 void *argp1 = 0 ;
31356 int res1 = 0 ;
31357 int val2 ;
31358 int ecode2 = 0 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 char * kwnames[] = {
31362 (char *) "self",(char *) "index", NULL
31363 };
31364
31365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31367 if (!SWIG_IsOK(res1)) {
31368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31369 }
31370 arg1 = reinterpret_cast< wxImageList * >(argp1);
31371 ecode2 = SWIG_AsVal_int(obj1, &val2);
31372 if (!SWIG_IsOK(ecode2)) {
31373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31374 }
31375 arg2 = static_cast< int >(val2);
31376 {
31377 PyThreadState* __tstate = wxPyBeginAllowThreads();
31378 result = (bool)(arg1)->Remove(arg2);
31379 wxPyEndAllowThreads(__tstate);
31380 if (PyErr_Occurred()) SWIG_fail;
31381 }
31382 {
31383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31384 }
31385 return resultobj;
31386fail:
31387 return NULL;
31388}
31389
31390
31391SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31392 PyObject *resultobj = 0;
31393 wxImageList *arg1 = (wxImageList *) 0 ;
31394 bool result;
31395 void *argp1 = 0 ;
31396 int res1 = 0 ;
31397 PyObject *swig_obj[1] ;
31398
31399 if (!args) SWIG_fail;
31400 swig_obj[0] = args;
31401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31402 if (!SWIG_IsOK(res1)) {
31403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31404 }
31405 arg1 = reinterpret_cast< wxImageList * >(argp1);
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 result = (bool)(arg1)->RemoveAll();
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 {
31413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31414 }
31415 return resultobj;
31416fail:
31417 return NULL;
31418}
31419
31420
31421SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxImageList *arg1 = (wxImageList *) 0 ;
31424 int arg2 ;
31425 int *arg3 = 0 ;
31426 int *arg4 = 0 ;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 int val2 ;
31430 int ecode2 = 0 ;
31431 int temp3 ;
31432 int res3 = SWIG_TMPOBJ ;
31433 int temp4 ;
31434 int res4 = SWIG_TMPOBJ ;
31435 PyObject * obj0 = 0 ;
31436 PyObject * obj1 = 0 ;
31437 char * kwnames[] = {
31438 (char *) "self",(char *) "index", NULL
31439 };
31440
31441 arg3 = &temp3;
31442 arg4 = &temp4;
31443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31445 if (!SWIG_IsOK(res1)) {
31446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31447 }
31448 arg1 = reinterpret_cast< wxImageList * >(argp1);
31449 ecode2 = SWIG_AsVal_int(obj1, &val2);
31450 if (!SWIG_IsOK(ecode2)) {
31451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31452 }
31453 arg2 = static_cast< int >(val2);
31454 {
31455 PyThreadState* __tstate = wxPyBeginAllowThreads();
31456 (arg1)->GetSize(arg2,*arg3,*arg4);
31457 wxPyEndAllowThreads(__tstate);
31458 if (PyErr_Occurred()) SWIG_fail;
31459 }
31460 resultobj = SWIG_Py_Void();
31461 if (SWIG_IsTmpObj(res3)) {
31462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31463 } else {
31464 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31466 }
31467 if (SWIG_IsTmpObj(res4)) {
31468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31469 } else {
31470 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31472 }
31473 return resultobj;
31474fail:
31475 return NULL;
31476}
31477
31478
31479SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31480 PyObject *obj;
31481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31482 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31483 return SWIG_Py_Void();
31484}
31485
31486SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31487 return SWIG_Python_InitShadowInstance(args);
31488}
31489
da91cb0f
RD
31490SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31491 PyObject *resultobj = 0;
31492 wxStockGDI *result = 0 ;
1bd55598 31493
da91cb0f
RD
31494 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31495 {
31496 PyThreadState* __tstate = wxPyBeginAllowThreads();
31497 result = (wxStockGDI *)new wxStockGDI();
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31502 return resultobj;
31503fail:
31504 return NULL;
1bd55598
RD
31505}
31506
31507
da91cb0f
RD
31508SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31509 PyObject *resultobj = 0;
31510 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31511 void *argp1 = 0 ;
31512 int res1 = 0 ;
31513 PyObject *swig_obj[1] ;
1bd55598 31514
da91cb0f
RD
31515 if (!args) SWIG_fail;
31516 swig_obj[0] = args;
31517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31518 if (!SWIG_IsOK(res1)) {
31519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31520 }
31521 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 delete arg1;
31525
31526 wxPyEndAllowThreads(__tstate);
31527 if (PyErr_Occurred()) SWIG_fail;
31528 }
31529 resultobj = SWIG_Py_Void();
31530 return resultobj;
31531fail:
31532 return NULL;
1bd55598
RD
31533}
31534
31535
da91cb0f
RD
31536SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31537 PyObject *resultobj = 0;
1bd55598 31538
da91cb0f
RD
31539 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 wxStockGDI::DeleteAll();
31543 wxPyEndAllowThreads(__tstate);
31544 if (PyErr_Occurred()) SWIG_fail;
31545 }
31546 resultobj = SWIG_Py_Void();
31547 return resultobj;
31548fail:
31549 return NULL;
1bd55598
RD
31550}
31551
31552
da91cb0f
RD
31553SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31554 PyObject *resultobj = 0;
31555 wxStockGDI *result = 0 ;
1bd55598 31556
da91cb0f
RD
31557 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31558 {
31559 PyThreadState* __tstate = wxPyBeginAllowThreads();
31560 {
31561 wxStockGDI &_result_ref = wxStockGDI::instance();
31562 result = (wxStockGDI *) &_result_ref;
31563 }
31564 wxPyEndAllowThreads(__tstate);
31565 if (PyErr_Occurred()) SWIG_fail;
31566 }
31567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31568 return resultobj;
31569fail:
31570 return NULL;
1bd55598
RD
31571}
31572
31573
da91cb0f
RD
31574SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31575 PyObject *resultobj = 0;
31576 wxStockGDI::Item arg1 ;
31577 wxBrush *result = 0 ;
31578 int val1 ;
31579 int ecode1 = 0 ;
31580 PyObject * obj0 = 0 ;
31581 char * kwnames[] = {
31582 (char *) "item", NULL
31583 };
31584
31585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31586 ecode1 = SWIG_AsVal_int(obj0, &val1);
31587 if (!SWIG_IsOK(ecode1)) {
31588 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31589 }
31590 arg1 = static_cast< wxStockGDI::Item >(val1);
31591 {
31592 PyThreadState* __tstate = wxPyBeginAllowThreads();
31593 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31594 wxPyEndAllowThreads(__tstate);
31595 if (PyErr_Occurred()) SWIG_fail;
31596 }
31597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31598 return resultobj;
31599fail:
31600 return NULL;
1bd55598
RD
31601}
31602
31603
da91cb0f
RD
31604SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31605 PyObject *resultobj = 0;
31606 wxStockGDI::Item arg1 ;
31607 wxColour *result = 0 ;
31608 int val1 ;
31609 int ecode1 = 0 ;
31610 PyObject * obj0 = 0 ;
31611 char * kwnames[] = {
31612 (char *) "item", NULL
31613 };
1bd55598 31614
da91cb0f
RD
31615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31616 ecode1 = SWIG_AsVal_int(obj0, &val1);
31617 if (!SWIG_IsOK(ecode1)) {
31618 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31619 }
31620 arg1 = static_cast< wxStockGDI::Item >(val1);
31621 {
31622 PyThreadState* __tstate = wxPyBeginAllowThreads();
31623 result = (wxColour *)wxStockGDI::GetColour(arg1);
31624 wxPyEndAllowThreads(__tstate);
31625 if (PyErr_Occurred()) SWIG_fail;
31626 }
31627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31628 return resultobj;
31629fail:
31630 return NULL;
1bd55598
RD
31631}
31632
31633
da91cb0f
RD
31634SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31635 PyObject *resultobj = 0;
31636 wxStockGDI::Item arg1 ;
31637 wxCursor *result = 0 ;
31638 int val1 ;
31639 int ecode1 = 0 ;
31640 PyObject * obj0 = 0 ;
31641 char * kwnames[] = {
31642 (char *) "item", NULL
31643 };
31644
31645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31646 ecode1 = SWIG_AsVal_int(obj0, &val1);
31647 if (!SWIG_IsOK(ecode1)) {
31648 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31649 }
31650 arg1 = static_cast< wxStockGDI::Item >(val1);
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31658 return resultobj;
31659fail:
31660 return NULL;
1bd55598
RD
31661}
31662
31663
da91cb0f
RD
31664SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31665 PyObject *resultobj = 0;
31666 wxStockGDI::Item arg1 ;
31667 wxPen *result = 0 ;
31668 int val1 ;
31669 int ecode1 = 0 ;
31670 PyObject * obj0 = 0 ;
31671 char * kwnames[] = {
31672 (char *) "item", NULL
31673 };
31674
31675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31676 ecode1 = SWIG_AsVal_int(obj0, &val1);
31677 if (!SWIG_IsOK(ecode1)) {
31678 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31679 }
31680 arg1 = static_cast< wxStockGDI::Item >(val1);
31681 {
31682 PyThreadState* __tstate = wxPyBeginAllowThreads();
31683 result = (wxPen *)wxStockGDI::GetPen(arg1);
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31688 return resultobj;
31689fail:
31690 return NULL;
1bd55598
RD
31691}
31692
31693
da91cb0f
RD
31694SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31695 PyObject *resultobj = 0;
31696 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31697 wxStockGDI::Item arg2 ;
31698 wxFont *result = 0 ;
31699 void *argp1 = 0 ;
31700 int res1 = 0 ;
31701 int val2 ;
31702 int ecode2 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 char * kwnames[] = {
31706 (char *) "self",(char *) "item", NULL
31707 };
1bd55598 31708
da91cb0f
RD
31709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31711 if (!SWIG_IsOK(res1)) {
31712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31713 }
31714 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31715 ecode2 = SWIG_AsVal_int(obj1, &val2);
31716 if (!SWIG_IsOK(ecode2)) {
31717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31718 }
31719 arg2 = static_cast< wxStockGDI::Item >(val2);
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = (wxFont *)(arg1)->GetFont(arg2);
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31727 return resultobj;
31728fail:
31729 return NULL;
1bd55598
RD
31730}
31731
31732
da91cb0f
RD
31733SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31734 PyObject *obj;
31735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31736 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31737 return SWIG_Py_Void();
1bd55598
RD
31738}
31739
da91cb0f
RD
31740SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31741 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31742}
31743
1bd55598
RD
31744SWIGINTERN int NullBitmap_set(PyObject *) {
31745 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31746 return 1;
31747}
31748
31749
31750SWIGINTERN PyObject *NullBitmap_get(void) {
31751 PyObject *pyobj = 0;
31752
31753 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31754 return pyobj;
31755}
31756
31757
31758SWIGINTERN int NullIcon_set(PyObject *) {
31759 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31760 return 1;
31761}
31762
31763
31764SWIGINTERN PyObject *NullIcon_get(void) {
31765 PyObject *pyobj = 0;
31766
31767 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31768 return pyobj;
31769}
31770
31771
31772SWIGINTERN int NullCursor_set(PyObject *) {
31773 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31774 return 1;
31775}
31776
31777
31778SWIGINTERN PyObject *NullCursor_get(void) {
31779 PyObject *pyobj = 0;
31780
31781 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31782 return pyobj;
31783}
31784
31785
31786SWIGINTERN int NullPen_set(PyObject *) {
31787 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31788 return 1;
31789}
31790
31791
31792SWIGINTERN PyObject *NullPen_get(void) {
31793 PyObject *pyobj = 0;
31794
31795 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31796 return pyobj;
31797}
31798
31799
31800SWIGINTERN int NullBrush_set(PyObject *) {
31801 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31802 return 1;
31803}
31804
31805
31806SWIGINTERN PyObject *NullBrush_get(void) {
31807 PyObject *pyobj = 0;
31808
31809 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31810 return pyobj;
31811}
31812
31813
31814SWIGINTERN int NullPalette_set(PyObject *) {
31815 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31816 return 1;
31817}
31818
31819
31820SWIGINTERN PyObject *NullPalette_get(void) {
31821 PyObject *pyobj = 0;
31822
31823 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31824 return pyobj;
31825}
31826
31827
31828SWIGINTERN int NullFont_set(PyObject *) {
31829 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31830 return 1;
31831}
31832
31833
31834SWIGINTERN PyObject *NullFont_get(void) {
31835 PyObject *pyobj = 0;
31836
31837 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31838 return pyobj;
31839}
31840
31841
31842SWIGINTERN int NullColour_set(PyObject *) {
31843 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31844 return 1;
31845}
31846
31847
31848SWIGINTERN PyObject *NullColour_get(void) {
31849 PyObject *pyobj = 0;
31850
31851 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31852 return pyobj;
31853}
31854
31855
da91cb0f 31856SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 31857 PyObject *resultobj = 0;
da91cb0f
RD
31858 wxGDIObjListBase *result = 0 ;
31859
31860 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31861 {
31862 PyThreadState* __tstate = wxPyBeginAllowThreads();
31863 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31864 wxPyEndAllowThreads(__tstate);
31865 if (PyErr_Occurred()) SWIG_fail;
31866 }
31867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31868 return resultobj;
31869fail:
31870 return NULL;
31871}
31872
31873
31874SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31875 PyObject *resultobj = 0;
31876 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
31877 void *argp1 = 0 ;
31878 int res1 = 0 ;
da91cb0f 31879 PyObject *swig_obj[1] ;
1bd55598 31880
da91cb0f
RD
31881 if (!args) SWIG_fail;
31882 swig_obj[0] = args;
31883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 31884 if (!SWIG_IsOK(res1)) {
da91cb0f 31885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 31886 }
da91cb0f 31887 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
31888 {
31889 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
31890 delete arg1;
31891
1bd55598
RD
31892 wxPyEndAllowThreads(__tstate);
31893 if (PyErr_Occurred()) SWIG_fail;
31894 }
31895 resultobj = SWIG_Py_Void();
31896 return resultobj;
31897fail:
31898 return NULL;
31899}
31900
31901
da91cb0f
RD
31902SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31903 PyObject *obj;
31904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31905 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31906 return SWIG_Py_Void();
31907}
31908
31909SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31910 return SWIG_Python_InitShadowInstance(args);
31911}
31912
1bd55598
RD
31913SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31914 PyObject *resultobj = 0;
31915 wxPenList *arg1 = (wxPenList *) 0 ;
31916 wxColour *arg2 = 0 ;
31917 int arg3 ;
31918 int arg4 ;
31919 wxPen *result = 0 ;
31920 void *argp1 = 0 ;
31921 int res1 = 0 ;
31922 wxColour temp2 ;
31923 int val3 ;
31924 int ecode3 = 0 ;
31925 int val4 ;
31926 int ecode4 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 PyObject * obj2 = 0 ;
31930 PyObject * obj3 = 0 ;
31931 char * kwnames[] = {
31932 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31933 };
31934
31935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31937 if (!SWIG_IsOK(res1)) {
31938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31939 }
31940 arg1 = reinterpret_cast< wxPenList * >(argp1);
31941 {
31942 arg2 = &temp2;
31943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31944 }
31945 ecode3 = SWIG_AsVal_int(obj2, &val3);
31946 if (!SWIG_IsOK(ecode3)) {
31947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31948 }
31949 arg3 = static_cast< int >(val3);
31950 ecode4 = SWIG_AsVal_int(obj3, &val4);
31951 if (!SWIG_IsOK(ecode4)) {
31952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31953 }
31954 arg4 = static_cast< int >(val4);
31955 {
31956 PyThreadState* __tstate = wxPyBeginAllowThreads();
31957 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31958 wxPyEndAllowThreads(__tstate);
31959 if (PyErr_Occurred()) SWIG_fail;
31960 }
31961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31962 return resultobj;
31963fail:
31964 return NULL;
31965}
31966
31967
da91cb0f 31968SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31969 PyObject *resultobj = 0;
31970 wxPenList *arg1 = (wxPenList *) 0 ;
31971 wxPen *arg2 = (wxPen *) 0 ;
31972 void *argp1 = 0 ;
31973 int res1 = 0 ;
31974 void *argp2 = 0 ;
31975 int res2 = 0 ;
31976 PyObject * obj0 = 0 ;
31977 PyObject * obj1 = 0 ;
31978 char * kwnames[] = {
31979 (char *) "self",(char *) "pen", NULL
31980 };
31981
da91cb0f 31982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
31983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31984 if (!SWIG_IsOK(res1)) {
da91cb0f 31985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31986 }
31987 arg1 = reinterpret_cast< wxPenList * >(argp1);
31988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31989 if (!SWIG_IsOK(res2)) {
da91cb0f 31990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
31991 }
31992 arg2 = reinterpret_cast< wxPen * >(argp2);
31993 {
31994 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31995 (arg1)->AddPen(arg2);
1bd55598
RD
31996 wxPyEndAllowThreads(__tstate);
31997 if (PyErr_Occurred()) SWIG_fail;
31998 }
31999 resultobj = SWIG_Py_Void();
32000 return resultobj;
32001fail:
32002 return NULL;
32003}
32004
32005
da91cb0f 32006SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32007 PyObject *resultobj = 0;
32008 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32009 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32010 void *argp1 = 0 ;
32011 int res1 = 0 ;
da91cb0f
RD
32012 void *argp2 = 0 ;
32013 int res2 = 0 ;
32014 PyObject * obj0 = 0 ;
32015 PyObject * obj1 = 0 ;
32016 char * kwnames[] = {
32017 (char *) "self",(char *) "pen", NULL
32018 };
1bd55598 32019
da91cb0f
RD
32020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32022 if (!SWIG_IsOK(res1)) {
da91cb0f 32023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32024 }
32025 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32027 if (!SWIG_IsOK(res2)) {
32028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32029 }
32030 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32031 {
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32033 (arg1)->RemovePen(arg2);
1bd55598
RD
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
da91cb0f 32037 resultobj = SWIG_Py_Void();
1bd55598
RD
32038 return resultobj;
32039fail:
32040 return NULL;
32041}
32042
32043
32044SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32045 PyObject *obj;
32046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32047 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32048 return SWIG_Py_Void();
32049}
32050
da91cb0f
RD
32051SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32052 PyObject *resultobj = 0;
32053 wxBrushList *arg1 = (wxBrushList *) 0 ;
32054 wxColour *arg2 = 0 ;
32055 int arg3 = (int) wxSOLID ;
32056 wxBrush *result = 0 ;
32057 void *argp1 = 0 ;
32058 int res1 = 0 ;
32059 wxColour temp2 ;
32060 int val3 ;
32061 int ecode3 = 0 ;
32062 PyObject * obj0 = 0 ;
32063 PyObject * obj1 = 0 ;
32064 PyObject * obj2 = 0 ;
32065 char * kwnames[] = {
32066 (char *) "self",(char *) "colour",(char *) "style", NULL
32067 };
32068
32069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32071 if (!SWIG_IsOK(res1)) {
32072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32073 }
32074 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32075 {
32076 arg2 = &temp2;
32077 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32078 }
32079 if (obj2) {
32080 ecode3 = SWIG_AsVal_int(obj2, &val3);
32081 if (!SWIG_IsOK(ecode3)) {
32082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32083 }
32084 arg3 = static_cast< int >(val3);
32085 }
32086 {
32087 PyThreadState* __tstate = wxPyBeginAllowThreads();
32088 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32089 wxPyEndAllowThreads(__tstate);
32090 if (PyErr_Occurred()) SWIG_fail;
32091 }
32092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32093 return resultobj;
32094fail:
32095 return NULL;
32096}
32097
32098
1bd55598
RD
32099SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32100 PyObject *resultobj = 0;
32101 wxBrushList *arg1 = (wxBrushList *) 0 ;
32102 wxBrush *arg2 = (wxBrush *) 0 ;
32103 void *argp1 = 0 ;
32104 int res1 = 0 ;
32105 void *argp2 = 0 ;
32106 int res2 = 0 ;
32107 PyObject * obj0 = 0 ;
32108 PyObject * obj1 = 0 ;
32109 char * kwnames[] = {
32110 (char *) "self",(char *) "brush", NULL
32111 };
32112
32113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32115 if (!SWIG_IsOK(res1)) {
32116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32117 }
32118 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32119 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32120 if (!SWIG_IsOK(res2)) {
32121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32122 }
32123 arg2 = reinterpret_cast< wxBrush * >(argp2);
32124 {
32125 PyThreadState* __tstate = wxPyBeginAllowThreads();
32126 (arg1)->AddBrush(arg2);
32127 wxPyEndAllowThreads(__tstate);
32128 if (PyErr_Occurred()) SWIG_fail;
32129 }
32130 resultobj = SWIG_Py_Void();
32131 return resultobj;
32132fail:
32133 return NULL;
32134}
32135
32136
da91cb0f 32137SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32138 PyObject *resultobj = 0;
32139 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32140 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32141 void *argp1 = 0 ;
32142 int res1 = 0 ;
da91cb0f
RD
32143 void *argp2 = 0 ;
32144 int res2 = 0 ;
32145 PyObject * obj0 = 0 ;
32146 PyObject * obj1 = 0 ;
32147 char * kwnames[] = {
32148 (char *) "self",(char *) "brush", NULL
32149 };
32150
32151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32153 if (!SWIG_IsOK(res1)) {
32154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32155 }
32156 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32158 if (!SWIG_IsOK(res2)) {
32159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32160 }
32161 arg2 = reinterpret_cast< wxBrush * >(argp2);
32162 {
32163 PyThreadState* __tstate = wxPyBeginAllowThreads();
32164 (arg1)->RemoveBrush(arg2);
32165 wxPyEndAllowThreads(__tstate);
32166 if (PyErr_Occurred()) SWIG_fail;
32167 }
32168 resultobj = SWIG_Py_Void();
32169 return resultobj;
32170fail:
32171 return NULL;
32172}
32173
32174
32175SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32176 PyObject *obj;
32177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32178 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32179 return SWIG_Py_Void();
32180}
32181
32182SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32183 PyObject *resultobj = 0;
32184 wxFontList *arg1 = (wxFontList *) 0 ;
32185 int arg2 ;
32186 int arg3 ;
32187 int arg4 ;
32188 int arg5 ;
32189 bool arg6 = (bool) false ;
32190 wxString const &arg7_defvalue = wxPyEmptyString ;
32191 wxString *arg7 = (wxString *) &arg7_defvalue ;
32192 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32193 wxFont *result = 0 ;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 int val2 ;
32197 int ecode2 = 0 ;
1bd55598
RD
32198 int val3 ;
32199 int ecode3 = 0 ;
da91cb0f
RD
32200 int val4 ;
32201 int ecode4 = 0 ;
32202 int val5 ;
32203 int ecode5 = 0 ;
32204 bool val6 ;
32205 int ecode6 = 0 ;
32206 bool temp7 = false ;
32207 int val8 ;
32208 int ecode8 = 0 ;
1bd55598
RD
32209 PyObject * obj0 = 0 ;
32210 PyObject * obj1 = 0 ;
32211 PyObject * obj2 = 0 ;
da91cb0f
RD
32212 PyObject * obj3 = 0 ;
32213 PyObject * obj4 = 0 ;
32214 PyObject * obj5 = 0 ;
32215 PyObject * obj6 = 0 ;
32216 PyObject * obj7 = 0 ;
1bd55598 32217 char * kwnames[] = {
da91cb0f 32218 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32219 };
32220
da91cb0f
RD
32221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32223 if (!SWIG_IsOK(res1)) {
da91cb0f 32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32225 }
da91cb0f
RD
32226 arg1 = reinterpret_cast< wxFontList * >(argp1);
32227 ecode2 = SWIG_AsVal_int(obj1, &val2);
32228 if (!SWIG_IsOK(ecode2)) {
32229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32230 }
32231 arg2 = static_cast< int >(val2);
32232 ecode3 = SWIG_AsVal_int(obj2, &val3);
32233 if (!SWIG_IsOK(ecode3)) {
32234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32235 }
32236 arg3 = static_cast< int >(val3);
32237 ecode4 = SWIG_AsVal_int(obj3, &val4);
32238 if (!SWIG_IsOK(ecode4)) {
32239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32240 }
32241 arg4 = static_cast< int >(val4);
32242 ecode5 = SWIG_AsVal_int(obj4, &val5);
32243 if (!SWIG_IsOK(ecode5)) {
32244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32245 }
32246 arg5 = static_cast< int >(val5);
32247 if (obj5) {
32248 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32249 if (!SWIG_IsOK(ecode6)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32251 }
32252 arg6 = static_cast< bool >(val6);
1bd55598 32253 }
da91cb0f
RD
32254 if (obj6) {
32255 {
32256 arg7 = wxString_in_helper(obj6);
32257 if (arg7 == NULL) SWIG_fail;
32258 temp7 = true;
32259 }
32260 }
32261 if (obj7) {
32262 ecode8 = SWIG_AsVal_int(obj7, &val8);
32263 if (!SWIG_IsOK(ecode8)) {
32264 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32265 }
da91cb0f 32266 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32267 }
32268 {
32269 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32270 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32271 wxPyEndAllowThreads(__tstate);
32272 if (PyErr_Occurred()) SWIG_fail;
32273 }
da91cb0f
RD
32274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32275 {
32276 if (temp7)
32277 delete arg7;
32278 }
1bd55598
RD
32279 return resultobj;
32280fail:
da91cb0f
RD
32281 {
32282 if (temp7)
32283 delete arg7;
32284 }
1bd55598
RD
32285 return NULL;
32286}
32287
32288
da91cb0f 32289SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32290 PyObject *resultobj = 0;
da91cb0f
RD
32291 wxFontList *arg1 = (wxFontList *) 0 ;
32292 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32293 void *argp1 = 0 ;
32294 int res1 = 0 ;
32295 void *argp2 = 0 ;
32296 int res2 = 0 ;
32297 PyObject * obj0 = 0 ;
32298 PyObject * obj1 = 0 ;
32299 char * kwnames[] = {
da91cb0f 32300 (char *) "self",(char *) "font", NULL
1bd55598
RD
32301 };
32302
da91cb0f
RD
32303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32305 if (!SWIG_IsOK(res1)) {
da91cb0f 32306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32307 }
da91cb0f
RD
32308 arg1 = reinterpret_cast< wxFontList * >(argp1);
32309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32310 if (!SWIG_IsOK(res2)) {
da91cb0f 32311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32312 }
da91cb0f 32313 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32314 {
32315 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32316 (arg1)->AddFont(arg2);
1bd55598
RD
32317 wxPyEndAllowThreads(__tstate);
32318 if (PyErr_Occurred()) SWIG_fail;
32319 }
32320 resultobj = SWIG_Py_Void();
32321 return resultobj;
32322fail:
32323 return NULL;
32324}
32325
32326
da91cb0f 32327SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32328 PyObject *resultobj = 0;
da91cb0f
RD
32329 wxFontList *arg1 = (wxFontList *) 0 ;
32330 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
da91cb0f
RD
32333 void *argp2 = 0 ;
32334 int res2 = 0 ;
32335 PyObject * obj0 = 0 ;
32336 PyObject * obj1 = 0 ;
32337 char * kwnames[] = {
32338 (char *) "self",(char *) "font", NULL
32339 };
1bd55598 32340
da91cb0f
RD
32341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32343 if (!SWIG_IsOK(res1)) {
da91cb0f 32344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32345 }
da91cb0f
RD
32346 arg1 = reinterpret_cast< wxFontList * >(argp1);
32347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32348 if (!SWIG_IsOK(res2)) {
32349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32350 }
32351 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32354 (arg1)->RemoveFont(arg2);
1bd55598
RD
32355 wxPyEndAllowThreads(__tstate);
32356 if (PyErr_Occurred()) SWIG_fail;
32357 }
da91cb0f 32358 resultobj = SWIG_Py_Void();
1bd55598
RD
32359 return resultobj;
32360fail:
32361 return NULL;
32362}
32363
32364
da91cb0f 32365SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32366 PyObject *obj;
32367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32368 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32369 return SWIG_Py_Void();
32370}
32371
32372SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 PyObject *resultobj = 0;
32374 wxColourDatabase *result = 0 ;
32375
32376 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32377 {
32378 if (!wxPyCheckForApp()) SWIG_fail;
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
32380 result = (wxColourDatabase *)new wxColourDatabase();
32381 wxPyEndAllowThreads(__tstate);
32382 if (PyErr_Occurred()) SWIG_fail;
32383 }
32384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32385 return resultobj;
32386fail:
32387 return NULL;
32388}
32389
32390
32391SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32392 PyObject *resultobj = 0;
32393 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32394 void *argp1 = 0 ;
32395 int res1 = 0 ;
32396 PyObject *swig_obj[1] ;
32397
32398 if (!args) SWIG_fail;
32399 swig_obj[0] = args;
32400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32401 if (!SWIG_IsOK(res1)) {
32402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32403 }
32404 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32405 {
32406 PyThreadState* __tstate = wxPyBeginAllowThreads();
32407 delete arg1;
32408
32409 wxPyEndAllowThreads(__tstate);
32410 if (PyErr_Occurred()) SWIG_fail;
32411 }
32412 resultobj = SWIG_Py_Void();
32413 return resultobj;
32414fail:
32415 return NULL;
32416}
32417
32418
32419SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32420 PyObject *resultobj = 0;
32421 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32422 wxString *arg2 = 0 ;
32423 wxColour result;
32424 void *argp1 = 0 ;
32425 int res1 = 0 ;
32426 bool temp2 = false ;
32427 PyObject * obj0 = 0 ;
32428 PyObject * obj1 = 0 ;
32429 char * kwnames[] = {
32430 (char *) "self",(char *) "name", NULL
32431 };
32432
32433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32435 if (!SWIG_IsOK(res1)) {
32436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32437 }
32438 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32439 {
32440 arg2 = wxString_in_helper(obj1);
32441 if (arg2 == NULL) SWIG_fail;
32442 temp2 = true;
32443 }
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32451 {
32452 if (temp2)
32453 delete arg2;
32454 }
32455 return resultobj;
32456fail:
32457 {
32458 if (temp2)
32459 delete arg2;
32460 }
32461 return NULL;
32462}
32463
32464
32465SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32466 PyObject *resultobj = 0;
32467 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32468 wxColour *arg2 = 0 ;
32469 wxString result;
32470 void *argp1 = 0 ;
32471 int res1 = 0 ;
32472 wxColour temp2 ;
32473 PyObject * obj0 = 0 ;
32474 PyObject * obj1 = 0 ;
32475 char * kwnames[] = {
32476 (char *) "self",(char *) "colour", NULL
32477 };
32478
32479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32481 if (!SWIG_IsOK(res1)) {
32482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32483 }
32484 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32485 {
32486 arg2 = &temp2;
32487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32488 }
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 {
32496#if wxUSE_UNICODE
32497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32498#else
32499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32500#endif
32501 }
32502 return resultobj;
32503fail:
32504 return NULL;
32505}
32506
32507
32508SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32509 PyObject *resultobj = 0;
32510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32511 wxString *arg2 = 0 ;
32512 wxColour *arg3 = 0 ;
32513 void *argp1 = 0 ;
32514 int res1 = 0 ;
32515 bool temp2 = false ;
32516 wxColour temp3 ;
32517 PyObject * obj0 = 0 ;
32518 PyObject * obj1 = 0 ;
32519 PyObject * obj2 = 0 ;
32520 char * kwnames[] = {
32521 (char *) "self",(char *) "name",(char *) "colour", NULL
32522 };
32523
32524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32526 if (!SWIG_IsOK(res1)) {
32527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32528 }
32529 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32530 {
32531 arg2 = wxString_in_helper(obj1);
32532 if (arg2 == NULL) SWIG_fail;
32533 temp2 = true;
32534 }
32535 {
32536 arg3 = &temp3;
32537 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32538 }
32539 {
32540 PyThreadState* __tstate = wxPyBeginAllowThreads();
32541 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32542 wxPyEndAllowThreads(__tstate);
32543 if (PyErr_Occurred()) SWIG_fail;
32544 }
32545 resultobj = SWIG_Py_Void();
32546 {
32547 if (temp2)
32548 delete arg2;
32549 }
32550 return resultobj;
32551fail:
32552 {
32553 if (temp2)
32554 delete arg2;
32555 }
32556 return NULL;
32557}
32558
32559
32560SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32561 PyObject *resultobj = 0;
32562 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32563 wxString *arg2 = 0 ;
32564 int arg3 ;
32565 int arg4 ;
32566 int arg5 ;
32567 void *argp1 = 0 ;
32568 int res1 = 0 ;
32569 bool temp2 = false ;
32570 int val3 ;
32571 int ecode3 = 0 ;
32572 int val4 ;
32573 int ecode4 = 0 ;
da91cb0f
RD
32574 int val5 ;
32575 int ecode5 = 0 ;
1bd55598
RD
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 PyObject * obj2 = 0 ;
32579 PyObject * obj3 = 0 ;
32580 PyObject * obj4 = 0 ;
1bd55598 32581 char * kwnames[] = {
da91cb0f 32582 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32583 };
32584
da91cb0f
RD
32585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32587 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32589 }
32590 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32591 {
32592 arg2 = wxString_in_helper(obj1);
32593 if (arg2 == NULL) SWIG_fail;
32594 temp2 = true;
1bd55598 32595 }
1bd55598
RD
32596 ecode3 = SWIG_AsVal_int(obj2, &val3);
32597 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32599 }
32600 arg3 = static_cast< int >(val3);
32601 ecode4 = SWIG_AsVal_int(obj3, &val4);
32602 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32604 }
32605 arg4 = static_cast< int >(val4);
32606 ecode5 = SWIG_AsVal_int(obj4, &val5);
32607 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32609 }
32610 arg5 = static_cast< int >(val5);
1bd55598
RD
32611 {
32612 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32613 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32614 wxPyEndAllowThreads(__tstate);
32615 if (PyErr_Occurred()) SWIG_fail;
32616 }
da91cb0f 32617 resultobj = SWIG_Py_Void();
1bd55598 32618 {
da91cb0f
RD
32619 if (temp2)
32620 delete arg2;
1bd55598
RD
32621 }
32622 return resultobj;
32623fail:
32624 {
da91cb0f
RD
32625 if (temp2)
32626 delete arg2;
1bd55598
RD
32627 }
32628 return NULL;
32629}
32630
32631
da91cb0f
RD
32632SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32633 PyObject *obj;
32634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32635 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32636 return SWIG_Py_Void();
32637}
32638
32639SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32640 return SWIG_Python_InitShadowInstance(args);
32641}
32642
32643SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32644 PyObject *resultobj = 0;
da91cb0f 32645 wxFontList *result = 0 ;
1bd55598 32646
da91cb0f 32647 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32648 {
32649 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32650 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
da91cb0f 32654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32655 return resultobj;
32656fail:
32657 return NULL;
32658}
32659
32660
da91cb0f 32661SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32662 PyObject *resultobj = 0;
da91cb0f 32663 wxPenList *result = 0 ;
1bd55598 32664
da91cb0f 32665 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32666 {
32667 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32668 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32669 wxPyEndAllowThreads(__tstate);
32670 if (PyErr_Occurred()) SWIG_fail;
32671 }
da91cb0f 32672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32673 return resultobj;
32674fail:
32675 return NULL;
32676}
32677
32678
da91cb0f
RD
32679SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32680 PyObject *resultobj = 0;
32681 wxBrushList *result = 0 ;
1bd55598 32682
da91cb0f
RD
32683 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32684 {
32685 PyThreadState* __tstate = wxPyBeginAllowThreads();
32686 result = (wxBrushList *)_wxPyInitTheBrushList();
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32691 return resultobj;
32692fail:
32693 return NULL;
1bd55598
RD
32694}
32695
32696
da91cb0f
RD
32697SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32698 PyObject *resultobj = 0;
32699 wxColourDatabase *result = 0 ;
1bd55598 32700
da91cb0f
RD
32701 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32702 {
32703 PyThreadState* __tstate = wxPyBeginAllowThreads();
32704 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32705 wxPyEndAllowThreads(__tstate);
32706 if (PyErr_Occurred()) SWIG_fail;
32707 }
32708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32709 return resultobj;
32710fail:
32711 return NULL;
1bd55598
RD
32712}
32713
32714
32715SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32716 PyObject *resultobj = 0;
32717 wxEffects *result = 0 ;
32718
32719 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32720 {
32721 PyThreadState* __tstate = wxPyBeginAllowThreads();
32722 result = (wxEffects *)new wxEffects();
32723 wxPyEndAllowThreads(__tstate);
32724 if (PyErr_Occurred()) SWIG_fail;
32725 }
32726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32727 return resultobj;
32728fail:
32729 return NULL;
32730}
32731
32732
32733SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32734 PyObject *resultobj = 0;
32735 wxEffects *arg1 = (wxEffects *) 0 ;
32736 wxColour result;
32737 void *argp1 = 0 ;
32738 int res1 = 0 ;
32739 PyObject *swig_obj[1] ;
32740
32741 if (!args) SWIG_fail;
32742 swig_obj[0] = args;
32743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32744 if (!SWIG_IsOK(res1)) {
32745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32746 }
32747 arg1 = reinterpret_cast< wxEffects * >(argp1);
32748 {
32749 PyThreadState* __tstate = wxPyBeginAllowThreads();
32750 result = ((wxEffects const *)arg1)->GetHighlightColour();
32751 wxPyEndAllowThreads(__tstate);
32752 if (PyErr_Occurred()) SWIG_fail;
32753 }
32754 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32755 return resultobj;
32756fail:
32757 return NULL;
32758}
32759
32760
32761SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32762 PyObject *resultobj = 0;
32763 wxEffects *arg1 = (wxEffects *) 0 ;
32764 wxColour result;
32765 void *argp1 = 0 ;
32766 int res1 = 0 ;
32767 PyObject *swig_obj[1] ;
32768
32769 if (!args) SWIG_fail;
32770 swig_obj[0] = args;
32771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32772 if (!SWIG_IsOK(res1)) {
32773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32774 }
32775 arg1 = reinterpret_cast< wxEffects * >(argp1);
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 result = ((wxEffects const *)arg1)->GetLightShadow();
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32783 return resultobj;
32784fail:
32785 return NULL;
32786}
32787
32788
32789SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32790 PyObject *resultobj = 0;
32791 wxEffects *arg1 = (wxEffects *) 0 ;
32792 wxColour result;
32793 void *argp1 = 0 ;
32794 int res1 = 0 ;
32795 PyObject *swig_obj[1] ;
32796
32797 if (!args) SWIG_fail;
32798 swig_obj[0] = args;
32799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32800 if (!SWIG_IsOK(res1)) {
32801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32802 }
32803 arg1 = reinterpret_cast< wxEffects * >(argp1);
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 result = ((wxEffects const *)arg1)->GetFaceColour();
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32811 return resultobj;
32812fail:
32813 return NULL;
32814}
32815
32816
32817SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32818 PyObject *resultobj = 0;
32819 wxEffects *arg1 = (wxEffects *) 0 ;
32820 wxColour result;
32821 void *argp1 = 0 ;
32822 int res1 = 0 ;
32823 PyObject *swig_obj[1] ;
32824
32825 if (!args) SWIG_fail;
32826 swig_obj[0] = args;
32827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32828 if (!SWIG_IsOK(res1)) {
32829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32830 }
32831 arg1 = reinterpret_cast< wxEffects * >(argp1);
32832 {
32833 PyThreadState* __tstate = wxPyBeginAllowThreads();
32834 result = ((wxEffects const *)arg1)->GetMediumShadow();
32835 wxPyEndAllowThreads(__tstate);
32836 if (PyErr_Occurred()) SWIG_fail;
32837 }
32838 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32839 return resultobj;
32840fail:
32841 return NULL;
32842}
32843
32844
32845SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32846 PyObject *resultobj = 0;
32847 wxEffects *arg1 = (wxEffects *) 0 ;
32848 wxColour result;
32849 void *argp1 = 0 ;
32850 int res1 = 0 ;
32851 PyObject *swig_obj[1] ;
32852
32853 if (!args) SWIG_fail;
32854 swig_obj[0] = args;
32855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32856 if (!SWIG_IsOK(res1)) {
32857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32858 }
32859 arg1 = reinterpret_cast< wxEffects * >(argp1);
32860 {
32861 PyThreadState* __tstate = wxPyBeginAllowThreads();
32862 result = ((wxEffects const *)arg1)->GetDarkShadow();
32863 wxPyEndAllowThreads(__tstate);
32864 if (PyErr_Occurred()) SWIG_fail;
32865 }
32866 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32867 return resultobj;
32868fail:
32869 return NULL;
32870}
32871
32872
32873SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32874 PyObject *resultobj = 0;
32875 wxEffects *arg1 = (wxEffects *) 0 ;
32876 wxColour *arg2 = 0 ;
32877 void *argp1 = 0 ;
32878 int res1 = 0 ;
32879 wxColour temp2 ;
32880 PyObject * obj0 = 0 ;
32881 PyObject * obj1 = 0 ;
32882 char * kwnames[] = {
32883 (char *) "self",(char *) "c", NULL
32884 };
32885
32886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32888 if (!SWIG_IsOK(res1)) {
32889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32890 }
32891 arg1 = reinterpret_cast< wxEffects * >(argp1);
32892 {
32893 arg2 = &temp2;
32894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32895 }
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 resultobj = SWIG_Py_Void();
32903 return resultobj;
32904fail:
32905 return NULL;
32906}
32907
32908
32909SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32910 PyObject *resultobj = 0;
32911 wxEffects *arg1 = (wxEffects *) 0 ;
32912 wxColour *arg2 = 0 ;
32913 void *argp1 = 0 ;
32914 int res1 = 0 ;
32915 wxColour temp2 ;
32916 PyObject * obj0 = 0 ;
32917 PyObject * obj1 = 0 ;
32918 char * kwnames[] = {
32919 (char *) "self",(char *) "c", NULL
32920 };
32921
32922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32924 if (!SWIG_IsOK(res1)) {
32925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32926 }
32927 arg1 = reinterpret_cast< wxEffects * >(argp1);
32928 {
32929 arg2 = &temp2;
32930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32931 }
32932 {
32933 PyThreadState* __tstate = wxPyBeginAllowThreads();
32934 (arg1)->SetLightShadow((wxColour const &)*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
32945SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32946 PyObject *resultobj = 0;
32947 wxEffects *arg1 = (wxEffects *) 0 ;
32948 wxColour *arg2 = 0 ;
32949 void *argp1 = 0 ;
32950 int res1 = 0 ;
32951 wxColour temp2 ;
32952 PyObject * obj0 = 0 ;
32953 PyObject * obj1 = 0 ;
32954 char * kwnames[] = {
32955 (char *) "self",(char *) "c", NULL
32956 };
32957
32958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32962 }
32963 arg1 = reinterpret_cast< wxEffects * >(argp1);
32964 {
32965 arg2 = &temp2;
32966 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32967 }
32968 {
32969 PyThreadState* __tstate = wxPyBeginAllowThreads();
32970 (arg1)->SetFaceColour((wxColour const &)*arg2);
32971 wxPyEndAllowThreads(__tstate);
32972 if (PyErr_Occurred()) SWIG_fail;
32973 }
32974 resultobj = SWIG_Py_Void();
32975 return resultobj;
32976fail:
32977 return NULL;
32978}
32979
32980
32981SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32982 PyObject *resultobj = 0;
32983 wxEffects *arg1 = (wxEffects *) 0 ;
32984 wxColour *arg2 = 0 ;
32985 void *argp1 = 0 ;
32986 int res1 = 0 ;
32987 wxColour temp2 ;
32988 PyObject * obj0 = 0 ;
32989 PyObject * obj1 = 0 ;
32990 char * kwnames[] = {
32991 (char *) "self",(char *) "c", NULL
32992 };
32993
32994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32996 if (!SWIG_IsOK(res1)) {
32997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32998 }
32999 arg1 = reinterpret_cast< wxEffects * >(argp1);
33000 {
33001 arg2 = &temp2;
33002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33003 }
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
33006 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_Py_Void();
33011 return resultobj;
33012fail:
33013 return NULL;
33014}
33015
33016
33017SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33018 PyObject *resultobj = 0;
33019 wxEffects *arg1 = (wxEffects *) 0 ;
33020 wxColour *arg2 = 0 ;
33021 void *argp1 = 0 ;
33022 int res1 = 0 ;
33023 wxColour temp2 ;
33024 PyObject * obj0 = 0 ;
33025 PyObject * obj1 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "c", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33034 }
33035 arg1 = reinterpret_cast< wxEffects * >(argp1);
33036 {
33037 arg2 = &temp2;
33038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33039 }
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_Py_Void();
33047 return resultobj;
33048fail:
33049 return NULL;
33050}
33051
33052
33053SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33054 PyObject *resultobj = 0;
33055 wxEffects *arg1 = (wxEffects *) 0 ;
33056 wxColour *arg2 = 0 ;
33057 wxColour *arg3 = 0 ;
33058 wxColour *arg4 = 0 ;
33059 wxColour *arg5 = 0 ;
33060 wxColour *arg6 = 0 ;
33061 void *argp1 = 0 ;
33062 int res1 = 0 ;
33063 wxColour temp2 ;
33064 wxColour temp3 ;
33065 wxColour temp4 ;
33066 wxColour temp5 ;
33067 wxColour temp6 ;
33068 PyObject * obj0 = 0 ;
33069 PyObject * obj1 = 0 ;
33070 PyObject * obj2 = 0 ;
33071 PyObject * obj3 = 0 ;
33072 PyObject * obj4 = 0 ;
33073 PyObject * obj5 = 0 ;
33074 char * kwnames[] = {
33075 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33076 };
33077
33078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33080 if (!SWIG_IsOK(res1)) {
33081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33082 }
33083 arg1 = reinterpret_cast< wxEffects * >(argp1);
33084 {
33085 arg2 = &temp2;
33086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33087 }
33088 {
33089 arg3 = &temp3;
33090 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33091 }
33092 {
33093 arg4 = &temp4;
33094 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33095 }
33096 {
33097 arg5 = &temp5;
33098 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33099 }
33100 {
33101 arg6 = &temp6;
33102 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33103 }
33104 {
33105 PyThreadState* __tstate = wxPyBeginAllowThreads();
33106 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33107 wxPyEndAllowThreads(__tstate);
33108 if (PyErr_Occurred()) SWIG_fail;
33109 }
33110 resultobj = SWIG_Py_Void();
33111 return resultobj;
33112fail:
33113 return NULL;
33114}
33115
33116
33117SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33118 PyObject *resultobj = 0;
33119 wxEffects *arg1 = (wxEffects *) 0 ;
33120 wxDC *arg2 = 0 ;
33121 wxRect *arg3 = 0 ;
33122 int arg4 = (int) 1 ;
33123 void *argp1 = 0 ;
33124 int res1 = 0 ;
33125 void *argp2 = 0 ;
33126 int res2 = 0 ;
33127 wxRect temp3 ;
33128 int val4 ;
33129 int ecode4 = 0 ;
33130 PyObject * obj0 = 0 ;
33131 PyObject * obj1 = 0 ;
33132 PyObject * obj2 = 0 ;
33133 PyObject * obj3 = 0 ;
33134 char * kwnames[] = {
33135 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33136 };
33137
33138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33140 if (!SWIG_IsOK(res1)) {
33141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33142 }
33143 arg1 = reinterpret_cast< wxEffects * >(argp1);
33144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33145 if (!SWIG_IsOK(res2)) {
33146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33147 }
33148 if (!argp2) {
33149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33150 }
33151 arg2 = reinterpret_cast< wxDC * >(argp2);
33152 {
33153 arg3 = &temp3;
33154 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33155 }
33156 if (obj3) {
33157 ecode4 = SWIG_AsVal_int(obj3, &val4);
33158 if (!SWIG_IsOK(ecode4)) {
33159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33160 }
33161 arg4 = static_cast< int >(val4);
33162 }
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_Py_Void();
33170 return resultobj;
33171fail:
33172 return NULL;
33173}
33174
33175
33176SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33177 PyObject *resultobj = 0;
33178 wxEffects *arg1 = (wxEffects *) 0 ;
33179 wxRect *arg2 = 0 ;
33180 wxDC *arg3 = 0 ;
33181 wxBitmap *arg4 = 0 ;
33182 bool result;
33183 void *argp1 = 0 ;
33184 int res1 = 0 ;
33185 wxRect temp2 ;
33186 void *argp3 = 0 ;
33187 int res3 = 0 ;
33188 void *argp4 = 0 ;
33189 int res4 = 0 ;
33190 PyObject * obj0 = 0 ;
33191 PyObject * obj1 = 0 ;
33192 PyObject * obj2 = 0 ;
33193 PyObject * obj3 = 0 ;
33194 char * kwnames[] = {
33195 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33196 };
33197
33198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33200 if (!SWIG_IsOK(res1)) {
33201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33202 }
33203 arg1 = reinterpret_cast< wxEffects * >(argp1);
33204 {
33205 arg2 = &temp2;
33206 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33207 }
33208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33209 if (!SWIG_IsOK(res3)) {
33210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33211 }
33212 if (!argp3) {
33213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33214 }
33215 arg3 = reinterpret_cast< wxDC * >(argp3);
33216 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33217 if (!SWIG_IsOK(res4)) {
33218 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33219 }
33220 if (!argp4) {
33221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33222 }
33223 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33224 {
33225 PyThreadState* __tstate = wxPyBeginAllowThreads();
33226 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33227 wxPyEndAllowThreads(__tstate);
33228 if (PyErr_Occurred()) SWIG_fail;
33229 }
33230 {
33231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33232 }
33233 return resultobj;
33234fail:
33235 return NULL;
33236}
33237
33238
33239SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33240 PyObject *obj;
33241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33242 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33243 return SWIG_Py_Void();
33244}
33245
33246SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33247 return SWIG_Python_InitShadowInstance(args);
33248}
33249
33250SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33251 PyObject *resultobj = 0;
33252 int arg1 ;
33253 int arg2 ;
33254 bool arg3 ;
33255 wxSplitterRenderParams *result = 0 ;
33256 int val1 ;
33257 int ecode1 = 0 ;
33258 int val2 ;
33259 int ecode2 = 0 ;
33260 bool val3 ;
33261 int ecode3 = 0 ;
33262 PyObject * obj0 = 0 ;
33263 PyObject * obj1 = 0 ;
33264 PyObject * obj2 = 0 ;
33265 char * kwnames[] = {
33266 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33267 };
33268
33269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33270 ecode1 = SWIG_AsVal_int(obj0, &val1);
33271 if (!SWIG_IsOK(ecode1)) {
33272 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33273 }
33274 arg1 = static_cast< int >(val1);
33275 ecode2 = SWIG_AsVal_int(obj1, &val2);
33276 if (!SWIG_IsOK(ecode2)) {
33277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33278 }
33279 arg2 = static_cast< int >(val2);
33280 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33281 if (!SWIG_IsOK(ecode3)) {
33282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33283 }
33284 arg3 = static_cast< bool >(val3);
33285 {
33286 PyThreadState* __tstate = wxPyBeginAllowThreads();
33287 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33288 wxPyEndAllowThreads(__tstate);
33289 if (PyErr_Occurred()) SWIG_fail;
33290 }
33291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33292 return resultobj;
33293fail:
33294 return NULL;
33295}
33296
33297
33298SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33299 PyObject *resultobj = 0;
33300 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33301 void *argp1 = 0 ;
33302 int res1 = 0 ;
33303 PyObject *swig_obj[1] ;
33304
33305 if (!args) SWIG_fail;
33306 swig_obj[0] = args;
33307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33308 if (!SWIG_IsOK(res1)) {
33309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33310 }
33311 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 delete arg1;
33315
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 resultobj = SWIG_Py_Void();
33320 return resultobj;
33321fail:
33322 return NULL;
33323}
33324
33325
33326SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33327 PyObject *resultobj = 0;
33328 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33329 int result;
33330 void *argp1 = 0 ;
33331 int res1 = 0 ;
33332 PyObject *swig_obj[1] ;
33333
33334 if (!args) SWIG_fail;
33335 swig_obj[0] = args;
33336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33337 if (!SWIG_IsOK(res1)) {
33338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33339 }
33340 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33341 result = (int)(int) ((arg1)->widthSash);
33342 resultobj = SWIG_From_int(static_cast< int >(result));
33343 return resultobj;
33344fail:
33345 return NULL;
33346}
33347
33348
33349SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33350 PyObject *resultobj = 0;
33351 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33352 int result;
33353 void *argp1 = 0 ;
33354 int res1 = 0 ;
33355 PyObject *swig_obj[1] ;
33356
33357 if (!args) SWIG_fail;
33358 swig_obj[0] = args;
33359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33360 if (!SWIG_IsOK(res1)) {
33361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33362 }
33363 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33364 result = (int)(int) ((arg1)->border);
33365 resultobj = SWIG_From_int(static_cast< int >(result));
33366 return resultobj;
33367fail:
33368 return NULL;
33369}
33370
33371
33372SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33373 PyObject *resultobj = 0;
33374 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33375 bool result;
33376 void *argp1 = 0 ;
33377 int res1 = 0 ;
33378 PyObject *swig_obj[1] ;
33379
33380 if (!args) SWIG_fail;
33381 swig_obj[0] = args;
33382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33383 if (!SWIG_IsOK(res1)) {
33384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33385 }
33386 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33387 result = (bool)(bool) ((arg1)->isHotSensitive);
33388 resultobj = SWIG_From_bool(static_cast< bool >(result));
33389 return resultobj;
33390fail:
33391 return NULL;
33392}
33393
33394
33395SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33396 PyObject *obj;
33397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33398 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33399 return SWIG_Py_Void();
33400}
33401
33402SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33403 return SWIG_Python_InitShadowInstance(args);
33404}
33405
33d6fd3b
RD
33406SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33407 PyObject *resultobj = 0;
33408 wxHeaderButtonParams *result = 0 ;
33409
33410 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33411 {
33412 PyThreadState* __tstate = wxPyBeginAllowThreads();
33413 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33414 wxPyEndAllowThreads(__tstate);
33415 if (PyErr_Occurred()) SWIG_fail;
33416 }
33417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33418 return resultobj;
33419fail:
33420 return NULL;
33421}
33422
33423
33424SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33425 PyObject *resultobj = 0;
33426 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33427 void *argp1 = 0 ;
33428 int res1 = 0 ;
33429 PyObject *swig_obj[1] ;
33430
33431 if (!args) SWIG_fail;
33432 swig_obj[0] = args;
33433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33434 if (!SWIG_IsOK(res1)) {
33435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33436 }
33437 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33438 {
33439 PyThreadState* __tstate = wxPyBeginAllowThreads();
33440 delete arg1;
33441
33442 wxPyEndAllowThreads(__tstate);
33443 if (PyErr_Occurred()) SWIG_fail;
33444 }
33445 resultobj = SWIG_Py_Void();
33446 return resultobj;
33447fail:
33448 return NULL;
33449}
33450
33451
33452SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33453 PyObject *resultobj = 0;
33454 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33455 wxColour *arg2 = (wxColour *) 0 ;
33456 void *argp1 = 0 ;
33457 int res1 = 0 ;
33458 wxColour temp2 ;
33459 PyObject *swig_obj[2] ;
33460
33461 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33463 if (!SWIG_IsOK(res1)) {
33464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33465 }
33466 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33467 {
33468 arg2 = &temp2;
33469 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33470 }
33471 if (arg1) (arg1)->m_arrowColour = *arg2;
33472
33473 resultobj = SWIG_Py_Void();
33474 return resultobj;
33475fail:
33476 return NULL;
33477}
33478
33479
33480SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33481 PyObject *resultobj = 0;
33482 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33483 wxColour *result = 0 ;
33484 void *argp1 = 0 ;
33485 int res1 = 0 ;
33486 PyObject *swig_obj[1] ;
33487
33488 if (!args) SWIG_fail;
33489 swig_obj[0] = args;
33490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33491 if (!SWIG_IsOK(res1)) {
33492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33493 }
33494 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33495 result = (wxColour *)& ((arg1)->m_arrowColour);
33496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33497 return resultobj;
33498fail:
33499 return NULL;
33500}
33501
33502
33503SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33504 PyObject *resultobj = 0;
33505 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33506 wxColour *arg2 = (wxColour *) 0 ;
33507 void *argp1 = 0 ;
33508 int res1 = 0 ;
33509 wxColour temp2 ;
33510 PyObject *swig_obj[2] ;
33511
33512 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33514 if (!SWIG_IsOK(res1)) {
33515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33516 }
33517 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33518 {
33519 arg2 = &temp2;
33520 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33521 }
33522 if (arg1) (arg1)->m_selectionColour = *arg2;
33523
33524 resultobj = SWIG_Py_Void();
33525 return resultobj;
33526fail:
33527 return NULL;
33528}
33529
33530
33531SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33532 PyObject *resultobj = 0;
33533 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33534 wxColour *result = 0 ;
33535 void *argp1 = 0 ;
33536 int res1 = 0 ;
33537 PyObject *swig_obj[1] ;
33538
33539 if (!args) SWIG_fail;
33540 swig_obj[0] = args;
33541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33542 if (!SWIG_IsOK(res1)) {
33543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33544 }
33545 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33546 result = (wxColour *)& ((arg1)->m_selectionColour);
33547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33548 return resultobj;
33549fail:
33550 return NULL;
33551}
33552
33553
33554SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33555 PyObject *resultobj = 0;
33556 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33557 wxString *arg2 = (wxString *) 0 ;
33558 void *argp1 = 0 ;
33559 int res1 = 0 ;
33560 bool temp2 = false ;
33561 PyObject *swig_obj[2] ;
33562
33563 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33567 }
33568 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33569 {
33570 arg2 = wxString_in_helper(swig_obj[1]);
33571 if (arg2 == NULL) SWIG_fail;
33572 temp2 = true;
33573 }
33574 if (arg1) (arg1)->m_labelText = *arg2;
33575
33576 resultobj = SWIG_Py_Void();
33577 {
33578 if (temp2)
33579 delete arg2;
33580 }
33581 return resultobj;
33582fail:
33583 {
33584 if (temp2)
33585 delete arg2;
33586 }
33587 return NULL;
33588}
33589
33590
33591SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33592 PyObject *resultobj = 0;
33593 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33594 wxString *result = 0 ;
33595 void *argp1 = 0 ;
33596 int res1 = 0 ;
33597 PyObject *swig_obj[1] ;
33598
33599 if (!args) SWIG_fail;
33600 swig_obj[0] = args;
33601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33602 if (!SWIG_IsOK(res1)) {
33603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33604 }
33605 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33606 result = (wxString *)& ((arg1)->m_labelText);
33607 {
33608#if wxUSE_UNICODE
33609 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33610#else
33611 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33612#endif
33613 }
33614 return resultobj;
33615fail:
33616 return NULL;
33617}
33618
33619
33620SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33621 PyObject *resultobj = 0;
33622 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33623 wxFont *arg2 = (wxFont *) 0 ;
33624 void *argp1 = 0 ;
33625 int res1 = 0 ;
33626 void *argp2 = 0 ;
33627 int res2 = 0 ;
33628 PyObject *swig_obj[2] ;
33629
33630 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33632 if (!SWIG_IsOK(res1)) {
33633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33634 }
33635 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33636 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33637 if (!SWIG_IsOK(res2)) {
33638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33639 }
33640 arg2 = reinterpret_cast< wxFont * >(argp2);
33641 if (arg1) (arg1)->m_labelFont = *arg2;
33642
33643 resultobj = SWIG_Py_Void();
33644 return resultobj;
33645fail:
33646 return NULL;
33647}
33648
33649
33650SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33651 PyObject *resultobj = 0;
33652 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33653 wxFont *result = 0 ;
33654 void *argp1 = 0 ;
33655 int res1 = 0 ;
33656 PyObject *swig_obj[1] ;
33657
33658 if (!args) SWIG_fail;
33659 swig_obj[0] = args;
33660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33661 if (!SWIG_IsOK(res1)) {
33662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33663 }
33664 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33665 result = (wxFont *)& ((arg1)->m_labelFont);
33666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33667 return resultobj;
33668fail:
33669 return NULL;
33670}
33671
33672
33673SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33674 PyObject *resultobj = 0;
33675 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33676 wxColour *arg2 = (wxColour *) 0 ;
33677 void *argp1 = 0 ;
33678 int res1 = 0 ;
33679 wxColour temp2 ;
33680 PyObject *swig_obj[2] ;
33681
33682 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33684 if (!SWIG_IsOK(res1)) {
33685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33686 }
33687 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33688 {
33689 arg2 = &temp2;
33690 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33691 }
33692 if (arg1) (arg1)->m_labelColour = *arg2;
33693
33694 resultobj = SWIG_Py_Void();
33695 return resultobj;
33696fail:
33697 return NULL;
33698}
33699
33700
33701SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33702 PyObject *resultobj = 0;
33703 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33704 wxColour *result = 0 ;
33705 void *argp1 = 0 ;
33706 int res1 = 0 ;
33707 PyObject *swig_obj[1] ;
33708
33709 if (!args) SWIG_fail;
33710 swig_obj[0] = args;
33711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33712 if (!SWIG_IsOK(res1)) {
33713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33714 }
33715 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33716 result = (wxColour *)& ((arg1)->m_labelColour);
33717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33718 return resultobj;
33719fail:
33720 return NULL;
33721}
33722
33723
33724SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33725 PyObject *resultobj = 0;
33726 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33727 wxBitmap *arg2 = (wxBitmap *) 0 ;
33728 void *argp1 = 0 ;
33729 int res1 = 0 ;
33730 void *argp2 = 0 ;
33731 int res2 = 0 ;
33732 PyObject *swig_obj[2] ;
33733
33734 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33736 if (!SWIG_IsOK(res1)) {
33737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33738 }
33739 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33740 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33741 if (!SWIG_IsOK(res2)) {
33742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33743 }
33744 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33745 if (arg1) (arg1)->m_labelBitmap = *arg2;
33746
33747 resultobj = SWIG_Py_Void();
33748 return resultobj;
33749fail:
33750 return NULL;
33751}
33752
33753
33754SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33755 PyObject *resultobj = 0;
33756 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33757 wxBitmap *result = 0 ;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 PyObject *swig_obj[1] ;
33761
33762 if (!args) SWIG_fail;
33763 swig_obj[0] = args;
33764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33765 if (!SWIG_IsOK(res1)) {
33766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33767 }
33768 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33769 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33771 return resultobj;
33772fail:
33773 return NULL;
33774}
33775
33776
33777SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33778 PyObject *resultobj = 0;
33779 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33780 int arg2 ;
33781 void *argp1 = 0 ;
33782 int res1 = 0 ;
33783 int val2 ;
33784 int ecode2 = 0 ;
33785 PyObject *swig_obj[2] ;
33786
33787 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33789 if (!SWIG_IsOK(res1)) {
33790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33791 }
33792 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33793 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33794 if (!SWIG_IsOK(ecode2)) {
33795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33796 }
33797 arg2 = static_cast< int >(val2);
33798 if (arg1) (arg1)->m_labelAlignment = arg2;
33799
33800 resultobj = SWIG_Py_Void();
33801 return resultobj;
33802fail:
33803 return NULL;
33804}
33805
33806
33807SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33808 PyObject *resultobj = 0;
33809 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33810 int result;
33811 void *argp1 = 0 ;
33812 int res1 = 0 ;
33813 PyObject *swig_obj[1] ;
33814
33815 if (!args) SWIG_fail;
33816 swig_obj[0] = args;
33817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33818 if (!SWIG_IsOK(res1)) {
33819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33820 }
33821 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33822 result = (int) ((arg1)->m_labelAlignment);
33823 resultobj = SWIG_From_int(static_cast< int >(result));
33824 return resultobj;
33825fail:
33826 return NULL;
33827}
33828
33829
33830SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33831 PyObject *obj;
33832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33833 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33834 return SWIG_Py_Void();
33835}
33836
33837SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33838 return SWIG_Python_InitShadowInstance(args);
33839}
33840
1bd55598
RD
33841SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33842 PyObject *resultobj = 0;
33843 int arg1 ;
33844 int arg2 ;
33845 wxRendererVersion *result = 0 ;
33846 int val1 ;
33847 int ecode1 = 0 ;
33848 int val2 ;
33849 int ecode2 = 0 ;
33850 PyObject * obj0 = 0 ;
33851 PyObject * obj1 = 0 ;
33852 char * kwnames[] = {
33853 (char *) "version_",(char *) "age_", NULL
33854 };
33855
33856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33857 ecode1 = SWIG_AsVal_int(obj0, &val1);
33858 if (!SWIG_IsOK(ecode1)) {
33859 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33860 }
33861 arg1 = static_cast< int >(val1);
33862 ecode2 = SWIG_AsVal_int(obj1, &val2);
33863 if (!SWIG_IsOK(ecode2)) {
33864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33865 }
33866 arg2 = static_cast< int >(val2);
33867 {
33868 PyThreadState* __tstate = wxPyBeginAllowThreads();
33869 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33870 wxPyEndAllowThreads(__tstate);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33874 return resultobj;
33875fail:
33876 return NULL;
33877}
33878
33879
33880SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33881 PyObject *resultobj = 0;
33882 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33883 void *argp1 = 0 ;
33884 int res1 = 0 ;
33885 PyObject *swig_obj[1] ;
33886
33887 if (!args) SWIG_fail;
33888 swig_obj[0] = args;
33889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33890 if (!SWIG_IsOK(res1)) {
33891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33892 }
33893 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 delete arg1;
33897
33898 wxPyEndAllowThreads(__tstate);
33899 if (PyErr_Occurred()) SWIG_fail;
33900 }
33901 resultobj = SWIG_Py_Void();
33902 return resultobj;
33903fail:
33904 return NULL;
33905}
33906
33907
33908SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33909 PyObject *resultobj = 0;
33910 wxRendererVersion *arg1 = 0 ;
33911 bool result;
33912 void *argp1 = 0 ;
33913 int res1 = 0 ;
33914 PyObject * obj0 = 0 ;
33915 char * kwnames[] = {
33916 (char *) "ver", NULL
33917 };
33918
33919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33920 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33921 if (!SWIG_IsOK(res1)) {
33922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33923 }
33924 if (!argp1) {
33925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33926 }
33927 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33928 {
33929 PyThreadState* __tstate = wxPyBeginAllowThreads();
33930 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33931 wxPyEndAllowThreads(__tstate);
33932 if (PyErr_Occurred()) SWIG_fail;
33933 }
33934 {
33935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33936 }
33937 return resultobj;
33938fail:
33939 return NULL;
33940}
33941
33942
33943SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33944 PyObject *resultobj = 0;
33945 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33946 int result;
33947 void *argp1 = 0 ;
33948 int res1 = 0 ;
33949 PyObject *swig_obj[1] ;
33950
33951 if (!args) SWIG_fail;
33952 swig_obj[0] = args;
33953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33954 if (!SWIG_IsOK(res1)) {
33955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33956 }
33957 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33958 result = (int)(int) ((arg1)->version);
33959 resultobj = SWIG_From_int(static_cast< int >(result));
33960 return resultobj;
33961fail:
33962 return NULL;
33963}
33964
33965
33966SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33967 PyObject *resultobj = 0;
33968 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33969 int result;
33970 void *argp1 = 0 ;
33971 int res1 = 0 ;
33972 PyObject *swig_obj[1] ;
33973
33974 if (!args) SWIG_fail;
33975 swig_obj[0] = args;
33976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33977 if (!SWIG_IsOK(res1)) {
33978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33979 }
33980 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33981 result = (int)(int) ((arg1)->age);
33982 resultobj = SWIG_From_int(static_cast< int >(result));
33983 return resultobj;
33984fail:
33985 return NULL;
33986}
33987
33988
33989SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33990 PyObject *obj;
33991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33992 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33993 return SWIG_Py_Void();
33994}
33995
33996SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33997 return SWIG_Python_InitShadowInstance(args);
33998}
33999
34000SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34001 PyObject *resultobj = 0;
34002 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34003 wxWindow *arg2 = (wxWindow *) 0 ;
34004 wxDC *arg3 = 0 ;
34005 wxRect *arg4 = 0 ;
34006 int arg5 = (int) 0 ;
33d6fd3b
RD
34007 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34008 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 void *argp2 = 0 ;
34012 int res2 = 0 ;
34013 void *argp3 = 0 ;
34014 int res3 = 0 ;
34015 wxRect temp4 ;
34016 int val5 ;
34017 int ecode5 = 0 ;
33d6fd3b
RD
34018 int val6 ;
34019 int ecode6 = 0 ;
34020 void *argp7 = 0 ;
34021 int res7 = 0 ;
1bd55598
RD
34022 PyObject * obj0 = 0 ;
34023 PyObject * obj1 = 0 ;
34024 PyObject * obj2 = 0 ;
34025 PyObject * obj3 = 0 ;
34026 PyObject * obj4 = 0 ;
33d6fd3b
RD
34027 PyObject * obj5 = 0 ;
34028 PyObject * obj6 = 0 ;
1bd55598 34029 char * kwnames[] = {
33d6fd3b 34030 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34031 };
34032
33d6fd3b 34033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34035 if (!SWIG_IsOK(res1)) {
34036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34037 }
34038 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34040 if (!SWIG_IsOK(res2)) {
34041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34042 }
34043 arg2 = reinterpret_cast< wxWindow * >(argp2);
34044 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34045 if (!SWIG_IsOK(res3)) {
34046 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34047 }
34048 if (!argp3) {
34049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34050 }
34051 arg3 = reinterpret_cast< wxDC * >(argp3);
34052 {
34053 arg4 = &temp4;
34054 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34055 }
34056 if (obj4) {
34057 ecode5 = SWIG_AsVal_int(obj4, &val5);
34058 if (!SWIG_IsOK(ecode5)) {
34059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34060 }
34061 arg5 = static_cast< int >(val5);
34062 }
33d6fd3b
RD
34063 if (obj5) {
34064 ecode6 = SWIG_AsVal_int(obj5, &val6);
34065 if (!SWIG_IsOK(ecode6)) {
34066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34067 }
34068 arg6 = static_cast< wxHeaderSortIconType >(val6);
34069 }
34070 if (obj6) {
34071 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34072 if (!SWIG_IsOK(res7)) {
34073 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34074 }
34075 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34076 }
34077 {
34078 PyThreadState* __tstate = wxPyBeginAllowThreads();
34079 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34080 wxPyEndAllowThreads(__tstate);
34081 if (PyErr_Occurred()) SWIG_fail;
34082 }
34083 resultobj = SWIG_Py_Void();
34084 return resultobj;
34085fail:
34086 return NULL;
34087}
34088
34089
34090SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34091 PyObject *resultobj = 0;
34092 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34093 wxWindow *arg2 = (wxWindow *) 0 ;
34094 wxDC *arg3 = 0 ;
34095 wxRect *arg4 = 0 ;
34096 int arg5 = (int) 0 ;
34097 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34098 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34099 void *argp1 = 0 ;
34100 int res1 = 0 ;
34101 void *argp2 = 0 ;
34102 int res2 = 0 ;
34103 void *argp3 = 0 ;
34104 int res3 = 0 ;
34105 wxRect temp4 ;
34106 int val5 ;
34107 int ecode5 = 0 ;
34108 int val6 ;
34109 int ecode6 = 0 ;
34110 void *argp7 = 0 ;
34111 int res7 = 0 ;
34112 PyObject * obj0 = 0 ;
34113 PyObject * obj1 = 0 ;
34114 PyObject * obj2 = 0 ;
34115 PyObject * obj3 = 0 ;
34116 PyObject * obj4 = 0 ;
34117 PyObject * obj5 = 0 ;
34118 PyObject * obj6 = 0 ;
34119 char * kwnames[] = {
34120 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34121 };
34122
34123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34125 if (!SWIG_IsOK(res1)) {
34126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34127 }
34128 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34130 if (!SWIG_IsOK(res2)) {
34131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34132 }
34133 arg2 = reinterpret_cast< wxWindow * >(argp2);
34134 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34135 if (!SWIG_IsOK(res3)) {
34136 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34137 }
34138 if (!argp3) {
34139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34140 }
34141 arg3 = reinterpret_cast< wxDC * >(argp3);
34142 {
34143 arg4 = &temp4;
34144 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34145 }
34146 if (obj4) {
34147 ecode5 = SWIG_AsVal_int(obj4, &val5);
34148 if (!SWIG_IsOK(ecode5)) {
34149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34150 }
34151 arg5 = static_cast< int >(val5);
34152 }
34153 if (obj5) {
34154 ecode6 = SWIG_AsVal_int(obj5, &val6);
34155 if (!SWIG_IsOK(ecode6)) {
34156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34157 }
34158 arg6 = static_cast< wxHeaderSortIconType >(val6);
34159 }
34160 if (obj6) {
34161 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34162 if (!SWIG_IsOK(res7)) {
34163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34164 }
34165 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34166 }
1bd55598
RD
34167 {
34168 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34169 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34170 wxPyEndAllowThreads(__tstate);
34171 if (PyErr_Occurred()) SWIG_fail;
34172 }
34173 resultobj = SWIG_Py_Void();
34174 return resultobj;
34175fail:
34176 return NULL;
34177}
34178
34179
33d6fd3b
RD
34180SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34181 PyObject *resultobj = 0;
34182 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34183 wxWindow *arg2 = (wxWindow *) 0 ;
34184 int result;
34185 void *argp1 = 0 ;
34186 int res1 = 0 ;
34187 void *argp2 = 0 ;
34188 int res2 = 0 ;
34189 PyObject * obj0 = 0 ;
34190 PyObject * obj1 = 0 ;
34191 char * kwnames[] = {
34192 (char *) "self",(char *) "win", NULL
34193 };
34194
34195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34197 if (!SWIG_IsOK(res1)) {
34198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34199 }
34200 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34202 if (!SWIG_IsOK(res2)) {
34203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34204 }
34205 arg2 = reinterpret_cast< wxWindow * >(argp2);
34206 {
34207 PyThreadState* __tstate = wxPyBeginAllowThreads();
34208 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34209 wxPyEndAllowThreads(__tstate);
34210 if (PyErr_Occurred()) SWIG_fail;
34211 }
34212 resultobj = SWIG_From_int(static_cast< int >(result));
34213 return resultobj;
34214fail:
34215 return NULL;
34216}
34217
34218
1bd55598
RD
34219SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34220 PyObject *resultobj = 0;
34221 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34222 wxWindow *arg2 = (wxWindow *) 0 ;
34223 wxDC *arg3 = 0 ;
34224 wxRect *arg4 = 0 ;
34225 int arg5 = (int) 0 ;
34226 void *argp1 = 0 ;
34227 int res1 = 0 ;
34228 void *argp2 = 0 ;
34229 int res2 = 0 ;
34230 void *argp3 = 0 ;
34231 int res3 = 0 ;
34232 wxRect temp4 ;
34233 int val5 ;
34234 int ecode5 = 0 ;
34235 PyObject * obj0 = 0 ;
34236 PyObject * obj1 = 0 ;
34237 PyObject * obj2 = 0 ;
34238 PyObject * obj3 = 0 ;
34239 PyObject * obj4 = 0 ;
34240 char * kwnames[] = {
34241 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34242 };
34243
34244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34246 if (!SWIG_IsOK(res1)) {
34247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34248 }
34249 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34250 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34251 if (!SWIG_IsOK(res2)) {
34252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34253 }
34254 arg2 = reinterpret_cast< wxWindow * >(argp2);
34255 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34256 if (!SWIG_IsOK(res3)) {
34257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34258 }
34259 if (!argp3) {
34260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34261 }
34262 arg3 = reinterpret_cast< wxDC * >(argp3);
34263 {
34264 arg4 = &temp4;
34265 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34266 }
34267 if (obj4) {
34268 ecode5 = SWIG_AsVal_int(obj4, &val5);
34269 if (!SWIG_IsOK(ecode5)) {
34270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34271 }
34272 arg5 = static_cast< int >(val5);
34273 }
34274 {
34275 PyThreadState* __tstate = wxPyBeginAllowThreads();
34276 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34277 wxPyEndAllowThreads(__tstate);
34278 if (PyErr_Occurred()) SWIG_fail;
34279 }
34280 resultobj = SWIG_Py_Void();
34281 return resultobj;
34282fail:
34283 return NULL;
34284}
34285
34286
34287SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34288 PyObject *resultobj = 0;
34289 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34290 wxWindow *arg2 = (wxWindow *) 0 ;
34291 wxDC *arg3 = 0 ;
34292 wxRect *arg4 = 0 ;
34293 int arg5 = (int) 0 ;
34294 void *argp1 = 0 ;
34295 int res1 = 0 ;
34296 void *argp2 = 0 ;
34297 int res2 = 0 ;
34298 void *argp3 = 0 ;
34299 int res3 = 0 ;
34300 wxRect temp4 ;
34301 int val5 ;
34302 int ecode5 = 0 ;
34303 PyObject * obj0 = 0 ;
34304 PyObject * obj1 = 0 ;
34305 PyObject * obj2 = 0 ;
34306 PyObject * obj3 = 0 ;
34307 PyObject * obj4 = 0 ;
34308 char * kwnames[] = {
34309 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34310 };
34311
34312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34316 }
34317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34319 if (!SWIG_IsOK(res2)) {
34320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34321 }
34322 arg2 = reinterpret_cast< wxWindow * >(argp2);
34323 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34324 if (!SWIG_IsOK(res3)) {
34325 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34326 }
34327 if (!argp3) {
34328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34329 }
34330 arg3 = reinterpret_cast< wxDC * >(argp3);
34331 {
34332 arg4 = &temp4;
34333 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34334 }
34335 if (obj4) {
34336 ecode5 = SWIG_AsVal_int(obj4, &val5);
34337 if (!SWIG_IsOK(ecode5)) {
34338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34339 }
34340 arg5 = static_cast< int >(val5);
34341 }
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
34344 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34345 wxPyEndAllowThreads(__tstate);
34346 if (PyErr_Occurred()) SWIG_fail;
34347 }
34348 resultobj = SWIG_Py_Void();
34349 return resultobj;
34350fail:
34351 return NULL;
34352}
34353
34354
34355SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34356 PyObject *resultobj = 0;
34357 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34358 wxWindow *arg2 = (wxWindow *) 0 ;
34359 wxDC *arg3 = 0 ;
34360 wxSize *arg4 = 0 ;
34361 int arg5 ;
34362 wxOrientation arg6 ;
34363 int arg7 = (int) 0 ;
34364 void *argp1 = 0 ;
34365 int res1 = 0 ;
34366 void *argp2 = 0 ;
34367 int res2 = 0 ;
34368 void *argp3 = 0 ;
34369 int res3 = 0 ;
34370 wxSize temp4 ;
34371 int val5 ;
34372 int ecode5 = 0 ;
34373 int val6 ;
34374 int ecode6 = 0 ;
34375 int val7 ;
34376 int ecode7 = 0 ;
34377 PyObject * obj0 = 0 ;
34378 PyObject * obj1 = 0 ;
34379 PyObject * obj2 = 0 ;
34380 PyObject * obj3 = 0 ;
34381 PyObject * obj4 = 0 ;
34382 PyObject * obj5 = 0 ;
34383 PyObject * obj6 = 0 ;
34384 char * kwnames[] = {
34385 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34386 };
34387
34388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34390 if (!SWIG_IsOK(res1)) {
34391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34392 }
34393 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34395 if (!SWIG_IsOK(res2)) {
34396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34397 }
34398 arg2 = reinterpret_cast< wxWindow * >(argp2);
34399 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34400 if (!SWIG_IsOK(res3)) {
34401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34402 }
34403 if (!argp3) {
34404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34405 }
34406 arg3 = reinterpret_cast< wxDC * >(argp3);
34407 {
34408 arg4 = &temp4;
34409 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34410 }
34411 ecode5 = SWIG_AsVal_int(obj4, &val5);
34412 if (!SWIG_IsOK(ecode5)) {
34413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34414 }
34415 arg5 = static_cast< int >(val5);
34416 ecode6 = SWIG_AsVal_int(obj5, &val6);
34417 if (!SWIG_IsOK(ecode6)) {
34418 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34419 }
34420 arg6 = static_cast< wxOrientation >(val6);
34421 if (obj6) {
34422 ecode7 = SWIG_AsVal_int(obj6, &val7);
34423 if (!SWIG_IsOK(ecode7)) {
34424 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34425 }
34426 arg7 = static_cast< int >(val7);
34427 }
34428 {
34429 PyThreadState* __tstate = wxPyBeginAllowThreads();
34430 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34431 wxPyEndAllowThreads(__tstate);
34432 if (PyErr_Occurred()) SWIG_fail;
34433 }
34434 resultobj = SWIG_Py_Void();
34435 return resultobj;
34436fail:
34437 return NULL;
34438}
34439
34440
34441SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34442 PyObject *resultobj = 0;
34443 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34444 wxWindow *arg2 = (wxWindow *) 0 ;
34445 wxDC *arg3 = 0 ;
34446 wxRect *arg4 = 0 ;
34447 int arg5 = (int) 0 ;
34448 void *argp1 = 0 ;
34449 int res1 = 0 ;
34450 void *argp2 = 0 ;
34451 int res2 = 0 ;
34452 void *argp3 = 0 ;
34453 int res3 = 0 ;
34454 wxRect temp4 ;
34455 int val5 ;
34456 int ecode5 = 0 ;
34457 PyObject * obj0 = 0 ;
34458 PyObject * obj1 = 0 ;
34459 PyObject * obj2 = 0 ;
34460 PyObject * obj3 = 0 ;
34461 PyObject * obj4 = 0 ;
34462 char * kwnames[] = {
34463 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34464 };
34465
34466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34468 if (!SWIG_IsOK(res1)) {
34469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34470 }
34471 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34473 if (!SWIG_IsOK(res2)) {
34474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34475 }
34476 arg2 = reinterpret_cast< wxWindow * >(argp2);
34477 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34478 if (!SWIG_IsOK(res3)) {
34479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34480 }
34481 if (!argp3) {
34482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34483 }
34484 arg3 = reinterpret_cast< wxDC * >(argp3);
34485 {
34486 arg4 = &temp4;
34487 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34488 }
34489 if (obj4) {
34490 ecode5 = SWIG_AsVal_int(obj4, &val5);
34491 if (!SWIG_IsOK(ecode5)) {
34492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34493 }
34494 arg5 = static_cast< int >(val5);
34495 }
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504fail:
34505 return NULL;
34506}
34507
34508
34509SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj = 0;
34511 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34512 wxWindow *arg2 = (wxWindow *) 0 ;
34513 wxDC *arg3 = 0 ;
34514 wxRect *arg4 = 0 ;
34515 int arg5 = (int) 0 ;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 void *argp2 = 0 ;
34519 int res2 = 0 ;
34520 void *argp3 = 0 ;
34521 int res3 = 0 ;
34522 wxRect temp4 ;
34523 int val5 ;
34524 int ecode5 = 0 ;
34525 PyObject * obj0 = 0 ;
34526 PyObject * obj1 = 0 ;
34527 PyObject * obj2 = 0 ;
34528 PyObject * obj3 = 0 ;
34529 PyObject * obj4 = 0 ;
34530 char * kwnames[] = {
34531 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34532 };
34533
34534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34536 if (!SWIG_IsOK(res1)) {
34537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34538 }
34539 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34541 if (!SWIG_IsOK(res2)) {
34542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34543 }
34544 arg2 = reinterpret_cast< wxWindow * >(argp2);
34545 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34546 if (!SWIG_IsOK(res3)) {
34547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34548 }
34549 if (!argp3) {
34550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34551 }
34552 arg3 = reinterpret_cast< wxDC * >(argp3);
34553 {
34554 arg4 = &temp4;
34555 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34556 }
34557 if (obj4) {
34558 ecode5 = SWIG_AsVal_int(obj4, &val5);
34559 if (!SWIG_IsOK(ecode5)) {
34560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34561 }
34562 arg5 = static_cast< int >(val5);
34563 }
34564 {
34565 PyThreadState* __tstate = wxPyBeginAllowThreads();
34566 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34567 wxPyEndAllowThreads(__tstate);
34568 if (PyErr_Occurred()) SWIG_fail;
34569 }
34570 resultobj = SWIG_Py_Void();
34571 return resultobj;
34572fail:
34573 return NULL;
34574}
34575
34576
2131d850 34577SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34578 PyObject *resultobj = 0;
34579 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34580 wxWindow *arg2 = (wxWindow *) 0 ;
34581 wxDC *arg3 = 0 ;
34582 wxRect *arg4 = 0 ;
34583 int arg5 = (int) 0 ;
34584 void *argp1 = 0 ;
34585 int res1 = 0 ;
34586 void *argp2 = 0 ;
34587 int res2 = 0 ;
34588 void *argp3 = 0 ;
34589 int res3 = 0 ;
34590 wxRect temp4 ;
34591 int val5 ;
34592 int ecode5 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 PyObject * obj2 = 0 ;
34596 PyObject * obj3 = 0 ;
34597 PyObject * obj4 = 0 ;
34598 char * kwnames[] = {
34599 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34600 };
34601
2131d850 34602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34604 if (!SWIG_IsOK(res1)) {
2131d850 34605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34606 }
34607 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34608 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34609 if (!SWIG_IsOK(res2)) {
2131d850 34610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34611 }
34612 arg2 = reinterpret_cast< wxWindow * >(argp2);
34613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34614 if (!SWIG_IsOK(res3)) {
2131d850 34615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34616 }
34617 if (!argp3) {
2131d850 34618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34619 }
34620 arg3 = reinterpret_cast< wxDC * >(argp3);
34621 {
34622 arg4 = &temp4;
34623 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34624 }
34625 if (obj4) {
34626 ecode5 = SWIG_AsVal_int(obj4, &val5);
34627 if (!SWIG_IsOK(ecode5)) {
2131d850 34628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34629 }
34630 arg5 = static_cast< int >(val5);
34631 }
34632 {
34633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34634 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34635 wxPyEndAllowThreads(__tstate);
34636 if (PyErr_Occurred()) SWIG_fail;
34637 }
34638 resultobj = SWIG_Py_Void();
34639 return resultobj;
34640fail:
34641 return NULL;
34642}
34643
34644
34645SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34646 PyObject *resultobj = 0;
34647 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34648 wxWindow *arg2 = (wxWindow *) 0 ;
34649 wxDC *arg3 = 0 ;
34650 wxRect *arg4 = 0 ;
34651 int arg5 = (int) 0 ;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 void *argp2 = 0 ;
34655 int res2 = 0 ;
34656 void *argp3 = 0 ;
34657 int res3 = 0 ;
34658 wxRect temp4 ;
34659 int val5 ;
34660 int ecode5 = 0 ;
34661 PyObject * obj0 = 0 ;
34662 PyObject * obj1 = 0 ;
34663 PyObject * obj2 = 0 ;
34664 PyObject * obj3 = 0 ;
34665 PyObject * obj4 = 0 ;
34666 char * kwnames[] = {
34667 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34668 };
34669
34670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34672 if (!SWIG_IsOK(res1)) {
34673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34674 }
34675 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34677 if (!SWIG_IsOK(res2)) {
34678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34679 }
34680 arg2 = reinterpret_cast< wxWindow * >(argp2);
34681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34682 if (!SWIG_IsOK(res3)) {
34683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34684 }
34685 if (!argp3) {
34686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34687 }
34688 arg3 = reinterpret_cast< wxDC * >(argp3);
34689 {
34690 arg4 = &temp4;
34691 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34692 }
34693 if (obj4) {
34694 ecode5 = SWIG_AsVal_int(obj4, &val5);
34695 if (!SWIG_IsOK(ecode5)) {
34696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34697 }
34698 arg5 = static_cast< int >(val5);
34699 }
34700 {
34701 PyThreadState* __tstate = wxPyBeginAllowThreads();
34702 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34703 wxPyEndAllowThreads(__tstate);
34704 if (PyErr_Occurred()) SWIG_fail;
34705 }
34706 resultobj = SWIG_Py_Void();
34707 return resultobj;
34708fail:
34709 return NULL;
34710}
34711
34712
34713SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34714 PyObject *resultobj = 0;
34715 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34716 wxWindow *arg2 = (wxWindow *) 0 ;
34717 wxDC *arg3 = 0 ;
34718 wxRect *arg4 = 0 ;
34719 int arg5 = (int) 0 ;
34720 void *argp1 = 0 ;
34721 int res1 = 0 ;
34722 void *argp2 = 0 ;
34723 int res2 = 0 ;
34724 void *argp3 = 0 ;
34725 int res3 = 0 ;
34726 wxRect temp4 ;
34727 int val5 ;
34728 int ecode5 = 0 ;
34729 PyObject * obj0 = 0 ;
34730 PyObject * obj1 = 0 ;
34731 PyObject * obj2 = 0 ;
34732 PyObject * obj3 = 0 ;
34733 PyObject * obj4 = 0 ;
34734 char * kwnames[] = {
34735 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34736 };
34737
34738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34740 if (!SWIG_IsOK(res1)) {
34741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34742 }
34743 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34745 if (!SWIG_IsOK(res2)) {
34746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34747 }
34748 arg2 = reinterpret_cast< wxWindow * >(argp2);
34749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34750 if (!SWIG_IsOK(res3)) {
34751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34752 }
34753 if (!argp3) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34755 }
34756 arg3 = reinterpret_cast< wxDC * >(argp3);
34757 {
34758 arg4 = &temp4;
34759 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34760 }
34761 if (obj4) {
34762 ecode5 = SWIG_AsVal_int(obj4, &val5);
34763 if (!SWIG_IsOK(ecode5)) {
34764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34765 }
34766 arg5 = static_cast< int >(val5);
34767 }
34768 {
34769 PyThreadState* __tstate = wxPyBeginAllowThreads();
34770 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34771 wxPyEndAllowThreads(__tstate);
34772 if (PyErr_Occurred()) SWIG_fail;
34773 }
34774 resultobj = SWIG_Py_Void();
34775 return resultobj;
34776fail:
34777 return NULL;
34778}
34779
34780
1bd55598
RD
34781SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34782 PyObject *resultobj = 0;
34783 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34784 wxWindow *arg2 = (wxWindow *) 0 ;
34785 SwigValueWrapper<wxSplitterRenderParams > result;
34786 void *argp1 = 0 ;
34787 int res1 = 0 ;
34788 void *argp2 = 0 ;
34789 int res2 = 0 ;
34790 PyObject * obj0 = 0 ;
34791 PyObject * obj1 = 0 ;
34792 char * kwnames[] = {
34793 (char *) "self",(char *) "win", NULL
34794 };
34795
34796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34798 if (!SWIG_IsOK(res1)) {
34799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34800 }
34801 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34803 if (!SWIG_IsOK(res2)) {
34804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34805 }
34806 arg2 = reinterpret_cast< wxWindow * >(argp2);
34807 {
34808 PyThreadState* __tstate = wxPyBeginAllowThreads();
34809 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34810 wxPyEndAllowThreads(__tstate);
34811 if (PyErr_Occurred()) SWIG_fail;
34812 }
34813 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34814 return resultobj;
34815fail:
34816 return NULL;
34817}
34818
34819
34820SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34821 PyObject *resultobj = 0;
34822 wxRendererNative *result = 0 ;
34823
34824 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34825 {
704eda0c 34826 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34827 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 34828 {
1bd55598
RD
34829 wxRendererNative &_result_ref = wxRendererNative::Get();
34830 result = (wxRendererNative *) &_result_ref;
36ed4f51 34831 }
1bd55598
RD
34832 wxPyEndAllowThreads(__tstate);
34833 if (PyErr_Occurred()) SWIG_fail;
34834 }
34835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34836 return resultobj;
34837fail:
34838 return NULL;
34839}
34840
34841
34842SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34843 PyObject *resultobj = 0;
34844 wxRendererNative *result = 0 ;
34845
34846 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34847 {
704eda0c 34848 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34849 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34850 {
1bd55598
RD
34851 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34852 result = (wxRendererNative *) &_result_ref;
be9b1dca 34853 }
1bd55598
RD
34854 wxPyEndAllowThreads(__tstate);
34855 if (PyErr_Occurred()) SWIG_fail;
34856 }
34857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34858 return resultobj;
34859fail:
34860 return NULL;
34861}
34862
34863
34864SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34865 PyObject *resultobj = 0;
34866 wxRendererNative *result = 0 ;
34867
34868 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34869 {
704eda0c 34870 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34871 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34872 {
1bd55598
RD
34873 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34874 result = (wxRendererNative *) &_result_ref;
be9b1dca 34875 }
1bd55598
RD
34876 wxPyEndAllowThreads(__tstate);
34877 if (PyErr_Occurred()) SWIG_fail;
34878 }
34879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34880 return resultobj;
34881fail:
34882 return NULL;
34883}
34884
34885
34886SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34887 PyObject *resultobj = 0;
34888 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34889 wxRendererNative *result = 0 ;
34890 void *argp1 = 0 ;
34891 int res1 = 0 ;
34892 PyObject * obj0 = 0 ;
34893 char * kwnames[] = {
34894 (char *) "renderer", NULL
34895 };
34896
34897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34899 if (!SWIG_IsOK(res1)) {
34900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34901 }
34902 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34903 {
704eda0c 34904 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
34905 PyThreadState* __tstate = wxPyBeginAllowThreads();
34906 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34907 wxPyEndAllowThreads(__tstate);
34908 if (PyErr_Occurred()) SWIG_fail;
34909 }
34910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34911 return resultobj;
34912fail:
34913 return NULL;
34914}
34915
34916
34917SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34918 PyObject *resultobj = 0;
34919 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34920 SwigValueWrapper<wxRendererVersion > result;
34921 void *argp1 = 0 ;
34922 int res1 = 0 ;
34923 PyObject *swig_obj[1] ;
34924
34925 if (!args) SWIG_fail;
34926 swig_obj[0] = args;
34927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34928 if (!SWIG_IsOK(res1)) {
34929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34930 }
34931 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34932 {
34933 PyThreadState* __tstate = wxPyBeginAllowThreads();
34934 result = ((wxRendererNative const *)arg1)->GetVersion();
34935 wxPyEndAllowThreads(__tstate);
34936 if (PyErr_Occurred()) SWIG_fail;
34937 }
34938 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34939 return resultobj;
34940fail:
34941 return NULL;
34942}
34943
34944
34945SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34946 PyObject *obj;
34947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34948 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34949 return SWIG_Py_Void();
34950}
34951
27e45892
RD
34952SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34953 PyObject *resultobj = 0;
34954 wxPseudoDC *result = 0 ;
34955
34956 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34957 {
34958 PyThreadState* __tstate = wxPyBeginAllowThreads();
34959 result = (wxPseudoDC *)new wxPseudoDC();
34960 wxPyEndAllowThreads(__tstate);
34961 if (PyErr_Occurred()) SWIG_fail;
34962 }
34963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34964 return resultobj;
34965fail:
34966 return NULL;
34967}
34968
34969
34970SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34971 PyObject *resultobj = 0;
34972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34973 void *argp1 = 0 ;
34974 int res1 = 0 ;
34975 PyObject *swig_obj[1] ;
34976
34977 if (!args) SWIG_fail;
34978 swig_obj[0] = args;
34979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34980 if (!SWIG_IsOK(res1)) {
34981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34982 }
34983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34984 {
34985 PyThreadState* __tstate = wxPyBeginAllowThreads();
34986 (arg1)->BeginDrawing();
34987 wxPyEndAllowThreads(__tstate);
34988 if (PyErr_Occurred()) SWIG_fail;
34989 }
34990 resultobj = SWIG_Py_Void();
34991 return resultobj;
34992fail:
34993 return NULL;
34994}
34995
34996
34997SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34998 PyObject *resultobj = 0;
34999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35000 void *argp1 = 0 ;
35001 int res1 = 0 ;
35002 PyObject *swig_obj[1] ;
35003
35004 if (!args) SWIG_fail;
35005 swig_obj[0] = args;
35006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35007 if (!SWIG_IsOK(res1)) {
35008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35009 }
35010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35011 {
35012 PyThreadState* __tstate = wxPyBeginAllowThreads();
35013 (arg1)->EndDrawing();
35014 wxPyEndAllowThreads(__tstate);
35015 if (PyErr_Occurred()) SWIG_fail;
35016 }
35017 resultobj = SWIG_Py_Void();
35018 return resultobj;
35019fail:
35020 return NULL;
35021}
35022
35023
35024SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35025 PyObject *resultobj = 0;
35026 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 PyObject *swig_obj[1] ;
35030
35031 if (!args) SWIG_fail;
35032 swig_obj[0] = args;
35033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35036 }
35037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35038 {
35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
35040 delete arg1;
35041
35042 wxPyEndAllowThreads(__tstate);
35043 if (PyErr_Occurred()) SWIG_fail;
35044 }
35045 resultobj = SWIG_Py_Void();
35046 return resultobj;
35047fail:
35048 return NULL;
35049}
35050
35051
35052SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35053 PyObject *resultobj = 0;
35054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35055 void *argp1 = 0 ;
35056 int res1 = 0 ;
35057 PyObject *swig_obj[1] ;
35058
35059 if (!args) SWIG_fail;
35060 swig_obj[0] = args;
35061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35062 if (!SWIG_IsOK(res1)) {
35063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35064 }
35065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35066 {
35067 PyThreadState* __tstate = wxPyBeginAllowThreads();
35068 (arg1)->RemoveAll();
35069 wxPyEndAllowThreads(__tstate);
35070 if (PyErr_Occurred()) SWIG_fail;
35071 }
35072 resultobj = SWIG_Py_Void();
35073 return resultobj;
35074fail:
35075 return NULL;
35076}
35077
35078
35079SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35080 PyObject *resultobj = 0;
35081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35082 int result;
35083 void *argp1 = 0 ;
35084 int res1 = 0 ;
35085 PyObject *swig_obj[1] ;
35086
35087 if (!args) SWIG_fail;
35088 swig_obj[0] = args;
35089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35092 }
35093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35094 {
35095 PyThreadState* __tstate = wxPyBeginAllowThreads();
35096 result = (int)(arg1)->GetLen();
35097 wxPyEndAllowThreads(__tstate);
35098 if (PyErr_Occurred()) SWIG_fail;
35099 }
35100 resultobj = SWIG_From_int(static_cast< int >(result));
35101 return resultobj;
35102fail:
35103 return NULL;
35104}
35105
35106
35107SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35108 PyObject *resultobj = 0;
35109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35110 int arg2 ;
35111 void *argp1 = 0 ;
35112 int res1 = 0 ;
35113 int val2 ;
35114 int ecode2 = 0 ;
35115 PyObject * obj0 = 0 ;
35116 PyObject * obj1 = 0 ;
35117 char * kwnames[] = {
35118 (char *) "self",(char *) "id", NULL
35119 };
35120
35121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35123 if (!SWIG_IsOK(res1)) {
35124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35125 }
35126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35127 ecode2 = SWIG_AsVal_int(obj1, &val2);
35128 if (!SWIG_IsOK(ecode2)) {
35129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35130 }
35131 arg2 = static_cast< int >(val2);
35132 {
35133 PyThreadState* __tstate = wxPyBeginAllowThreads();
35134 (arg1)->SetId(arg2);
35135 wxPyEndAllowThreads(__tstate);
35136 if (PyErr_Occurred()) SWIG_fail;
35137 }
35138 resultobj = SWIG_Py_Void();
35139 return resultobj;
35140fail:
35141 return NULL;
35142}
35143
35144
35145SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35146 PyObject *resultobj = 0;
35147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35148 int arg2 ;
35149 void *argp1 = 0 ;
35150 int res1 = 0 ;
35151 int val2 ;
35152 int ecode2 = 0 ;
35153 PyObject * obj0 = 0 ;
35154 PyObject * obj1 = 0 ;
35155 char * kwnames[] = {
35156 (char *) "self",(char *) "id", NULL
35157 };
35158
35159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35161 if (!SWIG_IsOK(res1)) {
35162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35163 }
35164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35165 ecode2 = SWIG_AsVal_int(obj1, &val2);
35166 if (!SWIG_IsOK(ecode2)) {
35167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35168 }
35169 arg2 = static_cast< int >(val2);
35170 {
35171 PyThreadState* __tstate = wxPyBeginAllowThreads();
35172 (arg1)->ClearId(arg2);
35173 wxPyEndAllowThreads(__tstate);
35174 if (PyErr_Occurred()) SWIG_fail;
35175 }
35176 resultobj = SWIG_Py_Void();
35177 return resultobj;
35178fail:
35179 return NULL;
35180}
35181
35182
35183SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35184 PyObject *resultobj = 0;
35185 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35186 int arg2 ;
35187 void *argp1 = 0 ;
35188 int res1 = 0 ;
35189 int val2 ;
35190 int ecode2 = 0 ;
35191 PyObject * obj0 = 0 ;
35192 PyObject * obj1 = 0 ;
35193 char * kwnames[] = {
35194 (char *) "self",(char *) "id", NULL
35195 };
35196
35197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35199 if (!SWIG_IsOK(res1)) {
35200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35201 }
35202 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35203 ecode2 = SWIG_AsVal_int(obj1, &val2);
35204 if (!SWIG_IsOK(ecode2)) {
35205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35206 }
35207 arg2 = static_cast< int >(val2);
35208 {
35209 PyThreadState* __tstate = wxPyBeginAllowThreads();
35210 (arg1)->RemoveId(arg2);
35211 wxPyEndAllowThreads(__tstate);
35212 if (PyErr_Occurred()) SWIG_fail;
35213 }
35214 resultobj = SWIG_Py_Void();
35215 return resultobj;
35216fail:
35217 return NULL;
35218}
35219
35220
35221SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35222 PyObject *resultobj = 0;
35223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35224 int arg2 ;
35225 int arg3 ;
35226 int arg4 ;
35227 void *argp1 = 0 ;
35228 int res1 = 0 ;
35229 int val2 ;
35230 int ecode2 = 0 ;
35231 int val3 ;
35232 int ecode3 = 0 ;
35233 int val4 ;
35234 int ecode4 = 0 ;
35235 PyObject * obj0 = 0 ;
35236 PyObject * obj1 = 0 ;
35237 PyObject * obj2 = 0 ;
35238 PyObject * obj3 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35247 }
35248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35249 ecode2 = SWIG_AsVal_int(obj1, &val2);
35250 if (!SWIG_IsOK(ecode2)) {
35251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35252 }
35253 arg2 = static_cast< int >(val2);
35254 ecode3 = SWIG_AsVal_int(obj2, &val3);
35255 if (!SWIG_IsOK(ecode3)) {
35256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35257 }
35258 arg3 = static_cast< int >(val3);
35259 ecode4 = SWIG_AsVal_int(obj3, &val4);
35260 if (!SWIG_IsOK(ecode4)) {
35261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35262 }
35263 arg4 = static_cast< int >(val4);
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->TranslateId(arg2,arg3,arg4);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272fail:
35273 return NULL;
35274}
35275
35276
72ef6efb
RD
35277SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35280 int arg2 ;
35281 bool arg3 = (bool) true ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 int val2 ;
35285 int ecode2 = 0 ;
35286 bool val3 ;
35287 int ecode3 = 0 ;
35288 PyObject * obj0 = 0 ;
35289 PyObject * obj1 = 0 ;
35290 PyObject * obj2 = 0 ;
35291 char * kwnames[] = {
35292 (char *) "self",(char *) "id",(char *) "greyout", NULL
35293 };
35294
35295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35299 }
35300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35301 ecode2 = SWIG_AsVal_int(obj1, &val2);
35302 if (!SWIG_IsOK(ecode2)) {
35303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35304 }
35305 arg2 = static_cast< int >(val2);
35306 if (obj2) {
35307 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35308 if (!SWIG_IsOK(ecode3)) {
35309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35310 }
35311 arg3 = static_cast< bool >(val3);
35312 }
35313 {
35314 PyThreadState* __tstate = wxPyBeginAllowThreads();
35315 (arg1)->SetIdGreyedOut(arg2,arg3);
35316 wxPyEndAllowThreads(__tstate);
35317 if (PyErr_Occurred()) SWIG_fail;
35318 }
35319 resultobj = SWIG_Py_Void();
35320 return resultobj;
35321fail:
35322 return NULL;
35323}
35324
35325
35326SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35327 PyObject *resultobj = 0;
35328 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35329 int arg2 ;
35330 bool result;
35331 void *argp1 = 0 ;
35332 int res1 = 0 ;
35333 int val2 ;
35334 int ecode2 = 0 ;
35335 PyObject * obj0 = 0 ;
35336 PyObject * obj1 = 0 ;
35337 char * kwnames[] = {
35338 (char *) "self",(char *) "id", NULL
35339 };
35340
35341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35343 if (!SWIG_IsOK(res1)) {
35344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35345 }
35346 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35347 ecode2 = SWIG_AsVal_int(obj1, &val2);
35348 if (!SWIG_IsOK(ecode2)) {
35349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35350 }
35351 arg2 = static_cast< int >(val2);
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 {
35359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35360 }
35361 return resultobj;
35362fail:
35363 return NULL;
35364}
35365
35366
35367SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35368 PyObject *resultobj = 0;
35369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35370 int arg2 ;
35371 int arg3 ;
35372 int arg4 = (int) 1 ;
35373 wxColor const &arg5_defvalue = *wxWHITE ;
35374 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35375 PyObject *result = 0 ;
35376 void *argp1 = 0 ;
35377 int res1 = 0 ;
35378 int val2 ;
35379 int ecode2 = 0 ;
35380 int val3 ;
35381 int ecode3 = 0 ;
35382 int val4 ;
35383 int ecode4 = 0 ;
35384 void *argp5 = 0 ;
35385 int res5 = 0 ;
35386 PyObject * obj0 = 0 ;
35387 PyObject * obj1 = 0 ;
35388 PyObject * obj2 = 0 ;
35389 PyObject * obj3 = 0 ;
35390 PyObject * obj4 = 0 ;
35391 char * kwnames[] = {
35392 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35393 };
35394
35395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35397 if (!SWIG_IsOK(res1)) {
35398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35399 }
35400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35401 ecode2 = SWIG_AsVal_int(obj1, &val2);
35402 if (!SWIG_IsOK(ecode2)) {
35403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35404 }
35405 arg2 = static_cast< int >(val2);
35406 ecode3 = SWIG_AsVal_int(obj2, &val3);
35407 if (!SWIG_IsOK(ecode3)) {
35408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35409 }
35410 arg3 = static_cast< int >(val3);
35411 if (obj3) {
35412 ecode4 = SWIG_AsVal_int(obj3, &val4);
35413 if (!SWIG_IsOK(ecode4)) {
35414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35415 }
35416 arg4 = static_cast< int >(val4);
35417 }
35418 if (obj4) {
35419 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35420 if (!SWIG_IsOK(res5)) {
35421 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35422 }
35423 if (!argp5) {
35424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35425 }
35426 arg5 = reinterpret_cast< wxColor * >(argp5);
35427 }
35428 {
35429 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35430 if (PyErr_Occurred()) SWIG_fail;
35431 }
35432 resultobj = result;
35433 return resultobj;
35434fail:
35435 return NULL;
35436}
35437
35438
35439SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35440 PyObject *resultobj = 0;
35441 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35442 int arg2 ;
35443 int arg3 ;
35444 PyObject *result = 0 ;
35445 void *argp1 = 0 ;
35446 int res1 = 0 ;
35447 int val2 ;
35448 int ecode2 = 0 ;
35449 int val3 ;
35450 int ecode3 = 0 ;
35451 PyObject * obj0 = 0 ;
35452 PyObject * obj1 = 0 ;
35453 PyObject * obj2 = 0 ;
35454 char * kwnames[] = {
35455 (char *) "self",(char *) "x",(char *) "y", NULL
35456 };
35457
35458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35460 if (!SWIG_IsOK(res1)) {
35461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35462 }
35463 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35464 ecode2 = SWIG_AsVal_int(obj1, &val2);
35465 if (!SWIG_IsOK(ecode2)) {
35466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35467 }
35468 arg2 = static_cast< int >(val2);
35469 ecode3 = SWIG_AsVal_int(obj2, &val3);
35470 if (!SWIG_IsOK(ecode3)) {
35471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35472 }
35473 arg3 = static_cast< int >(val3);
35474 {
35475 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35476 if (PyErr_Occurred()) SWIG_fail;
35477 }
35478 resultobj = result;
35479 return resultobj;
35480fail:
35481 return NULL;
35482}
35483
35484
27e45892
RD
35485SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35486 PyObject *resultobj = 0;
35487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35488 int arg2 ;
35489 wxDC *arg3 = (wxDC *) 0 ;
35490 void *argp1 = 0 ;
35491 int res1 = 0 ;
35492 int val2 ;
35493 int ecode2 = 0 ;
35494 void *argp3 = 0 ;
35495 int res3 = 0 ;
35496 PyObject * obj0 = 0 ;
35497 PyObject * obj1 = 0 ;
35498 PyObject * obj2 = 0 ;
35499 char * kwnames[] = {
35500 (char *) "self",(char *) "id",(char *) "dc", NULL
35501 };
35502
35503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35505 if (!SWIG_IsOK(res1)) {
35506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35507 }
35508 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35509 ecode2 = SWIG_AsVal_int(obj1, &val2);
35510 if (!SWIG_IsOK(ecode2)) {
35511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35512 }
35513 arg2 = static_cast< int >(val2);
35514 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35515 if (!SWIG_IsOK(res3)) {
35516 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35517 }
35518 arg3 = reinterpret_cast< wxDC * >(argp3);
35519 {
35520 PyThreadState* __tstate = wxPyBeginAllowThreads();
35521 (arg1)->DrawIdToDC(arg2,arg3);
35522 wxPyEndAllowThreads(__tstate);
35523 if (PyErr_Occurred()) SWIG_fail;
35524 }
35525 resultobj = SWIG_Py_Void();
35526 return resultobj;
35527fail:
35528 return NULL;
35529}
35530
35531
35532SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35533 PyObject *resultobj = 0;
35534 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35535 int arg2 ;
35536 wxRect *arg3 = 0 ;
35537 void *argp1 = 0 ;
35538 int res1 = 0 ;
35539 int val2 ;
35540 int ecode2 = 0 ;
35541 wxRect temp3 ;
35542 PyObject * obj0 = 0 ;
35543 PyObject * obj1 = 0 ;
35544 PyObject * obj2 = 0 ;
35545 char * kwnames[] = {
35546 (char *) "self",(char *) "id",(char *) "rect", NULL
35547 };
35548
35549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35551 if (!SWIG_IsOK(res1)) {
35552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35553 }
35554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35555 ecode2 = SWIG_AsVal_int(obj1, &val2);
35556 if (!SWIG_IsOK(ecode2)) {
35557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35558 }
35559 arg2 = static_cast< int >(val2);
35560 {
35561 arg3 = &temp3;
35562 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35563 }
35564 {
35565 PyThreadState* __tstate = wxPyBeginAllowThreads();
35566 (arg1)->SetIdBounds(arg2,*arg3);
35567 wxPyEndAllowThreads(__tstate);
35568 if (PyErr_Occurred()) SWIG_fail;
35569 }
35570 resultobj = SWIG_Py_Void();
35571 return resultobj;
35572fail:
35573 return NULL;
35574}
35575
35576
35577SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35578 PyObject *resultobj = 0;
35579 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35580 int arg2 ;
35581 wxRect result;
35582 void *argp1 = 0 ;
35583 int res1 = 0 ;
35584 int val2 ;
35585 int ecode2 = 0 ;
35586 PyObject * obj0 = 0 ;
35587 PyObject * obj1 = 0 ;
35588 char * kwnames[] = {
35589 (char *) "self",(char *) "id", NULL
35590 };
35591
35592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35594 if (!SWIG_IsOK(res1)) {
35595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35596 }
35597 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35598 ecode2 = SWIG_AsVal_int(obj1, &val2);
35599 if (!SWIG_IsOK(ecode2)) {
35600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35601 }
35602 arg2 = static_cast< int >(val2);
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35606 wxPyEndAllowThreads(__tstate);
35607 if (PyErr_Occurred()) SWIG_fail;
35608 }
35609 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35610 return resultobj;
35611fail:
35612 return NULL;
35613}
35614
35615
35616SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35617 PyObject *resultobj = 0;
35618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35619 wxDC *arg2 = (wxDC *) 0 ;
35620 wxRect *arg3 = 0 ;
35621 void *argp1 = 0 ;
35622 int res1 = 0 ;
35623 void *argp2 = 0 ;
35624 int res2 = 0 ;
35625 wxRect temp3 ;
35626 PyObject * obj0 = 0 ;
35627 PyObject * obj1 = 0 ;
35628 PyObject * obj2 = 0 ;
35629 char * kwnames[] = {
35630 (char *) "self",(char *) "dc",(char *) "rect", NULL
35631 };
35632
35633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35635 if (!SWIG_IsOK(res1)) {
35636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35637 }
35638 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35640 if (!SWIG_IsOK(res2)) {
35641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35642 }
35643 arg2 = reinterpret_cast< wxDC * >(argp2);
35644 {
35645 arg3 = &temp3;
35646 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35647 }
35648 {
35649 PyThreadState* __tstate = wxPyBeginAllowThreads();
35650 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35651 wxPyEndAllowThreads(__tstate);
35652 if (PyErr_Occurred()) SWIG_fail;
35653 }
35654 resultobj = SWIG_Py_Void();
35655 return resultobj;
35656fail:
35657 return NULL;
35658}
35659
35660
35661SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35662 PyObject *resultobj = 0;
35663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35664 wxDC *arg2 = (wxDC *) 0 ;
35665 wxRegion *arg3 = 0 ;
35666 void *argp1 = 0 ;
35667 int res1 = 0 ;
35668 void *argp2 = 0 ;
35669 int res2 = 0 ;
35670 void *argp3 = 0 ;
35671 int res3 = 0 ;
35672 PyObject * obj0 = 0 ;
35673 PyObject * obj1 = 0 ;
35674 PyObject * obj2 = 0 ;
35675 char * kwnames[] = {
35676 (char *) "self",(char *) "dc",(char *) "region", NULL
35677 };
35678
35679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35681 if (!SWIG_IsOK(res1)) {
35682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35683 }
35684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35686 if (!SWIG_IsOK(res2)) {
35687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35688 }
35689 arg2 = reinterpret_cast< wxDC * >(argp2);
35690 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35691 if (!SWIG_IsOK(res3)) {
35692 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35693 }
35694 if (!argp3) {
35695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35696 }
35697 arg3 = reinterpret_cast< wxRegion * >(argp3);
35698 {
35699 PyThreadState* __tstate = wxPyBeginAllowThreads();
35700 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35701 wxPyEndAllowThreads(__tstate);
35702 if (PyErr_Occurred()) SWIG_fail;
35703 }
35704 resultobj = SWIG_Py_Void();
35705 return resultobj;
35706fail:
35707 return NULL;
35708}
35709
35710
35711SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35712 PyObject *resultobj = 0;
35713 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35714 wxDC *arg2 = (wxDC *) 0 ;
35715 void *argp1 = 0 ;
35716 int res1 = 0 ;
35717 void *argp2 = 0 ;
35718 int res2 = 0 ;
35719 PyObject * obj0 = 0 ;
35720 PyObject * obj1 = 0 ;
35721 char * kwnames[] = {
35722 (char *) "self",(char *) "dc", NULL
35723 };
35724
35725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35727 if (!SWIG_IsOK(res1)) {
35728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35729 }
35730 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35731 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35732 if (!SWIG_IsOK(res2)) {
35733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35734 }
35735 arg2 = reinterpret_cast< wxDC * >(argp2);
35736 {
35737 PyThreadState* __tstate = wxPyBeginAllowThreads();
35738 (arg1)->DrawToDC(arg2);
35739 wxPyEndAllowThreads(__tstate);
35740 if (PyErr_Occurred()) SWIG_fail;
35741 }
35742 resultobj = SWIG_Py_Void();
35743 return resultobj;
35744fail:
35745 return NULL;
35746}
35747
35748
35749SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35750 PyObject *resultobj = 0;
35751 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35752 int arg2 ;
35753 int arg3 ;
35754 wxColour *arg4 = 0 ;
35755 int arg5 = (int) wxFLOOD_SURFACE ;
35756 void *argp1 = 0 ;
35757 int res1 = 0 ;
35758 int val2 ;
35759 int ecode2 = 0 ;
35760 int val3 ;
35761 int ecode3 = 0 ;
35762 wxColour temp4 ;
35763 int val5 ;
35764 int ecode5 = 0 ;
35765 PyObject * obj0 = 0 ;
35766 PyObject * obj1 = 0 ;
35767 PyObject * obj2 = 0 ;
35768 PyObject * obj3 = 0 ;
35769 PyObject * obj4 = 0 ;
35770 char * kwnames[] = {
35771 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35772 };
35773
35774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35776 if (!SWIG_IsOK(res1)) {
35777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35778 }
35779 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35780 ecode2 = SWIG_AsVal_int(obj1, &val2);
35781 if (!SWIG_IsOK(ecode2)) {
35782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35783 }
35784 arg2 = static_cast< int >(val2);
35785 ecode3 = SWIG_AsVal_int(obj2, &val3);
35786 if (!SWIG_IsOK(ecode3)) {
35787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35788 }
35789 arg3 = static_cast< int >(val3);
35790 {
35791 arg4 = &temp4;
35792 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35793 }
35794 if (obj4) {
35795 ecode5 = SWIG_AsVal_int(obj4, &val5);
35796 if (!SWIG_IsOK(ecode5)) {
35797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35798 }
35799 arg5 = static_cast< int >(val5);
35800 }
35801 {
35802 PyThreadState* __tstate = wxPyBeginAllowThreads();
35803 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35804 wxPyEndAllowThreads(__tstate);
35805 if (PyErr_Occurred()) SWIG_fail;
35806 }
35807 resultobj = SWIG_Py_Void();
35808 return resultobj;
35809fail:
35810 return NULL;
35811}
35812
35813
35814SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35815 PyObject *resultobj = 0;
35816 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35817 wxPoint *arg2 = 0 ;
35818 wxColour *arg3 = 0 ;
35819 int arg4 = (int) wxFLOOD_SURFACE ;
35820 void *argp1 = 0 ;
35821 int res1 = 0 ;
35822 wxPoint temp2 ;
35823 wxColour temp3 ;
35824 int val4 ;
35825 int ecode4 = 0 ;
35826 PyObject * obj0 = 0 ;
35827 PyObject * obj1 = 0 ;
35828 PyObject * obj2 = 0 ;
35829 PyObject * obj3 = 0 ;
35830 char * kwnames[] = {
35831 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35832 };
35833
35834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35836 if (!SWIG_IsOK(res1)) {
35837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35838 }
35839 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35840 {
35841 arg2 = &temp2;
35842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35843 }
35844 {
35845 arg3 = &temp3;
35846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35847 }
35848 if (obj3) {
35849 ecode4 = SWIG_AsVal_int(obj3, &val4);
35850 if (!SWIG_IsOK(ecode4)) {
35851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35852 }
35853 arg4 = static_cast< int >(val4);
35854 }
35855 {
35856 PyThreadState* __tstate = wxPyBeginAllowThreads();
35857 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35858 wxPyEndAllowThreads(__tstate);
35859 if (PyErr_Occurred()) SWIG_fail;
35860 }
35861 resultobj = SWIG_Py_Void();
35862 return resultobj;
35863fail:
35864 return NULL;
35865}
35866
35867
35868SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35869 PyObject *resultobj = 0;
35870 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35871 int arg2 ;
35872 int arg3 ;
35873 int arg4 ;
35874 int arg5 ;
35875 void *argp1 = 0 ;
35876 int res1 = 0 ;
35877 int val2 ;
35878 int ecode2 = 0 ;
35879 int val3 ;
35880 int ecode3 = 0 ;
35881 int val4 ;
35882 int ecode4 = 0 ;
35883 int val5 ;
35884 int ecode5 = 0 ;
35885 PyObject * obj0 = 0 ;
35886 PyObject * obj1 = 0 ;
35887 PyObject * obj2 = 0 ;
35888 PyObject * obj3 = 0 ;
35889 PyObject * obj4 = 0 ;
35890 char * kwnames[] = {
35891 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35892 };
35893
35894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35896 if (!SWIG_IsOK(res1)) {
35897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35898 }
35899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35900 ecode2 = SWIG_AsVal_int(obj1, &val2);
35901 if (!SWIG_IsOK(ecode2)) {
35902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35903 }
35904 arg2 = static_cast< int >(val2);
35905 ecode3 = SWIG_AsVal_int(obj2, &val3);
35906 if (!SWIG_IsOK(ecode3)) {
35907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35908 }
35909 arg3 = static_cast< int >(val3);
35910 ecode4 = SWIG_AsVal_int(obj3, &val4);
35911 if (!SWIG_IsOK(ecode4)) {
35912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35913 }
35914 arg4 = static_cast< int >(val4);
35915 ecode5 = SWIG_AsVal_int(obj4, &val5);
35916 if (!SWIG_IsOK(ecode5)) {
35917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35918 }
35919 arg5 = static_cast< int >(val5);
35920 {
35921 PyThreadState* __tstate = wxPyBeginAllowThreads();
35922 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35923 wxPyEndAllowThreads(__tstate);
35924 if (PyErr_Occurred()) SWIG_fail;
35925 }
35926 resultobj = SWIG_Py_Void();
35927 return resultobj;
35928fail:
35929 return NULL;
35930}
35931
35932
35933SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35934 PyObject *resultobj = 0;
35935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35936 wxPoint *arg2 = 0 ;
35937 wxPoint *arg3 = 0 ;
35938 void *argp1 = 0 ;
35939 int res1 = 0 ;
35940 wxPoint temp2 ;
35941 wxPoint temp3 ;
35942 PyObject * obj0 = 0 ;
35943 PyObject * obj1 = 0 ;
35944 PyObject * obj2 = 0 ;
35945 char * kwnames[] = {
35946 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35947 };
35948
35949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35951 if (!SWIG_IsOK(res1)) {
35952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35953 }
35954 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35955 {
35956 arg2 = &temp2;
35957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35958 }
35959 {
35960 arg3 = &temp3;
35961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35962 }
35963 {
35964 PyThreadState* __tstate = wxPyBeginAllowThreads();
35965 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35966 wxPyEndAllowThreads(__tstate);
35967 if (PyErr_Occurred()) SWIG_fail;
35968 }
35969 resultobj = SWIG_Py_Void();
35970 return resultobj;
35971fail:
35972 return NULL;
35973}
35974
35975
35976SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35977 PyObject *resultobj = 0;
35978 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35979 int arg2 ;
35980 int arg3 ;
35981 void *argp1 = 0 ;
35982 int res1 = 0 ;
35983 int val2 ;
35984 int ecode2 = 0 ;
35985 int val3 ;
35986 int ecode3 = 0 ;
35987 PyObject * obj0 = 0 ;
35988 PyObject * obj1 = 0 ;
35989 PyObject * obj2 = 0 ;
35990 char * kwnames[] = {
35991 (char *) "self",(char *) "x",(char *) "y", NULL
35992 };
35993
35994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35996 if (!SWIG_IsOK(res1)) {
35997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35998 }
35999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36000 ecode2 = SWIG_AsVal_int(obj1, &val2);
36001 if (!SWIG_IsOK(ecode2)) {
36002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36003 }
36004 arg2 = static_cast< int >(val2);
36005 ecode3 = SWIG_AsVal_int(obj2, &val3);
36006 if (!SWIG_IsOK(ecode3)) {
36007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36008 }
36009 arg3 = static_cast< int >(val3);
36010 {
36011 PyThreadState* __tstate = wxPyBeginAllowThreads();
36012 (arg1)->CrossHair(arg2,arg3);
36013 wxPyEndAllowThreads(__tstate);
36014 if (PyErr_Occurred()) SWIG_fail;
36015 }
36016 resultobj = SWIG_Py_Void();
36017 return resultobj;
36018fail:
36019 return NULL;
36020}
36021
36022
36023SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36024 PyObject *resultobj = 0;
36025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36026 wxPoint *arg2 = 0 ;
36027 void *argp1 = 0 ;
36028 int res1 = 0 ;
36029 wxPoint temp2 ;
36030 PyObject * obj0 = 0 ;
36031 PyObject * obj1 = 0 ;
36032 char * kwnames[] = {
36033 (char *) "self",(char *) "pt", NULL
36034 };
36035
36036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36038 if (!SWIG_IsOK(res1)) {
36039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36040 }
36041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36042 {
36043 arg2 = &temp2;
36044 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36045 }
36046 {
36047 PyThreadState* __tstate = wxPyBeginAllowThreads();
36048 (arg1)->CrossHair((wxPoint const &)*arg2);
36049 wxPyEndAllowThreads(__tstate);
36050 if (PyErr_Occurred()) SWIG_fail;
36051 }
36052 resultobj = SWIG_Py_Void();
36053 return resultobj;
36054fail:
36055 return NULL;
36056}
36057
36058
36059SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36060 PyObject *resultobj = 0;
36061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36062 int arg2 ;
36063 int arg3 ;
36064 int arg4 ;
36065 int arg5 ;
36066 int arg6 ;
36067 int arg7 ;
36068 void *argp1 = 0 ;
36069 int res1 = 0 ;
36070 int val2 ;
36071 int ecode2 = 0 ;
36072 int val3 ;
36073 int ecode3 = 0 ;
36074 int val4 ;
36075 int ecode4 = 0 ;
36076 int val5 ;
36077 int ecode5 = 0 ;
36078 int val6 ;
36079 int ecode6 = 0 ;
36080 int val7 ;
36081 int ecode7 = 0 ;
36082 PyObject * obj0 = 0 ;
36083 PyObject * obj1 = 0 ;
36084 PyObject * obj2 = 0 ;
36085 PyObject * obj3 = 0 ;
36086 PyObject * obj4 = 0 ;
36087 PyObject * obj5 = 0 ;
36088 PyObject * obj6 = 0 ;
36089 char * kwnames[] = {
36090 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36091 };
36092
36093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36095 if (!SWIG_IsOK(res1)) {
36096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36097 }
36098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36099 ecode2 = SWIG_AsVal_int(obj1, &val2);
36100 if (!SWIG_IsOK(ecode2)) {
36101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36102 }
36103 arg2 = static_cast< int >(val2);
36104 ecode3 = SWIG_AsVal_int(obj2, &val3);
36105 if (!SWIG_IsOK(ecode3)) {
36106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36107 }
36108 arg3 = static_cast< int >(val3);
36109 ecode4 = SWIG_AsVal_int(obj3, &val4);
36110 if (!SWIG_IsOK(ecode4)) {
36111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36112 }
36113 arg4 = static_cast< int >(val4);
36114 ecode5 = SWIG_AsVal_int(obj4, &val5);
36115 if (!SWIG_IsOK(ecode5)) {
36116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36117 }
36118 arg5 = static_cast< int >(val5);
36119 ecode6 = SWIG_AsVal_int(obj5, &val6);
36120 if (!SWIG_IsOK(ecode6)) {
36121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36122 }
36123 arg6 = static_cast< int >(val6);
36124 ecode7 = SWIG_AsVal_int(obj6, &val7);
36125 if (!SWIG_IsOK(ecode7)) {
36126 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36127 }
36128 arg7 = static_cast< int >(val7);
36129 {
36130 PyThreadState* __tstate = wxPyBeginAllowThreads();
36131 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36132 wxPyEndAllowThreads(__tstate);
36133 if (PyErr_Occurred()) SWIG_fail;
36134 }
36135 resultobj = SWIG_Py_Void();
36136 return resultobj;
36137fail:
36138 return NULL;
36139}
36140
36141
36142SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36143 PyObject *resultobj = 0;
36144 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36145 wxPoint *arg2 = 0 ;
36146 wxPoint *arg3 = 0 ;
36147 wxPoint *arg4 = 0 ;
36148 void *argp1 = 0 ;
36149 int res1 = 0 ;
36150 wxPoint temp2 ;
36151 wxPoint temp3 ;
36152 wxPoint temp4 ;
36153 PyObject * obj0 = 0 ;
36154 PyObject * obj1 = 0 ;
36155 PyObject * obj2 = 0 ;
36156 PyObject * obj3 = 0 ;
36157 char * kwnames[] = {
36158 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36159 };
36160
36161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36163 if (!SWIG_IsOK(res1)) {
36164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36165 }
36166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36167 {
36168 arg2 = &temp2;
36169 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36170 }
36171 {
36172 arg3 = &temp3;
36173 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36174 }
36175 {
36176 arg4 = &temp4;
36177 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36178 }
36179 {
36180 PyThreadState* __tstate = wxPyBeginAllowThreads();
36181 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36182 wxPyEndAllowThreads(__tstate);
36183 if (PyErr_Occurred()) SWIG_fail;
36184 }
36185 resultobj = SWIG_Py_Void();
36186 return resultobj;
36187fail:
36188 return NULL;
36189}
36190
36191
36192SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36193 PyObject *resultobj = 0;
36194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36195 int arg2 ;
36196 int arg3 ;
36197 int arg4 ;
36198 int arg5 ;
36199 void *argp1 = 0 ;
36200 int res1 = 0 ;
36201 int val2 ;
36202 int ecode2 = 0 ;
36203 int val3 ;
36204 int ecode3 = 0 ;
36205 int val4 ;
36206 int ecode4 = 0 ;
36207 int val5 ;
36208 int ecode5 = 0 ;
36209 PyObject * obj0 = 0 ;
36210 PyObject * obj1 = 0 ;
36211 PyObject * obj2 = 0 ;
36212 PyObject * obj3 = 0 ;
36213 PyObject * obj4 = 0 ;
36214 char * kwnames[] = {
36215 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36216 };
36217
36218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36224 ecode2 = SWIG_AsVal_int(obj1, &val2);
36225 if (!SWIG_IsOK(ecode2)) {
36226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36227 }
36228 arg2 = static_cast< int >(val2);
36229 ecode3 = SWIG_AsVal_int(obj2, &val3);
36230 if (!SWIG_IsOK(ecode3)) {
36231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36232 }
36233 arg3 = static_cast< int >(val3);
36234 ecode4 = SWIG_AsVal_int(obj3, &val4);
36235 if (!SWIG_IsOK(ecode4)) {
36236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36237 }
36238 arg4 = static_cast< int >(val4);
36239 ecode5 = SWIG_AsVal_int(obj4, &val5);
36240 if (!SWIG_IsOK(ecode5)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36242 }
36243 arg5 = static_cast< int >(val5);
36244 {
36245 PyThreadState* __tstate = wxPyBeginAllowThreads();
36246 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36247 wxPyEndAllowThreads(__tstate);
36248 if (PyErr_Occurred()) SWIG_fail;
36249 }
36250 resultobj = SWIG_Py_Void();
36251 return resultobj;
36252fail:
36253 return NULL;
36254}
36255
36256
36257SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36258 PyObject *resultobj = 0;
36259 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36260 wxRect *arg2 = 0 ;
36261 void *argp1 = 0 ;
36262 int res1 = 0 ;
36263 wxRect temp2 ;
36264 PyObject * obj0 = 0 ;
36265 PyObject * obj1 = 0 ;
36266 char * kwnames[] = {
36267 (char *) "self",(char *) "rect", NULL
36268 };
36269
36270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36272 if (!SWIG_IsOK(res1)) {
36273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36274 }
36275 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36276 {
36277 arg2 = &temp2;
36278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36279 }
36280 {
36281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36282 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = SWIG_Py_Void();
36287 return resultobj;
36288fail:
36289 return NULL;
36290}
36291
36292
36293SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36294 PyObject *resultobj = 0;
36295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36296 int arg2 ;
36297 int arg3 ;
36298 int arg4 ;
36299 int arg5 ;
36300 double arg6 ;
36301 double arg7 ;
36302 void *argp1 = 0 ;
36303 int res1 = 0 ;
36304 int val2 ;
36305 int ecode2 = 0 ;
36306 int val3 ;
36307 int ecode3 = 0 ;
36308 int val4 ;
36309 int ecode4 = 0 ;
36310 int val5 ;
36311 int ecode5 = 0 ;
36312 double val6 ;
36313 int ecode6 = 0 ;
36314 double val7 ;
36315 int ecode7 = 0 ;
36316 PyObject * obj0 = 0 ;
36317 PyObject * obj1 = 0 ;
36318 PyObject * obj2 = 0 ;
36319 PyObject * obj3 = 0 ;
36320 PyObject * obj4 = 0 ;
36321 PyObject * obj5 = 0 ;
36322 PyObject * obj6 = 0 ;
36323 char * kwnames[] = {
36324 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36325 };
36326
36327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36333 ecode2 = SWIG_AsVal_int(obj1, &val2);
36334 if (!SWIG_IsOK(ecode2)) {
36335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36336 }
36337 arg2 = static_cast< int >(val2);
36338 ecode3 = SWIG_AsVal_int(obj2, &val3);
36339 if (!SWIG_IsOK(ecode3)) {
36340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36341 }
36342 arg3 = static_cast< int >(val3);
36343 ecode4 = SWIG_AsVal_int(obj3, &val4);
36344 if (!SWIG_IsOK(ecode4)) {
36345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36346 }
36347 arg4 = static_cast< int >(val4);
36348 ecode5 = SWIG_AsVal_int(obj4, &val5);
36349 if (!SWIG_IsOK(ecode5)) {
36350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36351 }
36352 arg5 = static_cast< int >(val5);
36353 ecode6 = SWIG_AsVal_double(obj5, &val6);
36354 if (!SWIG_IsOK(ecode6)) {
36355 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36356 }
36357 arg6 = static_cast< double >(val6);
36358 ecode7 = SWIG_AsVal_double(obj6, &val7);
36359 if (!SWIG_IsOK(ecode7)) {
36360 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36361 }
36362 arg7 = static_cast< double >(val7);
36363 {
36364 PyThreadState* __tstate = wxPyBeginAllowThreads();
36365 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36366 wxPyEndAllowThreads(__tstate);
36367 if (PyErr_Occurred()) SWIG_fail;
36368 }
36369 resultobj = SWIG_Py_Void();
36370 return resultobj;
36371fail:
36372 return NULL;
36373}
36374
36375
36376SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36377 PyObject *resultobj = 0;
36378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36379 wxPoint *arg2 = 0 ;
36380 wxSize *arg3 = 0 ;
36381 double arg4 ;
36382 double arg5 ;
36383 void *argp1 = 0 ;
36384 int res1 = 0 ;
36385 wxPoint temp2 ;
36386 wxSize temp3 ;
36387 double val4 ;
36388 int ecode4 = 0 ;
36389 double val5 ;
36390 int ecode5 = 0 ;
36391 PyObject * obj0 = 0 ;
36392 PyObject * obj1 = 0 ;
36393 PyObject * obj2 = 0 ;
36394 PyObject * obj3 = 0 ;
36395 PyObject * obj4 = 0 ;
36396 char * kwnames[] = {
36397 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36398 };
36399
36400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36404 }
36405 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36406 {
36407 arg2 = &temp2;
36408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36409 }
36410 {
36411 arg3 = &temp3;
36412 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36413 }
36414 ecode4 = SWIG_AsVal_double(obj3, &val4);
36415 if (!SWIG_IsOK(ecode4)) {
36416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36417 }
36418 arg4 = static_cast< double >(val4);
36419 ecode5 = SWIG_AsVal_double(obj4, &val5);
36420 if (!SWIG_IsOK(ecode5)) {
36421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36422 }
36423 arg5 = static_cast< double >(val5);
36424 {
36425 PyThreadState* __tstate = wxPyBeginAllowThreads();
36426 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36427 wxPyEndAllowThreads(__tstate);
36428 if (PyErr_Occurred()) SWIG_fail;
36429 }
36430 resultobj = SWIG_Py_Void();
36431 return resultobj;
36432fail:
36433 return NULL;
36434}
36435
36436
36437SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36438 PyObject *resultobj = 0;
36439 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36440 int arg2 ;
36441 int arg3 ;
36442 void *argp1 = 0 ;
36443 int res1 = 0 ;
36444 int val2 ;
36445 int ecode2 = 0 ;
36446 int val3 ;
36447 int ecode3 = 0 ;
36448 PyObject * obj0 = 0 ;
36449 PyObject * obj1 = 0 ;
36450 PyObject * obj2 = 0 ;
36451 char * kwnames[] = {
36452 (char *) "self",(char *) "x",(char *) "y", NULL
36453 };
36454
36455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36457 if (!SWIG_IsOK(res1)) {
36458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36459 }
36460 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36461 ecode2 = SWIG_AsVal_int(obj1, &val2);
36462 if (!SWIG_IsOK(ecode2)) {
36463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36464 }
36465 arg2 = static_cast< int >(val2);
36466 ecode3 = SWIG_AsVal_int(obj2, &val3);
36467 if (!SWIG_IsOK(ecode3)) {
36468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36469 }
36470 arg3 = static_cast< int >(val3);
36471 {
36472 PyThreadState* __tstate = wxPyBeginAllowThreads();
36473 (arg1)->DrawPoint(arg2,arg3);
36474 wxPyEndAllowThreads(__tstate);
36475 if (PyErr_Occurred()) SWIG_fail;
36476 }
36477 resultobj = SWIG_Py_Void();
36478 return resultobj;
36479fail:
36480 return NULL;
36481}
36482
36483
36484SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36485 PyObject *resultobj = 0;
36486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36487 wxPoint *arg2 = 0 ;
36488 void *argp1 = 0 ;
36489 int res1 = 0 ;
36490 wxPoint temp2 ;
36491 PyObject * obj0 = 0 ;
36492 PyObject * obj1 = 0 ;
36493 char * kwnames[] = {
36494 (char *) "self",(char *) "pt", NULL
36495 };
36496
36497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36499 if (!SWIG_IsOK(res1)) {
36500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36501 }
36502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36503 {
36504 arg2 = &temp2;
36505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36506 }
36507 {
36508 PyThreadState* __tstate = wxPyBeginAllowThreads();
36509 (arg1)->DrawPoint((wxPoint const &)*arg2);
36510 wxPyEndAllowThreads(__tstate);
36511 if (PyErr_Occurred()) SWIG_fail;
36512 }
36513 resultobj = SWIG_Py_Void();
36514 return resultobj;
36515fail:
36516 return NULL;
36517}
36518
36519
36520SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36521 PyObject *resultobj = 0;
36522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36523 int arg2 ;
36524 int arg3 ;
36525 int arg4 ;
36526 int arg5 ;
36527 void *argp1 = 0 ;
36528 int res1 = 0 ;
36529 int val2 ;
36530 int ecode2 = 0 ;
36531 int val3 ;
36532 int ecode3 = 0 ;
36533 int val4 ;
36534 int ecode4 = 0 ;
36535 int val5 ;
36536 int ecode5 = 0 ;
36537 PyObject * obj0 = 0 ;
36538 PyObject * obj1 = 0 ;
36539 PyObject * obj2 = 0 ;
36540 PyObject * obj3 = 0 ;
36541 PyObject * obj4 = 0 ;
36542 char * kwnames[] = {
36543 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36544 };
36545
36546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36548 if (!SWIG_IsOK(res1)) {
36549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36550 }
36551 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36552 ecode2 = SWIG_AsVal_int(obj1, &val2);
36553 if (!SWIG_IsOK(ecode2)) {
36554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36555 }
36556 arg2 = static_cast< int >(val2);
36557 ecode3 = SWIG_AsVal_int(obj2, &val3);
36558 if (!SWIG_IsOK(ecode3)) {
36559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36560 }
36561 arg3 = static_cast< int >(val3);
36562 ecode4 = SWIG_AsVal_int(obj3, &val4);
36563 if (!SWIG_IsOK(ecode4)) {
36564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36565 }
36566 arg4 = static_cast< int >(val4);
36567 ecode5 = SWIG_AsVal_int(obj4, &val5);
36568 if (!SWIG_IsOK(ecode5)) {
36569 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36570 }
36571 arg5 = static_cast< int >(val5);
36572 {
36573 PyThreadState* __tstate = wxPyBeginAllowThreads();
36574 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36575 wxPyEndAllowThreads(__tstate);
36576 if (PyErr_Occurred()) SWIG_fail;
36577 }
36578 resultobj = SWIG_Py_Void();
36579 return resultobj;
36580fail:
36581 return NULL;
36582}
36583
36584
36585SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36586 PyObject *resultobj = 0;
36587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36588 wxRect *arg2 = 0 ;
36589 void *argp1 = 0 ;
36590 int res1 = 0 ;
36591 wxRect temp2 ;
36592 PyObject * obj0 = 0 ;
36593 PyObject * obj1 = 0 ;
36594 char * kwnames[] = {
36595 (char *) "self",(char *) "rect", NULL
36596 };
36597
36598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36600 if (!SWIG_IsOK(res1)) {
36601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36602 }
36603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36604 {
36605 arg2 = &temp2;
36606 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36607 }
36608 {
36609 PyThreadState* __tstate = wxPyBeginAllowThreads();
36610 (arg1)->DrawRectangle((wxRect const &)*arg2);
36611 wxPyEndAllowThreads(__tstate);
36612 if (PyErr_Occurred()) SWIG_fail;
36613 }
36614 resultobj = SWIG_Py_Void();
36615 return resultobj;
36616fail:
36617 return NULL;
36618}
36619
36620
36621SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36622 PyObject *resultobj = 0;
36623 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36624 wxPoint *arg2 = 0 ;
36625 wxSize *arg3 = 0 ;
36626 void *argp1 = 0 ;
36627 int res1 = 0 ;
36628 wxPoint temp2 ;
36629 wxSize temp3 ;
36630 PyObject * obj0 = 0 ;
36631 PyObject * obj1 = 0 ;
36632 PyObject * obj2 = 0 ;
36633 char * kwnames[] = {
36634 (char *) "self",(char *) "pt",(char *) "sz", NULL
36635 };
36636
36637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36639 if (!SWIG_IsOK(res1)) {
36640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36641 }
36642 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36643 {
36644 arg2 = &temp2;
36645 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36646 }
36647 {
36648 arg3 = &temp3;
36649 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36650 }
36651 {
36652 PyThreadState* __tstate = wxPyBeginAllowThreads();
36653 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36654 wxPyEndAllowThreads(__tstate);
36655 if (PyErr_Occurred()) SWIG_fail;
36656 }
36657 resultobj = SWIG_Py_Void();
36658 return resultobj;
36659fail:
36660 return NULL;
36661}
36662
36663
36664SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36665 PyObject *resultobj = 0;
36666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36667 int arg2 ;
36668 int arg3 ;
36669 int arg4 ;
36670 int arg5 ;
36671 double arg6 ;
36672 void *argp1 = 0 ;
36673 int res1 = 0 ;
36674 int val2 ;
36675 int ecode2 = 0 ;
36676 int val3 ;
36677 int ecode3 = 0 ;
36678 int val4 ;
36679 int ecode4 = 0 ;
36680 int val5 ;
36681 int ecode5 = 0 ;
36682 double val6 ;
36683 int ecode6 = 0 ;
36684 PyObject * obj0 = 0 ;
36685 PyObject * obj1 = 0 ;
36686 PyObject * obj2 = 0 ;
36687 PyObject * obj3 = 0 ;
36688 PyObject * obj4 = 0 ;
36689 PyObject * obj5 = 0 ;
36690 char * kwnames[] = {
36691 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36692 };
36693
36694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36696 if (!SWIG_IsOK(res1)) {
36697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36698 }
36699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36700 ecode2 = SWIG_AsVal_int(obj1, &val2);
36701 if (!SWIG_IsOK(ecode2)) {
36702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36703 }
36704 arg2 = static_cast< int >(val2);
36705 ecode3 = SWIG_AsVal_int(obj2, &val3);
36706 if (!SWIG_IsOK(ecode3)) {
36707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36708 }
36709 arg3 = static_cast< int >(val3);
36710 ecode4 = SWIG_AsVal_int(obj3, &val4);
36711 if (!SWIG_IsOK(ecode4)) {
36712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36713 }
36714 arg4 = static_cast< int >(val4);
36715 ecode5 = SWIG_AsVal_int(obj4, &val5);
36716 if (!SWIG_IsOK(ecode5)) {
36717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36718 }
36719 arg5 = static_cast< int >(val5);
36720 ecode6 = SWIG_AsVal_double(obj5, &val6);
36721 if (!SWIG_IsOK(ecode6)) {
36722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36723 }
36724 arg6 = static_cast< double >(val6);
36725 {
36726 PyThreadState* __tstate = wxPyBeginAllowThreads();
36727 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36728 wxPyEndAllowThreads(__tstate);
36729 if (PyErr_Occurred()) SWIG_fail;
36730 }
36731 resultobj = SWIG_Py_Void();
36732 return resultobj;
36733fail:
36734 return NULL;
36735}
36736
36737
36738SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36739 PyObject *resultobj = 0;
36740 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36741 wxRect *arg2 = 0 ;
36742 double arg3 ;
36743 void *argp1 = 0 ;
36744 int res1 = 0 ;
36745 wxRect temp2 ;
36746 double val3 ;
36747 int ecode3 = 0 ;
36748 PyObject * obj0 = 0 ;
36749 PyObject * obj1 = 0 ;
36750 PyObject * obj2 = 0 ;
36751 char * kwnames[] = {
36752 (char *) "self",(char *) "r",(char *) "radius", NULL
36753 };
36754
36755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36757 if (!SWIG_IsOK(res1)) {
36758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36759 }
36760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36761 {
36762 arg2 = &temp2;
36763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36764 }
36765 ecode3 = SWIG_AsVal_double(obj2, &val3);
36766 if (!SWIG_IsOK(ecode3)) {
36767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36768 }
36769 arg3 = static_cast< double >(val3);
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36773 wxPyEndAllowThreads(__tstate);
36774 if (PyErr_Occurred()) SWIG_fail;
36775 }
36776 resultobj = SWIG_Py_Void();
36777 return resultobj;
36778fail:
36779 return NULL;
36780}
36781
36782
36783SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36784 PyObject *resultobj = 0;
36785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36786 wxPoint *arg2 = 0 ;
36787 wxSize *arg3 = 0 ;
36788 double arg4 ;
36789 void *argp1 = 0 ;
36790 int res1 = 0 ;
36791 wxPoint temp2 ;
36792 wxSize temp3 ;
36793 double val4 ;
36794 int ecode4 = 0 ;
36795 PyObject * obj0 = 0 ;
36796 PyObject * obj1 = 0 ;
36797 PyObject * obj2 = 0 ;
36798 PyObject * obj3 = 0 ;
36799 char * kwnames[] = {
36800 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36801 };
36802
36803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36805 if (!SWIG_IsOK(res1)) {
36806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36807 }
36808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36809 {
36810 arg2 = &temp2;
36811 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36812 }
36813 {
36814 arg3 = &temp3;
36815 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36816 }
36817 ecode4 = SWIG_AsVal_double(obj3, &val4);
36818 if (!SWIG_IsOK(ecode4)) {
36819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36820 }
36821 arg4 = static_cast< double >(val4);
36822 {
36823 PyThreadState* __tstate = wxPyBeginAllowThreads();
36824 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36825 wxPyEndAllowThreads(__tstate);
36826 if (PyErr_Occurred()) SWIG_fail;
36827 }
36828 resultobj = SWIG_Py_Void();
36829 return resultobj;
36830fail:
36831 return NULL;
36832}
36833
36834
36835SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36836 PyObject *resultobj = 0;
36837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36838 int arg2 ;
36839 int arg3 ;
36840 int arg4 ;
36841 void *argp1 = 0 ;
36842 int res1 = 0 ;
36843 int val2 ;
36844 int ecode2 = 0 ;
36845 int val3 ;
36846 int ecode3 = 0 ;
36847 int val4 ;
36848 int ecode4 = 0 ;
36849 PyObject * obj0 = 0 ;
36850 PyObject * obj1 = 0 ;
36851 PyObject * obj2 = 0 ;
36852 PyObject * obj3 = 0 ;
36853 char * kwnames[] = {
36854 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36855 };
36856
36857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36859 if (!SWIG_IsOK(res1)) {
36860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36861 }
36862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36863 ecode2 = SWIG_AsVal_int(obj1, &val2);
36864 if (!SWIG_IsOK(ecode2)) {
36865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36866 }
36867 arg2 = static_cast< int >(val2);
36868 ecode3 = SWIG_AsVal_int(obj2, &val3);
36869 if (!SWIG_IsOK(ecode3)) {
36870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36871 }
36872 arg3 = static_cast< int >(val3);
36873 ecode4 = SWIG_AsVal_int(obj3, &val4);
36874 if (!SWIG_IsOK(ecode4)) {
36875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36876 }
36877 arg4 = static_cast< int >(val4);
36878 {
36879 PyThreadState* __tstate = wxPyBeginAllowThreads();
36880 (arg1)->DrawCircle(arg2,arg3,arg4);
36881 wxPyEndAllowThreads(__tstate);
36882 if (PyErr_Occurred()) SWIG_fail;
36883 }
36884 resultobj = SWIG_Py_Void();
36885 return resultobj;
36886fail:
36887 return NULL;
36888}
36889
36890
36891SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36892 PyObject *resultobj = 0;
36893 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36894 wxPoint *arg2 = 0 ;
36895 int arg3 ;
36896 void *argp1 = 0 ;
36897 int res1 = 0 ;
36898 wxPoint temp2 ;
36899 int val3 ;
36900 int ecode3 = 0 ;
36901 PyObject * obj0 = 0 ;
36902 PyObject * obj1 = 0 ;
36903 PyObject * obj2 = 0 ;
36904 char * kwnames[] = {
36905 (char *) "self",(char *) "pt",(char *) "radius", NULL
36906 };
36907
36908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36910 if (!SWIG_IsOK(res1)) {
36911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36912 }
36913 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36914 {
36915 arg2 = &temp2;
36916 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36917 }
36918 ecode3 = SWIG_AsVal_int(obj2, &val3);
36919 if (!SWIG_IsOK(ecode3)) {
36920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36921 }
36922 arg3 = static_cast< int >(val3);
36923 {
36924 PyThreadState* __tstate = wxPyBeginAllowThreads();
36925 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36926 wxPyEndAllowThreads(__tstate);
36927 if (PyErr_Occurred()) SWIG_fail;
36928 }
36929 resultobj = SWIG_Py_Void();
36930 return resultobj;
36931fail:
36932 return NULL;
36933}
36934
36935
36936SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36937 PyObject *resultobj = 0;
36938 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36939 int arg2 ;
36940 int arg3 ;
36941 int arg4 ;
36942 int arg5 ;
36943 void *argp1 = 0 ;
36944 int res1 = 0 ;
36945 int val2 ;
36946 int ecode2 = 0 ;
36947 int val3 ;
36948 int ecode3 = 0 ;
36949 int val4 ;
36950 int ecode4 = 0 ;
36951 int val5 ;
36952 int ecode5 = 0 ;
36953 PyObject * obj0 = 0 ;
36954 PyObject * obj1 = 0 ;
36955 PyObject * obj2 = 0 ;
36956 PyObject * obj3 = 0 ;
36957 PyObject * obj4 = 0 ;
36958 char * kwnames[] = {
36959 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36960 };
36961
36962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36964 if (!SWIG_IsOK(res1)) {
36965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36966 }
36967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36968 ecode2 = SWIG_AsVal_int(obj1, &val2);
36969 if (!SWIG_IsOK(ecode2)) {
36970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36971 }
36972 arg2 = static_cast< int >(val2);
36973 ecode3 = SWIG_AsVal_int(obj2, &val3);
36974 if (!SWIG_IsOK(ecode3)) {
36975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36976 }
36977 arg3 = static_cast< int >(val3);
36978 ecode4 = SWIG_AsVal_int(obj3, &val4);
36979 if (!SWIG_IsOK(ecode4)) {
36980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36981 }
36982 arg4 = static_cast< int >(val4);
36983 ecode5 = SWIG_AsVal_int(obj4, &val5);
36984 if (!SWIG_IsOK(ecode5)) {
36985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36986 }
36987 arg5 = static_cast< int >(val5);
36988 {
36989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36990 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36991 wxPyEndAllowThreads(__tstate);
36992 if (PyErr_Occurred()) SWIG_fail;
36993 }
36994 resultobj = SWIG_Py_Void();
36995 return resultobj;
36996fail:
36997 return NULL;
36998}
36999
37000
37001SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37002 PyObject *resultobj = 0;
37003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37004 wxRect *arg2 = 0 ;
37005 void *argp1 = 0 ;
37006 int res1 = 0 ;
37007 wxRect temp2 ;
37008 PyObject * obj0 = 0 ;
37009 PyObject * obj1 = 0 ;
37010 char * kwnames[] = {
37011 (char *) "self",(char *) "rect", NULL
37012 };
37013
37014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37016 if (!SWIG_IsOK(res1)) {
37017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37018 }
37019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37020 {
37021 arg2 = &temp2;
37022 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37023 }
37024 {
37025 PyThreadState* __tstate = wxPyBeginAllowThreads();
37026 (arg1)->DrawEllipse((wxRect const &)*arg2);
37027 wxPyEndAllowThreads(__tstate);
37028 if (PyErr_Occurred()) SWIG_fail;
37029 }
37030 resultobj = SWIG_Py_Void();
37031 return resultobj;
37032fail:
37033 return NULL;
37034}
37035
37036
37037SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37038 PyObject *resultobj = 0;
37039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37040 wxPoint *arg2 = 0 ;
37041 wxSize *arg3 = 0 ;
37042 void *argp1 = 0 ;
37043 int res1 = 0 ;
37044 wxPoint temp2 ;
37045 wxSize temp3 ;
37046 PyObject * obj0 = 0 ;
37047 PyObject * obj1 = 0 ;
37048 PyObject * obj2 = 0 ;
37049 char * kwnames[] = {
37050 (char *) "self",(char *) "pt",(char *) "sz", NULL
37051 };
37052
37053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37055 if (!SWIG_IsOK(res1)) {
37056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37057 }
37058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37059 {
37060 arg2 = &temp2;
37061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37062 }
37063 {
37064 arg3 = &temp3;
37065 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37066 }
37067 {
37068 PyThreadState* __tstate = wxPyBeginAllowThreads();
37069 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37070 wxPyEndAllowThreads(__tstate);
37071 if (PyErr_Occurred()) SWIG_fail;
37072 }
37073 resultobj = SWIG_Py_Void();
37074 return resultobj;
37075fail:
37076 return NULL;
37077}
37078
37079
37080SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37081 PyObject *resultobj = 0;
37082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37083 wxIcon *arg2 = 0 ;
37084 int arg3 ;
37085 int arg4 ;
37086 void *argp1 = 0 ;
37087 int res1 = 0 ;
37088 void *argp2 = 0 ;
37089 int res2 = 0 ;
37090 int val3 ;
37091 int ecode3 = 0 ;
37092 int val4 ;
37093 int ecode4 = 0 ;
37094 PyObject * obj0 = 0 ;
37095 PyObject * obj1 = 0 ;
37096 PyObject * obj2 = 0 ;
37097 PyObject * obj3 = 0 ;
37098 char * kwnames[] = {
37099 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37100 };
37101
37102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37104 if (!SWIG_IsOK(res1)) {
37105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37106 }
37107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37109 if (!SWIG_IsOK(res2)) {
37110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37111 }
37112 if (!argp2) {
37113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37114 }
37115 arg2 = reinterpret_cast< wxIcon * >(argp2);
37116 ecode3 = SWIG_AsVal_int(obj2, &val3);
37117 if (!SWIG_IsOK(ecode3)) {
37118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37119 }
37120 arg3 = static_cast< int >(val3);
37121 ecode4 = SWIG_AsVal_int(obj3, &val4);
37122 if (!SWIG_IsOK(ecode4)) {
37123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37124 }
37125 arg4 = static_cast< int >(val4);
37126 {
37127 PyThreadState* __tstate = wxPyBeginAllowThreads();
37128 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37129 wxPyEndAllowThreads(__tstate);
37130 if (PyErr_Occurred()) SWIG_fail;
37131 }
37132 resultobj = SWIG_Py_Void();
37133 return resultobj;
37134fail:
37135 return NULL;
37136}
37137
37138
37139SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37140 PyObject *resultobj = 0;
37141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37142 wxIcon *arg2 = 0 ;
37143 wxPoint *arg3 = 0 ;
37144 void *argp1 = 0 ;
37145 int res1 = 0 ;
37146 void *argp2 = 0 ;
37147 int res2 = 0 ;
37148 wxPoint temp3 ;
37149 PyObject * obj0 = 0 ;
37150 PyObject * obj1 = 0 ;
37151 PyObject * obj2 = 0 ;
37152 char * kwnames[] = {
37153 (char *) "self",(char *) "icon",(char *) "pt", NULL
37154 };
37155
37156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37158 if (!SWIG_IsOK(res1)) {
37159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37160 }
37161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37163 if (!SWIG_IsOK(res2)) {
37164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37165 }
37166 if (!argp2) {
37167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37168 }
37169 arg2 = reinterpret_cast< wxIcon * >(argp2);
37170 {
37171 arg3 = &temp3;
37172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37173 }
37174 {
37175 PyThreadState* __tstate = wxPyBeginAllowThreads();
37176 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37177 wxPyEndAllowThreads(__tstate);
37178 if (PyErr_Occurred()) SWIG_fail;
37179 }
37180 resultobj = SWIG_Py_Void();
37181 return resultobj;
37182fail:
37183 return NULL;
37184}
37185
37186
37187SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37188 PyObject *resultobj = 0;
37189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37190 wxBitmap *arg2 = 0 ;
37191 int arg3 ;
37192 int arg4 ;
37193 bool arg5 = (bool) false ;
37194 void *argp1 = 0 ;
37195 int res1 = 0 ;
37196 void *argp2 = 0 ;
37197 int res2 = 0 ;
37198 int val3 ;
37199 int ecode3 = 0 ;
37200 int val4 ;
37201 int ecode4 = 0 ;
37202 bool val5 ;
37203 int ecode5 = 0 ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 PyObject * obj2 = 0 ;
37207 PyObject * obj3 = 0 ;
37208 PyObject * obj4 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37217 }
37218 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37220 if (!SWIG_IsOK(res2)) {
37221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37222 }
37223 if (!argp2) {
37224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37225 }
37226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37227 ecode3 = SWIG_AsVal_int(obj2, &val3);
37228 if (!SWIG_IsOK(ecode3)) {
37229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37230 }
37231 arg3 = static_cast< int >(val3);
37232 ecode4 = SWIG_AsVal_int(obj3, &val4);
37233 if (!SWIG_IsOK(ecode4)) {
37234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37235 }
37236 arg4 = static_cast< int >(val4);
37237 if (obj4) {
37238 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37239 if (!SWIG_IsOK(ecode5)) {
37240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37241 }
37242 arg5 = static_cast< bool >(val5);
37243 }
37244 {
37245 PyThreadState* __tstate = wxPyBeginAllowThreads();
37246 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37247 wxPyEndAllowThreads(__tstate);
37248 if (PyErr_Occurred()) SWIG_fail;
37249 }
37250 resultobj = SWIG_Py_Void();
37251 return resultobj;
37252fail:
37253 return NULL;
37254}
37255
37256
37257SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37258 PyObject *resultobj = 0;
37259 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37260 wxBitmap *arg2 = 0 ;
37261 wxPoint *arg3 = 0 ;
37262 bool arg4 = (bool) false ;
37263 void *argp1 = 0 ;
37264 int res1 = 0 ;
37265 void *argp2 = 0 ;
37266 int res2 = 0 ;
37267 wxPoint temp3 ;
37268 bool val4 ;
37269 int ecode4 = 0 ;
37270 PyObject * obj0 = 0 ;
37271 PyObject * obj1 = 0 ;
37272 PyObject * obj2 = 0 ;
37273 PyObject * obj3 = 0 ;
37274 char * kwnames[] = {
37275 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37276 };
37277
37278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37280 if (!SWIG_IsOK(res1)) {
37281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37282 }
37283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37285 if (!SWIG_IsOK(res2)) {
37286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37287 }
37288 if (!argp2) {
37289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37290 }
37291 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37292 {
37293 arg3 = &temp3;
37294 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37295 }
37296 if (obj3) {
37297 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37298 if (!SWIG_IsOK(ecode4)) {
37299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37300 }
37301 arg4 = static_cast< bool >(val4);
37302 }
37303 {
37304 PyThreadState* __tstate = wxPyBeginAllowThreads();
37305 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37306 wxPyEndAllowThreads(__tstate);
37307 if (PyErr_Occurred()) SWIG_fail;
37308 }
37309 resultobj = SWIG_Py_Void();
37310 return resultobj;
37311fail:
37312 return NULL;
37313}
37314
37315
37316SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37317 PyObject *resultobj = 0;
37318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37319 wxString *arg2 = 0 ;
37320 int arg3 ;
37321 int arg4 ;
37322 void *argp1 = 0 ;
37323 int res1 = 0 ;
37324 bool temp2 = false ;
37325 int val3 ;
37326 int ecode3 = 0 ;
37327 int val4 ;
37328 int ecode4 = 0 ;
37329 PyObject * obj0 = 0 ;
37330 PyObject * obj1 = 0 ;
37331 PyObject * obj2 = 0 ;
37332 PyObject * obj3 = 0 ;
37333 char * kwnames[] = {
37334 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37335 };
37336
37337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37339 if (!SWIG_IsOK(res1)) {
37340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37341 }
37342 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37343 {
37344 arg2 = wxString_in_helper(obj1);
37345 if (arg2 == NULL) SWIG_fail;
37346 temp2 = true;
37347 }
37348 ecode3 = SWIG_AsVal_int(obj2, &val3);
37349 if (!SWIG_IsOK(ecode3)) {
37350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37351 }
37352 arg3 = static_cast< int >(val3);
37353 ecode4 = SWIG_AsVal_int(obj3, &val4);
37354 if (!SWIG_IsOK(ecode4)) {
37355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37356 }
37357 arg4 = static_cast< int >(val4);
37358 {
37359 PyThreadState* __tstate = wxPyBeginAllowThreads();
37360 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37361 wxPyEndAllowThreads(__tstate);
37362 if (PyErr_Occurred()) SWIG_fail;
37363 }
37364 resultobj = SWIG_Py_Void();
37365 {
37366 if (temp2)
37367 delete arg2;
37368 }
37369 return resultobj;
37370fail:
37371 {
37372 if (temp2)
37373 delete arg2;
37374 }
37375 return NULL;
37376}
37377
37378
37379SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj = 0;
37381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37382 wxString *arg2 = 0 ;
37383 wxPoint *arg3 = 0 ;
37384 void *argp1 = 0 ;
37385 int res1 = 0 ;
37386 bool temp2 = false ;
37387 wxPoint temp3 ;
37388 PyObject * obj0 = 0 ;
37389 PyObject * obj1 = 0 ;
37390 PyObject * obj2 = 0 ;
37391 char * kwnames[] = {
37392 (char *) "self",(char *) "text",(char *) "pt", NULL
37393 };
37394
37395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37397 if (!SWIG_IsOK(res1)) {
37398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37399 }
37400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37401 {
37402 arg2 = wxString_in_helper(obj1);
37403 if (arg2 == NULL) SWIG_fail;
37404 temp2 = true;
37405 }
37406 {
37407 arg3 = &temp3;
37408 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37409 }
37410 {
37411 PyThreadState* __tstate = wxPyBeginAllowThreads();
37412 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37413 wxPyEndAllowThreads(__tstate);
37414 if (PyErr_Occurred()) SWIG_fail;
37415 }
37416 resultobj = SWIG_Py_Void();
37417 {
37418 if (temp2)
37419 delete arg2;
37420 }
37421 return resultobj;
37422fail:
37423 {
37424 if (temp2)
37425 delete arg2;
37426 }
37427 return NULL;
37428}
37429
37430
37431SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37432 PyObject *resultobj = 0;
37433 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37434 wxString *arg2 = 0 ;
37435 int arg3 ;
37436 int arg4 ;
37437 double arg5 ;
37438 void *argp1 = 0 ;
37439 int res1 = 0 ;
37440 bool temp2 = false ;
37441 int val3 ;
37442 int ecode3 = 0 ;
37443 int val4 ;
37444 int ecode4 = 0 ;
37445 double val5 ;
37446 int ecode5 = 0 ;
37447 PyObject * obj0 = 0 ;
37448 PyObject * obj1 = 0 ;
37449 PyObject * obj2 = 0 ;
37450 PyObject * obj3 = 0 ;
37451 PyObject * obj4 = 0 ;
37452 char * kwnames[] = {
37453 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37454 };
37455
37456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37458 if (!SWIG_IsOK(res1)) {
37459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37460 }
37461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37462 {
37463 arg2 = wxString_in_helper(obj1);
37464 if (arg2 == NULL) SWIG_fail;
37465 temp2 = true;
37466 }
37467 ecode3 = SWIG_AsVal_int(obj2, &val3);
37468 if (!SWIG_IsOK(ecode3)) {
37469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37470 }
37471 arg3 = static_cast< int >(val3);
37472 ecode4 = SWIG_AsVal_int(obj3, &val4);
37473 if (!SWIG_IsOK(ecode4)) {
37474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37475 }
37476 arg4 = static_cast< int >(val4);
37477 ecode5 = SWIG_AsVal_double(obj4, &val5);
37478 if (!SWIG_IsOK(ecode5)) {
37479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37480 }
37481 arg5 = static_cast< double >(val5);
37482 {
37483 PyThreadState* __tstate = wxPyBeginAllowThreads();
37484 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37485 wxPyEndAllowThreads(__tstate);
37486 if (PyErr_Occurred()) SWIG_fail;
37487 }
37488 resultobj = SWIG_Py_Void();
37489 {
37490 if (temp2)
37491 delete arg2;
37492 }
37493 return resultobj;
37494fail:
37495 {
37496 if (temp2)
37497 delete arg2;
37498 }
37499 return NULL;
37500}
37501
37502
37503SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37504 PyObject *resultobj = 0;
37505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37506 wxString *arg2 = 0 ;
37507 wxPoint *arg3 = 0 ;
37508 double arg4 ;
37509 void *argp1 = 0 ;
37510 int res1 = 0 ;
37511 bool temp2 = false ;
37512 wxPoint temp3 ;
37513 double val4 ;
37514 int ecode4 = 0 ;
37515 PyObject * obj0 = 0 ;
37516 PyObject * obj1 = 0 ;
37517 PyObject * obj2 = 0 ;
37518 PyObject * obj3 = 0 ;
37519 char * kwnames[] = {
37520 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37521 };
37522
37523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37525 if (!SWIG_IsOK(res1)) {
37526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37527 }
37528 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37529 {
37530 arg2 = wxString_in_helper(obj1);
37531 if (arg2 == NULL) SWIG_fail;
37532 temp2 = true;
37533 }
37534 {
37535 arg3 = &temp3;
37536 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37537 }
37538 ecode4 = SWIG_AsVal_double(obj3, &val4);
37539 if (!SWIG_IsOK(ecode4)) {
37540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37541 }
37542 arg4 = static_cast< double >(val4);
37543 {
37544 PyThreadState* __tstate = wxPyBeginAllowThreads();
37545 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37546 wxPyEndAllowThreads(__tstate);
37547 if (PyErr_Occurred()) SWIG_fail;
37548 }
37549 resultobj = SWIG_Py_Void();
37550 {
37551 if (temp2)
37552 delete arg2;
37553 }
37554 return resultobj;
37555fail:
37556 {
37557 if (temp2)
37558 delete arg2;
37559 }
37560 return NULL;
37561}
37562
37563
37564SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37565 PyObject *resultobj = 0;
37566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37567 int arg2 ;
37568 wxPoint *arg3 = (wxPoint *) 0 ;
37569 int arg4 = (int) 0 ;
37570 int arg5 = (int) 0 ;
37571 void *argp1 = 0 ;
37572 int res1 = 0 ;
37573 int val4 ;
37574 int ecode4 = 0 ;
37575 int val5 ;
37576 int ecode5 = 0 ;
37577 PyObject * obj0 = 0 ;
37578 PyObject * obj1 = 0 ;
37579 PyObject * obj2 = 0 ;
37580 PyObject * obj3 = 0 ;
37581 char * kwnames[] = {
37582 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37583 };
37584
37585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37587 if (!SWIG_IsOK(res1)) {
37588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37589 }
37590 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37591 {
37592 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37593 if (arg3 == NULL) SWIG_fail;
37594 }
37595 if (obj2) {
37596 ecode4 = SWIG_AsVal_int(obj2, &val4);
37597 if (!SWIG_IsOK(ecode4)) {
37598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37599 }
37600 arg4 = static_cast< int >(val4);
37601 }
37602 if (obj3) {
37603 ecode5 = SWIG_AsVal_int(obj3, &val5);
37604 if (!SWIG_IsOK(ecode5)) {
37605 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37606 }
37607 arg5 = static_cast< int >(val5);
37608 }
37609 {
37610 PyThreadState* __tstate = wxPyBeginAllowThreads();
37611 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37612 wxPyEndAllowThreads(__tstate);
37613 if (PyErr_Occurred()) SWIG_fail;
37614 }
37615 resultobj = SWIG_Py_Void();
37616 {
37617 if (arg3) delete [] arg3;
37618 }
37619 return resultobj;
37620fail:
37621 {
37622 if (arg3) delete [] arg3;
37623 }
37624 return NULL;
37625}
37626
37627
37628SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37629 PyObject *resultobj = 0;
37630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37631 int arg2 ;
37632 wxPoint *arg3 = (wxPoint *) 0 ;
37633 int arg4 = (int) 0 ;
37634 int arg5 = (int) 0 ;
37635 int arg6 = (int) wxODDEVEN_RULE ;
37636 void *argp1 = 0 ;
37637 int res1 = 0 ;
37638 int val4 ;
37639 int ecode4 = 0 ;
37640 int val5 ;
37641 int ecode5 = 0 ;
37642 int val6 ;
37643 int ecode6 = 0 ;
37644 PyObject * obj0 = 0 ;
37645 PyObject * obj1 = 0 ;
37646 PyObject * obj2 = 0 ;
37647 PyObject * obj3 = 0 ;
37648 PyObject * obj4 = 0 ;
37649 char * kwnames[] = {
37650 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37651 };
37652
37653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37655 if (!SWIG_IsOK(res1)) {
37656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37657 }
37658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37659 {
37660 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37661 if (arg3 == NULL) SWIG_fail;
37662 }
37663 if (obj2) {
37664 ecode4 = SWIG_AsVal_int(obj2, &val4);
37665 if (!SWIG_IsOK(ecode4)) {
37666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37667 }
37668 arg4 = static_cast< int >(val4);
37669 }
37670 if (obj3) {
37671 ecode5 = SWIG_AsVal_int(obj3, &val5);
37672 if (!SWIG_IsOK(ecode5)) {
37673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37674 }
37675 arg5 = static_cast< int >(val5);
37676 }
37677 if (obj4) {
37678 ecode6 = SWIG_AsVal_int(obj4, &val6);
37679 if (!SWIG_IsOK(ecode6)) {
37680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37681 }
37682 arg6 = static_cast< int >(val6);
37683 }
37684 {
37685 PyThreadState* __tstate = wxPyBeginAllowThreads();
37686 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37687 wxPyEndAllowThreads(__tstate);
37688 if (PyErr_Occurred()) SWIG_fail;
37689 }
37690 resultobj = SWIG_Py_Void();
37691 {
37692 if (arg3) delete [] arg3;
37693 }
37694 return resultobj;
37695fail:
37696 {
37697 if (arg3) delete [] arg3;
37698 }
37699 return NULL;
37700}
37701
37702
37703SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37704 PyObject *resultobj = 0;
37705 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37706 wxString *arg2 = 0 ;
37707 wxRect *arg3 = 0 ;
37708 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37709 int arg5 = (int) -1 ;
37710 void *argp1 = 0 ;
37711 int res1 = 0 ;
37712 bool temp2 = false ;
37713 wxRect temp3 ;
37714 int val4 ;
37715 int ecode4 = 0 ;
37716 int val5 ;
37717 int ecode5 = 0 ;
37718 PyObject * obj0 = 0 ;
37719 PyObject * obj1 = 0 ;
37720 PyObject * obj2 = 0 ;
37721 PyObject * obj3 = 0 ;
37722 PyObject * obj4 = 0 ;
37723 char * kwnames[] = {
37724 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37725 };
37726
37727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37729 if (!SWIG_IsOK(res1)) {
37730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37731 }
37732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37733 {
37734 arg2 = wxString_in_helper(obj1);
37735 if (arg2 == NULL) SWIG_fail;
37736 temp2 = true;
37737 }
37738 {
37739 arg3 = &temp3;
37740 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37741 }
37742 if (obj3) {
37743 ecode4 = SWIG_AsVal_int(obj3, &val4);
37744 if (!SWIG_IsOK(ecode4)) {
37745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37746 }
37747 arg4 = static_cast< int >(val4);
37748 }
37749 if (obj4) {
37750 ecode5 = SWIG_AsVal_int(obj4, &val5);
37751 if (!SWIG_IsOK(ecode5)) {
37752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37753 }
37754 arg5 = static_cast< int >(val5);
37755 }
37756 {
37757 PyThreadState* __tstate = wxPyBeginAllowThreads();
37758 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37759 wxPyEndAllowThreads(__tstate);
37760 if (PyErr_Occurred()) SWIG_fail;
37761 }
37762 resultobj = SWIG_Py_Void();
37763 {
37764 if (temp2)
37765 delete arg2;
37766 }
37767 return resultobj;
37768fail:
37769 {
37770 if (temp2)
37771 delete arg2;
37772 }
37773 return NULL;
37774}
37775
37776
37777SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj = 0;
37779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37780 wxString *arg2 = 0 ;
37781 wxBitmap *arg3 = 0 ;
37782 wxRect *arg4 = 0 ;
37783 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37784 int arg6 = (int) -1 ;
37785 void *argp1 = 0 ;
37786 int res1 = 0 ;
37787 bool temp2 = false ;
37788 void *argp3 = 0 ;
37789 int res3 = 0 ;
37790 wxRect temp4 ;
37791 int val5 ;
37792 int ecode5 = 0 ;
37793 int val6 ;
37794 int ecode6 = 0 ;
37795 PyObject * obj0 = 0 ;
37796 PyObject * obj1 = 0 ;
37797 PyObject * obj2 = 0 ;
37798 PyObject * obj3 = 0 ;
37799 PyObject * obj4 = 0 ;
37800 PyObject * obj5 = 0 ;
37801 char * kwnames[] = {
37802 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37803 };
37804
37805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37807 if (!SWIG_IsOK(res1)) {
37808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37809 }
37810 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37811 {
37812 arg2 = wxString_in_helper(obj1);
37813 if (arg2 == NULL) SWIG_fail;
37814 temp2 = true;
37815 }
37816 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37817 if (!SWIG_IsOK(res3)) {
37818 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37819 }
37820 if (!argp3) {
37821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37822 }
37823 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37824 {
37825 arg4 = &temp4;
37826 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37827 }
37828 if (obj4) {
37829 ecode5 = SWIG_AsVal_int(obj4, &val5);
37830 if (!SWIG_IsOK(ecode5)) {
37831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37832 }
37833 arg5 = static_cast< int >(val5);
37834 }
37835 if (obj5) {
37836 ecode6 = SWIG_AsVal_int(obj5, &val6);
37837 if (!SWIG_IsOK(ecode6)) {
37838 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37839 }
37840 arg6 = static_cast< int >(val6);
37841 }
37842 {
37843 PyThreadState* __tstate = wxPyBeginAllowThreads();
37844 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37845 wxPyEndAllowThreads(__tstate);
37846 if (PyErr_Occurred()) SWIG_fail;
37847 }
37848 resultobj = SWIG_Py_Void();
37849 {
37850 if (temp2)
37851 delete arg2;
37852 }
37853 return resultobj;
37854fail:
37855 {
37856 if (temp2)
37857 delete arg2;
37858 }
37859 return NULL;
37860}
37861
37862
37863SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37864 PyObject *resultobj = 0;
37865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37866 int arg2 ;
37867 wxPoint *arg3 = (wxPoint *) 0 ;
37868 void *argp1 = 0 ;
37869 int res1 = 0 ;
37870 PyObject * obj0 = 0 ;
37871 PyObject * obj1 = 0 ;
37872 char * kwnames[] = {
37873 (char *) "self",(char *) "points", NULL
37874 };
37875
37876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37878 if (!SWIG_IsOK(res1)) {
37879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37880 }
37881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37882 {
37883 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37884 if (arg3 == NULL) SWIG_fail;
37885 }
37886 {
37887 PyThreadState* __tstate = wxPyBeginAllowThreads();
37888 (arg1)->DrawSpline(arg2,arg3);
37889 wxPyEndAllowThreads(__tstate);
37890 if (PyErr_Occurred()) SWIG_fail;
37891 }
37892 resultobj = SWIG_Py_Void();
37893 {
37894 if (arg3) delete [] arg3;
37895 }
37896 return resultobj;
37897fail:
37898 {
37899 if (arg3) delete [] arg3;
37900 }
37901 return NULL;
37902}
37903
37904
37905SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37906 PyObject *resultobj = 0;
37907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37908 void *argp1 = 0 ;
37909 int res1 = 0 ;
37910 PyObject *swig_obj[1] ;
37911
37912 if (!args) SWIG_fail;
37913 swig_obj[0] = args;
37914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37915 if (!SWIG_IsOK(res1)) {
37916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37917 }
37918 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37919 {
37920 PyThreadState* __tstate = wxPyBeginAllowThreads();
37921 (arg1)->Clear();
37922 wxPyEndAllowThreads(__tstate);
37923 if (PyErr_Occurred()) SWIG_fail;
37924 }
37925 resultobj = SWIG_Py_Void();
37926 return resultobj;
37927fail:
37928 return NULL;
37929}
37930
37931
37932SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37933 PyObject *resultobj = 0;
37934 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37935 wxFont *arg2 = 0 ;
37936 void *argp1 = 0 ;
37937 int res1 = 0 ;
37938 void *argp2 = 0 ;
37939 int res2 = 0 ;
37940 PyObject * obj0 = 0 ;
37941 PyObject * obj1 = 0 ;
37942 char * kwnames[] = {
37943 (char *) "self",(char *) "font", NULL
37944 };
37945
37946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37948 if (!SWIG_IsOK(res1)) {
37949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37950 }
37951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37953 if (!SWIG_IsOK(res2)) {
37954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37955 }
37956 if (!argp2) {
37957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37958 }
37959 arg2 = reinterpret_cast< wxFont * >(argp2);
37960 {
37961 PyThreadState* __tstate = wxPyBeginAllowThreads();
37962 (arg1)->SetFont((wxFont const &)*arg2);
37963 wxPyEndAllowThreads(__tstate);
37964 if (PyErr_Occurred()) SWIG_fail;
37965 }
37966 resultobj = SWIG_Py_Void();
37967 return resultobj;
37968fail:
37969 return NULL;
37970}
37971
37972
37973SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37974 PyObject *resultobj = 0;
37975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37976 wxPen *arg2 = 0 ;
37977 void *argp1 = 0 ;
37978 int res1 = 0 ;
37979 void *argp2 = 0 ;
37980 int res2 = 0 ;
37981 PyObject * obj0 = 0 ;
37982 PyObject * obj1 = 0 ;
37983 char * kwnames[] = {
37984 (char *) "self",(char *) "pen", NULL
37985 };
37986
37987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37989 if (!SWIG_IsOK(res1)) {
37990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37991 }
37992 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37994 if (!SWIG_IsOK(res2)) {
37995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37996 }
37997 if (!argp2) {
37998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37999 }
38000 arg2 = reinterpret_cast< wxPen * >(argp2);
38001 {
38002 PyThreadState* __tstate = wxPyBeginAllowThreads();
38003 (arg1)->SetPen((wxPen const &)*arg2);
38004 wxPyEndAllowThreads(__tstate);
38005 if (PyErr_Occurred()) SWIG_fail;
38006 }
38007 resultobj = SWIG_Py_Void();
38008 return resultobj;
38009fail:
38010 return NULL;
38011}
38012
38013
38014SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38015 PyObject *resultobj = 0;
38016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38017 wxBrush *arg2 = 0 ;
38018 void *argp1 = 0 ;
38019 int res1 = 0 ;
38020 void *argp2 = 0 ;
38021 int res2 = 0 ;
38022 PyObject * obj0 = 0 ;
38023 PyObject * obj1 = 0 ;
38024 char * kwnames[] = {
38025 (char *) "self",(char *) "brush", NULL
38026 };
38027
38028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38030 if (!SWIG_IsOK(res1)) {
38031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38032 }
38033 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38035 if (!SWIG_IsOK(res2)) {
38036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38037 }
38038 if (!argp2) {
38039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38040 }
38041 arg2 = reinterpret_cast< wxBrush * >(argp2);
38042 {
38043 PyThreadState* __tstate = wxPyBeginAllowThreads();
38044 (arg1)->SetBrush((wxBrush const &)*arg2);
38045 wxPyEndAllowThreads(__tstate);
38046 if (PyErr_Occurred()) SWIG_fail;
38047 }
38048 resultobj = SWIG_Py_Void();
38049 return resultobj;
38050fail:
38051 return NULL;
38052}
38053
38054
38055SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38056 PyObject *resultobj = 0;
38057 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38058 wxBrush *arg2 = 0 ;
38059 void *argp1 = 0 ;
38060 int res1 = 0 ;
38061 void *argp2 = 0 ;
38062 int res2 = 0 ;
38063 PyObject * obj0 = 0 ;
38064 PyObject * obj1 = 0 ;
38065 char * kwnames[] = {
38066 (char *) "self",(char *) "brush", NULL
38067 };
38068
38069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38071 if (!SWIG_IsOK(res1)) {
38072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38073 }
38074 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38076 if (!SWIG_IsOK(res2)) {
38077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38078 }
38079 if (!argp2) {
38080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38081 }
38082 arg2 = reinterpret_cast< wxBrush * >(argp2);
38083 {
38084 PyThreadState* __tstate = wxPyBeginAllowThreads();
38085 (arg1)->SetBackground((wxBrush const &)*arg2);
38086 wxPyEndAllowThreads(__tstate);
38087 if (PyErr_Occurred()) SWIG_fail;
38088 }
38089 resultobj = SWIG_Py_Void();
38090 return resultobj;
38091fail:
38092 return NULL;
38093}
38094
38095
38096SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38097 PyObject *resultobj = 0;
38098 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38099 int arg2 ;
38100 void *argp1 = 0 ;
38101 int res1 = 0 ;
38102 int val2 ;
38103 int ecode2 = 0 ;
38104 PyObject * obj0 = 0 ;
38105 PyObject * obj1 = 0 ;
38106 char * kwnames[] = {
38107 (char *) "self",(char *) "mode", NULL
38108 };
38109
38110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38112 if (!SWIG_IsOK(res1)) {
38113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38114 }
38115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38116 ecode2 = SWIG_AsVal_int(obj1, &val2);
38117 if (!SWIG_IsOK(ecode2)) {
38118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38119 }
38120 arg2 = static_cast< int >(val2);
38121 {
38122 PyThreadState* __tstate = wxPyBeginAllowThreads();
38123 (arg1)->SetBackgroundMode(arg2);
38124 wxPyEndAllowThreads(__tstate);
38125 if (PyErr_Occurred()) SWIG_fail;
38126 }
38127 resultobj = SWIG_Py_Void();
38128 return resultobj;
38129fail:
38130 return NULL;
38131}
38132
38133
38134SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38135 PyObject *resultobj = 0;
38136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38137 wxPalette *arg2 = 0 ;
38138 void *argp1 = 0 ;
38139 int res1 = 0 ;
38140 void *argp2 = 0 ;
38141 int res2 = 0 ;
38142 PyObject * obj0 = 0 ;
38143 PyObject * obj1 = 0 ;
38144 char * kwnames[] = {
38145 (char *) "self",(char *) "palette", NULL
38146 };
38147
38148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38150 if (!SWIG_IsOK(res1)) {
38151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38152 }
38153 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38155 if (!SWIG_IsOK(res2)) {
38156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38157 }
38158 if (!argp2) {
38159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38160 }
38161 arg2 = reinterpret_cast< wxPalette * >(argp2);
38162 {
38163 PyThreadState* __tstate = wxPyBeginAllowThreads();
38164 (arg1)->SetPalette((wxPalette const &)*arg2);
38165 wxPyEndAllowThreads(__tstate);
38166 if (PyErr_Occurred()) SWIG_fail;
38167 }
38168 resultobj = SWIG_Py_Void();
38169 return resultobj;
38170fail:
38171 return NULL;
38172}
38173
38174
38175SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38176 PyObject *resultobj = 0;
38177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38178 wxColour *arg2 = 0 ;
38179 void *argp1 = 0 ;
38180 int res1 = 0 ;
38181 wxColour temp2 ;
38182 PyObject * obj0 = 0 ;
38183 PyObject * obj1 = 0 ;
38184 char * kwnames[] = {
38185 (char *) "self",(char *) "colour", NULL
38186 };
38187
38188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38190 if (!SWIG_IsOK(res1)) {
38191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38192 }
38193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38194 {
38195 arg2 = &temp2;
38196 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38197 }
38198 {
38199 PyThreadState* __tstate = wxPyBeginAllowThreads();
38200 (arg1)->SetTextForeground((wxColour const &)*arg2);
38201 wxPyEndAllowThreads(__tstate);
38202 if (PyErr_Occurred()) SWIG_fail;
38203 }
38204 resultobj = SWIG_Py_Void();
38205 return resultobj;
38206fail:
38207 return NULL;
38208}
38209
38210
38211SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38212 PyObject *resultobj = 0;
38213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38214 wxColour *arg2 = 0 ;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 wxColour temp2 ;
38218 PyObject * obj0 = 0 ;
38219 PyObject * obj1 = 0 ;
38220 char * kwnames[] = {
38221 (char *) "self",(char *) "colour", NULL
38222 };
38223
38224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38226 if (!SWIG_IsOK(res1)) {
38227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38228 }
38229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38230 {
38231 arg2 = &temp2;
38232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38233 }
38234 {
38235 PyThreadState* __tstate = wxPyBeginAllowThreads();
38236 (arg1)->SetTextBackground((wxColour const &)*arg2);
38237 wxPyEndAllowThreads(__tstate);
38238 if (PyErr_Occurred()) SWIG_fail;
38239 }
38240 resultobj = SWIG_Py_Void();
38241 return resultobj;
38242fail:
38243 return NULL;
38244}
38245
38246
38247SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38248 PyObject *resultobj = 0;
38249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38250 int arg2 ;
38251 void *argp1 = 0 ;
38252 int res1 = 0 ;
38253 int val2 ;
38254 int ecode2 = 0 ;
38255 PyObject * obj0 = 0 ;
38256 PyObject * obj1 = 0 ;
38257 char * kwnames[] = {
38258 (char *) "self",(char *) "function", NULL
38259 };
38260
38261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38263 if (!SWIG_IsOK(res1)) {
38264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38265 }
38266 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38267 ecode2 = SWIG_AsVal_int(obj1, &val2);
38268 if (!SWIG_IsOK(ecode2)) {
38269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38270 }
38271 arg2 = static_cast< int >(val2);
38272 {
38273 PyThreadState* __tstate = wxPyBeginAllowThreads();
38274 (arg1)->SetLogicalFunction(arg2);
38275 wxPyEndAllowThreads(__tstate);
38276 if (PyErr_Occurred()) SWIG_fail;
38277 }
38278 resultobj = SWIG_Py_Void();
38279 return resultobj;
38280fail:
38281 return NULL;
38282}
38283
38284
38285SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38286 PyObject *obj;
38287 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38288 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38289 return SWIG_Py_Void();
38290}
38291
38292SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38293 return SWIG_Python_InitShadowInstance(args);
38294}
38295
38296static PyMethodDef SwigMethods[] = {
38297 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38298 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38299 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38300 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38301 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38302 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38303 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38305 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38306 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38307 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38308 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38309 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38310 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38311 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38312 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38313 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38314 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38316 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38317 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38318 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38319 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38320 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38321 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38322 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38323 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38324 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38327 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38328 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38329 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38330 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38331 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38332 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38333 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38334 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38335 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38336 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38337 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38338 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38342 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38345 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38347 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38349 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38350 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38353 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38354 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38357 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38358 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38359 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38360 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38361 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38362 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38364 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38365 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38367 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38372 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38373 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38374 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38375 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38376 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38377 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38378 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38379 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38383 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38384 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38385 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38386 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38390 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38391 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38392 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38395 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38396 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38397 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38400 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38401 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38402 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38403 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38404 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38405 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38406 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38407 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38408 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38409 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38410 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38411 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38412 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38413 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38414 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38416 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38417 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38418 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38423 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38424 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38425 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38426 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38427 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38428 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38429 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38430 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38431 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38432 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38433 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38434 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38436 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38437 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38438 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38443 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38444 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38445 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38447 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38448 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38449 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38451 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38452 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38455 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38456 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38457 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38458 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38459 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38464 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38465 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38467 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38468 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38470 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38472 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38473 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38474 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38475 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38478 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38482 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38483 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38485 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38487 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38488 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38489 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38490 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38495 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38496 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38502 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38506 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38507 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38517 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38520 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38521 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38523 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38524 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38525 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38526 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38527 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38528 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38529 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38530 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38531 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38532 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38533 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38534 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38535 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38536 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38537 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38538 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38539 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38541 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38542 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38543 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38544 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38545 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38546 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38547 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38556 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38557 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38559 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38560 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38561 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38562 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38563 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38564 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38565 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38566 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38567 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38569 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38570 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38571 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38574 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38575 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38576 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38579 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38585 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38590 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38591 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38592 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38593 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38598 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38599 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38600 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38602 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38603 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38604 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38605 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38606 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38607 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38608 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38609 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38610 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38611 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38612 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38613 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38614 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38624 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38626 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38627 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38628 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38630 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38631 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38633 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38634 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38635 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38636 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38639 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38640 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38641 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38642 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38643 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38644 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38645 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38646 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38647 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38648 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38649 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38650 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38651 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38653 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38656 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38657 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38658 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38659 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38660 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38661 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38662 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38663 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38665 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38666 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38673 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38674 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38675 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38677 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38681 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38682 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38683 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38684 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38685 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38686 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38692 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38693 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38694 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38733 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38734 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38744 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38746 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38747 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38748 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38755 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38756 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38757 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38758 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38759 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38764 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38765 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38766 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38767 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38776 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38777 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38778 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38779 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38780 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38781 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38782 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38783 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38784 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38785 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38786 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38787 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38790 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38792 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38794 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38796 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38797 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38800 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38801 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38805 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38807 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38810 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38811 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38812 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38813 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38814 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38815 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38816 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38817 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38824 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38826 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38827 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38828 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38830 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38831 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38832 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38834 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38835 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38836 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38837 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38838 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38839 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38840 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38841 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38843 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38844 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38845 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38846 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38847 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38850 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38851 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38852 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38854 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38855 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38857 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38858 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38860 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38861 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38862 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38863 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38864 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38865 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38866 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38868 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38869 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38871 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38872 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38873 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38875 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38876 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38878 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38881 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38882 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38883 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 38885 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
38886 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38888 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38889 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38890 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38891 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38892 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38894 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38895 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38896 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38898 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38899 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38901 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38902 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38903 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38904 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38905 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38906 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38907 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38908 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38909 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38910 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38911 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38912 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38913 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38914 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38915 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38916 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38917 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38918 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38919 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38923 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38925 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38931 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38932 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38933 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38934 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38935 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38936 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38937 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38938 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38939 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38940 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38941 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38942 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38946 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38949 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38952 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38953 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38954 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38955 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38956 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38957 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38958 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38959 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38960 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38966 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38967 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38968 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38969 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38970 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38971 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38972 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38975 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38978 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38979 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38980 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38981 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38984 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38986 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38987 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38992 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38993 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38994 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38998 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38999 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39000 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39001 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39002 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39003 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39006 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39013 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39015 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39016 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39017 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39018 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39019 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39020 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39021 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39022 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39023 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39024 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39025 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39026 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39027 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39028 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39029 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39031 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39039 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39041 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39043 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39044 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39045 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39046 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39047 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39048 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39054 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39055 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39056 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39057 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39058 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39059 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39060 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39061 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39062 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39063 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39064 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39065 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39066 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39067 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39071 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39072 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39073 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39078 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39079 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39080 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39081 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39082 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39083 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39084 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39085 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39086 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39087 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39088 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39089 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39098 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39099 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39101 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39102 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39103 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39104 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39105 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39106 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39107 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39108 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39109 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39110 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39111 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39112 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39113 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39114 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39115 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39116 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39117 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39118 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39119 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39120 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39121 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39122 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39123 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39124 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39126 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39128 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39129 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39130 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39131 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39132 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39134 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39139 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39142 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39144 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39145 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39146 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39148 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39149 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39150 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39151 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39152 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39153 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39154 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39155 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39159 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39163 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39208 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39218 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39219 { NULL, NULL, 0, NULL }
39220};
39221
39222
39223/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39224
72ef6efb
RD
39225static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39226 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39227}
8e99bda9
RD
39228static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39229 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39230}
39231static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39232 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39233}
72ef6efb
RD
39234static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39235 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39236}
39237static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39238 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39239}
fc46b7f3
RD
39240static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39241 return (void *)((wxLocale *) ((wxPyLocale *) x));
39242}
70d7cb34
RD
39243static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39244 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39245}
39246static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39247 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39248}
39249static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39250 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39251}
39252static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39253 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39254}
39255static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39256 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39257}
39258static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39259 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39260}
1bd55598
RD
39261static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39262 return (void *)((wxGDIObject *) ((wxIcon *) x));
39263}
39264static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39265 return (void *)((wxGDIObject *) ((wxPalette *) x));
39266}
39267static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39268 return (void *)((wxGDIObject *) ((wxPen *) x));
39269}
39270static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39271 return (void *)((wxGDIObject *) ((wxFont *) x));
39272}
39273static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39274 return (void *)((wxGDIObject *) ((wxCursor *) x));
39275}
39276static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39277 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39278}
39279static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39280 return (void *)((wxGDIObject *) ((wxRegion *) x));
39281}
39282static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39283 return (void *)((wxGDIObject *) ((wxBrush *) x));
39284}
72ef6efb
RD
39285static void *_p_wxGCDCTo_p_wxDC(void *x) {
39286 return (void *)((wxDC *) ((wxGCDC *) x));
39287}
1bd55598
RD
39288static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39289 return (void *)((wxDC *) ((wxScreenDC *) x));
39290}
24f6c4e8
RD
39291static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39292 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39293}
1bd55598
RD
39294static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39295 return (void *)((wxDC *) ((wxMirrorDC *) x));
39296}
39297static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39298 return (void *)((wxDC *) ((wxMemoryDC *) x));
39299}
39300static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39301 return (void *)((wxDC *) ((wxWindowDC *) x));
39302}
39303static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39304 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39305}
1bd55598 39306static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39307 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39308}
39309static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39310 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39311}
24f6c4e8
RD
39312static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39313 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39314}
39315static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39316 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39317}
1bd55598
RD
39318static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39319 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39320}
39321static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39322 return (void *)((wxDC *) ((wxPrinterDC *) x));
39323}
da91cb0f
RD
39324static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39325 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39326}
39327static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39328 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39329}
39330static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39331 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39332}
1bd55598
RD
39333static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39334 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39335}
39336static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39337 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39338}
39339static void *_p_wxPenTo_p_wxObject(void *x) {
39340 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39341}
39342static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39343 return (void *)((wxObject *) ((wxRegionIterator *) x));
39344}
1bd55598
RD
39345static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39346 return (void *)((wxObject *) ((wxSizerItem *) x));
39347}
34e0a3bb
RD
39348static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39349 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39350}
1bd55598
RD
39351static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39352 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39353}
39354static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39355 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39356}
39357static void *_p_wxIconTo_p_wxObject(void *x) {
39358 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39359}
39360static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39361 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39362}
39363static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39364 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39365}
39366static void *_p_wxSizerTo_p_wxObject(void *x) {
39367 return (void *)((wxObject *) ((wxSizer *) x));
39368}
39369static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39370 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39371}
39372static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39374}
1bd55598
RD
39375static void *_p_wxEventTo_p_wxObject(void *x) {
39376 return (void *)((wxObject *) ((wxEvent *) x));
39377}
39378static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39379 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39380}
39381static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39382 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39383}
39384static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39385 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39386}
27e45892
RD
39387static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39388 return (void *)((wxObject *) ((wxPseudoDC *) x));
39389}
2131d850
RD
39390static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39391 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39392}
1bd55598
RD
39393static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39394 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39395}
39396static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39397 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39398}
39399static void *_p_wxDCTo_p_wxObject(void *x) {
39400 return (void *)((wxObject *) ((wxDC *) x));
39401}
39402static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39403 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39404}
39405static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39406 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39407}
39408static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39409 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39410}
39411static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39412 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39413}
39414static void *_p_wxControlTo_p_wxObject(void *x) {
39415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39416}
70d7cb34
RD
39417static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39418 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39419}
1bd55598
RD
39420static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39421 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39422}
39423static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39424 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39425}
39426static void *_p_wxFSFileTo_p_wxObject(void *x) {
39427 return (void *)((wxObject *) ((wxFSFile *) x));
39428}
39429static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39430 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39431}
39432static void *_p_wxRegionTo_p_wxObject(void *x) {
39433 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39434}
39435static void *_p_wxPySizerTo_p_wxObject(void *x) {
39436 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39437}
39438static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39439 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39440}
39441static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39442 return (void *)((wxObject *) ((wxGDIObject *) x));
39443}
70d7cb34
RD
39444static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39445 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39446}
39447static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39448 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39449}
1bd55598
RD
39450static void *_p_wxEffectsTo_p_wxObject(void *x) {
39451 return (void *)((wxObject *) ((wxEffects *) x));
39452}
39453static void *_p_wxPyEventTo_p_wxObject(void *x) {
39454 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39455}
39456static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39457 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39458}
39459static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39460 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39461}
70d7cb34
RD
39462static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39463 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39464}
1bd55598
RD
39465static void *_p_wxShowEventTo_p_wxObject(void *x) {
39466 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39467}
39468static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39469 return (void *)((wxObject *) ((wxMenuItem *) x));
39470}
39471static void *_p_wxDateEventTo_p_wxObject(void *x) {
39472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39473}
39474static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39475 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39476}
39477static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39478 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39479}
39480static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39481 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39482}
39483static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39484 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39485}
39486static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39487 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39488}
39489static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39490 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39491}
39492static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39493 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39494}
39495static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39496 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39497}
39498static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39499 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39500}
39501static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39502 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39503}
39504static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39505 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39506}
39507static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39508 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39509}
39510static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39511 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39512}
39513static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39514 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39515}
39516static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39517 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39518}
39519static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39520 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39521}
39522static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39523 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39524}
39525static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39526 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39527}
39528static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39529 return (void *)((wxObject *) ((wxImageHandler *) x));
39530}
39531static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39532 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39533}
39534static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39535 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39536}
39537static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39538 return (void *)((wxObject *) ((wxEvtHandler *) x));
39539}
34e0a3bb
RD
39540static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39541 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39542}
24f6c4e8
RD
39543static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39544 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39545}
1bd55598 39546static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39547 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39548}
24f6c4e8
RD
39549static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39550 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39551}
39552static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39553 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39554}
39555static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39556 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39557}
39558static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39559 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39560}
39561static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39562 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39563}
39564static void *_p_wxImageTo_p_wxObject(void *x) {
39565 return (void *)((wxObject *) ((wxImage *) x));
39566}
39567static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39568 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39569}
70d7cb34
RD
39570static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39571 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39572}
39573static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39574 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39575}
1bd55598
RD
39576static void *_p_wxPaletteTo_p_wxObject(void *x) {
39577 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39578}
39579static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39580 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39581}
39582static void *_p_wxImageListTo_p_wxObject(void *x) {
39583 return (void *)((wxObject *) ((wxImageList *) x));
39584}
72ef6efb
RD
39585static void *_p_wxGCDCTo_p_wxObject(void *x) {
39586 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39587}
1bd55598
RD
39588static void *_p_wxCursorTo_p_wxObject(void *x) {
39589 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39590}
39591static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39592 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39593}
39594static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39595 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39596}
70d7cb34
RD
39597static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39598 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39599}
1bd55598
RD
39600static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39602}
39603static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39604 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39605}
39606static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39607 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39608}
39609static void *_p_wxWindowTo_p_wxObject(void *x) {
39610 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39611}
39612static void *_p_wxMenuTo_p_wxObject(void *x) {
39613 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39614}
39615static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39617}
39618static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39619 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39620}
1bd55598
RD
39621static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39622 return (void *)((wxObject *) ((wxFileSystem *) x));
39623}
39624static void *_p_wxBitmapTo_p_wxObject(void *x) {
39625 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39626}
39627static void *_p_wxMaskTo_p_wxObject(void *x) {
39628 return (void *)((wxObject *) ((wxMask *) x));
39629}
70d7cb34
RD
39630static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39631 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39632}
1bd55598
RD
39633static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39635}
39636static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39637 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39638}
39639static void *_p_wxPyAppTo_p_wxObject(void *x) {
39640 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39641}
39642static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39643 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39644}
39645static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39646 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39647}
39648static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39649 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39650}
39651static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39652 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39653}
39654static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39655 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39656}
39657static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39658 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39659}
39660static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39661 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39662}
39663static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39664 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39665}
39666static void *_p_wxFontTo_p_wxObject(void *x) {
39667 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39668}
39669static void *_p_wxBrushTo_p_wxObject(void *x) {
39670 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39671}
39672static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39673 return (void *)((wxObject *) ((wxMetaFile *) x));
39674}
39675static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39676 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39677}
39678static void *_p_wxColourTo_p_wxObject(void *x) {
39679 return (void *)((wxObject *) ((wxColour *) x));
39680}
1bd55598
RD
39681static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39682 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39683}
39684static void *_p_wxValidatorTo_p_wxObject(void *x) {
39685 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39686}
39687static void *_p_wxControlTo_p_wxWindow(void *x) {
39688 return (void *)((wxWindow *) ((wxControl *) x));
39689}
39690static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39691 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39692}
39693static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39694 return (void *)((wxWindow *) ((wxMenuBar *) x));
39695}
fc46b7f3
RD
39696static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39697 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39698}
39699static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39700 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39701}
39702static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39703static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39704static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39705static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39706static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39707static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39708static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39709static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39710static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39711static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39712static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39713static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39714static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39715static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39716static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39717static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39718static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39719static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39720static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39721static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39722static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39723static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39724static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39725static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39726static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39727static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39728static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39729static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39730static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39731static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39732static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39733static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39734static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39735static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39736static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39737static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39738static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39739static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39740static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39741static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39742static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39743static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39744static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39745static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39746static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39747static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39748static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39749static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39750static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39751static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39752static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39753static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39754static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39755static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39756static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39757static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39758static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39759static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39760static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39761static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39762static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39763static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39764static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39765static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39766static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39767static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39768static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39769static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39770static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39771static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39772static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39773static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39774static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39775static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39776static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39777static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39778static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39779static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39780static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39781static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39782static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39783static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39784static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39785static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39786static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39787static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39788static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39789static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39790static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39791static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39792static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39793static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39794static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39795static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39796static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39797static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39798static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39799static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39800static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39801static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39802static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39803static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39804static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39805static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 39806static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39807static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39808static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39809static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39810static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39811static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39812static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39813static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39814static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39815static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39816static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
39817static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39818static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39819static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39820static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39821static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39822static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39823static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39824static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39825static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39826static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39827static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39828static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39829static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39830static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39831static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39832static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39833static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39834static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39835static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39836static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39837static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39838static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39839static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39840static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39841static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39842static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39843static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
39844static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39845static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39846static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39847static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39848static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39849static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 39850static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39851static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39852static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39853static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39854static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39855static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39856static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 39857static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39858static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 39859static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39860static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39861static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39862static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39863static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39864static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39865static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39866static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39867static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 39868static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
39869static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39870static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39871static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39872
39873static swig_type_info *swig_type_initial[] = {
fc46b7f3 39874 &_swigt__p_buffer,
1bd55598
RD
39875 &_swigt__p_char,
39876 &_swigt__p_double,
39877 &_swigt__p_form_ops_t,
39878 &_swigt__p_int,
39879 &_swigt__p_unsigned_char,
39880 &_swigt__p_unsigned_int,
39881 &_swigt__p_unsigned_long,
0a27f394 39882 &_swigt__p_void,
1bd55598
RD
39883 &_swigt__p_wxANIHandler,
39884 &_swigt__p_wxAcceleratorTable,
39885 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39886 &_swigt__p_wxAlphaPixelData,
39887 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39888 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
39889 &_swigt__p_wxBMPHandler,
39890 &_swigt__p_wxBitmap,
39891 &_swigt__p_wxBoxSizer,
39892 &_swigt__p_wxBrush,
39893 &_swigt__p_wxBrushList,
39894 &_swigt__p_wxBufferedDC,
39895 &_swigt__p_wxBufferedPaintDC,
39896 &_swigt__p_wxCURHandler,
fc46b7f3 39897 &_swigt__p_wxChar,
1bd55598
RD
39898 &_swigt__p_wxChildFocusEvent,
39899 &_swigt__p_wxClientDC,
2131d850 39900 &_swigt__p_wxClipboardTextEvent,
1bd55598 39901 &_swigt__p_wxCloseEvent,
72ef6efb 39902 &_swigt__p_wxColor,
1bd55598
RD
39903 &_swigt__p_wxColour,
39904 &_swigt__p_wxColourDatabase,
39905 &_swigt__p_wxCommandEvent,
39906 &_swigt__p_wxContextMenuEvent,
39907 &_swigt__p_wxControl,
39908 &_swigt__p_wxControlWithItems,
39909 &_swigt__p_wxCursor,
39910 &_swigt__p_wxDC,
70d7cb34
RD
39911 &_swigt__p_wxDCBrushChanger,
39912 &_swigt__p_wxDCClipper,
b39fe951 39913 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39914 &_swigt__p_wxDCPenChanger,
39915 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
39916 &_swigt__p_wxDash,
39917 &_swigt__p_wxDateEvent,
39918 &_swigt__p_wxDisplayChangedEvent,
39919 &_swigt__p_wxDropFilesEvent,
39920 &_swigt__p_wxDuplexMode,
39921 &_swigt__p_wxEffects,
39922 &_swigt__p_wxEncodingConverter,
39923 &_swigt__p_wxEraseEvent,
39924 &_swigt__p_wxEvent,
39925 &_swigt__p_wxEvtHandler,
39926 &_swigt__p_wxFSFile,
39927 &_swigt__p_wxFileSystem,
39928 &_swigt__p_wxFlexGridSizer,
39929 &_swigt__p_wxFocusEvent,
39930 &_swigt__p_wxFont,
39931 &_swigt__p_wxFontList,
39932 &_swigt__p_wxFontMapper,
39933 &_swigt__p_wxGBSizerItem,
72ef6efb 39934 &_swigt__p_wxGCDC,
da91cb0f 39935 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
39936 &_swigt__p_wxGDIObject,
39937 &_swigt__p_wxGIFHandler,
70d7cb34 39938 &_swigt__p_wxGraphicsBrush,
72ef6efb 39939 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39940 &_swigt__p_wxGraphicsFont,
39941 &_swigt__p_wxGraphicsMatrix,
39942 &_swigt__p_wxGraphicsObject,
72ef6efb 39943 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39944 &_swigt__p_wxGraphicsPen,
39945 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
39946 &_swigt__p_wxGridBagSizer,
39947 &_swigt__p_wxGridSizer,
33d6fd3b 39948 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
39949 &_swigt__p_wxICOHandler,
39950 &_swigt__p_wxIcon,
39951 &_swigt__p_wxIconBundle,
39952 &_swigt__p_wxIconLocation,
39953 &_swigt__p_wxIconizeEvent,
39954 &_swigt__p_wxIdleEvent,
39955 &_swigt__p_wxImage,
39956 &_swigt__p_wxImageHandler,
39957 &_swigt__p_wxImageList,
39958 &_swigt__p_wxIndividualLayoutConstraint,
39959 &_swigt__p_wxInitDialogEvent,
39960 &_swigt__p_wxJPEGHandler,
39961 &_swigt__p_wxKeyEvent,
39962 &_swigt__p_wxLanguageInfo,
39963 &_swigt__p_wxLayoutConstraints,
39964 &_swigt__p_wxLocale,
39965 &_swigt__p_wxMask,
39966 &_swigt__p_wxMaximizeEvent,
39967 &_swigt__p_wxMemoryDC,
39968 &_swigt__p_wxMenu,
39969 &_swigt__p_wxMenuBar,
39970 &_swigt__p_wxMenuEvent,
39971 &_swigt__p_wxMenuItem,
39972 &_swigt__p_wxMetaFile,
39973 &_swigt__p_wxMetaFileDC,
39974 &_swigt__p_wxMirrorDC,
39975 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39976 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
39977 &_swigt__p_wxMouseEvent,
39978 &_swigt__p_wxMoveEvent,
39979 &_swigt__p_wxNativeEncodingInfo,
39980 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39981 &_swigt__p_wxNativePixelData,
39982 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
39983 &_swigt__p_wxNavigationKeyEvent,
39984 &_swigt__p_wxNcPaintEvent,
39985 &_swigt__p_wxNotifyEvent,
39986 &_swigt__p_wxObject,
b39fe951 39987 &_swigt__p_wxOverlay,
1bd55598
RD
39988 &_swigt__p_wxPCXHandler,
39989 &_swigt__p_wxPNGHandler,
39990 &_swigt__p_wxPNMHandler,
39991 &_swigt__p_wxPaintDC,
39992 &_swigt__p_wxPaintEvent,
39993 &_swigt__p_wxPalette,
39994 &_swigt__p_wxPaletteChangedEvent,
39995 &_swigt__p_wxPaperSize,
39996 &_swigt__p_wxPen,
39997 &_swigt__p_wxPenList,
fc46b7f3 39998 &_swigt__p_wxPixelDataBase,
1bd55598 39999 &_swigt__p_wxPoint,
72ef6efb 40000 &_swigt__p_wxPoint2D,
70d7cb34 40001 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
40002 &_swigt__p_wxPostScriptDC,
40003 &_swigt__p_wxPrintData,
40004 &_swigt__p_wxPrinterDC,
27e45892 40005 &_swigt__p_wxPseudoDC,
1bd55598
RD
40006 &_swigt__p_wxPyApp,
40007 &_swigt__p_wxPyCommandEvent,
40008 &_swigt__p_wxPyEvent,
40009 &_swigt__p_wxPyFontEnumerator,
40010 &_swigt__p_wxPyImageHandler,
fc46b7f3 40011 &_swigt__p_wxPyLocale,
1bd55598
RD
40012 &_swigt__p_wxPySizer,
40013 &_swigt__p_wxPyValidator,
40014 &_swigt__p_wxQueryNewPaletteEvent,
40015 &_swigt__p_wxRect,
70d7cb34 40016 &_swigt__p_wxRect2DDouble,
1bd55598
RD
40017 &_swigt__p_wxRegion,
40018 &_swigt__p_wxRegionIterator,
40019 &_swigt__p_wxRendererNative,
40020 &_swigt__p_wxRendererVersion,
40021 &_swigt__p_wxScreenDC,
40022 &_swigt__p_wxScrollEvent,
40023 &_swigt__p_wxScrollWinEvent,
40024 &_swigt__p_wxSetCursorEvent,
40025 &_swigt__p_wxShowEvent,
40026 &_swigt__p_wxSize,
40027 &_swigt__p_wxSizeEvent,
40028 &_swigt__p_wxSizer,
40029 &_swigt__p_wxSizerItem,
40030 &_swigt__p_wxSplitterRenderParams,
40031 &_swigt__p_wxStaticBoxSizer,
40032 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40033 &_swigt__p_wxStockGDI,
1bd55598
RD
40034 &_swigt__p_wxString,
40035 &_swigt__p_wxSysColourChangedEvent,
40036 &_swigt__p_wxTIFFHandler,
40037 &_swigt__p_wxUpdateUIEvent,
40038 &_swigt__p_wxValidator,
40039 &_swigt__p_wxWindow,
40040 &_swigt__p_wxWindowCreateEvent,
40041 &_swigt__p_wxWindowDC,
40042 &_swigt__p_wxWindowDestroyEvent,
40043 &_swigt__p_wxXPMHandler,
40044};
40045
fc46b7f3 40046static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40047static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40048static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40049static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40050static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40051static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40052static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40053static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40054static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40055static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40056static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40057static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40058static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40059static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40060static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40061static 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}};
40062static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40063static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40064static 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}};
40065static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40066static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40067static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40068static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40069static 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
40070static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40071static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40072static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40073static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40074static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40075static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40076static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40077static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40078static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40079static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40080static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40081static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40082static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40083static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40084static 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 40085static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40086static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40087static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40088static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40089static 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 40090static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40091static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40092static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40093static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40094static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40095static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40096static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40097static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40098static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40099static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40100static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40101static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40102static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40103static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40104static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40105static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40106static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40107static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40108static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40109static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40110static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40111static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40112static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40113static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40114static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40115static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40116static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40117static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40118static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40119static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40120static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40121static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40122static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40123static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40124static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40125static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40126static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40127static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40128static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40129static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40130static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40131static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40132static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40133static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40134static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40135static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40136static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40137static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40138static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40139static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40140static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40141static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40142static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40143static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40144static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40145static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40146static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40147static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40148static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40149static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40150static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40151static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40152static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40153static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40154static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40155static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40156static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40157static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40158static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40159static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40160static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40161static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40162static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40163static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40164static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40165static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40166static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40167static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40168static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40169static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40170static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40171static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40172static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40173static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40174static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40175static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40176static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40177static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40178static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40179static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40180static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40181static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40182static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40183static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40184static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40185static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40186static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40187static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40188static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40189static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40190static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40191static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40192static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40193static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40194static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40195static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40196static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40197static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40198static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40199static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40200static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40201static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40202static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40203static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40204static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40205static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40206static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40207static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40208static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40209static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40210static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40211static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40212static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40213static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40214static 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 40215static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40216
40217static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40218 _swigc__p_buffer,
1bd55598
RD
40219 _swigc__p_char,
40220 _swigc__p_double,
40221 _swigc__p_form_ops_t,
40222 _swigc__p_int,
40223 _swigc__p_unsigned_char,
40224 _swigc__p_unsigned_int,
40225 _swigc__p_unsigned_long,
0a27f394 40226 _swigc__p_void,
1bd55598
RD
40227 _swigc__p_wxANIHandler,
40228 _swigc__p_wxAcceleratorTable,
40229 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40230 _swigc__p_wxAlphaPixelData,
40231 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40232 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40233 _swigc__p_wxBMPHandler,
40234 _swigc__p_wxBitmap,
40235 _swigc__p_wxBoxSizer,
40236 _swigc__p_wxBrush,
40237 _swigc__p_wxBrushList,
40238 _swigc__p_wxBufferedDC,
40239 _swigc__p_wxBufferedPaintDC,
40240 _swigc__p_wxCURHandler,
fc46b7f3 40241 _swigc__p_wxChar,
1bd55598
RD
40242 _swigc__p_wxChildFocusEvent,
40243 _swigc__p_wxClientDC,
2131d850 40244 _swigc__p_wxClipboardTextEvent,
1bd55598 40245 _swigc__p_wxCloseEvent,
72ef6efb 40246 _swigc__p_wxColor,
1bd55598
RD
40247 _swigc__p_wxColour,
40248 _swigc__p_wxColourDatabase,
40249 _swigc__p_wxCommandEvent,
40250 _swigc__p_wxContextMenuEvent,
40251 _swigc__p_wxControl,
40252 _swigc__p_wxControlWithItems,
40253 _swigc__p_wxCursor,
40254 _swigc__p_wxDC,
70d7cb34
RD
40255 _swigc__p_wxDCBrushChanger,
40256 _swigc__p_wxDCClipper,
b39fe951 40257 _swigc__p_wxDCOverlay,
70d7cb34
RD
40258 _swigc__p_wxDCPenChanger,
40259 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40260 _swigc__p_wxDash,
40261 _swigc__p_wxDateEvent,
40262 _swigc__p_wxDisplayChangedEvent,
40263 _swigc__p_wxDropFilesEvent,
40264 _swigc__p_wxDuplexMode,
40265 _swigc__p_wxEffects,
40266 _swigc__p_wxEncodingConverter,
40267 _swigc__p_wxEraseEvent,
40268 _swigc__p_wxEvent,
40269 _swigc__p_wxEvtHandler,
40270 _swigc__p_wxFSFile,
40271 _swigc__p_wxFileSystem,
40272 _swigc__p_wxFlexGridSizer,
40273 _swigc__p_wxFocusEvent,
40274 _swigc__p_wxFont,
40275 _swigc__p_wxFontList,
40276 _swigc__p_wxFontMapper,
40277 _swigc__p_wxGBSizerItem,
72ef6efb 40278 _swigc__p_wxGCDC,
da91cb0f 40279 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40280 _swigc__p_wxGDIObject,
40281 _swigc__p_wxGIFHandler,
70d7cb34 40282 _swigc__p_wxGraphicsBrush,
72ef6efb 40283 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40284 _swigc__p_wxGraphicsFont,
40285 _swigc__p_wxGraphicsMatrix,
40286 _swigc__p_wxGraphicsObject,
72ef6efb 40287 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40288 _swigc__p_wxGraphicsPen,
40289 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40290 _swigc__p_wxGridBagSizer,
40291 _swigc__p_wxGridSizer,
33d6fd3b 40292 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40293 _swigc__p_wxICOHandler,
40294 _swigc__p_wxIcon,
40295 _swigc__p_wxIconBundle,
40296 _swigc__p_wxIconLocation,
40297 _swigc__p_wxIconizeEvent,
40298 _swigc__p_wxIdleEvent,
40299 _swigc__p_wxImage,
40300 _swigc__p_wxImageHandler,
40301 _swigc__p_wxImageList,
40302 _swigc__p_wxIndividualLayoutConstraint,
40303 _swigc__p_wxInitDialogEvent,
40304 _swigc__p_wxJPEGHandler,
40305 _swigc__p_wxKeyEvent,
40306 _swigc__p_wxLanguageInfo,
40307 _swigc__p_wxLayoutConstraints,
40308 _swigc__p_wxLocale,
40309 _swigc__p_wxMask,
40310 _swigc__p_wxMaximizeEvent,
40311 _swigc__p_wxMemoryDC,
40312 _swigc__p_wxMenu,
40313 _swigc__p_wxMenuBar,
40314 _swigc__p_wxMenuEvent,
40315 _swigc__p_wxMenuItem,
40316 _swigc__p_wxMetaFile,
40317 _swigc__p_wxMetaFileDC,
40318 _swigc__p_wxMirrorDC,
40319 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40320 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40321 _swigc__p_wxMouseEvent,
40322 _swigc__p_wxMoveEvent,
40323 _swigc__p_wxNativeEncodingInfo,
40324 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40325 _swigc__p_wxNativePixelData,
40326 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40327 _swigc__p_wxNavigationKeyEvent,
40328 _swigc__p_wxNcPaintEvent,
40329 _swigc__p_wxNotifyEvent,
40330 _swigc__p_wxObject,
b39fe951 40331 _swigc__p_wxOverlay,
1bd55598
RD
40332 _swigc__p_wxPCXHandler,
40333 _swigc__p_wxPNGHandler,
40334 _swigc__p_wxPNMHandler,
40335 _swigc__p_wxPaintDC,
40336 _swigc__p_wxPaintEvent,
40337 _swigc__p_wxPalette,
40338 _swigc__p_wxPaletteChangedEvent,
40339 _swigc__p_wxPaperSize,
40340 _swigc__p_wxPen,
40341 _swigc__p_wxPenList,
fc46b7f3 40342 _swigc__p_wxPixelDataBase,
1bd55598 40343 _swigc__p_wxPoint,
72ef6efb 40344 _swigc__p_wxPoint2D,
70d7cb34 40345 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40346 _swigc__p_wxPostScriptDC,
40347 _swigc__p_wxPrintData,
40348 _swigc__p_wxPrinterDC,
27e45892 40349 _swigc__p_wxPseudoDC,
1bd55598
RD
40350 _swigc__p_wxPyApp,
40351 _swigc__p_wxPyCommandEvent,
40352 _swigc__p_wxPyEvent,
40353 _swigc__p_wxPyFontEnumerator,
40354 _swigc__p_wxPyImageHandler,
fc46b7f3 40355 _swigc__p_wxPyLocale,
1bd55598
RD
40356 _swigc__p_wxPySizer,
40357 _swigc__p_wxPyValidator,
40358 _swigc__p_wxQueryNewPaletteEvent,
40359 _swigc__p_wxRect,
70d7cb34 40360 _swigc__p_wxRect2DDouble,
1bd55598
RD
40361 _swigc__p_wxRegion,
40362 _swigc__p_wxRegionIterator,
40363 _swigc__p_wxRendererNative,
40364 _swigc__p_wxRendererVersion,
40365 _swigc__p_wxScreenDC,
40366 _swigc__p_wxScrollEvent,
40367 _swigc__p_wxScrollWinEvent,
40368 _swigc__p_wxSetCursorEvent,
40369 _swigc__p_wxShowEvent,
40370 _swigc__p_wxSize,
40371 _swigc__p_wxSizeEvent,
40372 _swigc__p_wxSizer,
40373 _swigc__p_wxSizerItem,
40374 _swigc__p_wxSplitterRenderParams,
40375 _swigc__p_wxStaticBoxSizer,
40376 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40377 _swigc__p_wxStockGDI,
1bd55598
RD
40378 _swigc__p_wxString,
40379 _swigc__p_wxSysColourChangedEvent,
40380 _swigc__p_wxTIFFHandler,
40381 _swigc__p_wxUpdateUIEvent,
40382 _swigc__p_wxValidator,
40383 _swigc__p_wxWindow,
40384 _swigc__p_wxWindowCreateEvent,
40385 _swigc__p_wxWindowDC,
40386 _swigc__p_wxWindowDestroyEvent,
40387 _swigc__p_wxXPMHandler,
40388};
40389
40390
40391/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40392
40393static swig_const_info swig_const_table[] = {
40394{0, 0, 0, 0.0, 0, 0}};
40395
40396#ifdef __cplusplus
40397}
40398#endif
40399/* -----------------------------------------------------------------------------
40400 * Type initialization:
40401 * This problem is tough by the requirement that no dynamic
40402 * memory is used. Also, since swig_type_info structures store pointers to
40403 * swig_cast_info structures and swig_cast_info structures store pointers back
40404 * to swig_type_info structures, we need some lookup code at initialization.
40405 * The idea is that swig generates all the structures that are needed.
40406 * The runtime then collects these partially filled structures.
40407 * The SWIG_InitializeModule function takes these initial arrays out of
40408 * swig_module, and does all the lookup, filling in the swig_module.types
40409 * array with the correct data and linking the correct swig_cast_info
40410 * structures together.
40411 *
40412 * The generated swig_type_info structures are assigned staticly to an initial
40413 * array. We just loop though that array, and handle each type individually.
40414 * First we lookup if this type has been already loaded, and if so, use the
40415 * loaded structure instead of the generated one. Then we have to fill in the
40416 * cast linked list. The cast data is initially stored in something like a
40417 * two-dimensional array. Each row corresponds to a type (there are the same
40418 * number of rows as there are in the swig_type_initial array). Each entry in
40419 * a column is one of the swig_cast_info structures for that type.
40420 * The cast_initial array is actually an array of arrays, because each row has
40421 * a variable number of columns. So to actually build the cast linked list,
40422 * we find the array of casts associated with the type, and loop through it
40423 * adding the casts to the list. The one last trick we need to do is making
40424 * sure the type pointer in the swig_cast_info struct is correct.
40425 *
40426 * First off, we lookup the cast->type name to see if it is already loaded.
40427 * There are three cases to handle:
40428 * 1) If the cast->type has already been loaded AND the type we are adding
40429 * casting info to has not been loaded (it is in this module), THEN we
40430 * replace the cast->type pointer with the type pointer that has already
40431 * been loaded.
40432 * 2) If BOTH types (the one we are adding casting info to, and the
40433 * cast->type) are loaded, THEN the cast info has already been loaded by
40434 * the previous module so we just ignore it.
40435 * 3) Finally, if cast->type has not already been loaded, then we add that
40436 * swig_cast_info to the linked list (because the cast->type) pointer will
40437 * be correct.
40438 * ----------------------------------------------------------------------------- */
40439
40440#ifdef __cplusplus
40441extern "C" {
40442#if 0
40443} /* c-mode */
40444#endif
40445#endif
40446
40447#if 0
40448#define SWIGRUNTIME_DEBUG
40449#endif
40450
40451SWIGRUNTIME void
40452SWIG_InitializeModule(void *clientdata) {
40453 size_t i;
40454 swig_module_info *module_head;
40455 static int init_run = 0;
40456
40457 clientdata = clientdata;
40458
40459 if (init_run) return;
40460 init_run = 1;
40461
40462 /* Initialize the swig_module */
40463 swig_module.type_initial = swig_type_initial;
40464 swig_module.cast_initial = swig_cast_initial;
40465
40466 /* Try and load any already created modules */
40467 module_head = SWIG_GetModule(clientdata);
40468 if (module_head) {
40469 swig_module.next = module_head->next;
40470 module_head->next = &swig_module;
40471 } else {
40472 /* This is the first module loaded */
40473 swig_module.next = &swig_module;
40474 SWIG_SetModule(clientdata, &swig_module);
40475 }
40476
40477 /* Now work on filling in swig_module.types */
40478#ifdef SWIGRUNTIME_DEBUG
40479 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40480#endif
40481 for (i = 0; i < swig_module.size; ++i) {
40482 swig_type_info *type = 0;
40483 swig_type_info *ret;
40484 swig_cast_info *cast;
40485
40486#ifdef SWIGRUNTIME_DEBUG
40487 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40488#endif
40489
40490 /* if there is another module already loaded */
40491 if (swig_module.next != &swig_module) {
40492 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40493 }
1bd55598
RD
40494 if (type) {
40495 /* Overwrite clientdata field */
40496#ifdef SWIGRUNTIME_DEBUG
40497 printf("SWIG_InitializeModule: found type %s\n", type->name);
40498#endif
40499 if (swig_module.type_initial[i]->clientdata) {
40500 type->clientdata = swig_module.type_initial[i]->clientdata;
40501#ifdef SWIGRUNTIME_DEBUG
40502 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40503#endif
40504 }
40505 } else {
40506 type = swig_module.type_initial[i];
be9b1dca 40507 }
1bd55598
RD
40508
40509 /* Insert casting types */
40510 cast = swig_module.cast_initial[i];
40511 while (cast->type) {
40512 /* Don't need to add information already in the list */
40513 ret = 0;
40514#ifdef SWIGRUNTIME_DEBUG
40515 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40516#endif
40517 if (swig_module.next != &swig_module) {
40518 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40519#ifdef SWIGRUNTIME_DEBUG
40520 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40521#endif
40522 }
40523 if (ret) {
40524 if (type == swig_module.type_initial[i]) {
40525#ifdef SWIGRUNTIME_DEBUG
40526 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40527#endif
40528 cast->type = ret;
40529 ret = 0;
40530 } else {
40531 /* Check for casting already in the list */
40532 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40533#ifdef SWIGRUNTIME_DEBUG
40534 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40535#endif
40536 if (!ocast) ret = 0;
40537 }
40538 }
40539
40540 if (!ret) {
40541#ifdef SWIGRUNTIME_DEBUG
40542 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40543#endif
40544 if (type->cast) {
40545 type->cast->prev = cast;
40546 cast->next = type->cast;
40547 }
40548 type->cast = cast;
40549 }
40550 cast++;
be9b1dca 40551 }
1bd55598
RD
40552 /* Set entry in modules->types array equal to the type */
40553 swig_module.types[i] = type;
40554 }
40555 swig_module.types[i] = 0;
40556
40557#ifdef SWIGRUNTIME_DEBUG
40558 printf("**** SWIG_InitializeModule: Cast List ******\n");
40559 for (i = 0; i < swig_module.size; ++i) {
40560 int j = 0;
40561 swig_cast_info *cast = swig_module.cast_initial[i];
40562 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40563 while (cast->type) {
40564 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40565 cast++;
40566 ++j;
40567 }
40568 printf("---- Total casts: %d\n",j);
40569 }
40570 printf("**** SWIG_InitializeModule: Cast List ******\n");
40571#endif
40572}
40573
40574/* This function will propagate the clientdata field of type to
40575* any new swig_type_info structures that have been added into the list
40576* of equivalent types. It is like calling
40577* SWIG_TypeClientData(type, clientdata) a second time.
40578*/
40579SWIGRUNTIME void
40580SWIG_PropagateClientData(void) {
40581 size_t i;
40582 swig_cast_info *equiv;
40583 static int init_run = 0;
40584
40585 if (init_run) return;
40586 init_run = 1;
40587
40588 for (i = 0; i < swig_module.size; i++) {
40589 if (swig_module.types[i]->clientdata) {
40590 equiv = swig_module.types[i]->cast;
40591 while (equiv) {
40592 if (!equiv->converter) {
40593 if (equiv->type && !equiv->type->clientdata)
40594 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40595 }
40596 equiv = equiv->next;
40597 }
be9b1dca 40598 }
1bd55598
RD
40599 }
40600}
40601
40602#ifdef __cplusplus
40603#if 0
40604{
40605 /* c-mode */
40606#endif
40607}
40608#endif
40609
40610
40611
40612#ifdef __cplusplus
40613extern "C" {
40614#endif
40615
40616 /* Python-specific SWIG API */
40617#define SWIG_newvarlink() SWIG_Python_newvarlink()
40618#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40619#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40620
40621 /* -----------------------------------------------------------------------------
40622 * global variable support code.
40623 * ----------------------------------------------------------------------------- */
40624
40625 typedef struct swig_globalvar {
40626 char *name; /* Name of global variable */
40627 PyObject *(*get_attr)(void); /* Return the current value */
40628 int (*set_attr)(PyObject *); /* Set the value */
40629 struct swig_globalvar *next;
40630 } swig_globalvar;
40631
40632 typedef struct swig_varlinkobject {
40633 PyObject_HEAD
40634 swig_globalvar *vars;
40635 } swig_varlinkobject;
40636
40637 SWIGINTERN PyObject *
40638 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40639 return PyString_FromString("<Swig global variables>");
40640 }
40641
40642 SWIGINTERN PyObject *
40643 swig_varlink_str(swig_varlinkobject *v) {
40644 PyObject *str = PyString_FromString("(");
40645 swig_globalvar *var;
40646 for (var = v->vars; var; var=var->next) {
40647 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40648 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40649 }
40650 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40651 return str;
40652 }
40653
40654 SWIGINTERN int
40655 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40656 PyObject *str = swig_varlink_str(v);
40657 fprintf(fp,"Swig global variables ");
40658 fprintf(fp,"%s\n", PyString_AsString(str));
40659 Py_DECREF(str);
40660 return 0;
40661 }
40662
40663 SWIGINTERN void
40664 swig_varlink_dealloc(swig_varlinkobject *v) {
40665 swig_globalvar *var = v->vars;
40666 while (var) {
40667 swig_globalvar *n = var->next;
40668 free(var->name);
40669 free(var);
40670 var = n;
be9b1dca 40671 }
1bd55598
RD
40672 }
40673
40674 SWIGINTERN PyObject *
40675 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40676 PyObject *res = NULL;
40677 swig_globalvar *var = v->vars;
40678 while (var) {
40679 if (strcmp(var->name,n) == 0) {
40680 res = (*var->get_attr)();
40681 break;
40682 }
40683 var = var->next;
be9b1dca 40684 }
1bd55598
RD
40685 if (res == NULL && !PyErr_Occurred()) {
40686 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40687 }
1bd55598
RD
40688 return res;
40689 }
40690
40691 SWIGINTERN int
40692 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40693 int res = 1;
40694 swig_globalvar *var = v->vars;
40695 while (var) {
40696 if (strcmp(var->name,n) == 0) {
40697 res = (*var->set_attr)(p);
40698 break;
40699 }
40700 var = var->next;
be9b1dca 40701 }
1bd55598
RD
40702 if (res == 1 && !PyErr_Occurred()) {
40703 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40704 }
1bd55598
RD
40705 return res;
40706 }
40707
40708 SWIGINTERN PyTypeObject*
40709 swig_varlink_type(void) {
40710 static char varlink__doc__[] = "Swig var link object";
40711 static PyTypeObject varlink_type;
40712 static int type_init = 0;
40713 if (!type_init) {
40714 const PyTypeObject tmp
40715 = {
40716 PyObject_HEAD_INIT(NULL)
40717 0, /* Number of items in variable part (ob_size) */
40718 (char *)"swigvarlink", /* Type name (tp_name) */
40719 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40720 0, /* Itemsize (tp_itemsize) */
40721 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40722 (printfunc) swig_varlink_print, /* Print (tp_print) */
40723 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40724 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40725 0, /* tp_compare */
40726 (reprfunc) swig_varlink_repr, /* tp_repr */
40727 0, /* tp_as_number */
40728 0, /* tp_as_sequence */
40729 0, /* tp_as_mapping */
40730 0, /* tp_hash */
40731 0, /* tp_call */
40732 (reprfunc)swig_varlink_str, /* tp_str */
40733 0, /* tp_getattro */
40734 0, /* tp_setattro */
40735 0, /* tp_as_buffer */
40736 0, /* tp_flags */
40737 varlink__doc__, /* tp_doc */
40738 0, /* tp_traverse */
40739 0, /* tp_clear */
40740 0, /* tp_richcompare */
40741 0, /* tp_weaklistoffset */
40742#if PY_VERSION_HEX >= 0x02020000
40743 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40744#endif
40745#if PY_VERSION_HEX >= 0x02030000
40746 0, /* tp_del */
40747#endif
40748#ifdef COUNT_ALLOCS
40749 0,0,0,0 /* tp_alloc -> tp_next */
40750#endif
40751 };
40752 varlink_type = tmp;
40753 varlink_type.ob_type = &PyType_Type;
40754 type_init = 1;
be9b1dca 40755 }
1bd55598
RD
40756 return &varlink_type;
40757 }
40758
40759 /* Create a variable linking object for use later */
40760 SWIGINTERN PyObject *
40761 SWIG_Python_newvarlink(void) {
40762 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40763 if (result) {
40764 result->vars = 0;
40765 }
40766 return ((PyObject*) result);
40767 }
40768
40769 SWIGINTERN void
40770 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40771 swig_varlinkobject *v = (swig_varlinkobject *) p;
40772 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40773 if (gv) {
40774 size_t size = strlen(name)+1;
40775 gv->name = (char *)malloc(size);
40776 if (gv->name) {
40777 strncpy(gv->name,name,size);
40778 gv->get_attr = get_attr;
40779 gv->set_attr = set_attr;
40780 gv->next = v->vars;
40781 }
be9b1dca 40782 }
1bd55598
RD
40783 v->vars = gv;
40784 }
40785
40786 SWIGINTERN PyObject *
40787 SWIG_globals() {
40788 static PyObject *_SWIG_globals = 0;
40789 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40790 return _SWIG_globals;
40791 }
40792
40793 /* -----------------------------------------------------------------------------
40794 * constants/methods manipulation
40795 * ----------------------------------------------------------------------------- */
40796
40797 /* Install Constants */
40798 SWIGINTERN void
40799 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40800 PyObject *obj = 0;
40801 size_t i;
40802 for (i = 0; constants[i].type; ++i) {
40803 switch(constants[i].type) {
40804 case SWIG_PY_POINTER:
40805 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40806 break;
40807 case SWIG_PY_BINARY:
40808 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40809 break;
40810 default:
40811 obj = 0;
40812 break;
40813 }
40814 if (obj) {
40815 PyDict_SetItemString(d, constants[i].name, obj);
40816 Py_DECREF(obj);
40817 }
be9b1dca 40818 }
1bd55598
RD
40819 }
40820
40821 /* -----------------------------------------------------------------------------*/
40822 /* Fix SwigMethods to carry the callback ptrs when needed */
40823 /* -----------------------------------------------------------------------------*/
40824
40825 SWIGINTERN void
40826 SWIG_Python_FixMethods(PyMethodDef *methods,
40827 swig_const_info *const_table,
40828 swig_type_info **types,
40829 swig_type_info **types_initial) {
40830 size_t i;
40831 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 40832 const char *c = methods[i].ml_doc;
1bd55598
RD
40833 if (c && (c = strstr(c, "swig_ptr: "))) {
40834 int j;
40835 swig_const_info *ci = 0;
3d6c9062 40836 const char *name = c + 10;
1bd55598
RD
40837 for (j = 0; const_table[j].type; ++j) {
40838 if (strncmp(const_table[j].name, name,
40839 strlen(const_table[j].name)) == 0) {
40840 ci = &(const_table[j]);
40841 break;
40842 }
40843 }
40844 if (ci) {
40845 size_t shift = (ci->ptype) - types;
40846 swig_type_info *ty = types_initial[shift];
40847 size_t ldoc = (c - methods[i].ml_doc);
40848 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40849 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40850 if (ndoc) {
40851 char *buff = ndoc;
40852 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40853 if (ptr) {
40854 strncpy(buff, methods[i].ml_doc, ldoc);
40855 buff += ldoc;
40856 strncpy(buff, "swig_ptr: ", 10);
40857 buff += 10;
40858 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40859 methods[i].ml_doc = ndoc;
40860 }
40861 }
40862 }
40863 }
be9b1dca 40864 }
1bd55598
RD
40865 }
40866
40867#ifdef __cplusplus
40868}
40869#endif
40870
40871/* -----------------------------------------------------------------------------*
40872 * Partial Init method
40873 * -----------------------------------------------------------------------------*/
40874
40875#ifdef __cplusplus
40876extern "C"
40877#endif
40878SWIGEXPORT void SWIG_init(void) {
40879 PyObject *m, *d;
40880
40881 /* Fix SwigMethods to carry the callback ptrs when needed */
40882 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40883
40884 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40885 d = PyModule_GetDict(m);
40886
40887 SWIG_InitializeModule(0);
40888 SWIG_InstallConstants(d,swig_const_table);
40889
40890
2131d850
RD
40891 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40892 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40893 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40894 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40895 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
40896 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40897 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40898 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40899 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40900 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40901 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40902 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40903 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40904 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40905 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40906 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40907 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40908 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40909 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40910 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40911 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40912 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40913 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40914 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40915 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40916 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40917 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40918 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40919 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40920 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40921 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40922 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40923 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40924 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40925 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40926 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40927 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40928 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40929 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40930 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40931 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40932 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40933 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40937 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40938 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40939 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40940 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40941 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40942 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40943 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40944 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40945 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40946 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40947 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40948 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40949 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40950 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40951 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40952 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40953 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40954 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40955 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40956 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40957 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40958 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40959 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40960 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40961 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40962 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40963 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40964 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40965 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40966 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40967 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40968 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40993 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40994 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40995 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40996 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40997 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40998 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40999 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41000 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41001 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41002 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41014 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41015 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41016 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41017 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41018 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41019 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41020 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41021 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41022 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41023
41024 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41025
41026 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41257 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41258 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41259 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41260 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41261 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41262 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41263 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41264 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41265 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41266 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41267 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41268 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41269 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41270 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41271 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41272 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41273 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41274 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41275 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41276 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41277 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41278 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41279 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41280 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41281 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41282 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41283 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41284 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41285 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41286 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41287 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41288 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41289 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41290 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41291 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41292 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41293 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41294 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41295 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41296 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41297 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41298 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41299 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41300 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41301 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41302 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41303 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41304 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41305 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41306 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41307 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41308 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41309 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41310 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41311 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41312 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41313 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41314 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41315 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41316 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41317 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41318 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41319 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41320 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41321 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41322 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41323 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41324 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41325 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41326 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41327 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41328 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41329 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41330 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41331 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41332 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41333 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41334 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41335 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41336 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41337 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41338 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41339 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41340 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41341 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41342 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41343 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41344 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41345 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41346 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41347 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41348 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41349 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41350
41351 // Work around a chicken/egg problem in drawlist.cpp
41352 wxPyDrawList_SetAPIPtr();
41353
d55e5bfc
RD
41354}
41355